shaped 0.8.0 → 0.8.2

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: 9a84f7dd70b2d40e32d1dde68014ec240d1681ef75f9c111d7ef52943a99cbab
4
- data.tar.gz: bf55523db329247de28c8140a8b4e06392879b6893649bf5de3e4c5da206bbde
3
+ metadata.gz: 6143eccfe138c04a8f24b48656b48782cd73a7f2718e5a318e8e2324cc789457
4
+ data.tar.gz: 57add2258d7c1645da116791e3a758e25adc526d270b1ed634d845c91f2972d8
5
5
  SHA512:
6
- metadata.gz: 72652921092823a183d70edad881be6e3ad881c5c443ce9b2513b54975e6acda118716ed35e597c3414cfdd40ed0cf93ee884d4429c5f4dce445a254dcfa30de
7
- data.tar.gz: 0d6e6d2951c4885cf22389da5805211f1410c48b442183067fa862218a967b380e112971f63c08c5e4842723ca77517ebaf4ff3fe7b8b348e0dcc23a8d265fe8
6
+ metadata.gz: e2758a27c09aebe1834d6c7d31568bd13a92ad33cefa841159bd57b0d85576132c997e078d51c3b513ec0f53db32cfc4a6ddca12e89e2587862eac86904b328b
7
+ data.tar.gz: 994f60c94a7417c08e9b4e3c42038e3cc2e43d180eb39c574a5d89ef3fee14503f2cb0fc1a0b54e28e329f6e9d82cdecdcf7a9a5d9dcc6ad724131d0fa5d4d06
@@ -0,0 +1,3 @@
1
+ ---
2
+ git: true
3
+ rubygems: true
data/CHANGELOG.md CHANGED
@@ -1,3 +1,11 @@
1
+ ## v0.8.2 (2021-02-01)
2
+ ### Internal
3
+ - Update release_assistant
4
+
5
+ ## v0.8.1 (2021-02-01)
6
+ ### Internal
7
+ - Use `release_assistant` gem to manage the release process
8
+
1
9
  ## v0.8.0 (2021-01-31)
2
10
  ### Added
3
11
  - Accept `Method` as a `Callable` shape definition
data/Gemfile CHANGED
@@ -15,6 +15,10 @@ group :development, :test do
15
15
  gem 'runger_style', github: 'davidrunger/runger_style', require: false
16
16
  end
17
17
 
18
+ group :development do
19
+ gem 'release_assistant', require: false, github: 'davidrunger/release_assistant'
20
+ end
21
+
18
22
  group :test do
19
23
  gem 'codecov', require: false
20
24
  gem 'guard-espect', require: false, github: 'davidrunger/guard-espect'
data/Gemfile.lock CHANGED
@@ -7,16 +7,26 @@ GIT
7
7
  guard-compat (~> 1.1)
8
8
  rspec (>= 2.99.0, < 4.0)
9
9
 
10
+ GIT
11
+ remote: https://github.com/davidrunger/release_assistant.git
12
+ revision: a3d2011880ff9ae6cc08afc9a59050cd33790df5
13
+ specs:
14
+ release_assistant (0.3.2.alpha)
15
+ activesupport (~> 6.0)
16
+ colorize (~> 0.8)
17
+ memoist (~> 0.16)
18
+ slop (~> 4.8)
19
+
10
20
  GIT
11
21
  remote: https://github.com/davidrunger/runger_style.git
12
- revision: ba2f3c3600bd393a3141a4883489ac15e19dbfd0
22
+ revision: bfa1eb8c633b60cb41fcd47627dcce5ca4f5ca59
13
23
  specs:
14
- runger_style (0.2.15)
24
+ runger_style (0.2.17.alpha)
15
25
 
16
26
  PATH
17
27
  remote: .
18
28
  specs:
19
- shaped (0.8.0)
29
+ shaped (0.8.2)
20
30
  activemodel (~> 6.0)
21
31
  activesupport (~> 6.0)
22
32
 
@@ -32,11 +42,12 @@ GEM
32
42
  tzinfo (~> 2.0)
33
43
  zeitwerk (~> 2.3)
34
44
  amazing_print (1.2.2)
35
- ast (2.4.1)
45
+ ast (2.4.2)
36
46
  byebug (11.1.3)
37
- codecov (0.4.0)
47
+ codecov (0.4.2)
38
48
  simplecov (>= 0.15, < 0.22)
39
49
  coderay (1.1.3)
50
+ colorize (0.8.1)
40
51
  concurrent-ruby (1.1.8)
41
52
  diff-lcs (1.4.4)
42
53
  docile (1.3.5)
@@ -52,12 +63,13 @@ GEM
52
63
  shellany (~> 0.0)
53
64
  thor (>= 0.18.1)
54
65
  guard-compat (1.2.1)
55
- i18n (1.8.7)
66
+ i18n (1.8.8)
56
67
  concurrent-ruby (~> 1.0)
57
68
  listen (3.2.1)
58
69
  rb-fsevent (~> 0.10, >= 0.10.3)
59
70
  rb-inotify (~> 0.9, >= 0.9.10)
60
71
  lumberjack (1.2.5)
72
+ memoist (0.16.2)
61
73
  method_source (1.0.0)
