thor 0.15.3 → 0.15.4
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG.rdoc +3 -0
- data/lib/thor/actions.rb +5 -5
- data/lib/thor/version.rb +1 -1
- data/spec/actions_spec.rb +5 -0
- metadata +74 -121
- data/.autotest +0 -8
- data/.gemtest +0 -0
data/CHANGELOG.rdoc
CHANGED
data/lib/thor/actions.rb
CHANGED
@@ -114,12 +114,12 @@ class Thor
|
|
114
114
|
# the script started).
|
115
115
|
#
|
116
116
|
def relative_to_original_destination_root(path, remove_dot=true)
|
117
|
-
|
118
|
-
|
119
|
-
|
117
|
+
path = path.dup
|
118
|
+
if path.gsub!(@destination_stack[0], '.')
|
119
|
+
remove_dot ? (path[2..-1] || '') : path
|
120
|
+
else
|
121
|
+
path
|
120
122
|
end
|
121
|
-
|
122
|
-
path
|
123
123
|
end
|
124
124
|
|
125
125
|
# Holds source paths in instance so they can be manipulated.
|
data/lib/thor/version.rb
CHANGED
data/spec/actions_spec.rb
CHANGED
@@ -86,6 +86,11 @@ describe Thor::Actions do
|
|
86
86
|
runner.relative_to_original_destination_root('/test/file').should == "/test/file"
|
87
87
|
end
|
88
88
|
|
89
|
+
it "does not fail with files constaining regexp characters" do
|
90
|
+
runner = MyCounter.new([1], {}, { :destination_root => File.join(destination_root, "fo[o-b]ar") })
|
91
|
+
runner.relative_to_original_destination_root("bar").should == "bar"
|
92
|
+
end
|
93
|
+
|
89
94
|
describe "#source_paths_for_search" do
|
90
95
|
it "add source_root to source_paths_for_search" do
|
91
96
|
MyCounter.source_paths_for_search.should include(File.expand_path("fixtures", File.dirname(__FILE__)))
|
metadata
CHANGED
@@ -1,144 +1,107 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: thor
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.15.4
|
5
5
|
prerelease:
|
6
|
-
segments:
|
7
|
-
- 0
|
8
|
-
- 15
|
9
|
-
- 3
|
10
|
-
version: 0.15.3
|
11
6
|
platform: ruby
|
12
|
-
authors:
|
7
|
+
authors:
|
13
8
|
- Yehuda Katz
|
14
|
-
-
|
9
|
+
- José Valim
|
15
10
|
autorequire:
|
16
11
|
bindir: bin
|
17
12
|
cert_chain: []
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
dependencies:
|
22
|
-
- !ruby/object:Gem::Dependency
|
13
|
+
date: 2012-06-29 00:00:00.000000000 Z
|
14
|
+
dependencies:
|
15
|
+
- !ruby/object:Gem::Dependency
|
23
16
|
name: bundler
|
24
|
-
|
25
|
-
requirement: &id001 !ruby/object:Gem::Requirement
|
17
|
+
requirement: &2165788460 !ruby/object:Gem::Requirement
|
26
18
|
none: false
|
27
|
-
requirements:
|
19
|
+
requirements:
|
28
20
|
- - ~>
|
29
|
-
- !ruby/object:Gem::Version
|
30
|
-
|
31
|
-
segments:
|
32
|
-
- 1
|
33
|
-
- 0
|
34
|
-
version: "1.0"
|
21
|
+
- !ruby/object:Gem::Version
|
22
|
+
version: '1.0'
|
35
23
|
type: :development
|
36
|
-
version_requirements: *id001
|
37
|
-
- !ruby/object:Gem::Dependency
|
38
|
-
name: fakeweb
|
39
24
|
prerelease: false
|
40
|
-
|
25
|
+
version_requirements: *2165788460
|
26
|
+
- !ruby/object:Gem::Dependency
|
27
|
+
name: fakeweb
|
28
|
+
requirement: &2165787960 !ruby/object:Gem::Requirement
|
41
29
|
none: false
|
42
|
-
requirements:
|
30
|
+
requirements:
|
43
31
|
- - ~>
|
44
|
-
- !ruby/object:Gem::Version
|
45
|
-
|
46
|
-
segments:
|
47
|
-
- 1
|
48
|
-
- 3
|
49
|
-
version: "1.3"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '1.3'
|
50
34
|
type: :development
|
51
|
-
version_requirements: *id002
|
52
|
-
- !ruby/object:Gem::Dependency
|
53
|
-
name: rake
|
54
35
|
prerelease: false
|
55
|
-
|
36
|
+
version_requirements: *2165787960
|
37
|
+
- !ruby/object:Gem::Dependency
|
38
|
+
name: rake
|
39
|
+
requirement: &2165787500 !ruby/object:Gem::Requirement
|
56
40
|
none: false
|
57
|
-
requirements:
|
41
|
+
requirements:
|
58
42
|
- - ~>
|
59
|
-
- !ruby/object:Gem::Version
|
60
|
-
|
61
|
-
segments:
|
62
|
-
- 0
|
63
|
-
- 9
|
64
|
-
version: "0.9"
|
43
|
+
- !ruby/object:Gem::Version
|
44
|
+
version: '0.9'
|
65
45
|
type: :development
|
66
|
-
version_requirements: *id003
|
67
|
-
- !ruby/object:Gem::Dependency
|
68
|
-
name: rdoc
|
69
46
|
prerelease: false
|
70
|
-
|
47
|
+
version_requirements: *2165787500
|
48
|
+
- !ruby/object:Gem::Dependency
|
49
|
+
name: rdoc
|
50
|
+
requirement: &2165787040 !ruby/object:Gem::Requirement
|
71
51
|
none: false
|
72
|
-
requirements:
|
52
|
+
requirements:
|
73
53
|
- - ~>
|
74
|
-
- !ruby/object:Gem::Version
|
75
|
-
|
76
|
-
segments:
|
77
|
-
- 3
|
78
|
-
- 9
|
79
|
-
version: "3.9"
|
54
|
+
- !ruby/object:Gem::Version
|
55
|
+
version: '3.9'
|
80
56
|
type: :development
|
81
|
-
version_requirements: *id004
|
82
|
-
- !ruby/object:Gem::Dependency
|
83
|
-
name: rspec
|
84
57
|
prerelease: false
|
85
|
-
|
58
|
+
version_requirements: *2165787040
|
59
|
+
- !ruby/object:Gem::Dependency
|
60
|
+
name: rspec
|
61
|
+
requirement: &2165802940 !ruby/object:Gem::Requirement
|
86
62
|
none: false
|
87
|
-
requirements:
|
63
|
+
requirements:
|
88
64
|
- - ~>
|
89
|
-
- !ruby/object:Gem::Version
|
90
|
-
|
91
|
-
segments:
|
92
|
-
- 2
|
93
|
-
- 3
|
94
|
-
version: "2.3"
|
65
|
+
- !ruby/object:Gem::Version
|
66
|
+
version: '2.3'
|
95
67
|
type: :development
|
96
|
-
version_requirements: *id005
|
97
|
-
- !ruby/object:Gem::Dependency
|
98
|
-
name: simplecov
|
99
68
|
prerelease: false
|
100
|
-
|
69
|
+
version_requirements: *2165802940
|
70
|
+
- !ruby/object:Gem::Dependency
|
71
|
+
name: simplecov
|
72
|
+
requirement: &2165802480 !ruby/object:Gem::Requirement
|
101
73
|
none: false
|
102
|
-
requirements:
|
74
|
+
requirements:
|
103
75
|
- - ~>
|
104
|
-
- !ruby/object:Gem::Version
|
105
|
-
|
106
|
-
segments:
|
107
|
-
- 0
|
108
|
-
- 4
|
109
|
-
version: "0.4"
|
76
|
+
- !ruby/object:Gem::Version
|
77
|
+
version: '0.4'
|
110
78
|
type: :development
|
111
|
-
version_requirements: *id006
|
112
|
-
- !ruby/object:Gem::Dependency
|
113
|
-
name: childlabor
|
114
79
|
prerelease: false
|
115
|
-
|
80
|
+
version_requirements: *2165802480
|
81
|
+
- !ruby/object:Gem::Dependency
|
82
|
+
name: childlabor
|
83
|
+
requirement: &2165802100 !ruby/object:Gem::Requirement
|
116
84
|
none: false
|
117
|
-
requirements:
|
118
|
-
- -
|
119
|
-
- !ruby/object:Gem::Version
|
120
|
-
|
121
|
-
segments:
|
122
|
-
- 0
|
123
|
-
version: "0"
|
85
|
+
requirements:
|
86
|
+
- - ! '>='
|
87
|
+
- !ruby/object:Gem::Version
|
88
|
+
version: '0'
|
124
89
|
type: :development
|
125
|
-
|
90
|
+
prerelease: false
|
91
|
+
version_requirements: *2165802100
|
126
92
|
description: A scripting framework that replaces rake, sake and rubigen
|
127
93
|
email: ruby-thor@googlegroups.com
|
128
|
-
executables:
|
94
|
+
executables:
|
129
95
|
- rake2thor
|
130
96
|
- thor
|
131
97
|
extensions: []
|
132
|
-
|
133
|
-
extra_rdoc_files:
|
98
|
+
extra_rdoc_files:
|
134
99
|
- CHANGELOG.rdoc
|
135
100
|
- LICENSE.md
|
136
101
|
- README.md
|
137
102
|
- Thorfile
|
138
|
-
files:
|
139
|
-
- .autotest
|
103
|
+
files:
|
140
104
|
- .document
|
141
|
-
- .gemtest
|
142
105
|
- .gitignore
|
143
106
|
- .rspec
|
144
107
|
- .travis.yml
|
@@ -224,43 +187,32 @@ files:
|
|
224
187
|
- spec/thor_spec.rb
|
225
188
|
- spec/util_spec.rb
|
226
189
|
- thor.gemspec
|
227
|
-
has_rdoc: true
|
228
190
|
homepage: http://github.com/wycats/thor
|
229
191
|
licenses: []
|
230
|
-
|
231
192
|
post_install_message:
|
232
|
-
rdoc_options:
|
193
|
+
rdoc_options:
|
233
194
|
- --charset=UTF-8
|
234
|
-
require_paths:
|
195
|
+
require_paths:
|
235
196
|
- lib
|
236
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
197
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
237
198
|
none: false
|
238
|
-
requirements:
|
239
|
-
- -
|
240
|
-
- !ruby/object:Gem::Version
|
241
|
-
|
242
|
-
|
243
|
-
- 0
|
244
|
-
version: "0"
|
245
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
199
|
+
requirements:
|
200
|
+
- - ! '>='
|
201
|
+
- !ruby/object:Gem::Version
|
202
|
+
version: '0'
|
203
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
246
204
|
none: false
|
247
|
-
requirements:
|
248
|
-
- -
|
249
|
-
- !ruby/object:Gem::Version
|
250
|
-
hash: 23
|
251
|
-
segments:
|
252
|
-
- 1
|
253
|
-
- 3
|
254
|
-
- 6
|
205
|
+
requirements:
|
206
|
+
- - ! '>='
|
207
|
+
- !ruby/object:Gem::Version
|
255
208
|
version: 1.3.6
|
256
209
|
requirements: []
|
257
|
-
|
258
210
|
rubyforge_project:
|
259
|
-
rubygems_version: 1.
|
211
|
+
rubygems_version: 1.8.15
|
260
212
|
signing_key:
|
261
213
|
specification_version: 3
|
262
214
|
summary: A scripting framework that replaces rake, sake and rubigen
|
263
|
-
test_files:
|
215
|
+
test_files:
|
264
216
|
- spec/actions/create_file_spec.rb
|
265
217
|
- spec/actions/create_link_spec.rb
|
266
218
|
- spec/actions/directory_spec.rb
|
@@ -305,3 +257,4 @@ test_files:
|
|
305
257
|
- spec/task_spec.rb
|
306
258
|
- spec/thor_spec.rb
|
307
259
|
- spec/util_spec.rb
|
260
|
+
has_rdoc:
|
data/.autotest
DELETED
@@ -1,8 +0,0 @@
|
|
1
|
-
Autotest.add_hook :initialize do |at|
|
2
|
-
at.clear_mappings
|
3
|
-
at.add_exception(/\.git/)
|
4
|
-
at.add_exception(/spec\/sandbox/)
|
5
|
-
at.add_mapping(%r{^spec/.*_spec}) {|filename,_| at.files_matching %r{#{filename}}}
|
6
|
-
at.add_mapping(%r{^bin/thor}) {|_,_| at.files_matching %r{spec/thor_runner_spec}}
|
7
|
-
at.add_mapping(%r{}) {|_,_| at.files_matching %r{spec/.*_spec}}
|
8
|
-
end
|
data/.gemtest
DELETED
File without changes
|