fix-command 0.1.3 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +0 -0
- data/.travis.yml +13 -0
- data/README.md +7 -1
- data/VERSION.semver +1 -1
- data/checksum/fix-command-0.1.3.gem.sha512 +1 -0
- data/lib/fix/command.rb +20 -5
- metadata +49 -77
- metadata.gz.sig +0 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 5ede6b0feb91e3076145dd4a02dcfe7357dd3fcc
|
4
|
+
data.tar.gz: d17466d075d293c0cb062128dc6b52a54bd65168
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 40d81c67b92370a6dc8f9f4b86c4b60a3945d46a40757a0942f801b4bb4d66ae334e79cc3d026b49a2912a4706b028ad1f95051e6a59a91bd8e2e1529daef88f
|
7
|
+
data.tar.gz: ba2813a50c308756f28d8fd1593ea8258a3c208a3df7a91c0d20d39e88239385c66373bb31e9bbc17069d562c9829341313ce21f1a4226d4b2566fb6de5b0451
|
checksums.yaml.gz.sig
ADDED
Binary file
|
data.tar.gz.sig
CHANGED
Binary file
|
data/.travis.yml
CHANGED
@@ -9,7 +9,20 @@ rvm:
|
|
9
9
|
- 2.0
|
10
10
|
- 2.1
|
11
11
|
- 2.2
|
12
|
+
- 2.3
|
12
13
|
- ruby-head
|
13
14
|
- jruby
|
14
15
|
- jruby-head
|
15
16
|
- rbx-2
|
17
|
+
matrix:
|
18
|
+
allow_failures:
|
19
|
+
- rvm: rbx-2
|
20
|
+
- rvm: jruby-head
|
21
|
+
- rvm: ruby-head
|
22
|
+
notifications:
|
23
|
+
webhooks:
|
24
|
+
urls:
|
25
|
+
- https://webhooks.gitter.im/e/a44b19cc5cf6db25fa87
|
26
|
+
on_success: change
|
27
|
+
on_failure: always
|
28
|
+
on_start: never
|
data/README.md
CHANGED
@@ -1,6 +1,8 @@
|
|
1
1
|
# Fix::Command
|
2
2
|
|
3
3
|
[][travis]
|
4
|
+
[][codeclimate]
|
5
|
+
[][gemnasium]
|
4
6
|
[][gem]
|
5
7
|
[][inchpages]
|
6
8
|
[][rubydoc]
|
@@ -50,6 +52,8 @@ First, let's see the API:
|
|
50
52
|
Specific options:
|
51
53
|
--debug Enable ruby debug
|
52
54
|
--warnings Enable ruby warnings
|
55
|
+
--prefix=[PREFIX] Prefix of the spec files
|
56
|
+
--suffix=[SUFFIX] Suffix of the spec files
|
53
57
|
|
54
58
|
Common options:
|
55
59
|
--help Show this message
|
@@ -98,7 +102,9 @@ See `LICENSE.md` file.
|
|
98
102
|
|
99
103
|
[gem]: https://rubygems.org/gems/fix-command
|
100
104
|
[travis]: https://travis-ci.org/fixrb/fix-command
|
101
|
-
[
|
105
|
+
[codeclimate]: https://codeclimate.com/github/fixrb/fix-command
|
106
|
+
[gemnasium]: https://gemnasium.com/fixrb/fix-command
|
107
|
+
[inchpages]: http://inch-ci.org/github/fixrb/fix-command
|
102
108
|
[rubydoc]: http://rubydoc.info/gems/fix-command/frames
|
103
109
|
|
104
110
|
***
|
data/VERSION.semver
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.
|
1
|
+
0.2.0
|
@@ -0,0 +1 @@
|
|
1
|
+
5e4e0c815b72d29177ff83792c236bf86aff3b8aec2703e0546de58b864ecd6df7c30570987440165db44247b19daeeafcc94906ce8f65b08a3cb5792aea596b
|
data/lib/fix/command.rb
CHANGED
@@ -29,14 +29,19 @@ module Fix
|
|
29
29
|
#
|
30
30
|
# @raise [SystemExit] The result of the tests.
|
31
31
|
def self.run(*args)
|
32
|
-
process_args(args)
|
32
|
+
config = process_args(args)
|
33
33
|
|
34
|
-
file_paths = fetch_file_paths(
|
34
|
+
file_paths = fetch_file_paths(
|
35
|
+
config.fetch(:prefix),
|
36
|
+
config.fetch(:suffix), *args
|
37
|
+
)
|
35
38
|
|
36
39
|
str = "\e[37m"
|
37
40
|
str += '> fix'
|
38
41
|
str += ' --debug' if $DEBUG
|
39
42
|
str += ' --warnings' if $VERBOSE
|
43
|
+
str += ' --prefix' if config.fetch(:prefix)
|
44
|
+
str += ' --suffix' if config.fetch(:suffix)
|
40
45
|
|
41
46
|
puts str + ' ' + file_paths.to_a.join(' ') + "\e[22m"
|
42
47
|
|
@@ -59,7 +64,9 @@ module Fix
|
|
59
64
|
def self.process_args(args)
|
60
65
|
options = {
|
61
66
|
debug: false,
|
62
|
-
warnings: false
|
67
|
+
warnings: false,
|
68
|
+
prefix: '',
|
69
|
+
suffix: '_fix'
|
63
70
|
}
|
64
71
|
|
65
72
|
opt_parser = OptionParser.new do |opts|
|
@@ -76,6 +83,14 @@ module Fix
|
|
76
83
|
options[:warnings] = $VERBOSE = true
|
77
84
|
end
|
78
85
|
|
86
|
+
opts.on('--prefix=[PREFIX]', String, 'Prefix of the spec files') do |s|
|
87
|
+
options[:prefix] = s
|
88
|
+
end
|
89
|
+
|
90
|
+
opts.on('--suffix=[SUFFIX]', String, 'Suffix of the spec files') do |s|
|
91
|
+
options[:suffix] = s
|
92
|
+
end
|
93
|
+
|
79
94
|
opts.separator ''
|
80
95
|
opts.separator 'Common options:'
|
81
96
|
|
@@ -99,7 +114,7 @@ module Fix
|
|
99
114
|
end
|
100
115
|
|
101
116
|
# @private
|
102
|
-
def self.fetch_file_paths(*args)
|
117
|
+
def self.fetch_file_paths(file_prefix, file_suffix, *args)
|
103
118
|
absolute_paths = Set.new
|
104
119
|
|
105
120
|
args << '.' if args.empty?
|
@@ -107,7 +122,7 @@ module Fix
|
|
107
122
|
s = File.absolute_path(s) unless s.start_with?(File::SEPARATOR)
|
108
123
|
|
109
124
|
if File.directory?(s)
|
110
|
-
spec_files = File.join(s, '**',
|
125
|
+
spec_files = File.join(s, '**', "#{file_prefix}*#{file_suffix}.rb")
|
111
126
|
Dir.glob(spec_files).each { |spec_f| absolute_paths.add(spec_f) }
|
112
127
|
else
|
113
128
|
absolute_paths.add(s)
|
metadata
CHANGED
@@ -1,155 +1,133 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fix-command
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
5
|
-
prerelease:
|
4
|
+
version: 0.2.0
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- Cyril Wack
|
9
8
|
autorequire:
|
10
9
|
bindir: bin
|
11
10
|
cert_chain:
|
12
|
-
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
U2pEQnQyT3BmTThBClA1ZUVsU1FTOWlKQ2V0QkdHTXl0MzU0UGZnWmtnM1VS
|
36
|
-
YUMrSkE2bWRFaXNkdEVkbzY0RWxuTXNMZzlzaENxeWUKSlNSM0JiZWpieVBW
|
37
|
-
dmEwL01IS0QrZFI2UnN3bGNNOUtNaVlPWFFtbDdhL2tINmh1T0h2VnE5Z2o1
|
38
|
-
eEMyaWg4Vwpkekp2V3pRMStkSlU2V1F2NzVFOWRkU2thUXJLM25oZGdRVnUr
|
39
|
-
L3dndkdTcnNNdk9HTnorTFhhU0R4UXFadXdYCjBLTlFGdUl1a2ZyZGs4VVJ3
|
40
|
-
Um5Ib0Fudng0VTkzaVV3Ci0tLS0tRU5EIENFUlRJRklDQVRFLS0tLS0K
|
41
|
-
date: 2015-11-28 00:00:00.000000000 Z
|
11
|
+
- |
|
12
|
+
-----BEGIN CERTIFICATE-----
|
13
|
+
MIIDdDCCAlygAwIBAgIBATANBgkqhkiG9w0BAQUFADBAMRAwDgYDVQQDDAdjb250
|
14
|
+
YWN0MRUwEwYKCZImiZPyLGQBGRYFY3lyaWwxFTATBg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yPVva0/MHKD+dR6RswlcM9KMiYOXQml7a/kH6huOHvVq9gj5xC2ih8W
|
30
|
+
dzJvWzQ1+dJU6WQv75E9ddSkaQrK3nhdgQVu+/wgvGSrsMvOGNz+LXaSDxQqZuwX
|
31
|
+
0KNQFuIukfrdk8URwRnHoAnvx4U93iUw
|
32
|
+
-----END CERTIFICATE-----
|
33
|
+
date: 2015-12-28 00:00:00.000000000 Z
|
42
34
|
dependencies:
|
43
35
|
- !ruby/object:Gem::Dependency
|
44
36
|
name: fix
|
45
37
|
requirement: !ruby/object:Gem::Requirement
|
46
|
-
none: false
|
47
38
|
requirements:
|
48
|
-
- - ~>
|
39
|
+
- - "~>"
|
49
40
|
- !ruby/object:Gem::Version
|
50
41
|
version: 0.17.0
|
51
42
|
type: :runtime
|
52
43
|
prerelease: false
|
53
44
|
version_requirements: !ruby/object:Gem::Requirement
|
54
|
-
none: false
|
55
45
|
requirements:
|
56
|
-
- - ~>
|
46
|
+
- - "~>"
|
57
47
|
- !ruby/object:Gem::Version
|
58
48
|
version: 0.17.0
|
59
49
|
- !ruby/object:Gem::Dependency
|
60
50
|
name: bundler
|
61
51
|
requirement: !ruby/object:Gem::Requirement
|
62
|
-
none: false
|
63
52
|
requirements:
|
64
|
-
- - ~>
|
53
|
+
- - "~>"
|
65
54
|
- !ruby/object:Gem::Version
|
66
55
|
version: '1.10'
|
67
56
|
type: :development
|
68
57
|
prerelease: false
|
69
58
|
version_requirements: !ruby/object:Gem::Requirement
|
70
|
-
none: false
|
71
59
|
requirements:
|
72
|
-
- - ~>
|
60
|
+
- - "~>"
|
73
61
|
- !ruby/object:Gem::Version
|
74
62
|
version: '1.10'
|
75
63
|
- !ruby/object:Gem::Dependency
|
76
64
|
name: rake
|
77
65
|
requirement: !ruby/object:Gem::Requirement
|
78
|
-
none: false
|
79
66
|
requirements:
|
80
|
-
- - ~>
|
67
|
+
- - "~>"
|
81
68
|
- !ruby/object:Gem::Version
|
82
69
|
version: '10.4'
|
83
70
|
type: :development
|
84
71
|
prerelease: false
|
85
72
|
version_requirements: !ruby/object:Gem::Requirement
|
86
|
-
none: false
|
87
73
|
requirements:
|
88
|
-
- - ~>
|
74
|
+
- - "~>"
|
89
75
|
- !ruby/object:Gem::Version
|
90
76
|
version: '10.4'
|
91
77
|
- !ruby/object:Gem::Dependency
|
92
78
|
name: yard
|
93
79
|
requirement: !ruby/object:Gem::Requirement
|
94
|
-
none: false
|
95
80
|
requirements:
|
96
|
-
- - ~>
|
81
|
+
- - "~>"
|
97
82
|
- !ruby/object:Gem::Version
|
98
83
|
version: '0.8'
|
99
84
|
type: :development
|
100
85
|
prerelease: false
|
101
86
|
version_requirements: !ruby/object:Gem::Requirement
|
102
|
-
none: false
|
103
87
|
requirements:
|
104
|
-
- - ~>
|
88
|
+
- - "~>"
|
105
89
|
- !ruby/object:Gem::Version
|
106
90
|
version: '0.8'
|
107
91
|
- !ruby/object:Gem::Dependency
|
108
92
|
name: simplecov
|
109
93
|
requirement: !ruby/object:Gem::Requirement
|
110
|
-
none: false
|
111
94
|
requirements:
|
112
|
-
- - ~>
|
95
|
+
- - "~>"
|
113
96
|
- !ruby/object:Gem::Version
|
114
97
|
version: '0.10'
|
115
98
|
type: :development
|
116
99
|
prerelease: false
|
117
100
|
version_requirements: !ruby/object:Gem::Requirement
|
118
|
-
none: false
|
119
101
|
requirements:
|
120
|
-
- - ~>
|
102
|
+
- - "~>"
|
121
103
|
- !ruby/object:Gem::Version
|
122
104
|
version: '0.10'
|
123
105
|
- !ruby/object:Gem::Dependency
|
124
106
|
name: rubocop
|
125
107
|
requirement: !ruby/object:Gem::Requirement
|
126
|
-
none: false
|
127
108
|
requirements:
|
128
|
-
- - ~>
|
109
|
+
- - "~>"
|
129
110
|
- !ruby/object:Gem::Version
|
130
111
|
version: '0.35'
|
131
112
|
type: :development
|
132
113
|
prerelease: false
|
133
114
|
version_requirements: !ruby/object:Gem::Requirement
|
134
|
-
none: false
|
135
115
|
requirements:
|
136
|
-
- - ~>
|
116
|
+
- - "~>"
|
137
117
|
- !ruby/object:Gem::Version
|
138
118
|
version: '0.35'
|
139
119
|
- !ruby/object:Gem::Dependency
|
140
120
|
name: spectus
|
141
121
|
requirement: !ruby/object:Gem::Requirement
|
142
|
-
none: false
|
143
122
|
requirements:
|
144
|
-
- - ~>
|
123
|
+
- - "~>"
|
145
124
|
- !ruby/object:Gem::Version
|
146
125
|
version: '3.0'
|
147
126
|
type: :development
|
148
127
|
prerelease: false
|
149
128
|
version_requirements: !ruby/object:Gem::Requirement
|
150
|
-
none: false
|
151
129
|
requirements:
|
152
|
-
- - ~>
|
130
|
+
- - "~>"
|
153
131
|
- !ruby/object:Gem::Version
|
154
132
|
version: '3.0'
|
155
133
|
description: Provides the fix command to run specs.
|
@@ -159,11 +137,11 @@ executables: []
|
|
159
137
|
extensions: []
|
160
138
|
extra_rdoc_files: []
|
161
139
|
files:
|
162
|
-
- .gitignore
|
163
|
-
- .rubocop.yml
|
164
|
-
- .rubocop_todo.yml
|
165
|
-
- .travis.yml
|
166
|
-
- .yardopts
|
140
|
+
- ".gitignore"
|
141
|
+
- ".rubocop.yml"
|
142
|
+
- ".rubocop_todo.yml"
|
143
|
+
- ".travis.yml"
|
144
|
+
- ".yardopts"
|
167
145
|
- CODE_OF_CONDUCT.md
|
168
146
|
- Gemfile
|
169
147
|
- LICENSE.md
|
@@ -177,39 +155,33 @@ files:
|
|
177
155
|
- checksum/fix-command-0.1.0.gem.sha512
|
178
156
|
- checksum/fix-command-0.1.1.gem.sha512
|
179
157
|
- checksum/fix-command-0.1.2.gem.sha512
|
158
|
+
- checksum/fix-command-0.1.3.gem.sha512
|
180
159
|
- fix-command.gemspec
|
181
160
|
- lib/fix/command.rb
|
182
161
|
- pkg_checksum
|
183
162
|
homepage: https://github.com/fixrb/fix-command
|
184
163
|
licenses:
|
185
164
|
- MIT
|
165
|
+
metadata: {}
|
186
166
|
post_install_message:
|
187
167
|
rdoc_options: []
|
188
168
|
require_paths:
|
189
169
|
- lib
|
190
170
|
required_ruby_version: !ruby/object:Gem::Requirement
|
191
|
-
none: false
|
192
171
|
requirements:
|
193
|
-
- -
|
172
|
+
- - ">="
|
194
173
|
- !ruby/object:Gem::Version
|
195
174
|
version: '0'
|
196
|
-
segments:
|
197
|
-
- 0
|
198
|
-
hash: 1351542786840156599
|
199
175
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
200
|
-
none: false
|
201
176
|
requirements:
|
202
|
-
- -
|
177
|
+
- - ">="
|
203
178
|
- !ruby/object:Gem::Version
|
204
179
|
version: '0'
|
205
|
-
segments:
|
206
|
-
- 0
|
207
|
-
hash: 1351542786840156599
|
208
180
|
requirements: []
|
209
181
|
rubyforge_project:
|
210
|
-
rubygems_version:
|
182
|
+
rubygems_version: 2.4.5.1
|
211
183
|
signing_key:
|
212
|
-
specification_version:
|
184
|
+
specification_version: 4
|
213
185
|
summary: Fix extension gem for the fix command.
|
214
186
|
test_files: []
|
215
187
|
has_rdoc:
|
metadata.gz.sig
CHANGED
Binary file
|