Forum: Redcloth RedCloth 4.1.0 released with JRuby support

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Jason G. (Guest)
on 2008-10-31 23:08
(Received via mailing list)
Sorry it took me a week to release the JRuby version.  I was out sick
most of the week.

Thanks a million, Ola B., for implementing the Java code!

Give it a go:
   Ruby:
     gem install RedCloth
   JRuby:
     jgem install RedCloth

Let me know how it goes for you.

Jason
Stephen B. (Guest)
on 2008-11-03 07:06
(Received via mailing list)
>Let me know how it goes for you.
I have trunk jruby installed and when I tried to install RedCloth 4.1.0
the install process tried to build the C libraries:

I used the command: 'jruby -S gem install RedCloth' to install RedCloth,
this is the same command as: 'jgem install RedCloth'.

$ jruby -S gem install RedCloth
JRuby limited openssl loaded. gem install jruby-openssl for full
support.
http://wiki.jruby.org/wiki/JRuby_Builtin_OpenSSL
Building native extensions.  This could take a while...
/Users/stephen/dev/ruby/src/jruby.git/lib/ruby/1.8/mkmf.rb:7: JRuby does
not support native extensions. Check wiki.jruby.org for alternatives.
(NotImplementedError)
  from /Users/stephen/dev/ruby/src/jruby.git/lib/ruby/1.8/mkmf.rb:1:in
`require'
  from extconf.rb:1
ERROR:  Error installing RedCloth:
  ERROR: Failed to build gem native extension.

/Users/stephen/dev/ruby/src/jruby.git/bin/jruby extconf.rb install
RedCloth


Gem files will remain installed in
/Users/stephen/dev/ruby/src/jruby.git/lib/ruby/gems/1.8/gems/RedCloth-4.1.0
for inspection.
Results logged to
/Users/stephen/dev/ruby/src/jruby.git/lib/ruby/gems/1.8/gems/RedCloth-4.1.0/ext/redcloth_scan/gem_make.out


The rubygems version is 1.3.1:

$ jruby -S gem env
RubyGems Environment:
  - RUBYGEMS VERSION: 1.3.1
  - RUBY VERSION: 1.8.6 (2008-11-02 patchlevel 114) [java]
  - INSTALLATION DIRECTORY:
/Users/stephen/dev/ruby/src/jruby.git/lib/ruby/gems/1.8
  - RUBY EXECUTABLE: /Users/stephen/dev/ruby/src/jruby.git/bin/jruby
  - EXECUTABLE DIRECTORY: /Users/stephen/dev/ruby/src/jruby.git/bin
  - RUBYGEMS PLATFORMS:
    - ruby
    - universal-java-1.5
  - GEM PATHS:
     - /Users/stephen/dev/ruby/src/jruby.git/lib/ruby/gems/1.8
     - /Users/stephen/.gem/jruby/1.8
  - GEM CONFIGURATION:
     - :update_sources => true
     - :verbose => true
     - :benchmark => false
     - :backtrace => false
     - :bulk_threshold => 1000
     - "install" => "--env-shebang"
     - "update" => "--env-shebang"
     - :sources => ["http://gems.rubyforge.org",
"http://gems.github.com/", "http://gems.github.com"]
  - REMOTE SOURCES:
     - http://gems.rubyforge.org
     - http://gems.github.com/
     - http://gems.github.com
Jason G. (Guest)
on 2008-11-03 20:59
(Received via mailing list)
Yeah, you're right.  I'm looking into it.
Stephen B. (Guest)
on 2008-11-15 10:37
(Received via mailing list)
At 1:59 PM -0500 11/3/08, Jason G. wrote:
>Yeah, you're right.  I'm looking into it.

fyi: this works to install the gem into an existing jruby gem
repository:

   git clone git://github.com/jgarber/redcloth.git
   cd redcloth
   jruby -S rake pkg
   jruby -S gem install pkg/RedCloth-4.1.0-java.gem
Jason G. (Guest)
on 2008-11-15 10:58
(Received via mailing list)
I fixed the jruby gem two weeks ago and the win32 gem last week but
forgot to reply and let you know!  They should both work from
RubyForge now, but if not, let me know.
This topic is locked and can not be replied to.