fashion_police 1.2.0 → 1.2.1

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: f123f06453ace779864ec1f9118837519c374231
4
- data.tar.gz: f7a7c4f11be0fee1425f33401b1f237f9ffbf4b4
3
+ metadata.gz: 7e7f95af27004dd26dd15308769beaeb47a2d1a3
4
+ data.tar.gz: 5ef4b550cefe2e528d3aa53d12bc3b5525427666
5
5
  SHA512:
6
- metadata.gz: def8b02e900bc7bafdcf65b445dc8823979817e54939b0ceb79e2736bf3bd45c8b4550f186edb4d396d7e7d341e57a9d1de350994c084bdda59d5db63e4b8afa
7
- data.tar.gz: 8c36fc28e8bf193a3265e4bce051ef0b5a25f6c7d58f420ea94752780a24a65f60d59ca24baeedbd7382a7d935be0a5a2658e5a1f33e76ce24bca62e75173cc3
6
+ metadata.gz: 64ac7352144e515a3a86451815dde4b2f4c8f5a81661f747efa165cdda54d5b4c34e69e1472c94630a03730374319c892e6374fae8839f192916b55e8fbf75b9
7
+ data.tar.gz: 284e98fbb36ecd37d8f94ccf1e1e6b0a299509e8f7e7ce9af6a4d208bc15303fafc92c01c5725c82347ec3a455c170c69ddd03f58c1e5a1e6f95f683807dcae9
data/.rubocop.yml CHANGED
@@ -28,6 +28,11 @@ Style/TrailingCommaInHashLiteral:
28
28
  Layout/MultilineMethodCallIndentation:
29
29
  EnforcedStyle: indented
30
30
 
31
+ # Allow empty lines around blocks in specs.
32
+ Layout/EmptyLinesAroundBlockBody:
33
+ Exclude:
34
+ - spec/**/*
35
+
31
36
  # Allow not adding parentheses around blocks in DSLs.
32
37
  # E.g.:
33
38
  # expect { … }.to change { … }
@@ -61,6 +66,7 @@ Metrics/BlockLength:
61
66
  - "**/*/spec/**/*"
62
67
  - lib/tasks/**/*
63
68
  - app/admin/**/*
69
+ - config/routes.rb
64
70
  ExcludedMethods:
65
71
  - included
66
72
 
@@ -95,11 +101,22 @@ Rails/SkipsModelValidations:
95
101
  Rails/CreateTableWithTimestamps:
96
102
  Enabled: false
97
103
 
104
+ # Allow `let!` to setup test data in specs.
105
+ RSpec/LetSetup:
106
+ Enabled: false
107
+
108
+ # Allow a nesting of up to 4 of describe/context blocks (default is 3).
109
+ RSpec/NestedGroups:
110
+ Max: 4
111
+
112
+ # Allow any number of expectations in an example, for performance.
113
+ RSpec/MultipleExpectations:
114
+ Enabled: false
115
+
98
116
  # Allow template token "%{foo}" since they are used in translation keys.
99
117
  Style/FormatStringToken:
100
118
  EnforcedStyle: template
101
119
 
102
- # Do not prefer `lambda` to `->` for DSLs.
120
+ # Prefer `->` to `lambda`.
103
121
  Style/Lambda:
104
- Exclude:
105
- - app/graph/**/*
122
+ EnforcedStyle: literal
data/CHANGELOG.md CHANGED
@@ -1,8 +1,17 @@
1
- Gem updates
2
- ===========
1
+ Rubocop Gem updates
2
+ ===================
3
3
 
4
4
  ## unreleased
5
5
 
6
+ ## v1.2.1
7
+
8
+ Fixes:
9
+ - Prefer `->` to `lambda`.
10
+ - Fix `Max` option name for `RSpec/NestedGroups`.
11
+ - Update rules for RSpec.
12
+ - Disable `RSpec/MultipleExpectations`.
13
+ - Disable `Layout/EmptyLinesAroundBlockBody` for specs.
14
+
6
15
  ## v1.2.0
