https://github.com/markrickert/rubymotionupc-example
An example RubyMotion application that uses ZBar to scan barcodes.
https://github.com/markrickert/rubymotionupc-example
Last synced: about 1 year ago
JSON representation
An example RubyMotion application that uses ZBar to scan barcodes.
- Host: GitHub
- URL: https://github.com/markrickert/rubymotionupc-example
- Owner: markrickert
- Created: 2013-06-10T23:15:33.000Z (about 13 years ago)
- Default Branch: master
- Last Pushed: 2013-06-11T00:24:34.000Z (about 13 years ago)
- Last Synced: 2025-05-08T00:45:02.814Z (about 1 year ago)
- Language: Ruby
- Size: 98.6 KB
- Stars: 8
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: Readme.md
Awesome Lists containing this project
README
# RubyMotion ZBar Barcode Scanning Example
This [RubyMotion](http://www.rubymotion.com) application was the result of an [AirPair](http://www.airpair.com/) session I did to help [@rossfuhrman](https://twitter.com/rossfuhrman) with RubyMotion and UPC (EAN) barcode reading.
We used the [ZBar](http://sourceforge.net/projects/zbar/?source=dlp) barcode reading library.
This was a 1 hour pair programming session over Google Hangouts and is [posted to Youtube](http://www.youtube.com/watch?v=YWU6NcMdO-Y).
## Getting started
This application **will not** run in the simulator. Well, It'll *run*, but it won't *work*. You need to compile it to a device in order for it to do anything useful.
Run: `bundle` then add your bundle identifier and provisioning profile data to the `Rakefile`. Then run `rake device`. If you want to see the output from the bar code reading in the terminal, run `rake devicedebug=1`. To exit from the device debug session, hit `control+c`, then `control+d`, `y`, `enter`.
## Video
[](http://www.youtube.com/watch?v=YWU6NcMdO-Y)