Skip to content

Instantly share code, notes, and snippets.

@brentd
Created September 5, 2009 16:51
Show Gist options
  • Save brentd/181460 to your computer and use it in GitHub Desktop.
Save brentd/181460 to your computer and use it in GitHub Desktop.
~ → mkdir project_with_bundled_json
~ → cd project_with_bundled_json
~/project_with_bundled_json → echo "gem 'json'" > Gemfile
~/project_with_bundled_json → gem bundle
Calculating dependencies...
Updating source: http://gems.rubyforge.org
Downloading json-1.1.9.gem
Installing json-1.1.9.gem
Building native extensions. This could take a while...
Done.
~/project_with_bundled_json → ls -l vendor/gems/gems/json-1.1.9/ext/json/ext/
total 120
drwxr-xr-x 11 brent staff 374 Sep 5 12:41 generator
-rwxr-xr-x 1 brent staff 30280 Sep 5 12:41 generator.bundle
drwxr-xr-x 12 brent staff 408 Sep 5 12:41 parser
-rwxr-xr-x 1 brent staff 26048 Sep 5 12:41 parser.bundle
~/project_with_bundled_json → rm **/*.o **/*.bundle **/Makefile **/mkmf.log
~/project_with_bundled_json → ls -l vendor/gems/gems/json-1.1.9/ext/json/ext
total 0
drwxr-xr-x 7 brent staff 238 Sep 5 12:47 generator
drwxr-xr-x 8 brent staff 272 Sep 5 12:47 parser
~/project_with_bundled_json → gem bundle
Calculating dependencies...
Done.
~/project_with_bundled_json → ls -l vendor/gems/gems/json-1.1.9/ext/json/ext
total 0
drwxr-xr-x 7 brent staff 238 Sep 5 12:47 generator
drwxr-xr-x 8 brent staff 272 Sep 5 12:47 parser
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment