Skip to content

Instantly share code, notes, and snippets.

@tjad
Created August 7, 2013 05:42
Show Gist options
  • Save tjad/6171522 to your computer and use it in GitHub Desktop.
Save tjad/6171522 to your computer and use it in GitHub Desktop.
source 'https://rubygems.org'
# Distribute your app as a gem
# gemspec
# Server requirements
# gem 'thin' # or mongrel
# gem 'trinidad', :platform => 'jruby'
# Optional JSON codec (faster performance)
# gem 'oj'
# Project requirements
gem 'coffee-script'
gem 'core-client'
gem 'pony'
gem 'rake'
gem 'thin'
# Component requirements
gem 'sass'
gem 'slim'
# Test requirements
# Padrino Stable Gem
gem 'padrino', '0.11.2'
gem 'qpid_messaging', '0.20.2', :path => File.expand_path('../gems/', __FILE__)
# Or Padrino Edge
# gem 'padrino', :github => 'padrino/padrino-framework'
# Or Individual Gems
# %w(core gen helpers cache mailer admin).each do |g|
# gem 'padrino-' + g, '0.11.2'
# end
tjad@machine:~/work/korwe/git/tree$ git status
# On branch sprint-4
nothing to commit, working directory clean
tjad@machine:~/work/korwe/git/tree$ ls gems/
qpid_messaging-0.20.2.gem
tjad@machine:~/work/korwe/git/tree$ bundle install
Resolving dependencies...
Using rake (10.1.0)
Using i18n (0.6.4)
Using minitest (4.7.5)
Using multi_json (1.7.8)
Using atomic (1.1.12)
Using thread_safe (0.1.2)
Using tzinfo (0.3.37)
Using activesupport (4.0.0)
Using builder (3.2.2)
Using bundler (1.3.5)
Using coffee-script-source (1.6.3)
Using execjs (1.4.0)
Using coffee-script (2.2.0)
Using mini_portile (0.5.1)
Using nokogiri (1.6.0)
Using qpid_messaging (0.20.2) from source at gems
Using stream (0.5)
Using rgl (0.4.0)
Using core-client (0.0.1)
Using daemons (1.1.9)
Using eventmachine (1.0.3)
Using rack (1.5.2)
Using url_mount (0.2.1)
Using http_router (0.11.0)
Using mime-types (1.23)
Using polyglot (0.3.3)
Using treetop (1.4.14)
Using mail (2.5.4)
Using rack-protection (1.5.0)
Using tilt (1.3.7)
Using sinatra (1.4.3)
Using thor (0.17.0)
Using padrino-core (0.11.2)
Using padrino-helpers (0.11.2)
Using padrino-admin (0.11.2)
Using padrino-cache (0.11.2)
Using padrino-gen (0.11.2)
Using padrino-mailer (0.11.2)
Using padrino (0.11.2)
Using pony (1.5)
Using sass (3.2.10)
Using temple (0.6.6)
Using slim (2.0.1)
Using thin (1.5.1)
Your bundle is complete!
Use `bundle show [gemname]` to see where a bundled gem is installed.
tjad@machine:~/work/korwe/git/tree$ git status
# On branch sprint-4
# Changes not staged for commit:
# (use "git add/rm <file>..." to update what will be committed)
# (use "git checkout -- <file>..." to discard changes in working directory)
#
# deleted: gems/qpid_messaging-0.20.2.gem
#
no changes added to commit (use "git add" and/or "git commit -a")
tjad@machine:~/work/korwe/git/tree$ rackup
/home/tjad/.rvm/gems/ruby-1.9.3-p125/gems/core-client-0.0.1/lib/core-client.rb:3:in `require': cannot load such file -- qpid_messaging (LoadError)
from /home/tjad/.rvm/gems/ruby-1.9.3-p125/gems/core-client-0.0.1/lib/core-client.rb:3:in `<top (required)>'
from /home/tjad/.rvm/gems/ruby-1.9.3-p125@global/gems/bundler-1.3.5/lib/bundler/runtime.rb:72:in `require'
from /home/tjad/.rvm/gems/ruby-1.9.3-p125@global/gems/bundler-1.3.5/lib/bundler/runtime.rb:72:in `block (2 levels) in require'
from /home/tjad/.rvm/gems/ruby-1.9.3-p125@global/gems/bundler-1.3.5/lib/bundler/runtime.rb:70:in `each'
from /home/tjad/.rvm/gems/ruby-1.9.3-p125@global/gems/bundler-1.3.5/lib/bundler/runtime.rb:70:in `block in require'
from /home/tjad/.rvm/gems/ruby-1.9.3-p125@global/gems/bundler-1.3.5/lib/bundler/runtime.rb:59:in `each'
from /home/tjad/.rvm/gems/ruby-1.9.3-p125@global/gems/bundler-1.3.5/lib/bundler/runtime.rb:59:in `require'
from /home/tjad/.rvm/gems/ruby-1.9.3-p125@global/gems/bundler-1.3.5/lib/bundler.rb:132:in `require'
from /home/tjad/work/korwe/git/tree/config/boot.rb:8:in `<top (required)>'
from /home/tjad/work/korwe/git/tree/config.ru:7:in `require'
from /home/tjad/work/korwe/git/tree/config.ru:7:in `block in <main>'
from /home/tjad/.rvm/gems/ruby-1.9.3-p125/gems/rack-1.5.2/lib/rack/builder.rb:55:in `instance_eval'
from /home/tjad/.rvm/gems/ruby-1.9.3-p125/gems/rack-1.5.2/lib/rack/builder.rb:55:in `initialize'
from /home/tjad/work/korwe/git/tree/config.ru:in `new'
from /home/tjad/work/korwe/git/tree/config.ru:in `<main>'
from /home/tjad/.rvm/gems/ruby-1.9.3-p125/gems/rack-1.5.2/lib/rack/builder.rb:49:in `eval'
from /home/tjad/.rvm/gems/ruby-1.9.3-p125/gems/rack-1.5.2/lib/rack/builder.rb:49:in `new_from_string'
from /home/tjad/.rvm/gems/ruby-1.9.3-p125/gems/rack-1.5.2/lib/rack/builder.rb:40:in `parse_file'
from /home/tjad/.rvm/gems/ruby-1.9.3-p125/gems/rack-1.5.2/lib/rack/server.rb:277:in `build_app_and_options_from_config'
from /home/tjad/.rvm/gems/ruby-1.9.3-p125/gems/rack-1.5.2/lib/rack/server.rb:199:in `app'
from /home/tjad/.rvm/gems/ruby-1.9.3-p125/gems/rack-1.5.2/lib/rack/server.rb:314:in `wrapped_app'
from /home/tjad/.rvm/gems/ruby-1.9.3-p125/gems/rack-1.5.2/lib/rack/server.rb:250:in `start'
from /home/tjad/.rvm/gems/ruby-1.9.3-p125/gems/rack-1.5.2/lib/rack/server.rb:141:in `start'
from /home/tjad/.rvm/gems/ruby-1.9.3-p125/gems/rack-1.5.2/bin/rackup:4:in `<top (required)>'
from /home/tjad/.rvm/gems/ruby-1.9.3-p125/bin/rackup:23:in `load'
from /home/tjad/.rvm/gems/ruby-1.9.3-p125/bin/rackup:23:in `<main>'
from /home/tjad/.rvm/gems/ruby-1.9.3-p125/bin/ruby_noexec_wrapper:14:in `eval'
from /home/tjad/.rvm/gems/ruby-1.9.3-p125/bin/ruby_noexec_wrapper:14:in `<main>'
tjad@machine:~/work/korwe/git/tree$ irb
1.9.3-p125 :001 > require 'qpid_messaging'
=> true
1.9.3-p125 :002 > require 'core-client'
=> true
1.9.3-p125 :003 >
@tjad
Copy link
Author

tjad commented Aug 7, 2013

tjad@machine:~/work/korwe/git/tree$ ls ./
app config config.ru Gemfile Gemfile.lock gems lib node_modules public Rakefile README.md scrape_go_metro.rb tree.iml

@tjad
Copy link
Author

tjad commented Aug 7, 2013

tjad@machine:/work/korwe/git/tree$ ls gems/
qpid-messaging
tjad@machine:
/work/korwe/git/tree$ ls gems/qpid-messaging/
qpid_messaging-0.20.2
tjad@machine:~/work/korwe/git/tree$ ls gems/qpid-messaging/qpid_messaging-0.20.2/
examples ext features lib LICENSE Rakefile README.rdoc spec TODO

@tjad
Copy link
Author

tjad commented Aug 7, 2013

gem 'qpid_messaging', '0.20.2', :path => File.expand_path('../gems/qpid-messaging', FILE)

@tjad
Copy link
Author

tjad commented Aug 7, 2013

./:
qpid-messaging

./qpid-messaging:
examples ext features lib LICENSE Rakefile README.rdoc spec TODO

./qpid-messaging/examples:
client.rb drain.rb hello_world.rb map_receiver.rb map_sender.rb server.rb spout.rb

./qpid-messaging/ext:
cqpid

./qpid-messaging/ext/cqpid:
cqpid.cpp extconf.rb

./qpid-messaging/features:
closing_a_connection.feature creating_a_receiver.feature getting_the_connections_authenticated_username.feature session_returns_its_connection.feature support
closing_a_session.feature creating_a_sender.feature receiving_a_message.feature sessions_have_names.feature
connecting_to_a_broker.feature creating_a_session.feature sending_a_message.feature step_definitions

./qpid-messaging/features/step_definitions:
address_steps.rb connection_steps.rb receiver_steps.rb sender_steps.rb session_steps.rb

./qpid-messaging/features/support:
env.rb

./qpid-messaging/lib:
qpid_messaging qpid_messaging.rb

./qpid-messaging/lib/qpid_messaging:
address.rb connection.rb duration.rb encoding.rb errors.rb message.rb receiver.rb sender.rb session.rb version.rb

./qpid-messaging/spec:
qpid_messaging spec_helper.rb

./qpid-messaging/spec/qpid_messaging:
address_spec.rb connection_spec.rb duration_spec.rb encoding_spec.rb message_spec.rb receiver_spec.rb sender_spec.rb session_spec.rb

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment