climax 0.0.11 → 0.0.12

Sign up to get free protection for your applications and to get access to all the features.
@@ -41,7 +41,8 @@ module Climax
41
41
 
42
42
  # Get bundler generated module path
43
43
  gemspec = File.read("#{name}/#{name}.gemspec")
44
- module_string = /gem.version\s+=\s+(.*)::VERSION/.match(gemspec)[1]
44
+ param = /Gem::Specification.new do \|(.*)\|/.match(gemspec)[1]
45
+ module_string = /#{param}.version\s+=\s+(.*)::VERSION/.match(gemspec)[1]
45
46
  module_path = module_string.split("::")
46
47
 
47
48
  template_dir = File.join(File.dirname(__FILE__), "..", "..", "..", "templates")
@@ -56,7 +57,7 @@ module Climax
56
57
  file.write(ERB.new(File.read(File.join(template_dir, "lib", "application.rb.erb")), 0, '<>').result(binding))
57
58
  end
58
59
 
59
- gemspec.gsub!(/^end$/, " gem.add_development_dependency \"cucumber\"\n gem.add_development_dependency \"rspec\"\n gem.add_runtime_dependency \"climax\"\nend")
60
+ gemspec.gsub!(/^end$/, " #{param}.add_development_dependency \"cucumber\"\n #{param}.add_development_dependency \"rspec\"\n #{param}.add_runtime_dependency \"climax\"\nend")
60
61
  File.open("#{name}/#{name}.gemspec", "w") do |file|
61
62
  file.write(gemspec)
62
63
  end
@@ -1,3 +1,3 @@
1
1
  module Climax
2
- VERSION = "0.0.11"
2
+ VERSION = "0.0.12"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: climax
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.11
4
+ version: 0.0.12
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,12 +9,12 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-04-07 00:00:00.000000000 -04:00
12
+ date: 2013-04-08 00:00:00.000000000 -04:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: pry
17
- requirement: &2152690220 !ruby/object:Gem::Requirement
17
+ requirement: &2153184740 !ruby/object:Gem::Requirement
18
18
  none: false
19
19
  requirements:
20
20
  - - ! '>='
@@ -22,10 +22,10 @@ dependencies:
22
22
  version: '0'
23
23
  type: :runtime
24
24
  prerelease: false
25
- version_requirements: *2152690220
25
+ version_requirements: *2153184740
26
26
  - !ruby/object:Gem::Dependency
27
27
  name: slop
28
- requirement: &2152689540 !ruby/object:Gem::Requirement
28
+ requirement: &2153184320 !ruby/object:Gem::Requirement
29
29
  none: false
30
30
  requirements:
31
31
  - - ! '>='
@@ -33,10 +33,10 @@ dependencies:
33
33
  version: '0'
34
34
  type: :runtime
35
35
  prerelease: false
36
- version_requirements: *2152689540
36
+ version_requirements: *2153184320
37
37
  - !ruby/object:Gem::Dependency
38
38
  name: rspec
39
- requirement: &2152688260 !ruby/object:Gem::Requirement
39
+ requirement: &2153183900 !ruby/object:Gem::Requirement
40
40
  none: false
41
41
  requirements:
42
42
  - - ! '>='
@@ -44,10 +44,10 @@ dependencies:
44
44
  version: '0'
45
45
  type: :runtime
46
46
  prerelease: false
47
- version_requirements: *2152688260
47
+ version_requirements: *2153183900
48
48
  - !ruby/object:Gem::Dependency
49
49
  name: cucumber
50
- requirement: &2152686060 !ruby/object:Gem::Requirement
50
+ requirement: &2153183480 !ruby/object:Gem::Requirement
51
51
  none: false
52
52
  requirements:
53
53
  - - ! '>='
@@ -55,10 +55,10 @@ dependencies:
55
55
  version: '0'
56
56
  type: :runtime
57
57
  prerelease: false
58
- version_requirements: *2152686060
58
+ version_requirements: *2153183480
59
59
  - !ruby/object:Gem::Dependency
60
60
  name: pry-remote
61
- requirement: &2152664680 !ruby/object:Gem::Requirement
61
+ requirement: &2153182980 !ruby/object:Gem::Requirement
62
62
  none: false
63
63
  requirements:
64
64
  - - ! '>='
@@ -66,7 +66,7 @@ dependencies:
66
66
  version: 0.1.7
67
67
  type: :runtime
68
68
  prerelease: false
69
- version_requirements: *2152664680
69
+ version_requirements: *2153182980
70
70
  description: Opinionated framework for Ruby CLI applications that provides logging,
71
71
  cli argument parsing, daemonizing, configuration, testing, and even remote control
72
72
  of long running processes