rpbundle 0.0.1 → 0.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e1d5af9a2e1e2112a52b77156b43b8756baddf26
4
- data.tar.gz: 419b55806649c9541e4de46ca510553848d5bed6
3
+ metadata.gz: 1fb85e41d4ca8af3e578215fbbfef95649d2cfb1
4
+ data.tar.gz: 52fb73e04c13a9b5ecb4bd3d451997c5f2a274cd
5
5
  SHA512:
6
- metadata.gz: 2af28c851cab9a8a0b29f745b4bbfb1debdbfba540647f4f41107130c9af224026e5f2a8e7b501ae44e178115a03b0dd86583a1fe8267946655f30c2157ce731
7
- data.tar.gz: db9ae0a6a5157036f7f3dddb94677904167d110bbf0478f5a6ac8858f1e21bd22885d4f0cfe6ae1918332637c6e2dd6eb05b8d3414efc52205c7a8cea0a93b3f
6
+ metadata.gz: 5b25a9d9ee411d45cb74a8f7424e48531a70fb55b6a23a15844391759911ed024b3ee6a72475b61faa1bdf98aa2273fdd9c44d1416ec5d34c321c8206794dba9
7
+ data.tar.gz: 798fb3f259cc29027e5d96337e0bce65aaf89ae85934ecadad2c7ed01394c97ef92a61a60fcee0bde511e442f81c7fd24a28a07319ba4b1d4253ad210b217ccf
data/README.md CHANGED
@@ -43,15 +43,19 @@ as well.
43
43
  This gem comes with an executable `rpbundle`.
44
44
 
45
45
  Prerequisite step for setting up :
46
+
46
47
  $ rpbundle setup
48
+
47
49
  The above command creates a directory at `~/.rpbundle` and installs `bundler`
48
50
  gem into it.
49
51
 
50
52
  Inside a sketch/project directory with a Gemfile, to install dependent gems :
53
+
51
54
  $ rpbundle install
52
55
 
53
56
  To run/watch/<other subcommands supported by rp5> your sketch using
54
57
  rp5 command and load your gem dependencies while doing so :
58
+
55
59
  $ rpbundle run/watch/.. my_sketch.rb
56
60
 
57
61
  rp5bundle is a basically a wrapper around rp5 and does 2 things :
@@ -61,7 +65,7 @@ rp5bundle is a basically a wrapper around rp5 and does 2 things :
61
65
 
62
66
  ## Contributing
63
67
 
64
- 1. Fork it ( http://github.com/emilsoman/rpbundle/fork )
68
+ 1. Fork it ( http://github.com/code-mancers/rpbundle/fork )
65
69
  2. Create your feature branch (`git checkout -b my-new-feature`)
66
70
  3. Commit your changes (`git commit -am 'Add some feature'`)
67
71
  4. Push to the branch (`git push origin my-new-feature`)
data/bin/rpbundle CHANGED
@@ -5,19 +5,20 @@ require 'ruby-processing'
5
5
  # This is where ruby-processing holds jruby-complete.jar
6
6
  JRUBY_COMPLETE = Processing::Runner.new.send(:jruby_complete)
7
7
  # This is where rpbundle installs and reads gems from
8
- RPBUNDLE_HOME = File.join Dir.home, '.rpbundle'
8
+ RPBUNDLE_HOME = File.join(Dir.home, '.rpbundle')
9
9
 
10
10
  # Monkeypatch Processing::Runner so that jruby runs our `bundled_runner`
11
- # and pass the original runner filename as an argument to it
11
+ # and passses the original runner filename as an argument to it
12
12
  class Processing::Runner
13
13
  def spin_up(starter_script, sketch, args)
14
14
  # Make sure that Processing::Runner knows we don't want system wide jruby
15
- @options.nojruby = true
15
+ @options.nojruby = true # This is used by Processing::Runner methods
16
16
  bundled_runner = File.join(File.dirname(__FILE__), '../lib/rpbundle/bundled_runner.rb')
17
17
  runner = "#{RP5_ROOT}/lib/ruby-processing/runners/#{starter_script}"
18
18
  java_args = discover_java_args(sketch).join(' ')
19
- system "GEM_PATH=#{RPBUNDLE_HOME} java #{java_args} -cp #{jruby_complete} " +
20
- "org.jruby.Main #{bundled_runner} #{runner} #{sketch} #{args}"
19
+ system({ 'GEM_PATH' => RPBUNDLE_HOME },
20
+ "java #{java_args} -cp #{jruby_complete} " +
21
+ "org.jruby.Main #{bundled_runner} #{runner} #{sketch} #{args}")
21
22
  end
22
23
  end
23
24
 
@@ -30,7 +31,7 @@ def run
30
31
  when 'help', '--help', '', nil
31
32
  show_help
32
33
  else
33
- execute_with_processing(ARGV)
34
+ execute_with_processing
34
35
  end
35
36
  end
36
37
 
@@ -41,11 +42,11 @@ def setup
41
42
  end
42
43
 
43
44
  def bundle_install
44
- system("GEM_HOME=#{RPBUNDLE_HOME} GEM_PATH=#{RPBUNDLE_HOME} " +
45
+ system({ 'GEM_HOME' => RPBUNDLE_HOME, 'GEM_PATH' => RPBUNDLE_HOME },
45
46
  "java -jar #{JRUBY_COMPLETE} -S bundle install")
46
47
  end
47
48
 
48
- def execute_with_processing(args)
49
+ def execute_with_processing
49
50
  Processing::Runner.execute
50
51
  end
51
52
 
data/lib/rpbundle.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Rpbundle
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
data/rpbundle.gemspec CHANGED
@@ -1,7 +1,7 @@
1
1
  # coding: utf-8
2
2
  lib = File.expand_path('../lib', __FILE__)
3
3
  $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
- require 'rpbundle/version'
4
+ require 'rpbundle'
5
5
 
6
6
  Gem::Specification.new do |spec|
7
7
  spec.name = "rpbundle"
@@ -9,7 +9,7 @@ Gem::Specification.new do |spec|
9
9
  spec.authors = ["Emil Soman"]
10
10
  spec.email = ["emil.soman@gmail.com"]
11
11
  spec.summary = %q{Use Gemfiles in your ruby-processing sketches}
12
- spec.homepage = ""
12
+ spec.homepage = "https://github.com/code-mancers/rpbundle"
13
13
  spec.license = "MIT"
14
14
 
15
15
  spec.files = `git ls-files`.split($/)
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rpbundle
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Emil Soman
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-03-31 00:00:00.000000000 Z
11
+ date: 2014-04-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: ruby-processing
@@ -82,9 +82,8 @@ files:
82
82
  - bin/rpbundle
83
83
  - lib/rpbundle.rb
84
84
  - lib/rpbundle/bundled_runner.rb
85
- - lib/rpbundle/version.rb
86
85
  - rpbundle.gemspec
87
- homepage: ''
86
+ homepage: https://github.com/code-mancers/rpbundle
88
87
  licenses:
89
88
  - MIT
90
89
  metadata: {}
@@ -1,3 +0,0 @@
1
- module Rpbundle
2
- VERSION = "0.0.1"
3
- end