alpinelab-codestyle 0.5.0 → 0.6.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
  SHA256:
3
- metadata.gz: f07f362209bb2d9d6e67f9df72e21966535fa712db410d21c6ccccfece66396e
4
- data.tar.gz: 316e513c3db3657a789ae5b8aa193e2a5390f8f2224d3f7b837a0d91170cc9dd
3
+ metadata.gz: df92749117f00caaa06ab7ce13f143e336b7b620b1d99b375082fe6fee725549
4
+ data.tar.gz: 035d39d77a6f48ecf2036a75bfc2c4b00f9f89a17ebbcdda98bda95b8691c465
5
5
  SHA512:
6
- metadata.gz: ea305f782843f141a9717734839b9f47e5380c79891d11b96bd2c204ad2510a6be2f216c6e55fb2989f23b518c7b95d0ee9fb220ae8904180397348bc6283a30
7
- data.tar.gz: 1a4a2f384e8bee32605210b2644c0860364adc48b4d6a6eecd53249366489888141a45db15e83dd2a3b657c372a0c4c2927712527d4e7c28d2d8a5928d15069e
6
+ metadata.gz: ed3bb86a26ce51679a20a27c5ece2dbbcb3c66c66640b79804d7753fedb482139df43aaafadde262cd28e56281dcb3a9354ad4dec211af9226815775d41d4803
7
+ data.tar.gz: e6500e31dae61db2f646991d75f6de6d61b9c62e249d05187224a3faf4610a06cf59404bd588aea08ba5e53bc451f061e74862d585d7f089595a4849c80f4fd1
data/README.md CHANGED
@@ -56,6 +56,25 @@ Some conventions are adopted and enforced, in no particular order:
56
56
 
57
57
  * `config/database.yml`
58
58
 
59
+ ## Releases
60
+
61
+ To release this very gem:
62
+
63
+ 1. Bump its version number in
64
+ [`lib/alpine_lab/code_style/version.rb`](lib/alpine_lab/code_style/version.rb)
65
+ according to [Semantic Versioning 2.0.0](https://semver.org/spec/v2.0.0.html)
66
+
67
+ 2. Use Bundler Rake task to build, tag and push the gem:
68
+
69
+ ```shell
70
+ rake release
71
+ ```
72
+
73
+ _(with Docker, you need to have configured both
74
+ [Git authentication](https://github.com/alpinelab/docker-ruby-dev/blob/latest/RECIPES.md#git-authentication)
75
+ and [Rubygems authentication](https://github.com/alpinelab/docker-ruby-dev/blob/latest/RECIPES.md#rubygems-authentication)
76
+ then you can run the same command with `docker-compose run app rake release`)_
77
+
59
78
  ## License
60
79
 
61
80
  This project is developed by [Alpine Lab](https://www.alpine-lab.com) and released under the terms of the [MIT license](LICENSE.md).
data/config/default.yml CHANGED
@@ -1,11 +1,20 @@
1
1
  Layout/AccessModifierIndentation:
2
2
  EnforcedStyle: outdent
3
3
 
4
+ Layout/AlignParameters:
5
+ EnforcedStyle: with_fixed_indentation
6
+
7
+ Layout/EmptyLineAfterGuardClause:
8
+ Enabled: false
9
+
10
+ Layout/EmptyLineAfterMagicComment:
11
+ Enabled: false
12
+
4
13
  Layout/EndAlignment:
5
14
  EnforcedStyleAlignWith: start_of_line
6
15
 
7
- Layout/AlignParameters:
8
- EnforcedStyle: with_fixed_indentation
16
+ Layout/SpaceInLambdaLiteral:
17
+ EnforcedStyle: require_space
9
18
 
10
19
  Metrics:
11
20
  Exclude:
@@ -35,6 +44,9 @@ Style/Documentation:
35
44
  Style/DoubleNegation:
36
45
  Enabled: false
37
46
 
47
+ Style/Lambda:
48
+ EnforcedStyle: literal
49
+
38
50
  Style/StringLiterals:
39
51
  EnforcedStyle: double_quotes
40
52
 
data/config/rails.yml CHANGED
@@ -3,8 +3,13 @@ Rails:
3
3
 
4
4
  AllCops:
5
5
  Exclude:
6
+ - Rakefile
6
7
  - bin/*
7
8
  - config/boot.rb
8
9
  - config/environment.rb
9
10
  - config/environments/**/*.rb
10
- - db/*
11
+ - db/**/*
12
+
13
+ Metrics/BlockLength:
14
+ Exclude:
15
+ - config/routes.rb
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: alpinelab-codestyle
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
4
+ version: 0.6.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - AlpineLab developers
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-09-27 00:00:00.000000000 Z
11
+ date: 2018-10-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler