rubocop_coffeeandcode 0.0.1.beta2 → 0.0.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
  SHA256:
3
- metadata.gz: 8777dd4e953fafa36429ca107aa3b372a8cfad497a984db4861a4e90ebe32276
4
- data.tar.gz: a2bb8f68ed1a1dfbd0e314594459219d52518580d862b447b4dbfb9b424ab6d6
3
+ metadata.gz: 32ced71b33f60a97b38905bf0c76e325a202abba941b87cdffa887e34d7a7b7e
4
+ data.tar.gz: 16700dc8b9e23a0e9b322239fad798450f87a47917586876a1003140148d79d4
5
5
  SHA512:
6
- metadata.gz: ae0681bf74be8fc2d7d1ae93dbd9762cc578787e55200f1f86401e2a0f4b746bc1b2f514dacc89754263837f1f5e604c1ca8c5fa635d05c27f6872c9ce103dc4
7
- data.tar.gz: c8051df6bd1a84ba7eb3c889d77ab5ce5bab9e3bcb9af565d74065f2b587a2d82c517e7088eeea82ff60ceb108cae9c72964c09b1c704bb1e58f5b2cddacef13
6
+ metadata.gz: 2ad90a3439598e1c8ea8e8d90ebe2afc04d7a42dd12d2f07429c0e0c4039dcdeac9321898644fb225d251c2f845214c8a1ea380172b3cffa6ca5a7e6d509efe7
7
+ data.tar.gz: f436f8d823b826d620b6b5644faa7dc3346d5440887964902a48940f0f5756cb21905fadddabae769c37f36ce3114bffbba1ee6b54da9d2e6283b4f352875656
Binary file
data.tar.gz.sig CHANGED
Binary file
@@ -5,6 +5,18 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
5
5
 
6
6
  ## [unreleased]
7
7
 
8
+ ## [0.0.1] - 2018-04-20
9
+
10
+ ### Added
11
+
12
+ * Info about `inherit_mode` to allow exclusions from included configs.
13
+ * New `bin/release` script to make sure tests are ran before release.
14
+ * Add git commit with checksums as part of release task.
15
+
16
+ ### Changed
17
+
18
+ * Increase max line length to 120 characters from 100.
19
+
8
20
  ## [0.0.1.beta2] - 2018-03-24
9
21
 
10
22
  ### Fixed
@@ -19,6 +31,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
19
31
 
20
32
  * Initial version of the gem.
21
33
 
22
- [unreleased]: https://github.com/CoffeeAndCode/rubocop_coffeeandcode/compare/v0.0.1.beta2...HEAD
34
+ [unreleased]: https://github.com/CoffeeAndCode/rubocop_coffeeandcode/compare/v0.0.1...HEAD
35
+ [0.0.1]: https://github.com/CoffeeAndCode/rubocop_method_order/compare/v0.0.1.beta1...v0.0.1
23
36
  [0.0.1.beta2]: https://github.com/CoffeeAndCode/rubocop_method_order/compare/v0.0.1.beta1...v0.0.1.beta2
24
37
  [0.0.1.beta1]: https://github.com/CoffeeAndCode/rubocop_coffeeandcode/releases/tag/v0.0.1.beta1
