conventional 0.1.0.pre.alpha.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 607f364eb2453bebbd28d4c08b3dfd151bd35e79ac7d79a0d086162b43017b53
4
+ data.tar.gz: f9e0ed7ef0786f4035f854f45211e98666917274ac8053b0b4a42947b10a47e0
5
+ SHA512:
6
+ metadata.gz: 7cf841ea816111a896218e2a3c4b1852c01d7dbe484217095bbd1772e78c83a746b84ab978b63de1509131b612dd49c32c6e656c080766298a1e3e1f3092b92c
7
+ data.tar.gz: 544578248d2bc641d46d604a1d7477309e6ff682e10ed9bc007311b52f152453816724c0d5d9e974d0fcc081b94c4ffb34bc8bc04119af0a669ea37486ba8f26
data/Gemfile ADDED
@@ -0,0 +1,3 @@
1
+ source "https://rubygems.org"
2
+
3
+ gemspec
@@ -0,0 +1,107 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ conventional (0.1.0.pre.alpha.1)
5
+ dry-cli (~> 0.6.0)
6
+ dry-struct (~> 1.3.0)
7
+ gem-release (~> 2.1)
8
+
9
+ GEM
10
+ remote: https://rubygems.org/
11
+ specs:
12
+ ast (2.4.1)
13
+ bundler-audit (0.7.0.1)
14
+ bundler (>= 1.2.0, < 3)
15
+ thor (>= 0.18, < 2)
16
+ concurrent-ruby (1.1.7)
17
+ diff-lcs (1.4.4)
18
+ docile (1.3.2)
19
+ dry-cli (0.6.0)
20
+ concurrent-ruby (~> 1.0)
21
+ dry-configurable (0.11.6)
22
+ concurrent-ruby (~> 1.0)
23
+ dry-core (~> 0.4, >= 0.4.7)
24
+ dry-equalizer (~> 0.2)
25
+ dry-container (0.7.2)
26
+ concurrent-ruby (~> 1.0)
27
+ dry-configurable (~> 0.1, >= 0.1.3)
28
+ dry-core (0.4.9)
29
+ concurrent-ruby (~> 1.0)
30
+ dry-equalizer (0.3.0)
31
+ dry-inflector (0.2.0)
32
+ dry-logic (1.0.7)
33
+ concurrent-ruby (~> 1.0)
34
+ dry-core (~> 0.2)
35
+ dry-equalizer (~> 0.2)
36
+ dry-struct (1.3.0)
37
+ dry-core (~> 0.4, >= 0.4.4)
38
+ dry-equalizer (~> 0.3)
39
+ dry-types (~> 1.3)
40
+ ice_nine (~> 0.11)
41
+ dry-types (1.4.0)
42
+ concurrent-ruby (~> 1.0)
43
+ dry-container (~> 0.3)
44
+ dry-core (~> 0.4, >= 0.4.4)
45
+ dry-equalizer (~> 0.3)
46
+ dry-inflector (~> 0.1, >= 0.1.2)
47
+ dry-logic (~> 1.0, >= 1.0.2)
48
+ gem-release (2.1.1)
49
+ ice_nine (0.11.2)
50
+ parallel (1.19.2)
51
+ parser (2.7.1.4)
52
+ ast (~> 2.4.1)
53
+ rainbow (3.0.0)
54
+ rake (13.0.1)
55
+ regexp_parser (1.7.1)
56
+ rexml (3.2.4)
57
+ rspec (3.9.0)
58
+ rspec-core (~> 3.9.0)
59
+ rspec-expectations (~> 3.9.0)
60
+ rspec-mocks (~> 3.9.0)
61
+ rspec-core (3.9.2)
62
+ rspec-support (~> 3.9.3)
63
+ rspec-expectations (3.9.2)
64
+ diff-lcs (>= 1.2.0, < 2.0)
65
+ rspec-support (~> 3.9.0)
66
+ rspec-mocks (3.9.1)
67
+ diff-lcs (>= 1.2.0, < 2.0)
68
+ rspec-support (~> 3.9.0)
69
+ rspec-support (3.9.3)
70
+ rubocop (0.90.0)
71
+ parallel (~> 1.10)
72
+ parser (>= 2.7.1.1)
73
+ rainbow (>= 2.2.2, < 4.0)
74
+ regexp_parser (>= 1.7)
75
+ rexml
76
+ rubocop-ast (>= 0.3.0, < 1.0)
77
+ ruby-progressbar (~> 1.7)
78
+ unicode-display_width (>= 1.4.0, < 2.0)
79
+ rubocop-ast (0.3.0)
80
+ parser (>= 2.7.1.4)
81
+ rubocop-performance (1.8.0)
82
+ rubocop (>= 0.87.0)
83
+ ruby-progressbar (1.10.1)
84
+ simplecov (0.19.0)
85
+ docile (~> 1.1)
86
+ simplecov-html (~> 0.11)
87
+ simplecov-html (0.12.2)
88
+ standard (0.6.0)
89
+ rubocop (~> 0.90)
90
+ rubocop-performance (~> 1.8.0)
91
+ thor (1.0.1)
92
+ unicode-display_width (1.7.0)
93
+
94
+ PLATFORMS
95
+ ruby
96
+
97
+ DEPENDENCIES
98
+ bundler (~> 2.0)
99
+ bundler-audit (~> 0.6)
100
+ conventional!
101
+ rake (~> 13.0)
102
+ rspec (~> 3.9)
103
+ simplecov (~> 0.17)
104
+ standard (~> 0.6.0)
105
+
106
+ BUNDLED WITH
107
+ 2.1.4
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2020 David Barrell
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,20 @@
1
+ # Conventional
2
+
3
+ Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/conventional`. To experiment with that code, run `bin/console` for an interactive prompt.
4
+
5
+ ## Installation
6
+
7
+ Add this line to your application's Gemfile:
8
+
9
+ ```ruby
10
+ gem 'conventional'
11
+ ```
12
+
13
+ And then execute:
14
+
15
+ $ bundle install
16
+
17
+ Or install it yourself as:
18
+
19
+ $ gem install conventional
20
+
@@ -0,0 +1,6 @@
1
+ # frozen_string_literal: true
2
+
3
+ require "bundler/gem_tasks"
4
+ require "rspec/core/rake_task"
5
+
6
+ load "spec/support/tasks.rake"
@@ -0,0 +1,7 @@
1
+ #!/bin/bash
2
+ set -euo pipefail
3
+
4
+ echo "--- Running bundle audit"
5
+ bundle exec bundle-audit update
6
+
7
+ bundle exec bundle-audit check
@@ -0,0 +1,29 @@
1
+ #!/bin/sh
2
+ set -e
3
+
4
+ # TODO: set up secret
5
+
6
+ get_secret() {
7
+ aws secretsmanager get-secret-value \
8
+ --secret-id "/ca-logger-ruby/$1" \
9
+ --query SecretString |
10
+ tr -d '"' |
11
+ sed 's/\\n/\n/g'
12
+ }
13
+
14
+ echo "--- Retrieving token"
15
+ GITHUB_REGISTRY_TOKEN=$(get_secret "github-api-token") || exit $?
16
+
17
+ echo "--- Creating credentials"
18
+ echo ":github: Bearer ${GITHUB_REGISTRY_TOKEN}" >> ~/.gem/credentials
19
+ chmod 0600 ~/.gem/credentials
20
+
21
+ echo "--- Building gem"
22
+ gem build ca-logger
23
+
24
+ echo "--- Pushing gem"
25
+ gem push --key github --host https://rubygems.pkg.github.com/cultureamp ./ca-logger-*.gem
26
+
27
+ echo "--- Cleaning up"
28
+ rm ~/.gem/credentials
29
+ unset GITHUB_REGISTRY_TOKEN
@@ -0,0 +1,14 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require "bundler/setup"
4
+ require "conventional"
5
+
6
+ # You can add fixtures and/or initialization code here to make experimenting
7
+ # with your gem easier. You can also use a different console, if you like.
8
+
9
+ # (If you use this, don't forget to add pry to your Gemfile!)
10
+ # require "pry"
11
+ # Pry.start
12
+
13
+ require "irb"
14
+ IRB.start(__FILE__)
@@ -0,0 +1,6 @@
1
+ #!/bin/bash
2
+ set -euo pipefail
3
+
4
+ echo "--- Running standardrb"
5
+ bundle exec standardrb
6
+
@@ -0,0 +1,6 @@
1
+ #!/usr/bin/env bash
2
+ set -euo pipefail
3
+ IFS=$'\n\t'
4
+ set -vx
5
+
6
+ bundle install
@@ -0,0 +1,15 @@
1
+ #!/bin/sh
2
+ set -e
3
+
4
+ echo "--- Preparing"
5
+ mkdir -p coverage
6
+
7
+ echo "--- Running rspec"
8
+ export COVERAGE_THRESHOLD=95
9
+ COVERAGE=true bundle exec rake spec
10
+
11
+ echo "--- Verifying coverage"
12
+ bundle exec rake spec:verify_coverage
13
+
14
+ echo "--- :package: Compressing build output"
15
+ tar cz -f "coverage.tgz" coverage
@@ -0,0 +1,45 @@
1
+ # frozen_string_literal: true
2
+
3
+ require "rake"
4
+
5
+ lib = File.expand_path("lib", __dir__)
6
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
7
+ require "conventional/version"
8
+
9
+ Gem::Specification.new do |spec|
10
+ spec.name = "conventional"
11
+ spec.version = Conventional::VERSION.dup
12
+
13
+ spec.authors = ["David Barrell"]
14
+ spec.email = ["david@barrell.me"]
15
+ spec.licenses = "MIT"
16
+
17
+ spec.summary = "Utilities for working with conventional commits"
18
+ spec.homepage = "https://github.com/dabarrell/conventional"
19
+ spec.metadata["homepage_uri"] = spec.homepage
20
+ spec.metadata["source_code_uri"] = "https://github.com/dabarrell/conventional"
21
+ spec.required_ruby_version = Gem::Requirement.new(">= 2.3.0")
22
+
23
+ spec.files = FileList[
24
+ "exe/*",
25
+ "lib/*.rb",
26
+ "bin/*",
27
+ "[A-Z]*",
28
+ "spec/*"
29
+ ].to_a
30
+
31
+ spec.bindir = "exe"
32
+ spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
33
+ spec.require_paths = ["lib"]
34
+
35
+ spec.add_development_dependency "bundler", "~> 2.0"
36
+ spec.add_development_dependency "rake", "~> 13.0"
37
+ spec.add_development_dependency "rspec", "~> 3.9"
38
+ spec.add_development_dependency "standard", "~> 0.6.0"
39
+ spec.add_development_dependency "simplecov", "~> 0.17"
40
+ spec.add_development_dependency "bundler-audit", "~> 0.6"
41
+
42
+ spec.add_runtime_dependency "gem-release", "~> 2.1"
43
+ spec.add_runtime_dependency "dry-cli", "~> 0.6.0"
44
+ spec.add_runtime_dependency "dry-struct", "~> 1.3.0"
45
+ end
@@ -0,0 +1,8 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require "dry/cli"
4
+
5
+ $LOAD_PATH.unshift("#{__dir__}/../lib")
6
+ require "conventional"
7
+
8
+ Dry::CLI.new(Conventional::CLI).call
@@ -0,0 +1,9 @@
1
+ # frozen_string_literal: true
2
+
3
+ require "conventional/version"
4
+ require "conventional/cli"
5
+ require "conventional/utils"
6
+ require "conventional/bump"
7
+
8
+ module Conventional
9
+ end
@@ -0,0 +1,11 @@
1
+ # frozen_string_literal: true
2
+
3
+ require "bundler/setup"
4
+
5
+ require_relative "support/stdout"
6
+ require_relative "support/rspec"
7
+ require_relative "support/suite"
8
+ require_relative "support/simplecov"
9
+
10
+ suite = Test::Suite.instance
11
+ suite.start_coverage
metadata ADDED
@@ -0,0 +1,187 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: conventional
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0.pre.alpha.1
5
+ platform: ruby
6
+ authors:
7
+ - David Barrell
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2020-09-18 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: bundler
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '2.0'
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '2.0'
27
+ - !ruby/object:Gem::Dependency
28
+ name: rake
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '13.0'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '13.0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: rspec
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '3.9'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '3.9'
55
+ - !ruby/object:Gem::Dependency
56
+ name: standard
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - "~>"
60
+ - !ruby/object:Gem::Version
61
+ version: 0.6.0
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - "~>"
67
+ - !ruby/object:Gem::Version
68
+ version: 0.6.0
69
+ - !ruby/object:Gem::Dependency
70
+ name: simplecov
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - "~>"
74
+ - !ruby/object:Gem::Version
75
+ version: '0.17'
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - "~>"
81
+ - !ruby/object:Gem::Version
82
+ version: '0.17'
83
+ - !ruby/object:Gem::Dependency
84
+ name: bundler-audit
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - "~>"
88
+ - !ruby/object:Gem::Version
89
+ version: '0.6'
90
+ type: :development
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - "~>"
95
+ - !ruby/object:Gem::Version
96
+ version: '0.6'
97
+ - !ruby/object:Gem::Dependency
98
+ name: gem-release
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - "~>"
102
+ - !ruby/object:Gem::Version
103
+ version: '2.1'
104
+ type: :runtime
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - "~>"
109
+ - !ruby/object:Gem::Version
110
+ version: '2.1'
111
+ - !ruby/object:Gem::Dependency
112
+ name: dry-cli
113
+ requirement: !ruby/object:Gem::Requirement
114
+ requirements:
115
+ - - "~>"
116
+ - !ruby/object:Gem::Version
117
+ version: 0.6.0
118
+ type: :runtime
119
+ prerelease: false
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ requirements:
122
+ - - "~>"
123
+ - !ruby/object:Gem::Version
124
+ version: 0.6.0
125
+ - !ruby/object:Gem::Dependency
126
+ name: dry-struct
127
+ requirement: !ruby/object:Gem::Requirement
128
+ requirements:
129
+ - - "~>"
130
+ - !ruby/object:Gem::Version
131
+ version: 1.3.0
132
+ type: :runtime
133
+ prerelease: false
134
+ version_requirements: !ruby/object:Gem::Requirement
135
+ requirements:
136
+ - - "~>"
137
+ - !ruby/object:Gem::Version
138
+ version: 1.3.0
139
+ description:
140
+ email:
141
+ - david@barrell.me
142
+ executables:
143
+ - conventional
144
+ extensions: []
145
+ extra_rdoc_files: []
146
+ files:
147
+ - Gemfile
148
+ - Gemfile.lock
149
+ - LICENSE.txt
150
+ - README.md
151
+ - Rakefile
152
+ - bin/audit
153
+ - bin/ci_release
154
+ - bin/console
155
+ - bin/lint
156
+ - bin/setup
157
+ - bin/test
158
+ - conventional.gemspec
159
+ - exe/conventional
160
+ - lib/conventional.rb
161
+ - spec/spec_helper.rb
162
+ homepage: https://github.com/dabarrell/conventional
163
+ licenses:
164
+ - MIT
165
+ metadata:
166
+ homepage_uri: https://github.com/dabarrell/conventional
167
+ source_code_uri: https://github.com/dabarrell/conventional
168
+ post_install_message:
169
+ rdoc_options: []
170
+ require_paths:
171
+ - lib
172
+ required_ruby_version: !ruby/object:Gem::Requirement
173
+ requirements:
174
+ - - ">="
175
+ - !ruby/object:Gem::Version
176
+ version: 2.3.0
177
+ required_rubygems_version: !ruby/object:Gem::Requirement
178
+ requirements:
179
+ - - ">"
180
+ - !ruby/object:Gem::Version
181
+ version: 1.3.1
182
+ requirements: []
183
+ rubygems_version: 3.1.2
184
+ signing_key:
185
+ specification_version: 4
186
+ summary: Utilities for working with conventional commits
187
+ test_files: []