thor 0.14.4 → 0.14.5
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG.rdoc +11 -0
- data/Thorfile +9 -55
- data/lib/thor.rb +17 -0
- data/lib/thor/actions.rb +11 -6
- data/lib/thor/actions/create_file.rb +2 -2
- data/lib/thor/actions/create_link.rb +57 -0
- data/lib/thor/actions/file_manipulation.rb +36 -12
- data/lib/thor/actions/inject_into_file.rb +15 -10
- data/lib/thor/parser/option.rb +1 -1
- data/lib/thor/task.rb +1 -1
- data/lib/thor/version.rb +1 -1
- data/spec/actions/create_file_spec.rb +27 -27
- data/spec/actions/directory_spec.rb +23 -23
- data/spec/actions/empty_directory_spec.rb +12 -12
- data/spec/actions/file_manipulation_spec.rb +65 -42
- data/spec/actions/inject_into_file_spec.rb +24 -24
- data/spec/actions_spec.rb +63 -58
- data/spec/base_spec.rb +60 -60
- data/spec/core_ext/hash_with_indifferent_access_spec.rb +14 -14
- data/spec/core_ext/ordered_hash_spec.rb +28 -28
- data/spec/group_spec.rb +39 -39
- data/spec/invocation_spec.rb +21 -21
- data/spec/parser/argument_spec.rb +7 -7
- data/spec/parser/arguments_spec.rb +11 -11
- data/spec/parser/option_spec.rb +45 -45
- data/spec/parser/options_spec.rb +75 -75
- data/spec/rake_compat_spec.rb +10 -10
- data/spec/register_spec.rb +92 -0
- data/spec/runner_spec.rb +32 -32
- data/spec/shell/basic_spec.rb +18 -18
- data/spec/shell/color_spec.rb +3 -3
- data/spec/shell_spec.rb +10 -10
- data/spec/spec_helper.rb +9 -10
- data/spec/task_spec.rb +8 -8
- data/spec/thor_spec.rb +62 -62
- data/spec/util_spec.rb +35 -35
- metadata +100 -68
- data/spec/spec.opts +0 -1
metadata
CHANGED
@@ -1,13 +1,12 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: thor
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash: 47
|
5
4
|
prerelease: false
|
6
5
|
segments:
|
7
6
|
- 0
|
8
7
|
- 14
|
9
|
-
-
|
10
|
-
version: 0.14.
|
8
|
+
- 5
|
9
|
+
version: 0.14.5
|
11
10
|
platform: ruby
|
12
11
|
authors:
|
13
12
|
- Yehuda Katz
|
@@ -16,15 +15,85 @@ autorequire:
|
|
16
15
|
bindir: bin
|
17
16
|
cert_chain: []
|
18
17
|
|
19
|
-
date: 2010-11-
|
18
|
+
date: 2010-11-20 00:00:00 -08:00
|
20
19
|
default_executable:
|
21
|
-
dependencies:
|
22
|
-
|
20
|
+
dependencies:
|
21
|
+
- !ruby/object:Gem::Dependency
|
22
|
+
name: bundler
|
23
|
+
prerelease: false
|
24
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
25
|
+
none: false
|
26
|
+
requirements:
|
27
|
+
- - ~>
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
segments:
|
30
|
+
- 1
|
31
|
+
- 0
|
32
|
+
version: "1.0"
|
33
|
+
type: :development
|
34
|
+
version_requirements: *id001
|
35
|
+
- !ruby/object:Gem::Dependency
|
36
|
+
name: fakeweb
|
37
|
+
prerelease: false
|
38
|
+
requirement: &id002 !ruby/object:Gem::Requirement
|
39
|
+
none: false
|
40
|
+
requirements:
|
41
|
+
- - ~>
|
42
|
+
- !ruby/object:Gem::Version
|
43
|
+
segments:
|
44
|
+
- 1
|
45
|
+
- 3
|
46
|
+
version: "1.3"
|
47
|
+
type: :development
|
48
|
+
version_requirements: *id002
|
49
|
+
- !ruby/object:Gem::Dependency
|
50
|
+
name: rdoc
|
51
|
+
prerelease: false
|
52
|
+
requirement: &id003 !ruby/object:Gem::Requirement
|
53
|
+
none: false
|
54
|
+
requirements:
|
55
|
+
- - ~>
|
56
|
+
- !ruby/object:Gem::Version
|
57
|
+
segments:
|
58
|
+
- 2
|
59
|
+
- 5
|
60
|
+
version: "2.5"
|
61
|
+
type: :development
|
62
|
+
version_requirements: *id003
|
63
|
+
- !ruby/object:Gem::Dependency
|
64
|
+
name: rspec
|
65
|
+
prerelease: false
|
66
|
+
requirement: &id004 !ruby/object:Gem::Requirement
|
67
|
+
none: false
|
68
|
+
requirements:
|
69
|
+
- - ~>
|
70
|
+
- !ruby/object:Gem::Version
|
71
|
+
segments:
|
72
|
+
- 2
|
73
|
+
- 1
|
74
|
+
version: "2.1"
|
75
|
+
type: :development
|
76
|
+
version_requirements: *id004
|
77
|
+
- !ruby/object:Gem::Dependency
|
78
|
+
name: simplecov
|
79
|
+
prerelease: false
|
80
|
+
requirement: &id005 !ruby/object:Gem::Requirement
|
81
|
+
none: false
|
82
|
+
requirements:
|
83
|
+
- - ~>
|
84
|
+
- !ruby/object:Gem::Version
|
85
|
+
segments:
|
86
|
+
- 0
|
87
|
+
- 3
|
88
|
+
version: "0.3"
|
89
|
+
type: :development
|
90
|
+
version_requirements: *id005
|
23
91
|
description: A scripting framework that replaces rake, sake and rubigen
|
24
|
-
email:
|
92
|
+
email:
|
93
|
+
- ruby-thor@googlegroups.com
|
25
94
|
executables:
|
26
|
-
- thor
|
27
95
|
- rake2thor
|
96
|
+
- thor
|
28
97
|
extensions: []
|
29
98
|
|
30
99
|
extra_rdoc_files:
|
@@ -33,15 +102,12 @@ extra_rdoc_files:
|
|
33
102
|
- README.md
|
34
103
|
- Thorfile
|
35
104
|
files:
|
36
|
-
- CHANGELOG.rdoc
|
37
|
-
- LICENSE
|
38
|
-
- README.md
|
39
|
-
- Thorfile
|
40
105
|
- bin/rake2thor
|
41
106
|
- bin/thor
|
42
107
|
- lib/thor.rb
|
43
108
|
- lib/thor/actions.rb
|
44
109
|
- lib/thor/actions/create_file.rb
|
110
|
+
- lib/thor/actions/create_link.rb
|
45
111
|
- lib/thor/actions/directory.rb
|
46
112
|
- lib/thor/actions/empty_directory.rb
|
47
113
|
- lib/thor/actions/file_manipulation.rb
|
@@ -78,8 +144,17 @@ files:
|
|
78
144
|
- spec/core_ext/ordered_hash_spec.rb
|
79
145
|
- spec/fixtures/application.rb
|
80
146
|
- spec/fixtures/bundle/execute.rb
|
147
|
+
- spec/fixtures/bundle/main.thor
|
148
|
+
- spec/fixtures/doc/%file_name%.rb.tt
|
149
|
+
- spec/fixtures/doc/README
|
81
150
|
- spec/fixtures/doc/block_helper.rb
|
151
|
+
- spec/fixtures/doc/components/.empty_directory
|
82
152
|
- spec/fixtures/doc/config.rb
|
153
|
+
- spec/fixtures/group.thor
|
154
|
+
- spec/fixtures/invoke.thor
|
155
|
+
- spec/fixtures/path with spaces
|
156
|
+
- spec/fixtures/script.thor
|
157
|
+
- spec/fixtures/task.thor
|
83
158
|
- spec/group_spec.rb
|
84
159
|
- spec/invocation_spec.rb
|
85
160
|
- spec/parser/argument_spec.rb
|
@@ -87,6 +162,7 @@ files:
|
|
87
162
|
- spec/parser/option_spec.rb
|
88
163
|
- spec/parser/options_spec.rb
|
89
164
|
- spec/rake_compat_spec.rb
|
165
|
+
- spec/register_spec.rb
|
90
166
|
- spec/runner_spec.rb
|
91
167
|
- spec/shell/basic_spec.rb
|
92
168
|
- spec/shell/color_spec.rb
|
@@ -96,18 +172,12 @@ files:
|
|
96
172
|
- spec/task_spec.rb
|
97
173
|
- spec/thor_spec.rb
|
98
174
|
- spec/util_spec.rb
|
99
|
-
-
|
100
|
-
-
|
101
|
-
-
|
102
|
-
-
|
103
|
-
- spec/fixtures/invoke.thor
|
104
|
-
- spec/fixtures/path with spaces
|
105
|
-
- spec/fixtures/script.thor
|
106
|
-
- spec/fixtures/task.thor
|
107
|
-
- spec/spec.opts
|
108
|
-
- spec/fixtures/doc/components/.empty_directory
|
175
|
+
- CHANGELOG.rdoc
|
176
|
+
- LICENSE
|
177
|
+
- README.md
|
178
|
+
- Thorfile
|
109
179
|
has_rdoc: true
|
110
|
-
homepage: http://
|
180
|
+
homepage: http://github.com/wycats/thor
|
111
181
|
licenses: []
|
112
182
|
|
113
183
|
post_install_message:
|
@@ -120,7 +190,6 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
120
190
|
requirements:
|
121
191
|
- - ">="
|
122
192
|
- !ruby/object:Gem::Version
|
123
|
-
hash: 3
|
124
193
|
segments:
|
125
194
|
- 0
|
126
195
|
version: "0"
|
@@ -129,54 +198,17 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
129
198
|
requirements:
|
130
199
|
- - ">="
|
131
200
|
- !ruby/object:Gem::Version
|
132
|
-
hash: 3
|
133
201
|
segments:
|
134
|
-
-
|
135
|
-
|
202
|
+
- 1
|
203
|
+
- 3
|
204
|
+
- 6
|
205
|
+
version: 1.3.6
|
136
206
|
requirements: []
|
137
207
|
|
138
|
-
rubyforge_project:
|
208
|
+
rubyforge_project:
|
139
209
|
rubygems_version: 1.3.7
|
140
210
|
signing_key:
|
141
211
|
specification_version: 3
|
142
212
|
summary: A scripting framework that replaces rake, sake and rubigen
|
143
|
-
test_files:
|
144
|
-
|
145
|
-
- spec/actions/directory_spec.rb
|
146
|
-
- spec/actions/empty_directory_spec.rb
|
147
|
-
- spec/actions/file_manipulation_spec.rb
|
148
|
-
- spec/actions/inject_into_file_spec.rb
|
149
|
-
- spec/actions_spec.rb
|
150
|
-
- spec/base_spec.rb
|
151
|
-
- spec/core_ext/hash_with_indifferent_access_spec.rb
|
152
|
-
- spec/core_ext/ordered_hash_spec.rb
|
153
|
-
- spec/fixtures/application.rb
|
154
|
-
- spec/fixtures/bundle/execute.rb
|
155
|
-
- spec/fixtures/doc/block_helper.rb
|
156
|
-
- spec/fixtures/doc/config.rb
|
157
|
-
- spec/group_spec.rb
|
158
|
-
- spec/invocation_spec.rb
|
159
|
-
- spec/parser/argument_spec.rb
|
160
|
-
- spec/parser/arguments_spec.rb
|
161
|
-
- spec/parser/option_spec.rb
|
162
|
-
- spec/parser/options_spec.rb
|
163
|
-
- spec/rake_compat_spec.rb
|
164
|
-
- spec/runner_spec.rb
|
165
|
-
- spec/shell/basic_spec.rb
|
166
|
-
- spec/shell/color_spec.rb
|
167
|
-
- spec/shell/html_spec.rb
|
168
|
-
- spec/shell_spec.rb
|
169
|
-
- spec/spec_helper.rb
|
170
|
-
- spec/task_spec.rb
|
171
|
-
- spec/thor_spec.rb
|
172
|
-
- spec/util_spec.rb
|
173
|
-
- spec/fixtures/bundle/main.thor
|
174
|
-
- spec/fixtures/doc/%file_name%.rb.tt
|
175
|
-
- spec/fixtures/doc/README
|
176
|
-
- spec/fixtures/group.thor
|
177
|
-
- spec/fixtures/invoke.thor
|
178
|
-
- spec/fixtures/path with spaces
|
179
|
-
- spec/fixtures/script.thor
|
180
|
-
- spec/fixtures/task.thor
|
181
|
-
- spec/spec.opts
|
182
|
-
- spec/fixtures/doc/components/.empty_directory
|
213
|
+
test_files: []
|
214
|
+
|
data/spec/spec.opts
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
--color
|