climax 0.0.11 → 0.0.12
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/climax/commands/create.rb +3 -2
- data/lib/climax/version.rb +1 -1
- metadata +12 -12
@@ -41,7 +41,8 @@ module Climax
|
|
41
41
|
|
42
42
|
# Get bundler generated module path
|
43
43
|
gemspec = File.read("#{name}/#{name}.gemspec")
|
44
|
-
|
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$/, "
|
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
|
data/lib/climax/version.rb
CHANGED
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.
|
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-
|
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: &
|
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: *
|
25
|
+
version_requirements: *2153184740
|
26
26
|
- !ruby/object:Gem::Dependency
|
27
27
|
name: slop
|
28
|
-
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: *
|
36
|
+
version_requirements: *2153184320
|
37
37
|
- !ruby/object:Gem::Dependency
|
38
38
|
name: rspec
|
39
|
-
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: *
|
47
|
+
version_requirements: *2153183900
|
48
48
|
- !ruby/object:Gem::Dependency
|
49
49
|
name: cucumber
|
50
|
-
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: *
|
58
|
+
version_requirements: *2153183480
|
59
59
|
- !ruby/object:Gem::Dependency
|
60
60
|
name: pry-remote
|
61
|
-
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: *
|
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
|