--------------060009010708030307010402 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Alex Verhovsky wrote: > Jeff Wood wrote: > >> I've downloaded and have the Gem for RedCloth 3.0.3 installed. >> >> When I require it ( after require 'rubygems' ) I get a PILE of >> warning messages about constants that are already defined ... >> >> Anybody have any input on this? >> >> I'd love to have a quiet this stuff down... >> >> j. >> > Comstants? Strange... > This is what I get: > > C:\instiki>ruby -w -e "require 'redcloth'" > c:/ruby/lib/ruby/gems/1.8/gems/RedCloth-3.0.3/lib/redcloth.rb:612: > warning: ambiguous first argument; put parentheses or even spaces > c:/ruby/lib/ruby/gems/1.8/gems/RedCloth-3.0.3/lib/redcloth.rb:832: > warning: ambiguous first argument; put parentheses or even spaces > c:/ruby/lib/ruby/gems/1.8/gems/RedCloth-3.0.3/lib/redcloth.rb:1037: > warning: ambiguous first argument; put parentheses or even spaces > c:/ruby/lib/ruby/gems/1.8/gems/RedCloth-3.0.3/lib/redcloth.rb:815: > warning: method redefined; discarding old inline_markdown_link > > same with require_gem 'RedCloth' > > Alex > > > I'm getting: irb(main):001:0> require 'RedCloth' c:/ruby/lib/ruby/gems/1.8/gems/RedCloth-3.0.3/lib/RedCloth.rb:169: warning: already initialized constant VERSION c:/ruby/lib/ruby/gems/1.8/gems/RedCloth-3.0.3/lib/RedCloth.rb:170: warning: already initialized constant DEFAULT_RULES c:/ruby/lib/ruby/gems/1.8/gems/RedCloth-3.0.3/lib/RedCloth.rb:311: warning: already initialized constant TEXTILE_TAGS c:/ruby/lib/ruby/gems/1.8/gems/RedCloth-3.0.3/lib/RedCloth.rb:324: warning: already initialized constant A_HLGN c:/ruby/lib/ruby/gems/1.8/gems/RedCloth-3.0.3/lib/RedCloth.rb:325: warning: already initialized constant A_VLGN c:/ruby/lib/ruby/gems/1.8/gems/RedCloth-3.0.3/lib/RedCloth.rb:326: warning: already initialized constant C_CLAS c:/ruby/lib/ruby/gems/1.8/gems/RedCloth-3.0.3/lib/RedCloth.rb:327: warning: already initialized constant C_LNGE c:/ruby/lib/ruby/gems/1.8/gems/RedCloth-3.0.3/lib/RedCloth.rb:328: warning: already initialized constant C_STYL c:/ruby/lib/ruby/gems/1.8/gems/RedCloth-3.0.3/lib/RedCloth.rb:329: warning: already initialized constant S_CSPN c:/ruby/lib/ruby/gems/1.8/gems/RedCloth-3.0.3/lib/RedCloth.rb:330: warning: already initialized constant S_RSPN c:/ruby/lib/ruby/gems/1.8/gems/RedCloth-3.0.3/lib/RedCloth.rb:331: warning: already initialized constant A c:/ruby/lib/ruby/gems/1.8/gems/RedCloth-3.0.3/lib/RedCloth.rb:332: warning: already initialized constant S c:/ruby/lib/ruby/gems/1.8/gems/RedCloth-3.0.3/lib/RedCloth.rb:333: warning: already initialized constant C c:/ruby/lib/ruby/gems/1.8/gems/RedCloth-3.0.3/lib/RedCloth.rb:335: warning: already initialized constant PUNCT c:/ruby/lib/ruby/gems/1.8/gems/RedCloth-3.0.3/lib/RedCloth.rb:336: warning: already initialized constant HYPERLINK c:/ruby/lib/ruby/gems/1.8/gems/RedCloth-3.0.3/lib/RedCloth.rb:342: warning: already initialized constant SIMPLE_HTML_TAGS c:/ruby/lib/ruby/gems/1.8/gems/RedCloth-3.0.3/lib/RedCloth.rb:364: warning: already initialized constant GLYPHS c:/ruby/lib/ruby/gems/1.8/gems/RedCloth-3.0.3/lib/RedCloth.rb:371: warning: already initialized constant H_ALGN_VALS c:/ruby/lib/ruby/gems/1.8/gems/RedCloth-3.0.3/lib/RedCloth.rb:377: warning: already initialized constant V_ALGN_VALS c:/ruby/lib/ruby/gems/1.8/gems/RedCloth-3.0.3/lib/RedCloth.rb:390: warning: already initialized constant QTAGS c:/ruby/lib/ruby/gems/1.8/gems/RedCloth-3.0.3/lib/RedCloth.rb:475: warning: already initialized constant TABLE_RE c:/ruby/lib/ruby/gems/1.8/gems/RedCloth-3.0.3/lib/RedCloth.rb:513: warning: already initialized constant LISTS_RE c:/ruby/lib/ruby/gems/1.8/gems/RedCloth-3.0.3/lib/RedCloth.rb:514: warning: already initialized constant LISTS_CONTENT_RE c:/ruby/lib/ruby/gems/1.8/gems/RedCloth-3.0.3/lib/RedCloth.rb:565: warning: already initialized constant CODE_RE c:/ruby/lib/ruby/gems/1.8/gems/RedCloth-3.0.3/lib/RedCloth.rb:583: warning: already initialized constant BLOCKS_GROUP_RE c:/ruby/lib/ruby/gems/1.8/gems/RedCloth-3.0.3/lib/RedCloth.rb:655: warning: already initialized constant BLOCK_RE c:/ruby/lib/ruby/gems/1.8/gems/RedCloth-3.0.3/lib/RedCloth.rb:671: warning: already initialized constant SETEXT_RE c:/ruby/lib/ruby/gems/1.8/gems/RedCloth-3.0.3/lib/RedCloth.rb:686: warning: already initialized constant ATX_RE c:/ruby/lib/ruby/gems/1.8/gems/RedCloth-3.0.3/lib/RedCloth.rb:696: warning: already initialized constant MARKDOWN_BQ_RE c:/ruby/lib/ruby/gems/1.8/gems/RedCloth-3.0.3/lib/RedCloth.rb:709: warning: already initialized constant MARKDOWN_RULE_RE c:/ruby/lib/ruby/gems/1.8/gems/RedCloth-3.0.3/lib/RedCloth.rb:749: warning: already initialized constant LINK_RE c:/ruby/lib/ruby/gems/1.8/gems/RedCloth-3.0.3/lib/RedCloth.rb:781: warning: already initialized constant MARKDOWN_REFLINK_RE c:/ruby/lib/ruby/gems/1.8/gems/RedCloth-3.0.3/lib/RedCloth.rb:813: warning: already initialized constant MARKDOWN_LINK_RE c:/ruby/lib/ruby/gems/1.8/gems/RedCloth-3.0.3/lib/RedCloth.rb:827: warning: already initialized constant TEXTILE_REFS_RE c:/ruby/lib/ruby/gems/1.8/gems/RedCloth-3.0.3/lib/RedCloth.rb:828: warning: already initialized constant MARKDOWN_REFS_RE c:/ruby/lib/ruby/gems/1.8/gems/RedCloth-3.0.3/lib/RedCloth.rb:868: warning: already initialized constant IMAGE_RE c:/ruby/lib/ruby/gems/1.8/gems/RedCloth-3.0.3/lib/RedCloth.rb:961: warning: already initialized constant OFFTAGS c:/ruby/lib/ruby/gems/1.8/gems/RedCloth-3.0.3/lib/RedCloth.rb:962: warning: already initialized constant OFFTAG_MATCH c:/ruby/lib/ruby/gems/1.8/gems/RedCloth-3.0.3/lib/RedCloth.rb:963: warning: already initialized constant OFFTAG_OPEN c:/ruby/lib/ruby/gems/1.8/gems/RedCloth-3.0.3/lib/RedCloth.rb:964: warning: already initialized constant OFFTAG_CLOSE c:/ruby/lib/ruby/gems/1.8/gems/RedCloth-3.0.3/lib/RedCloth.rb:965: warning: already initialized constant HASTAG_MATCH c:/ruby/lib/ruby/gems/1.8/gems/RedCloth-3.0.3/lib/RedCloth.rb:966: warning: already initialized constant ALLTAG_MATCH c:/ruby/lib/ruby/gems/1.8/gems/RedCloth-3.0.3/lib/RedCloth.rb:1085: warning: already initialized constant BASIC_TAGS true irb(main):002:0> ... I get these same errors in my output when I do the require from a script instead of IRB ... I'd LOVE to see these go away... As far as environment specifics ... I'm running Ruby for Windows ( one-click 1.8.2 - 15 ) ... and I used Gem to install RedCloth ( version 3.0.3 ) So, if ANYBODY can provide a bit of information to help get rid of these, I'd really appreciate it. j. --------------060009010708030307010402--