Letters to the editor

I’m always looking for new columns to put in the Dispatch. One I’m working on is the latest updates from popular gems. I need to write a script for that because it would be way too time consuming to do manually.

Another idea I have is “Letters to the editor”, where you the reader send me your comments regarding the last issue. I then put them in the next issue (curated of course). So let’s try that and see if anyone is interested. Comment or ask a question about anything in this issue, and send those comments to me (todd@infinitered.com).

If you missed the last issue, you can find it here: issue #33.

Happy coding, Todd Werth (@twerth)

Articles, News, New Gems, and Blog Posts

July 2nd, 2014 | blog post | by RubyMotion
RubyMotion #inspect 2014 Wrap-Up

July 2nd, 2014 | blog post | by Kamil Lelonek
From Rails to RubyMotion: basic toolkit

July 1st, 2014 | blog post | by Todd Werth
RMQ version 0.6.1 released

June 30th, 2014 | video | by Nelson Pascoal
Rubymotion – iOS and OSX development from a Ruby developer’s perspective –

June 29th, 2014 | screencast | by Jack Watson-Hamblin
MotionInMotion – Episode 31 – Custom Video Players and Animating Videos

RubyMotion App of the Week


June 22th, 2014 – Green Light!

“Open source iOS app to interact with Semaphore

Github Repo

Gems this app uses

  • bubble-wrap
  • motion-cocoapods
  • afmotion
  • cdq
  • ib

Pods this app uses

  • SVProgressHUD
  • YIInnerShadowView
  • GBDeviceInfo
  • PrettyTimestamp

RubyMotion News

RubyMotion 2.30 released

  • The iOS 8.0 and OS X 10.10 versions of the runtime have been recompiled with Xcode 6 Beta 2.
  • Added the `device_name’ parameter in order to select iOS 8 simulater device. You can use “iPhone 4s”, “iPhone 5”, “iPhone 5s”, “iPad 2″ ,”iPad Retina”, “iPad Air”, “Resizable iPhone” and “Resizable iPad” for device name. (Ex rake device_name=”Resizable iPhone”)
  • Improved the compiler to optimize the app executable size, by removing unnecessary internal Objective-C stubs. Apps should be 10-30% lighter, depending on how much native calls they use.
  • Added the BigDecimal#{to_i, to_int, to_f, to_s, coerce, +@, -@, modulo, quo, power, floor, ceil, round} methods.
  • Added the Kernel#BigDecimal method.
  • Improved String interpolation performance. ~10% faster.
  • Improved the NoMethodError exception message to include the full Objective-C selector. Also, #method_missing will now receive the full Objective-C selector as the method name.
  • Fixed a bug where spec helpers nested in sub-directories were being considered spec files instead of helpers. Thanks to Ignacio Piantanida for the patch.
  • Fixed a bug where a crash due to an assertion would be happening when using #layout on a MIDIPacketList object on iOS 8.
  • Fixed a bug where a crash would happen when calling a Objective-C method supposed to return a block, but instead returning nil.
  • Fixed a bug where a crash would happen when a Symbol object was used with the NSCoding interface methods.
  • Fixed a bug where shortcut selectors would not work when the method name was begining or ending with a number.
  • Fixed a bug where the `scrollViewWillEndDragging:withVelocity: targetContentOffset:’ delegate method would not be defined properly.
  • Fixed a bug where a crash would happen when a Struct object was used with the NSCoding interface methods.
  • Fixed a bug where the NSJSONSerialization' interface would return a BigDecimal object if the0.0′ value was stored in the original JSON data.
  • Fixed a bug where dynamically-defined methods would not be removed properly.
  • Fixed a bug where typedef parameters would cause a “not precompiled” error.
  • [OSX] Fixed the runtime to recognize `NSTaggedPointerString’ objects that were introduced in Yosemite.
  • [OSX] Fixed a bug with the `NSManagedObjectModel#entitiesByName’ method of the CoreData framework where it would return an NSDictionary that was not expected on 10.9.
  • [OSX] Fixed a bug where the default value for `app.deployment_target’ was wrong and would cause a build error on an old version of OS X.
  • [OSX] Fixed a bug where a “not precompiled” error would happen when specifying an older version OS X version for `app.deployment_target’ when building on Yosemite.
sudo motion update

RubyMotion Tip of the Week by Marcos Villacampa

If you have multiple iOS devices connected to your computer, you can select in which one to run your RubyMotion application.

First, get the device UUID through iTunes or the Xcode organizer.

Then run your app like this:

rake device id=YOUR-UUID

Hidden Gem by Gant Laborde of Iconoclast Labs

Working on your project and just can’t remember the right syntax on that gem? Open that browser, and “O look at all these emails, and I haven’t even checked Reddit yet, today. O and my chat icon is blinking. What was I about to do? Was it watch cat videos?” The longer you’re out of code, the worse it gets. There’s something to be said about losing focus.

You may or may not be utilizing the RMQ gem, but today’s hidden gem is a delightful feature of the latest RMQ, that helps you gather information on the gem without breaking stride. Let’s say you wanted to review the RMQ grid diagram. You can now type rmq docs grid from your local shell, and have the gem pull up the appropriate documentation right on your local browser. Love it

If you have any tips, blog posts, or want to sponsor this newsletter, please send emails to todd@infinitered.com