paraduct 1.0.0 → 1.0.1

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c7bca8c964aef5d616debd095e941a6c245054f5
4
- data.tar.gz: 15cf9dfab4ca0740cae11ad468c59552ad866cb6
3
+ metadata.gz: 39b1fa6c6cd808177aad14583fdcc521d3547175
4
+ data.tar.gz: e310776a9d23406cdb9332aee1ce27a5f0d1df88
5
5
  SHA512:
6
- metadata.gz: f3ef3f5048a86bfdd8319c8727bef4bed0cb7a006ab5f1b854d29ab7cb43ef3f6d83bf1fa11f06917152da6e8e9a9046444d08b7f8937d8b8cb503f9b35f9d49
7
- data.tar.gz: c1faecc0467be7f3de7dea14e037de127b32ad63a3bf283ca28732438612a136e7476ed4a3ce0d811fab55a987506640add8eb47e9e27042091a676ae1297555
6
+ metadata.gz: a53a24bbc26151af0e4e45552ea1be730452fb68c24c5651f7e43bc8850ff8fd0f1f6d2797410d238622adc9e0271afec6423fee642ed5d66d27af59024739ab
7
+ data.tar.gz: 36ef17a5fcc7cdb85f8d258b712358190594f818a5c3c16758ba7c69d9f82ca1b61f4a37e11b50362fdaf7af5999f0bbe9449d7ad0dbc7930f85b337722c8822
@@ -3,7 +3,8 @@ rvm:
3
3
  - 2.0
4
4
  - 2.1
5
5
  - 2.2
6
- - 2.3.0
6
+ - 2.3.2
7
+ - 2.4.1
7
8
  - ruby-head
8
9
  cache: bundler
9
10
  bundler_args: --jobs=2
@@ -13,6 +14,7 @@ before_script:
13
14
  - export COVERAGE=true
14
15
  script:
15
16
  - bundle exec rspec
17
+ - bundle exec codeclimate-test-reporter
16
18
  branches:
17
19
  only:
18
20
  - master
@@ -1,5 +1,12 @@
1
1
  ## master
