Also you can put the sin.rb into the lib/ folder, then just run:
bundle install
and then:
bundle exec project/one.rb
Expanded version
Make sure that you properly made the Gemfile, and .gemspec. The templates for the files can be automatically generated by bundler as follows:
bundle gem your_gem_name
Then you shell create the folders bin/, and lib/, put sin.rb into lib/, and one.rb into bin/. And fill all TODOs in the .gemspec the with proper values:
spec.summary = %q{short summary}
spec.description = %q{longer description}
Then run bundle install, and exec as it was specified above. And in case if you will generate the gem, and then install it with gem install
, you'll not need to change anything.