62
74
  minitest (5.14.3)
63
75
  nenv (0.3.0)
@@ -93,7 +105,7 @@ GEM
93
105
  diff-lcs (>= 1.2.0, < 2.0)
94
106
  rspec-support (~> 3.10.0)
95
107
  rspec-support (3.10.1)
96
- rubocop (1.8.1)
108
+ rubocop (1.9.1)
97
109
  parallel (~> 1.10)
98
110
  parser (>= 3.0.0.0)
99
111
  rainbow (>= 2.2.2, < 4.0)
@@ -102,7 +114,7 @@ GEM
102
114
  rubocop-ast (>= 1.2.0, < 2.0)
103
115
  ruby-progressbar (~> 1.7)
104
116
  unicode-display_width (>= 1.4.0, < 3.0)
105
- rubocop-ast (1.4.0)
117
+ rubocop-ast (1.4.1)
106
118
  parser (>= 2.7.1.5)
107
119
  rubocop-performance (1.9.2)
108
120
  rubocop (>= 0.90.0, < 2.0)
@@ -118,6 +130,7 @@ GEM
118
130
  simplecov_json_formatter (~> 0.1)
119
131
  simplecov-html (0.12.3)
120
132
  simplecov_json_formatter (0.1.2)
133
+ slop (4.8.2)
121
134
  thor (1.0.1)
122
135
  tzinfo (2.0.4)
123
136
  concurrent-ruby (~> 1.0)
@@ -133,6 +146,7 @@ DEPENDENCIES
133
146
  guard-espect!
134
147
  pry-byebug
135
148
  rake
149
+ release_assistant!
136
150
  rspec
137
151
  rubocop
138
152
  rubocop-performance
data/README.md CHANGED
@@ -402,14 +402,15 @@ rake install`.
402
402
 
403
403
  # For maintainers
404
404
 
405
- To release a new version:
406
- 1. check out the `master` branch
407
- 2. update `CHANGELOG.md`
408
- 3. update the version number in `version.rb`
409
- 4. `bundle install` (which will update `Gemfile.lock`)
410
- 5. commit the changes with a message like `Prepare to release v0.1.1`
411
- 6. run `bin/release` (which will create a git tag for the version, push git commits and
412
- tags to GitHub, and push the gem to RubyGems)
405
+ To release a new version, run `bin/release` with an appropriate `--type` option, e.g.:
406
+
407
+ ```
408
+ bin/release --type minor
409
+ ```
410
+
411
+ (This uses the [`release_assistant` gem][release_assistant].)
412
+
413
+ [release_assistant]: https://github.com/davidrunger/release_assistant/
413
414
 
414
415
  # License
415
416
 
data/bin/release CHANGED
@@ -1,16 +1,29 @@
1
- #!/usr/bin/env bash
2
- set -euo pipefail
1
+ #!/usr/bin/env ruby
2
+ # frozen_string_literal: true
3
3
 
4
- BRANCH=$(git rev-parse --abbrev-ref HEAD)
5
- if [[ "$BRANCH" != "master" ]]; then
6
- echo "Aborting release! Not on master. Current branch is '$BRANCH'.";
7
- exit 1;
8
- fi
4
+ #
5
+ # This file was generated by Bundler.
6
+ #
7
+ # The application 'release' is installed as part of a gem, and
8
+ # this file is here to facilitate running it.
9
+ #
9
10
 
10
- COMMIT_MESSAGE=$(git log --format=%B -n 1)
11
- if ! [[ $COMMIT_MESSAGE =~ ^Prepare[[:space:]]to[[:space:]]release[[:space:]]v[0-9]+\.[0-9]+\.[0-9]+$ ]]; then
12
- echo "Aborting release! Commit message is improperly formatted. Commit message is '$COMMIT_MESSAGE'.";
13
- exit 1;
14
- fi
11
+ require 'pathname'
12
+ ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile',
13
+ Pathname.new(__FILE__).realpath)
15
14
 
16
- bundle exec rake release
15
+ bundle_binstub = File.expand_path('bundle', __dir__)
16
+
17
+ if File.file?(bundle_binstub)
18
+ if /This file was generated by Bundler/.match?(File.read(bundle_binstub, 300))
19
+ load(bundle_binstub)
20
+ else
21
+ abort("Your `bin/bundle` was not generated by Bundler, so this binstub cannot run.
22
+ Replace `bin/bundle` by running `bundle binstubs bundler --force`, then run this command again.")
23
+ end
24
+ end
25
+
26
+ require 'rubygems'
27
+ require 'bundler/setup'
28
+
29
+ load Gem.bin_path('release_assistant', 'release')
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Shaped
4
- VERSION = '0.8.0'
4
+ VERSION = '0.8.2'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: shaped
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.0
4
+ version: 0.8.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Runger
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-02-01 00:00:00.000000000 Z
11
+ date: 2021-02-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activemodel
@@ -47,6 +47,7 @@ extra_rdoc_files: []
47
47
  files:
48
48
  - ".github/workflows/ruby.yml"
49
49
  - ".gitignore"
50
+ - ".release_assistant.yml"
50
51
  - ".rspec"
51
52
  - ".rubocop.yml"
52
53
  - ".ruby-version"