7
16
 
8
17
  Features:
data/README.md CHANGED
@@ -30,54 +30,6 @@ inherit_gem:
30
30
 
31
31
  Follow Airbnb's [JavaScript](https://github.com/airbnb/javascript) guide.
32
32
 
33
- ### React Component layout
34
-
35
- * <a name="component-layout--auto-close-component"></a><a name="1.1"></a>
36
- [1.1](#component-layout--auto-close-component)
37
- **Auto close component**
38
-
39
- The layout should be like this:
40
-
41
- ```jsx
42
- // bad
43
- <Component foo="bar"
44
- bar="foo" />
45
-
46
- // good
47
- <Component
48
- foo="bar"
49
- bar="foo"
50
- />
51
- ```
52
-
53
- * <a name="component-layout--block-component"></a><a name="1.2"></a>
54
- [1.2](#component-layout--block-component)
55
- **Block component**
56
-
57
- The layout should be like this:
58
-
59
- ```jsx
60
- // bad
61
- <Component foo="bar"
62
- bar="foo">
63
- Lorem ipsum dolor…
64
- </Component>
65
-
66
- <Component
67
- foo="bar"
68
- bar="foo">
69
- Lorem ipsum dolor…
70
- </Component>
71
-
72
- // good
73
- <Component
74
- foo="bar"
75
- bar="foo"
76
- >
77
- Lorem ipsum dolor…
78
- </Component>
79
- ```
80
-
81
33
  ## CSS
82
34
 
83
35
  Follow Airbnb's [CSS](https://github.com/airbnb/css) guide.
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |spec|
2
2
  spec.name = 'fashion_police'
3
- spec.version = '1.2.0'
3
+ spec.version = '1.2.1'
4
4
  spec.authors = ['Sunny Ripert']
5
5
  spec.email = ['sunny.ripert@kisskissbankbank.com']
6
6
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fashion_police
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.0
4
+ version: 1.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sunny Ripert
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-09-24 00:00:00.000000000 Z
11
+ date: 2018-10-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rubocop
@@ -78,7 +78,6 @@ files:
78
78
  - ".ruby-version"
79
79
  - CHANGELOG.md
80
80
  - Gemfile
81
- - Gemfile.lock
82
81
  - LICENSE
83
82
  - README.md
84
83
  - Rakefile
data/Gemfile.lock DELETED
@@ -1,41 +0,0 @@
1
- PATH
2
- remote: .
3
- specs:
4
- fashion_police (1.1.1)
5
- bundler
6
- rake
7
- rubocop (>= 0.59)
8
- rubocop-rspec
9
-
10
- GEM
11
- remote: https://rubygems.org/
12
- specs:
13
- ast (2.4.0)
14
- jaro_winkler (1.5.1)
15
- parallel (1.12.1)
16
- parser (2.5.1.2)
17
- ast (~> 2.4.0)
18
- powerpack (0.1.2)
19
- rainbow (3.0.0)
20
- rake (12.3.1)
21
- rubocop (0.59.0)
22
- jaro_winkler (~> 1.5.1)
23
- parallel (~> 1.10)
24
- parser (>= 2.5, != 2.5.1.1)
25
- powerpack (~> 0.1)
26
- rainbow (>= 2.2.2, < 4.0)
27
- ruby-progressbar (~> 1.7)
28
- unicode-display_width (~> 1.0, >= 1.0.1)
29
- rubocop-rspec (1.29.1)
30
- rubocop (>= 0.58.0)
31
- ruby-progressbar (1.10.0)
32
- unicode-display_width (1.4.0)
33
-
34
- PLATFORMS
35
- ruby
36
-
37
- DEPENDENCIES
38
- fashion_police!
39
-
40
- BUNDLED WITH
41
- 1.16.4