climax 0.0.10 → 0.0.11
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/climax/commands/create.rb +1 -1
- data/lib/climax/version.rb +1 -1
- data/templates/lib/application.rb.erb +5 -5
- metadata +15 -38
@@ -50,7 +50,7 @@ module Climax
|
|
50
50
|
file.write(ERB.new(File.read(File.join(template_dir, "bin", "application.rb.erb")), 0, '<>').result(binding))
|
51
51
|
end
|
52
52
|
|
53
|
-
FileUtils.chmod
|
53
|
+
FileUtils.chmod 0755, "#{name}/bin/#{name}"
|
54
54
|
|
55
55
|
File.open("#{name}/lib/#{name}.rb", "w") do |file|
|
56
56
|
file.write(ERB.new(File.read(File.join(template_dir, "lib", "application.rb.erb")), 0, '<>').result(binding))
|
data/lib/climax/version.rb
CHANGED
@@ -11,13 +11,13 @@ require "<%= name %>/version"
|
|
11
11
|
include Climax::Application
|
12
12
|
|
13
13
|
def configure
|
14
|
-
|
15
|
-
|
16
|
-
|
14
|
+
options do
|
15
|
+
on 'v', 'verbose', 'More verbose'
|
16
|
+
end
|
17
17
|
end
|
18
18
|
|
19
19
|
def pre_main
|
20
|
-
|
20
|
+
log.info "STARTING" if opts[:verbose]
|
21
21
|
end
|
22
22
|
|
23
23
|
def main
|
@@ -27,7 +27,7 @@ require "<%= name %>/version"
|
|
27
27
|
end
|
28
28
|
|
29
29
|
def post_main
|
30
|
-
|
30
|
+
log.info "FINISHED" if opts[:verbose]
|
31
31
|
end
|
32
32
|
end
|
33
33
|
|
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.11
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,11 +9,12 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-
|
12
|
+
date: 2013-04-07 00:00:00.000000000 -04:00
|
13
|
+
default_executable:
|
13
14
|
dependencies:
|
14
15
|
- !ruby/object:Gem::Dependency
|
15
16
|
name: pry
|
16
|
-
requirement: !ruby/object:Gem::Requirement
|
17
|
+
requirement: &2152690220 !ruby/object:Gem::Requirement
|
17
18
|
none: false
|
18
19
|
requirements:
|
19
20
|
- - ! '>='
|
@@ -21,15 +22,10 @@ dependencies:
|
|
21
22
|
version: '0'
|
22
23
|
type: :runtime
|
23
24
|
prerelease: false
|
24
|
-
version_requirements:
|
25
|
-
none: false
|
26
|
-
requirements:
|
27
|
-
- - ! '>='
|
28
|
-
- !ruby/object:Gem::Version
|
29
|
-
version: '0'
|
25
|
+
version_requirements: *2152690220
|
30
26
|
- !ruby/object:Gem::Dependency
|
31
27
|
name: slop
|
32
|
-
requirement: !ruby/object:Gem::Requirement
|
28
|
+
requirement: &2152689540 !ruby/object:Gem::Requirement
|
33
29
|
none: false
|
34
30
|
requirements:
|
35
31
|
- - ! '>='
|
@@ -37,15 +33,10 @@ dependencies:
|
|
37
33
|
version: '0'
|
38
34
|
type: :runtime
|
39
35
|
prerelease: false
|
40
|
-
version_requirements:
|
41
|
-
none: false
|
42
|
-
requirements:
|
43
|
-
- - ! '>='
|
44
|
-
- !ruby/object:Gem::Version
|
45
|
-
version: '0'
|
36
|
+
version_requirements: *2152689540
|
46
37
|
- !ruby/object:Gem::Dependency
|
47
38
|
name: rspec
|
48
|
-
requirement: !ruby/object:Gem::Requirement
|
39
|
+
requirement: &2152688260 !ruby/object:Gem::Requirement
|
49
40
|
none: false
|
50
41
|
requirements:
|
51
42
|
- - ! '>='
|
@@ -53,15 +44,10 @@ dependencies:
|
|
53
44
|
version: '0'
|
54
45
|
type: :runtime
|
55
46
|
prerelease: false
|
56
|
-
version_requirements:
|
57
|
-
none: false
|
58
|
-
requirements:
|
59
|
-
- - ! '>='
|
60
|
-
- !ruby/object:Gem::Version
|
61
|
-
version: '0'
|
47
|
+
version_requirements: *2152688260
|
62
48
|
- !ruby/object:Gem::Dependency
|
63
49
|
name: cucumber
|
64
|
-
requirement: !ruby/object:Gem::Requirement
|
50
|
+
requirement: &2152686060 !ruby/object:Gem::Requirement
|
65
51
|
none: false
|
66
52
|
requirements:
|
67
53
|
- - ! '>='
|
@@ -69,15 +55,10 @@ dependencies:
|
|
69
55
|
version: '0'
|
70
56
|
type: :runtime
|
71
57
|
prerelease: false
|
72
|
-
version_requirements:
|
73
|
-
none: false
|
74
|
-
requirements:
|
75
|
-
- - ! '>='
|
76
|
-
- !ruby/object:Gem::Version
|
77
|
-
version: '0'
|
58
|
+
version_requirements: *2152686060
|
78
59
|
- !ruby/object:Gem::Dependency
|
79
60
|
name: pry-remote
|
80
|
-
requirement: !ruby/object:Gem::Requirement
|
61
|
+
requirement: &2152664680 !ruby/object:Gem::Requirement
|
81
62
|
none: false
|
82
63
|
requirements:
|
83
64
|
- - ! '>='
|
@@ -85,12 +66,7 @@ dependencies:
|
|
85
66
|
version: 0.1.7
|
86
67
|
type: :runtime
|
87
68
|
prerelease: false
|
88
|
-
version_requirements:
|
89
|
-
none: false
|
90
|
-
requirements:
|
91
|
-
- - ! '>='
|
92
|
-
- !ruby/object:Gem::Version
|
93
|
-
version: 0.1.7
|
69
|
+
version_requirements: *2152664680
|
94
70
|
description: Opinionated framework for Ruby CLI applications that provides logging,
|
95
71
|
cli argument parsing, daemonizing, configuration, testing, and even remote control
|
96
72
|
of long running processes
|
@@ -120,6 +96,7 @@ files:
|
|
120
96
|
- templates/lib/application.rb.erb
|
121
97
|
- test/bin/hello_world
|
122
98
|
- test/lib/hello_world.rb
|
99
|
+
has_rdoc: true
|
123
100
|
homepage: https://github.com/appriss/climax
|
124
101
|
licenses: []
|
125
102
|
post_install_message:
|
@@ -140,7 +117,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
140
117
|
version: '0'
|
141
118
|
requirements: []
|
142
119
|
rubyforge_project: climax
|
143
|
-
rubygems_version: 1.
|
120
|
+
rubygems_version: 1.6.2
|
144
121
|
signing_key:
|
145
122
|
specification_version: 3
|
146
123
|
summary: Ruby command line application framework
|