2
- [full changelog](http://github.com/sue445/paraduct/compare/v1.0.0...master)
2
+ [full changelog](http://github.com/sue445/paraduct/compare/v1.0.1...master)
3
+
4
+ ## v1.0.1
5
+ [full changelog](http://github.com/sue445/paraduct/compare/v1.0.0...v1.0.1)
6
+
7
+ ### Refactorings
8
+ * Use thor v0.19.0+
9
+ * https://github.com/sue445/paraduct/pull/98
3
10
 
4
11
  ## v1.0.0
5
12
  [full changelog](http://github.com/sue445/paraduct/compare/v0.0.3...v1.0.0)
data/Gemfile CHANGED
@@ -2,3 +2,12 @@ source "https://rubygems.org"
2
2
 
3
3
  # Specify your gem's dependencies in paraduct.gemspec
4
4
  gemspec
5
+
6
+ if Gem::Version.create(RUBY_VERSION) < Gem::Version.create("2.2.2")
7
+ gem "activesupport", "< 5.0.0"
8
+ end
9
+
10
+ if Gem::Version.create(RUBY_VERSION) < Gem::Version.create("2.2.0")
11
+ # NOTE: byebug 9.1.0+ requires ruby 2.2.0+
12
+ gem "byebug", "< 9.1.0"
13
+ end
@@ -1,3 +1,3 @@
1
1
  module Paraduct
2
- VERSION = "1.0.0".freeze
2
+ VERSION = "1.0.1".freeze
3
3
  end
@@ -19,22 +19,22 @@ Gem::Specification.new do |spec|
19
19
  spec.require_paths = ["lib"]
20
20
  spec.required_ruby_version = ">= 2.0.0"
21
21
 
22
- spec.add_dependency "activesupport", "~> 4.0"
22
+ spec.add_dependency "activesupport"
23
23
  spec.add_dependency "colorize"
24
24
  spec.add_dependency "rsync"
25
- spec.add_dependency "thor"
25
+ spec.add_dependency "thor", ">= 0.19.0"
26
26
  spec.add_dependency "thread"
27
27
 
28
28
  spec.add_development_dependency "bundler", ">= 1.5"
29
- spec.add_development_dependency "codeclimate-test-reporter"
29
+ spec.add_development_dependency "codeclimate-test-reporter", "~> 1.0.0"
30
30
  spec.add_development_dependency "coveralls"
31
- spec.add_development_dependency "rubocop", "0.37.0"
32
31
  spec.add_development_dependency "pry-byebug"
33
32
  spec.add_development_dependency "rake", "~> 10.0"
34
33
  spec.add_development_dependency "redcarpet"
35
- spec.add_development_dependency "rspec", "~> 3.4"
34
+ spec.add_development_dependency "rspec"
36
35
  spec.add_development_dependency "rspec-collection_matchers"
37
36
  spec.add_development_dependency "rspec-its"
38
37
  spec.add_development_dependency "rspec-temp_dir"
38
+ spec.add_development_dependency "simplecov"
39
39
  spec.add_development_dependency "yard"
40
40
  end
@@ -1,13 +1,8 @@
1
1
  if ENV["COVERAGE"]
2
2
  require "simplecov"
3
3
  require "coveralls"
4
- require "codeclimate-test-reporter"
5
4
 
6
- SimpleCov.formatter =
7
- SimpleCov::Formatter::MultiFormatter.new([
8
- CodeClimate::TestReporter::Formatter,
9
- Coveralls::SimpleCov::Formatter,
10
- ])
5
+ SimpleCov.formatter = Coveralls::SimpleCov::Formatter
11
6
  SimpleCov.start do
12
7
  %w(/bin/ /vendor/ /spec/).each do |ignore_path|
13
8
  add_filter(ignore_path)
metadata CHANGED
@@ -1,29 +1,29 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: paraduct
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - sue445
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-03-23 00:00:00.000000000 Z
11
+ date: 2017-11-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - "~>"
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: '4.0'
19
+ version: '0'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - "~>"
24
+ - - ">="
25
25
  - !ruby/object:Gem::Version
26
- version: '4.0'
26
+ version: '0'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: colorize
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -58,14 +58,14 @@ dependencies:
58
58
  requirements:
59
59
  - - ">="
60
60
  - !ruby/object:Gem::Version
61
- version: '0'
61
+ version: 0.19.0
62
62
  type: :runtime
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
66
  - - ">="
67
67
  - !ruby/object:Gem::Version
68
- version: '0'
68
+ version: 0.19.0
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: thread
71
71
  requirement: !ruby/object:Gem::Requirement
@@ -98,16 +98,16 @@ dependencies:
98
98
  name: codeclimate-test-reporter
99
99
  requirement: !ruby/object:Gem::Requirement
100
100
  requirements:
101
- - - ">="
101
+ - - "~>"
102
102
  - !ruby/object:Gem::Version
103
- version: '0'
103
+ version: 1.0.0
104
104
  type: :development
105
105
  prerelease: false
106
106
  version_requirements: !ruby/object:Gem::Requirement
107
107
  requirements:
108
- - - ">="
108
+ - - "~>"
109
109
  - !ruby/object:Gem::Version
110
- version: '0'
110
+ version: 1.0.0
111
111
  - !ruby/object:Gem::Dependency
112
112
  name: coveralls
113
113
  requirement: !ruby/object:Gem::Requirement
@@ -122,20 +122,6 @@ dependencies:
122
122
  - - ">="
123
123
  - !ruby/object:Gem::Version
124
124
  version: '0'
125
- - !ruby/object:Gem::Dependency
126
- name: rubocop
127
- requirement: !ruby/object:Gem::Requirement
128
- requirements:
129
- - - '='
130
- - !ruby/object:Gem::Version
131
- version: 0.37.0
132
- type: :development
133
- prerelease: false
134
- version_requirements: !ruby/object:Gem::Requirement
135
- requirements:
136
- - - '='
137
- - !ruby/object:Gem::Version
138
- version: 0.37.0
139
125
  - !ruby/object:Gem::Dependency
140
126
  name: pry-byebug
141
127
  requirement: !ruby/object:Gem::Requirement
@@ -182,16 +168,16 @@ dependencies:
182
168
  name: rspec
183
169
  requirement: !ruby/object:Gem::Requirement
184
170
  requirements:
185
- - - "~>"
171
+ - - ">="
186
172
  - !ruby/object:Gem::Version
187
- version: '3.4'
173
+ version: '0'
188
174
  type: :development
189
175
  prerelease: false
190
176
  version_requirements: !ruby/object:Gem::Requirement
191
177
  requirements:
192
- - - "~>"
178
+ - - ">="
193
179
  - !ruby/object:Gem::Version
194
- version: '3.4'
180
+ version: '0'
195
181
  - !ruby/object:Gem::Dependency
196
182
  name: rspec-collection_matchers
197
183
  requirement: !ruby/object:Gem::Requirement
@@ -234,6 +220,20 @@ dependencies:
234
220
  - - ">="
235
221
  - !ruby/object:Gem::Version
236
222
  version: '0'
223
+ - !ruby/object:Gem::Dependency
224
+ name: simplecov
225
+ requirement: !ruby/object:Gem::Requirement
226
+ requirements:
227
+ - - ">="
228
+ - !ruby/object:Gem::Version
229
+ version: '0'
230
+ type: :development
231
+ prerelease: false
232
+ version_requirements: !ruby/object:Gem::Requirement
233
+ requirements:
234
+ - - ">="
235
+ - !ruby/object:Gem::Version
236
+ version: '0'
237
237
  - !ruby/object:Gem::Dependency
238
238
  name: yard
239
239
  requirement: !ruby/object:Gem::Requirement
@@ -258,11 +258,7 @@ extra_rdoc_files: []
258
258
  files:
259
259
  - ".coveralls.yml"
260
260
  - ".gitignore"
261
- - ".hound.yml"
262
- - ".onkcop.yml"
263
261
  - ".rspec"
264
- - ".rubocop.yml"
265
- - ".tachikoma.yml"
266
262
  - ".travis.yml"
267
263
  - ".yardopts"
268
264
  - CHANGELOG.md
@@ -327,7 +323,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
327
323
  version: '0'
328
324
  requirements: []
329
325
  rubyforge_project:
330
- rubygems_version: 2.5.1
326
+ rubygems_version: 2.6.11
331
327
  signing_key:
332
328
  specification_version: 4
333
329
  summary: matrix test runner
@@ -352,4 +348,3 @@ test_files:
352
348
  - spec/support/contexts/within_spec_dir.rb
353
349
  - spec/support/contexts/within_temp_dir.rb
354
350
  - spec/support/contexts/within_temp_work_dir.rb
355
- has_rdoc:
data/.hound.yml DELETED
@@ -1,3 +0,0 @@
1
- ruby:
2
- enabled: true
3
- config_file: .rubocop.yml
@@ -1,223 +0,0 @@
1
- # target_version:
2
- # rubocop v0.37.1
3
-
4
- # 自動生成されるものはチェック対象から除外する
5
- AllCops:
6
- Exclude:
7
- - "vendor/**/*" # rubocop config/default.yml
8
- - "db/schema.rb"
9
- DisplayCopNames: true
10
-
11
- ##################### Style ##################################
12
-
13
- # レキシカルスコープの扱いが alias_method の方が自然。
14
- # https://ernie.io/2014/10/23/in-defense-of-alias/ のように
15
- # 問題になる場合は自分で緩める。
16
- Style/Alias:
17
- EnforcedStyle: prefer_alias_method
18
-
19
- # redirect_to xxx and return のイディオムを維持したい
20
- Style/AndOr:
21
- EnforcedStyle: conditionals
22
-
23
- # 日本語のコメントを許可する
24
- Style/AsciiComments:
25
- Enabled: false
26
-
27
- # do .. end から更にメソッドチェーンすると見づらいので
28
- # auto-correct せず、自分で修正する
29
- # spec 内は見た目が綺麗になるので許可
30
- Style/BlockDelimiters:
31
- AutoCorrect: false
32
- Exclude:
33
- - "spec/**/*"
34
-
35
- # option 等、明示的にハッシュにした方が分かりやすい場合もある
36
- Style/BracesAroundHashParameters:
37
- Enabled: false
38
-
39
- # scope が違うとか親 module の存在確認が必要とかデメリットはあるが、
40
- # namespace 付きのクラスはかなり頻繁に作るので簡単に書きたい。
41
- Style/ClassAndModuleChildren:
42
- Enabled: false
43
-
44
- # Style/CollectionMethods 自体は無効になっているのだが、
45
- # https://github.com/bbatsov/rubocop/issues/1084
46
- # https://github.com/bbatsov/rubocop/issues/1334
47
- # Performance/Detect がこの設定値を見るので PreferredMethods だけ変更しておく。
48
- #
49
- # デフォルト値から変えたのは
50
- # find -> detect
51
- # ActiveRecord の find と間違えやすいため
52
- # reduce -> inject
53
- # detect, reject, select と並べたときに韻を踏んでいるため。
54
- # collect -> map を維持しているのは文字数が圧倒的に少ないため。
55
- Style/CollectionMethods:
56
- PreferredMethods:
57
- detect: "detect"
58
- find: "detect"
59
- inject: "inject"
60
- reduce: "inject"
61
-
62
- # Hash#has_key? は許可したい
63
- Style/DeprecatedHashMethods:
64
- Enabled: false
65
-
66
- # ドキュメントの無い public class を許可する
67
- Style/Documentation:
68
- Enabled: false
69
-
70
- # !! のイディオムは積極的に使う
71
- Style/DoubleNegation:
72
- Enabled: false
73
-
74
- # メソッドチェーンの改行は末尾に . を入れる
75
- # REPL に貼り付けた際の暴発を防ぐため
76
- Style/DotPosition:
77
- EnforcedStyle: trailing
78
-
79
- # 明示的に else で nil を返すのは分かりやすいので許可する
80
- Style/EmptyElse:
81
- EnforcedStyle: empty
82
-
83
- # 桁揃えが綺麗にならないことが多いので migration は除外
84
- Style/ExtraSpacing:
85
- Exclude:
86
- - "db/migrate/*.rb"
87
-
88
- # いずれかに揃えるのならば `sprintf` や `format` より String#% が好きです
89
- Style/FormatString:
90
- EnforcedStyle: percent
91
-
92
- # まだ対応するには早い
93
- Style/FrozenStringLiteralComment:
94
- Enabled: false
95
-
96
- # if 文の中に 3 行程度のブロックを書くぐらいは許容した方が現実的
97
- # NOTE: https://github.com/bbatsov/rubocop/commit/29945958034db13af9e8ff385ec58cb9eb464596
98
- # の影響で、if 文の中身が 1 行の場合に警告されるようになっている。
99
- # Style/IfUnlessModifier の設定見てくれないかなぁ? (v0.36.0)
100
- Style/GuardClause:
101
- MinBodyLength: 5
102
-
103
- # rake タスクの順序の hash は rocket を許可する
104
- Style/HashSyntax:
105
- Exclude:
106
- - "**/*.rake"
107
- - "Rakefile"
108
-
109
- # 平たくしてしまうと条件のグルーピングが脳内モデルとズレやすい
110
- Style/IfInsideElse:
111
- Enabled: false
112
-
113
- # 条件式の方を意識させたい場合には後置の if/unless を使わない方が分かりやすい
114
- Style/IfUnlessModifier:
115
- Enabled: false
116
-
117
- # special_inside_parentheses (default) と比べて
118
- # * 横に長くなりづらい
119
- # * メソッド名の長さが変わったときに diff が少ない
120
- Style/IndentArray:
121
- EnforcedStyle: consistent
122
-
123
- # ({ と hash を開始した場合に ( の位置にインデントさせる
124
- # そもそも {} が必要ない可能性が高いが Style/BracesAroundHashParameters はチェックしないことにしたので
125
- Style/IndentHash:
126
- EnforcedStyle: consistent
127
-
128
- # private/protected は一段深くインデントする
129
- Style/IndentationConsistency:
130
- EnforcedStyle: rails
131
-
132
- # scope 等は複数行でも lambda ではなく ->{} で揃えた方が見た目が綺麗
133
- Style/Lambda:
134
- Enabled: false
135
-
136
- # 1_000_000 と区切り文字が 2 個以上必要になる場合のみ _ 区切りを必須にする
137
- Style/NumericLiterals:
138
- MinDigits: 7
139
-
140
- # 正規表現にマッチさせた時の特殊変数の置き換えは Regex.last_match ではなく
141
- # 名前付きキャプチャを使って参照したいので auto-correct しない
142
- Style/PerlBackrefs:
143
- AutoCorrect: false
144
-
145
- # has_ から始まるメソッドは許可する
146
- Style/PredicateName:
147
- NamePrefixBlacklist:
148
- - "is_"
149
- - "have_"
150
- NamePrefix:
151
- - "is_"
152
- - "have_"
153
-
154
- # 特に model 内において、ローカル変数とメソッド呼び出しの区別をつけた方が分かりやすい場合が多い
155
- Style/RedundantSelf:
156
- Enabled: false
157
-
158
- # 受け取り側で multiple assignment しろというのを明示
159
- Style/RedundantReturn:
160
- AllowMultipleReturnValues: true
161
-
162
- # spec 内は見た目が綺麗になるので許可
163
- Style/Semicolon:
164
- Exclude:
165
- - "spec/**/*"
166
-
167
- # * 式展開したい場合に書き換えるのが面倒
168
- # * 文章ではダブルクォートよりもシングルクォートの方が頻出する
169
- # ことから EnforcedStyle: double_quotes 推奨
170
- Style/StringLiterals:
171
- EnforcedStyle: double_quotes
172
-
173
- # auto-correct 時に Style/StringLiterals とカニバって無限ループになる (v0.28.0)
174
- Style/StringLiteralsInInterpolation:
175
- Enabled: false
176
-
177
- # いくらなんでも inject { |a, e| } は短すぎるので分かりやすい名前をつけたい
178
- Style/SingleLineBlockParams:
179
- Enabled: false
180
-
181
- # 複数行の場合はケツカンマを入れる
182
- Style/TrailingCommaInLiteral:
183
- EnforcedStyleForMultiline: comma
184
-
185
- ##################### Lint ##################################
186
-
187
- # * 同名のメソッドがある場合にローカル変数に `_` を付ける
188
- # * 一時変数として `_` を付ける
189
- # というテクニックは頻出する
190
- Lint/UnderscorePrefixedVariableName:
191
- Enabled: false
192
-
193
- # 子クラスで実装させるつもりのメソッドで引っかかるので
194
- Lint/UnusedMethodArgument:
195
- Enabled: false
196
-
197
- ##################### Metrics ##################################
198
-
199
- # 30 まではギリギリ許せる範囲だった
200
- Metrics/AbcSize:
201
- Max: 30
202
-
203
- # 6 は強すぎるので緩める
204
- Metrics/CyclomaticComplexity:
205
- Max: 10
206
-
207
- # * 警告 120文字
208
- # * 禁止 160文字
209
- # のイメージ
210
- Metrics/LineLength:
211
- Max: 160
212
- Exclude:
213
- - "db/migrate/*.rb"
214
-
215
- # 20 行超えるのは migration ファイル以外滅多に無い
216
- Metrics/MethodLength:
217
- Max: 20
218
- Exclude:
219
- - "db/migrate/*.rb"
220
-
221
- # 分岐の数。ガード句を多用しているとデフォルト 7 だと厳しい
222
- Metrics/PerceivedComplexity:
223
- Max: 8
@@ -1,10 +0,0 @@
1
- inherit_from: ".onkcop.yml"
2
-
3
- Style/WordArray:
4
- Enabled: false
5
-
6
- Metrics/AbcSize:
7
- Max: 40
8
-
9
- Metrics/MethodLength:
10
- Max: 40
@@ -1 +0,0 @@
1
- strategy: 'bundler'