data/README.md CHANGED
@@ -15,7 +15,9 @@ gem cert --add <(curl -Ls https://raw.github.com/CoffeeAndCode/rubocop_coffeeand
15
15
  Then, add this line to your application's Gemfile:
16
16
 
17
17
  ```ruby
18
- gem 'rubocop_coffeeandcode'
18
+ group :development, :test do
19
+ gem 'rubocop_coffeeandcode'
20
+ end
19
21
  ```
20
22
 
21
23
  And then execute:
@@ -39,7 +41,11 @@ inherit_gem:
39
41
  - config/default.yml
40
42
  - config/rails.yml
41
43
 
42
- # the rest of your customized config...
44
+ inherit_mode:
45
+ merge:
46
+ - Exclude
47
+
48
+ # the rest of your app's custom config...
43
49
  ```
44
50
 
45
51
  ## Development
@@ -53,10 +59,16 @@ To install this gem onto your local machine, run `bundle exec rake install`.
53
59
  Make sure that the project has no errors when running `bundle exec rake` which
54
60
  will run `rubocop` on the project source and `bundle exec rake test`.
55
61
 
56
- To release a new version, update the version number in `lib/rubocop_coffeeandcode/version.rb` and run `bundle exec rake release`, which will create a git tag for the version, push
57
- git commits and tags, and push the `.gem` file to [rubygems.org][2].
58
- Afterwards, a new checksum will be generated for the gem which should
59
- be added to the `master` branch.
62
+ To release a new version, update the version number in `lib/rubocop_coffeeandcode/version.rb` and run `bin/release`, which will do
63
+ the following:
64
+
65
+ * run tests
66
+ * run linters
67
+ * create a git tag for the version
68
+ * push git commits and tags
69
+ * push the `.gem` file to [rubygems.org][2]
70
+ * create checksums of new version
71
+ * create new git commit that adds new checksum files to the repo
60
72
 
61
73
  ## Contributing
62
74
 
data/Rakefile CHANGED
@@ -11,19 +11,24 @@ Rake::TestTask.new(:test) do |t|
11
11
  end
12
12
  RuboCop::RakeTask.new
13
13
 
14
- Rake::Task['release'].enhance do
14
+ task default: [:test, :rubocop]
15
+
16
+ desc 'Generate checksum files for current gem version.'
17
+ task :checksum do |_task|
15
18
  require 'digest/sha2'
16
19
  require_relative './lib/rubocop_coffeeandcode/version'
17
20
 
18
- built_gem_path = "pkg/rubocop_coffeeandcode-#{RuboCopCoffeeAndCode.gem_version}.gem"
21
+ gem_filename = "rubocop_coffeeandcode-#{RuboCopCoffeeAndCode.gem_version}.gem"
22
+ built_gem_path = "pkg/#{gem_filename}"
19
23
 
20
24
  checksum = Digest::SHA256.new.hexdigest(File.read(built_gem_path))
21
- checksum_path = "checksums/rubocop_coffeeandcode-#{RuboCopCoffeeAndCode.gem_version}.gem.sha256"
25
+ checksum_path = "checksums/#{gem_filename}.sha256"
22
26
  File.open(checksum_path, 'w') { |file| file.write(checksum) }
23
27
 
24
28
  checksum = Digest::SHA512.new.hexdigest(File.read(built_gem_path))
25
- checksum_path = "checksums/rubocop_coffeeandcode-#{RuboCopCoffeeAndCode.gem_version}.gem.sha512"
29
+ checksum_path = "checksums/#{gem_filename}.sha512"
26
30
  File.open(checksum_path, 'w') { |file| file.write(checksum) }
27
- end
28
31
 
29
- task default: [:test, :rubocop]
32
+ `git add checksums/#{gem_filename}*`
33
+ `git commit -m 'Add checksums for v#{RuboCopCoffeeAndCode.gem_version}'`
34
+ end
@@ -0,0 +1,8 @@
1
+ #!/usr/bin/env bash
2
+ set -euo pipefail
3
+ IFS=$'\n\t'
4
+ set -vx
5
+
6
+ bundle exec rake
7
+ bundle exec rake release
8
+ bundle exec rake checksum
@@ -19,7 +19,7 @@ Metrics/ClassLength:
19
19
  - test/**/*_test.rb
20
20
 
21
21
  Metrics/LineLength:
22
- Max: 100
22
+ Max: 120
23
23
 
24
24
  Metrics/MethodLength:
25
25
  Exclude:
@@ -12,7 +12,7 @@ module RuboCopCoffeeAndCode
12
12
  MAJOR = 0
13
13
  MINOR = 0
14
14
  PATCH = 1
15
- PRE = 'beta2'
15
+ PRE = nil
16
16
 
17
17
  STRING = [MAJOR, MINOR, PATCH, PRE].compact.join('.')
18
18
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rubocop_coffeeandcode
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1.beta2
4
+ version: 0.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jonathan Knapp
@@ -34,7 +34,7 @@ cert_chain:
34
34
  XxvXYAfIUSbb6/CHtemZT4zsEprRuk8eADIYUTMyAt9d2roTcsRKgq20m+PZO+b+
35
35
  DVnSbPSTRxaM+9Hds4CAzdoo5hIiLyvSXSqSRGgQEMT0yiFdK+6kRw==
36
36
  -----END CERTIFICATE-----
37
- date: 2018-03-24 00:00:00.000000000 Z
37
+ date: 2018-04-20 00:00:00.000000000 Z
38
38
  dependencies:
39
39
  - !ruby/object:Gem::Dependency
40
40
  name: rubocop
@@ -121,6 +121,7 @@ files:
121
121
  - README.md
122
122
  - Rakefile
123
123
  - bin/console
124
+ - bin/release
124
125
  - bin/setup
125
126
  - certs/coffeeandcode.pem
126
127
  - config/default.yml
@@ -144,9 +145,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
144
145
  version: 2.4.0
145
146
  required_rubygems_version: !ruby/object:Gem::Requirement
146
147
  requirements:
147
- - - ">"
148
+ - - ">="
148
149
  - !ruby/object:Gem::Version
149
- version: 1.3.1
150
+ version: '0'
150
151
  requirements: []
151
152
  rubyforge_project:
152
153
  rubygems_version: 2.7.3
metadata.gz.sig CHANGED
Binary file