jrmvnrunner 0.1.1 → 0.1.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/README.md +15 -0
  2. data/lib/jrmvnrunner.rb +3 -1
  3. metadata +36 -21
data/README.md CHANGED
@@ -45,6 +45,21 @@ jrmvnrun exec cucumber
45
45
  This will execute a command with the full jar dependencies list in the classpath,
46
46
  so you can use them inside your ruby code.
47
47
 
48
+ ## Programmatic setup
49
+
50
+ You can also setup Jrmvnrunner to use your environment just right from the code by adding the following code to your
51
+ environment script (this could be any ruby script that loads first):
52
+
53
+ ```ruby
54
+ require 'rubygems'
55
+ require 'jrmvnrunner'
56
+
57
+ Jrmvnrunner.init!
58
+ ```
59
+
60
+ This will allow you to run the simple commands without the necessity to run them using "jrmvnrun exec CMD". For
61
+ example, you can add this code to the features/support/env.rb and run the particular "rake features" command.
62
+
48
63
  ## How to install
49
64
 
50
65
  ```
data/lib/jrmvnrunner.rb CHANGED
@@ -1,12 +1,14 @@
1
1
  require 'pathname'
2
2
 
3
3
  module Jrmvnrunner
4
- VERSION="0.1.1"
4
+ VERSION="0.1.3"
5
5
  MYDIR = Pathname.new(File.dirname(File.expand_path(__FILE__)))
6
6
  autoload :Runner, MYDIR.join('jrmvnrunner/runner')
7
7
  autoload :Dsl, MYDIR.join('jrmvnrunner/dsl')
8
8
 
9
9
  def self.init!(wdir = Dir.pwd, cmd = nil, args = [])
10
+ raise "Jrmvnrunner has been already started!" if @__init_called
11
+ @__init_called = true
10
12
  root = Pathname.new(wdir)
11
13
 
12
14
  runnerfile = root.join("Jrmvnrunner")
metadata CHANGED
@@ -1,33 +1,50 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jrmvnrunner
3
3
  version: !ruby/object:Gem::Version
4
- prerelease:
5
- version: 0.1.1
4
+ version: 0.1.3
5
+ prerelease:
6
6
  platform: ruby
7
7
  authors:
8
8
  - Ilya Sadykov
9
- autorequire:
9
+ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
  date: 2013-03-02 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rspec
16
- version_requirements: !ruby/object:Gem::Requirement
16
+ requirement: !ruby/object:Gem::Requirement
17
+ none: false
17
18
  requirements:
18
- - - "~>"
19
+ - - ~>
19
20
  - !ruby/object:Gem::Version
20
21
  version: 2.10.0
22
+ type: :development
23
+ prerelease: false
24
+ version_requirements: !ruby/object:Gem::Requirement
21
25
  none: false
22
- requirement: !ruby/object:Gem::Requirement
23
26
  requirements:
24
- - - "~>"
27
+ - - ~>
25
28
  - !ruby/object:Gem::Version
26
29
  version: 2.10.0
30
+ - !ruby/object:Gem::Dependency
31
+ name: sourcify
32
+ requirement: !ruby/object:Gem::Requirement
27
33
  none: false
34
+ requirements:
35
+ - - ! '>='
36
+ - !ruby/object:Gem::Version
37
+ version: '0'
38
+ type: :runtime
28
39
  prerelease: false
29
- type: :development
30
- description: This gem allows you to specify the jar-dependencies of your project and run your tasks with the classpath
40
+ version_requirements: !ruby/object:Gem::Requirement
41
+ none: false
42
+ requirements:
43
+ - - ! '>='
44
+ - !ruby/object:Gem::Version
45
+ version: '0'
46
+ description: This gem allows you to specify the jar-dependencies of your project and
47
+ run your tasks with the classpath
31
48
  email: smecsia@gmail.com
32
49
  executables:
33
50
  - jrmvnrun
@@ -43,28 +60,26 @@ files:
43
60
  - README.md
44
61
  homepage: ''
45
62
  licenses: []
46
- post_install_message:
63
+ post_install_message:
47
64
  rdoc_options: []
48
65
  require_paths:
49
66
  - lib
50
67
  required_ruby_version: !ruby/object:Gem::Requirement
68
+ none: false
51
69
  requirements:
52
- - - ">="
70
+ - - ! '>='
53
71
  - !ruby/object:Gem::Version
54
- version: !binary |-
55
- MA==
56
- none: false
72
+ version: '0'
57
73
  required_rubygems_version: !ruby/object:Gem::Requirement
74
+ none: false
58
75
  requirements:
59
- - - ">="
76
+ - - ! '>='
60
77
  - !ruby/object:Gem::Version
61
- version: !binary |-
62
- MA==
63
- none: false
78
+ version: '0'
64
79
  requirements: []
65
- rubyforge_project:
66
- rubygems_version: 1.8.24
67
- signing_key:
80
+ rubyforge_project:
81
+ rubygems_version: 1.8.23
82
+ signing_key:
68
83
  specification_version: 3
69
84
  summary: Simple lib to execute jruby task with the java classpath
70
85
  test_files: []