deka_eiwakun 0.2.0 → 0.3.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 77a12d23bda76fa292a4be0b7f9957c1ac5127ba
4
- data.tar.gz: 6680995f9a8f58b22ee8f4951b19f9785ee97adb
3
+ metadata.gz: b0bc816ef0976179cd08c1cb62146503666e6091
4
+ data.tar.gz: 224484378faf26678665c9212c3d29a515af81ec
5
5
  SHA512:
6
- metadata.gz: 79f1c9699702ace6dec857b12dec4b56aad89f5961ff6bd6634ad18a6f870165d2879133c21223e9e14b6272da6346224f23625d3313b2db5d544f538d58c9d8
7
- data.tar.gz: 2e9898ce27ba46133c10dd1d9c8be4100adc632c224881edc0769f555a03ccdbfadeddb49dab700a14da26d756acb9c1dc80efd0b8bb4aa30774c052f0357e34
6
+ metadata.gz: ecd3224f9fdb904f0808cb1fe91492264305e723c3359fdfe0a1de2a10c340f39ed1b0b69a1610020b41ab66ea6edb97d55be413aa622e66569ba20a27439b39
7
+ data.tar.gz: 73a04ad8686b80bce31af0dbd128c489391b6b6c6fe0decf79622211b9da26e0019aa55fb1579513cd3c19954fc6917e3a12d70d2cf15b2dbf9913d06c541b54
data/config/rubocop.yml CHANGED
@@ -26,6 +26,9 @@ Style/BlockDelimiters:
26
26
 
27
27
  FunctionalMethods:
28
28
  - map
29
+ - let
30
+ - let!
31
+ - subject
29
32
 
30
33
  Metrics/ClassLength:
31
34
  Exclude:
@@ -44,3 +47,6 @@ Metrics/AbcSize:
44
47
 
45
48
  Style/ExtraSpacing:
46
49
  Enabled: false
50
+
51
+ Style/EmptyCaseCondition:
52
+ Enabled: false
data/deka_eiwakun.gemspec CHANGED
@@ -18,7 +18,7 @@ Gem::Specification.new do |spec|
18
18
  spec.executables = spec.files.grep(%r{^exe/}) {|f| File.basename(f) }
19
19
  spec.require_paths = ['lib']
20
20
 
21
- spec.add_dependency 'rubocop', '~> 0.39.0'
21
+ spec.add_dependency 'rubocop', '~> 0.40.0'
22
22
  spec.add_development_dependency 'bundler', '~> 1.11'
23
23
  spec.add_development_dependency 'rake', '~> 10.0'
24
24
  end
@@ -1,3 +1,3 @@
1
1
  module DekaEiwakun
2
- VERSION = '0.2.0'.freeze
2
+ VERSION = '0.3.0'.freeze
3
3
  end
data/sample/sample.rb CHANGED
@@ -13,6 +13,13 @@ end
13
13
  i
14
14
  }.join
15
15
 
16
+ # RSpec で使うメソッド名
17
+ subject { self }
18
+ let(:a) { 1 }
19
+ let!(:b) {
20
+ 1 + 1
21
+ }
22
+
16
23
  # ハッシュリテラル
17
24
 
18
25
  _ = {a: 1, b: 2}
@@ -34,3 +41,13 @@ many_arg_method(
34
41
  4,
35
42
  5
36
43
  )
44
+
45
+ # 条件無し case
46
+ a = 1
47
+ b = 2
48
+ case
49
+ when a == 1 then true
50
+ when b == 2 then false
51
+ else
52
+ raise
53
+ end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: deka_eiwakun
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - eiwakun
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-04-06 00:00:00.000000000 Z
11
+ date: 2016-06-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rubocop
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: 0.39.0
19
+ version: 0.40.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: 0.39.0
26
+ version: 0.40.0
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: bundler
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -94,8 +94,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
94
94
  version: '0'
95
95
  requirements: []
96
96
  rubyforge_project:
97
- rubygems_version: 2.5.1
97
+ rubygems_version: 2.6.4
98
98
  signing_key:
99
99
  specification_version: 4
100
100
  summary: coding convention in esm
101
101
  test_files: []
102
+ has_rdoc: