By Developers, For Developers
| PDF Pg | Paper Pg | Type | Description | Fixed on | Comments |
|---|---|---|---|---|---|
| 17 | TYPO | Section 1.6, second paragraph, second line, should read: JRuby allows you to compile your Ruby code… | 2010-06-18 | ||
| 147 | SUGGEST | This set of Rake tasks gives us enough to build the .jar file: —> I believe this should read | 2010-07-02 | Thanks! We've fixed this for B4.0. | |
| 198 | TYPO | first paragraph, the sentence before the last sentence starts with “Snce”, should read Since | 2010-07-02 | Thanks! The fix is targeted for B4.0. | |
| 201 | TYPO | “Remember, this classes are objects, too” | 2010-07-02 | Good catch, thanks! We should have a fix in B4.0. | |
| 37 | SUGGEST | Array::ArrayDemo.combine_strings([“foo” , “bar” , “baz” ]) already worked in v1.5.1 (no need for to_java?) | 2010-07-02 | Indeed, as of JRuby 1.5, this code no longer throws an error. We've reworked the example and explanation for B4.0. Thanks for reporting this. | |
| 72 | TYPO | The word “several” is misspelled as “severeal.” | 2010-07-29 | ||
| 78 | ERROR | The output at the top of p.78 was generated from the wrong run of the compiler. The correct output looks similar, but the missing symbol should be the constructor for “waveform,” not the class itself. (The description in the text is correct.) | 2010-07-29 | ||
| 33 | ERROR | Attempting to run example code from the website; received the following error: [~/jrubybook] jruby -J-Xss128m ackerizer.rb | 2010-05-07 | The 0.0.7 version of Rubeus needed a patch to run this example. Upgrading to 0.0.9 (by doing a "jruby -S gem install rubeus") should fix the issue. | |
| 63 | SUGGEST | I’m guessing this is a “me” problem and not erratum. But might need clarification in the book… But for some reason when I build the historian project with ant it can find the org.jruby.embed package: -do-compile: I have jruby 1.5.3 which I thought included that package already. What am I missing? | 2010-10-29 | ||
| 63 | SUGGEST | Sorry…I’m stupid but some other readers might be as well. I downloaded jruby-complete-XXX.jar and moved to the historian /lib directory with name jruby-complete.jar per the build.properties in the nbproject folder. I had assumed the downloaded code had everything ready to go. If the book mentioned this, perhaps it should be clarified. | 2010-10-21 | You're right; we should explain the need to download the .jar file. We've added a "get-jruby-libs" command to the "bin" directory to download this file into the right place, and the chapter now explains how to use this command. \n \nGood catch; thanks! \n | |
| 208 | SUGGEST | Didn’t see a line for installing the gem for “shoulda”. Initially thought it might be included by default since others had lines for installing the gem right after intro. $ jruby -S gem install shoulda | 2010-10-29 | Good catch! We'll add this to the final version. Thanks! | |
| 38 | ERROR | I too am having difficulties running the ackerizer.rb example on page 38. I am using Windows 7, jruby 1.5.2. The error is as follows: C:\\Users\\andrew\\projects\\jruby\\java_from_ruby>jruby -J-Xss128m ackerizer.rb from sun/reflect/NativeConstructorAccessorImpl.java:39:in `newInstance’ If I remove the C:\\Users\\andrew\\projects\\jruby\\java_from_ruby>jruby ackerizer.rb | 2010-10-29 | Indeed, it looks like on the latest version of JRuby, a stack size of 64m is much more likely to work across platforms. Thanks for bringing this to our attention. | |
| 109 | SUGGEST | I think you are aware of an issue using JRuby 1.5.5 and Rails 3.0.3 but might make mention or make sure the reader is using newer version of JRuby (from git or release 1.5.6). | |||
| 243 | SUGGEST | Last line “Next install the Monkeybars gem…” would read better if it were in a new paragraph. At the moment, this gives the impression it’s a netbeans step. Probably this is made worse by the fact the gem install spans a page break. | |||
| 38 | TYPO | The last paragraph on page 38 has two sentences repeated at the top of page 39. | |||
| 58 | SUGGEST | Question I had reading this: does the become_java! method described earlier help at all with the “lost monkeypatches” problem? Or does it only apply to classes, not objects? | |||
| 226 | SUGGEST | I have had a great deal of trouble getting JTestR to work for my project. With the config from the book (0.6) I get: [INFO] Internal error in the plugin manager executing goal ‘org.jtestr:jtestr:0.6:test’: Unable to load the mojo ‘org.jtestr:jtestr:0.6:test’ in the plugin ‘org.jtestr:jtestr’. A required class is missing: org/jruby/exceptions/RaiseException Is this something that could be easily avoided with a couple lines of clarification? | |||
| 169 | TYPO | In the first ant example the name of the target (‘hello_from_ant’) does not correspond with the default target name (‘hello’), so calling ‘ant’ without an explicit target argument won’t work. Just rename the target to ‘hello’ or the default to ‘hello_from_ant’. | |||
| 106 | SUGGEST | There’s a much better way to do platform detection for Jruby and regular ruby You can say: platforms :jruby do platforms :ruby do This works when the JRUBY_VERSION environment variable isn’t defined, as when using RVM. It works in rails 3.0.3 out of experience. | |||
| 126 | TYPO | When generating the scaffold for Review, the first — argument should be —migration, not —migrate. If using —migrate, the error at the command line will be prefixed with ‘Another migration is already named create_reviews’ | |||
| 155 | ERROR | Building Ribs using the current version of rspec (2.5.0 as it type this), as installed by the previous commands, will fail as the Rakefile assumes the build will use version 1 of rspec. The git diff is as following: task :ant do desc “Run all specs” - t.libs << “test” - t.libs << “lib” - t.spec_files = FileList[‘test//*_spec.rb’] task :spec => [:ant] | |||
| 83 | TYPO | “and long-running programs well seem” should be “and long-running programs will seem” | |||
| 64 | ERROR | Issuing the command `ant`, the `do_compile` step fails due to not finding the jruby embed package. I have issued this before running `ant`, just to make sure: export CLASSPATH=$CLASSPATH:/Users/me/.rvm/rubies/jruby-1.6.4/lib/jruby.jar | |||
| 44 | ERROR | url.get_protocol # Isn’t assigned. url = URL.new ‘http’, ‘pragprog.com’, ‘/titles’ # FIFY | |||
| 44 | SUGGEST | attributes.rb doesn’t really make sense to have a code example for, seeing as it’s purely for users to digest and not actually run. | |||
| 68 | SUGGEST | Referring to ruby methods as functions and then again as methods is somewhat confusing. I suggest referring to ruby methods as methods and java functions as functions to keep things clear. “While we’re at it, we’ll move the function into a class:” “So far, we’ve been calling the history method by building up a string in Java with the word history in it. But JRuby can actually call the method directly, using the callMethod( ) operation.” | |||
| 261 | ERROR | Command to launch limelight demos does not work: | |||
| 250 | ERROR | Error installing monkeybars. |