changelog-notifier 1.5.1 → 1.5.2

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 154e3876df8735262e4d2cf193e53085ea4aae8cc95f0b978278d1ccdf167099
4
- data.tar.gz: e5ea0010059b2f2ddaa0cfed90f8ace817c30331e01ecba84238a6087fe27cf9
3
+ metadata.gz: 412c6856cb3c43a6db62ab6138860a60f0bd8544a7072e47ece898c657b8fbdf
4
+ data.tar.gz: 69f7ac43bffda33ca715faf377761afe3315ea678dbad66762b6afc44d70b8c2
5
5
  SHA512:
6
- metadata.gz: ca82865286d8ccb44100d257b819e40a46757450d07218c20b2018caaeaab6148204397960adaa104624ade8eba1850ae050b87d028bb06b971dd5a266d1c945
7
- data.tar.gz: 7cb19c2999a972ecc5d7507d77d0306aaeccf8ab40c92213bf3f67b63152633f704b1e1c40793b8fa9d5ca41385795736e12cc4a50ca909c965fdaa00bcdee0a
6
+ metadata.gz: 3f1e326f8ab6b784bdba3ecf956158220ef2e13a8a9e90dfc1581916b7111d495a650698dbb4b15b53ceb8011db977537dae109aede6013548158e701ef1784f
7
+ data.tar.gz: 067b24e306b67c30e574c496d5ce6422902325c82aed5b10d277f94ad58a5b8d248d53372ccd2e55544a4e806359427e02a98e5f4111251a43eb19acc5a3699a
data/CHANGELOG.md CHANGED
@@ -6,6 +6,16 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
6
6
 
7
7
  ## [Unreleased]
8
8
 
9
+
10
+ ## [1.5.2] - 2023-05-04
11
+ ### Changed
12
+ - Switches to Earthly
13
+ - Reworks the code in order to prevent passing the capistrano intance to the
14
+ Markdown parser
15
+
16
+ ### Fixes
17
+ - Typos in sentences from code and tests
18
+
9
19
  ## [1.5.1] - 2021-05-25
10
20
  ### Fixed
11
21
  - Prevents calling the `publish!` adapter's method with unconfigured adapters
@@ -42,7 +52,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
42
52
  - Slack adapter to post the changelog to a Slack channel
43
53
  - Slack formatter
44
54
 
45
- [Unreleased]: https://gitlab.com/zedtux/changelog-notifier/-/compare/v1.5.1...master
55
+ [Unreleased]: https://gitlab.com/zedtux/changelog-notifier/-/compare/v1.5.2...master
56
+ [1.5.2]: https://gitlab.com/zedtux/changelog-notifier/-/compare/v1.5.1...v1.5.2
46
57
  [1.5.1]: https://gitlab.com/zedtux/changelog-notifier/-/compare/v1.5.0...v1.5.1
47
58
  [1.5.0]: https://gitlab.com/zedtux/changelog-notifier/-/compare/v1.4.0...v1.5.0
48
59
  [1.4.0]: https://gitlab.com/zedtux/changelog-notifier/-/compare/v1.3.0...v1.4.0
data/README.md CHANGED
@@ -131,17 +131,54 @@ set :changelog_notifier_active_record_other_fields, { field1: 'ok', field2: true
131
131
  4. Tag with your version
132
132
  5. Deploy with Capistrano
133
133
 
134
- When you will deploy a tagged commit, and a matching version exists in your `CHANGELOG.md` file, a Slack post will be sent in the case the Capistrano deployment suceeded.
134
+ When you will deploy a tagged commit, and a matching version exist in your
135
+ `CHANGELOG.md` file, then a Slack post will be sent on a successful Capistrano
136
+ deployment.
135
137
 
136
138
  ## Development
137
139
 
138
- After checking out the repo, and installed [Docker](https://docs.docker.com/get-docker/), run `docker build -t $(whoami)/changelog-notifier .` to build the development Docker image. Then, run `docker run --rm --volume "$PWD":/gem $(whoami)/changelog-notifier` to run the tests. You can also run `docker run --rm -it --volume "$PWD":/gem $(whoami)/changelog-notifier bin/console` for an interactive prompt that will allow you to experiment.
140
+ This section describe how to use Docker to develop this gem, but you can also
141
+ develop the "old way" by installing Ruby and all the depedencies on you machine.
139
142
 
140
- To release a new version, update the version number in `version.rb`, and then run `docker run --rm --volume "$PWD":/gem $(whoami)/changelog-notifier release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
143
+ You need to install:
144
+ 1. [Docker](https://docs.docker.com/get-docker/)
145
+ 2. [Earthly](https://earthly.dev/get-earthly) (`Makefile` + `Dockerfile` made
146
+ easy, parallel and isolated)
147
+
148
+ After checking out the repo, you can build the Docker image using Earthly by
149
+ running the command `earthly +dev`.
150
+
151
+ Now you have 2 options:
152
+ * Run the tests using `docker-compose`
153
+ ```
154
+ docker-compose run --rm gem
155
+ ```
156
+ * Run the tests using Earthly (isolated, like on the CI, mitigating the
157
+ differences between your local machine and the CI, preventing then tests
158
+ passing on your local machine, but not on the CI)
159
+ ```
160
+ earthly --allow-privileged +rspec
161
+ ```
162
+
163
+ ## Publish a new version
164
+
165
+ 1. Update the `CHANGELOG.md` file in order to move all the updates from the
166
+ `Unlreased` section to a new version (Don't forget to update the version link
167
+ from the bottom of the `CHANGELOG.md` file)
168
+ 2. Update the `lib/changelog/notifier/version.rb` file with the same version
169
+ number
170
+ 3. Commit, tag the commit, and push
171
+ 4. Publish the new version using Earthly (Update the `RUBYGEMS_OTP`):
172
+ ```
173
+ earthly +gem --GEM_CREDENTIALS="$(cat ~/.gem/credentials)" --RUBYGEMS_OTP=123456
174
+ ```
141
175
 
142
176
  ## Contributing
143
177
 
144
- Bug reports and merge requests are welcome on Gitlab at https://gitlab.com/zedtux/changelog-notifier. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
178
+ Bug reports and merge requests are welcome on Gitlab at https://gitlab.com/zedtux/changelog-notifier.
179
+ This project is intended to be a safe, welcoming space for collaboration, and
180
+ contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org)
181
+ code of conduct.
145
182
 
146
183
  ## License
147
184
 
@@ -149,4 +186,5 @@ The gem is available as open source under the terms of the [MIT License](https:/
149
186
 
150
187
  ## Code of Conduct
151
188
 
152
- Everyone interacting in the Changelog::Notifier project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://gitlab.com/zedtux/changelog-notifier/blob/master/CODE_OF_CONDUCT.md).
189
+ Everyone interacting in the Changelog::Notifier project’s codebases,
190
+ issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://gitlab.com/zedtux/changelog-notifier/blob/master/CODE_OF_CONDUCT.md).
@@ -18,8 +18,8 @@ module Changelog
18
18
 
19
19
  notifier = instantiate_slack_notifier
20
20
 
21
- @capistrano.info "Posting #{version}'s release note in the " \
22
- "Slack #{channel} channel using the #{icon_emoji} " \
21
+ @capistrano.info "Posting #{version}'s release note to the " \
22
+ "#{channel} Slack channel using the #{icon_emoji} " \
23
23
  'emoji icon ...'
24
24
 
25
25
  notifier.post formatted_release_note
@@ -52,7 +52,7 @@ module Changelog
52
52
 
53
53
  return true if @version
54
54
 
55
- @capistrano.warn 'No version tag found from the currernt commit. ' \
55
+ @capistrano.warn 'No version tag found from the current commit. ' \
56
56
  'Skipping sending release note.'
57
57
 
58
58
  false
@@ -86,14 +86,18 @@ module Changelog
86
86
  'the application'
87
87
  )
88
88
 
89
+ warn_about_empty_changes if @release_note_hash[:changes].empty?
90
+
89
91
  true
90
92
  rescue ArgumentError => error
91
93
  @capistrano.error "Parsing CHANGELOG.md failed: #{error.message}. " \
92
94
  'Skipping sending release note.'
95
+ false
93
96
  rescue Changelog::Notifier::ReleaseNoteNotFound
94
97
  @capistrano.error 'Parsing CHANGELOG.md failed: Missing release ' \
95
- "note for version #{@version}." \
98
+ "note for version #{@version}. " \
96
99
  'Skipping sending release note.'
100
+ false
97
101
  end
98
102
 
99
103
  def run_through_adapters
@@ -110,6 +114,12 @@ module Changelog
110
114
  rescue StandardError => error
111
115
  @capistrano.error error.message
112
116
  end
117
+
118
+ def warn_about_empty_changes
119
+ @capistrano.warn 'No changes found in your CHANGELOG.md file for ' \
120
+ "the version #{@version}. " \
121
+ 'Are you using the keepachangelog.com style?'
122
+ end
113
123
  end
114
124
  end
115
125
  end
@@ -8,7 +8,7 @@ module Changelog
8
8
  class GitTagFetcher
9
9
  def self.fetch(options = {})
10
10
  output = options[:capistrano].capture(
11
- "git --git-dir #{options[:path] || '.'} tag --contains HEAD"
11
+ "git --git-dir #{options[:path] || '.git'} tag --contains HEAD"
12
12
  )
13
13
 
14
14
  return nil if output.empty?
@@ -13,19 +13,16 @@ module Changelog
13
13
  end
14
14
 
15
15
  def extract(version)
16
- version_is_valid?(version) || raise(ArgumentError, 'Invalid version')
16
+ valid_version?(version) || raise(ArgumentError, 'Invalid version')
17
17
 
18
18
  parse!
19
19
 
20
20
  version_release_note = detect_version_release_note_for(version)
21
21
  version_release_note || raise(Changelog::Notifier::ReleaseNoteNotFound)
22
22
 
23
- version_release_note_hash = create_hash_from(version_release_note)
24
-
25
- url = fetch_version_url_for(version)
26
- version_release_note_hash[:url] = url
27
-
28
- version_release_note_hash
23
+ create_hash_from(version_release_note).tap do |hash|
24
+ hash[:url] = fetch_version_url_for(version)
25
+ end
29
26
  end
30
27
 
31
28
  private
@@ -104,7 +101,7 @@ module Changelog
104
101
  @versions = @content.split(/##\s\[/)
105
102
  end
106
103
 
107
- def version_is_valid?(version)
104
+ def valid_version?(version)
108
105
  version =~ /[\d\.]+/
109
106
  end
110
107
  end
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Changelog
4
4
  module Notifier
5
- VERSION = '1.5.1'
5
+ VERSION = '1.5.2'
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: changelog-notifier
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.5.1
4
+ version: 1.5.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Guillaume Hain
8
- autorequire:
8
+ autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-05-25 00:00:00.000000000 Z
11
+ date: 2023-05-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: titleize
@@ -32,21 +32,9 @@ executables: []
32
32
  extensions: []
33
33
  extra_rdoc_files: []
34
34
  files:
35
- - ".gitignore"
36
- - ".gitlab-ci.yml"
37
- - ".rspec"
38
- - ".rubocop.yml"
39
35
  - CHANGELOG.md
40
- - CODE_OF_CONDUCT.md
41
- - Dockerfile
42
- - Gemfile
43
- - Gemfile.lock
44
- - LICENSE.txt
36
+ - LICENSE
45
37
  - README.md
46
- - Rakefile
47
- - bin/console
48
- - bin/setup
49
- - changelog-notifier.gemspec
50
38
  - lib/changelog/notifier.rb
51
39
  - lib/changelog/notifier/adapters/active_record.rb
52
40
  - lib/changelog/notifier/adapters/base.rb
@@ -61,7 +49,6 @@ files:
61
49
  - lib/changelog/notifier/git_tag_fetcher.rb
62
50
  - lib/changelog/notifier/parsers/markdown.rb
63
51
  - lib/changelog/notifier/version.rb
64
- - screenshots/changelog-notifiier_slack.png
65
52
  homepage: https://gitlab.com/zedtux/changelog-notifier
66
53
  licenses:
67
54
  - MIT
@@ -70,7 +57,7 @@ metadata:
70
57
  homepage_uri: https://gitlab.com/zedtux/changelog-notifier
71
58
  source_code_uri: https://gitlab.com/zedtux/changelog-notifier
72
59
  changelog_uri: https://gitlab.com/zedtux/changelog-notifier/-/blob/master/CHANGELOG.md
73
- post_install_message:
60
+ post_install_message:
74
61
  rdoc_options: []
75
62
  require_paths:
76
63
  - lib
@@ -85,8 +72,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
85
72
  - !ruby/object:Gem::Version
86
73
  version: '0'
87
74
  requirements: []
88
- rubygems_version: 3.1.4
89
- signing_key:
75
+ rubygems_version: 3.1.6
76
+ signing_key:
90
77
  specification_version: 4
91
78
  summary: Sends current version's release note from your CHANGELOG.md file
92
79
  test_files: []
data/.gitignore DELETED
@@ -1,15 +0,0 @@
1
- /.bundle/
2
- /.yardoc
3
- /_yardoc/
4
- /coverage/
5
- /doc/
6
- /pkg/
7
- /spec/reports/
8
- /tmp/
9
-
10
- # rspec failure tracking
11
- .rspec_status
12
-
13
- spec/tmp
14
-
15
- *.gem
data/.gitlab-ci.yml DELETED
@@ -1,30 +0,0 @@
1
- # This file is a template, and might need editing before it works on your project.
2
- docker-build-master:
3
- # Official docker image.
4
- image: docker:latest
5
- stage: build
6
- services:
7
- - docker:dind
8
- before_script:
9
- - docker login -u "$CI_REGISTRY_USER" -p "$CI_REGISTRY_PASSWORD" $CI_REGISTRY
10
- script:
11
- - docker build --pull -t "$CI_REGISTRY_IMAGE" .
12
- - docker run --rm "$CI_REGISTRY_IMAGE"
13
- - docker push "$CI_REGISTRY_IMAGE"
14
- only:
15
- - master
16
-
17
- docker-build:
18
- # Official docker image.
19
- image: docker:latest
20
- stage: build
21
- services:
22
- - docker:dind
23
- before_script:
24
- - docker login -u "$CI_REGISTRY_USER" -p "$CI_REGISTRY_PASSWORD" $CI_REGISTRY
25
- script:
26
- - docker build --pull -t "$CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG" .
27
- - docker run --rm "$CI_REGISTRY_IMAGE"
28
- - docker push "$CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG"
29
- except:
30
- - master
data/.rspec DELETED
@@ -1,3 +0,0 @@
1
- --format documentation
2
- --color
3
- --require spec_helper
data/.rubocop.yml DELETED
@@ -1,4 +0,0 @@
1
- require: rubocop-rspec
2
-
3
- Naming/RescuedExceptionsVariableName:
4
- PreferredName: error
data/CODE_OF_CONDUCT.md DELETED
@@ -1,74 +0,0 @@
1
- # Contributor Covenant Code of Conduct
2
-
3
- ## Our Pledge
4
-
5
- In the interest of fostering an open and welcoming environment, we as
6
- contributors and maintainers pledge to making participation in our project and
7
- our community a harassment-free experience for everyone, regardless of age, body
8
- size, disability, ethnicity, gender identity and expression, level of experience,
9
- nationality, personal appearance, race, religion, or sexual identity and
10
- orientation.
11
-
12
- ## Our Standards
13
-
14
- Examples of behavior that contributes to creating a positive environment
15
- include:
16
-
17
- * Using welcoming and inclusive language
18
- * Being respectful of differing viewpoints and experiences
19
- * Gracefully accepting constructive criticism
20
- * Focusing on what is best for the community
21
- * Showing empathy towards other community members
22
-
23
- Examples of unacceptable behavior by participants include:
24
-
25
- * The use of sexualized language or imagery and unwelcome sexual attention or
26
- advances
27
- * Trolling, insulting/derogatory comments, and personal or political attacks
28
- * Public or private harassment
29
- * Publishing others' private information, such as a physical or electronic
30
- address, without explicit permission
31
- * Other conduct which could reasonably be considered inappropriate in a
32
- professional setting
33
-
34
- ## Our Responsibilities
35
-
36
- Project maintainers are responsible for clarifying the standards of acceptable
37
- behavior and are expected to take appropriate and fair corrective action in
38
- response to any instances of unacceptable behavior.
39
-
40
- Project maintainers have the right and responsibility to remove, edit, or
41
- reject comments, commits, code, wiki edits, issues, and other contributions
42
- that are not aligned to this Code of Conduct, or to ban temporarily or
43
- permanently any contributor for other behaviors that they deem inappropriate,
44
- threatening, offensive, or harmful.
45
-
46
- ## Scope
47
-
48
- This Code of Conduct applies both within project spaces and in public spaces
49
- when an individual is representing the project or its community. Examples of
50
- representing a project or community include using an official project e-mail
51
- address, posting via an official social media account, or acting as an appointed
52
- representative at an online or offline event. Representation of a project may be
53
- further defined and clarified by project maintainers.
54
-
55
- ## Enforcement
56
-
57
- Instances of abusive, harassing, or otherwise unacceptable behavior may be
58
- reported by contacting the project team at zedtux@zedroot.org. All
59
- complaints will be reviewed and investigated and will result in a response that
60
- is deemed necessary and appropriate to the circumstances. The project team is
61
- obligated to maintain confidentiality with regard to the reporter of an incident.
62
- Further details of specific enforcement policies may be posted separately.
63
-
64
- Project maintainers who do not follow or enforce the Code of Conduct in good
65
- faith may face temporary or permanent repercussions as determined by other
66
- members of the project's leadership.
67
-
68
- ## Attribution
69
-
70
- This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
71
- available at [http://contributor-covenant.org/version/1/4][version]
72
-
73
- [homepage]: http://contributor-covenant.org
74
- [version]: http://contributor-covenant.org/version/1/4/
data/Dockerfile DELETED
@@ -1,60 +0,0 @@
1
- #
2
- # Builds a temporary image, with all the required dependencies used to compile
3
- # the dependencies' dependencies.
4
- # This image will be destroyed at the end of the build command.
5
- #
6
- FROM ruby:2.7-alpine3.12 AS build-env
7
-
8
- ARG GEM_ROOT=/gem
9
- ARG BUILD_PACKAGES="build-base git"
10
- ARG DEV_PACKAGES="sqlite-dev"
11
- ARG RUBY_PACKAGES="tzdata"
12
-
13
- RUN apk update && \
14
- apk upgrade && \
15
- apk add --update --no-cache $BUILD_PACKAGES \
16
- $DEV_PACKAGES \
17
- $RUBY_PACKAGES && \
18
- mkdir -p /gem/
19
-
20
- WORKDIR $GEM_ROOT
21
-
22
- COPY Gemfile* *.gemspec /gem/
23
- COPY lib/changelog/notifier/version.rb /gem/lib/changelog/notifier/version.rb
24
-
25
- RUN touch ~/.gemrc && \
26
- echo "gem: --no-ri --no-rdoc" >> ~/.gemrc && \
27
- gem install rubygems-update && \
28
- update_rubygems && \
29
- gem install bundler && \
30
- bundle install --jobs $(nproc) && \
31
- rm -rf /usr/local/bundle/cache/*.gem && \
32
- find /usr/local/bundle/gems/ -name "*.c" -delete && \
33
- find /usr/local/bundle/gems/ -name "*.o" -delete
34
-
35
- COPY . /gem/
36
-
37
- #
38
- # Builds the final image with the minimum of system packages
39
- # and copy the gem's sources, Bundler gems and Yarn packages.
40
- #
41
-
42
- FROM ruby:2.7-alpine3.12
43
-
44
- LABEL maintainer="zedtux"
45
-
46
- ARG GEM_ROOT=/gem
47
- ARG PACKAGES="git sqlite sqlite-libs tzdata"
48
-
49
- RUN apk update && \
50
- apk upgrade && \
51
- apk add --update --no-cache $PACKAGES && \
52
- mkdir -p /gem/
53
-
54
- WORKDIR $GEM_ROOT
55
-
56
- COPY --from=build-env /usr/local/bundle/ /usr/local/bundle/
57
- COPY --from=build-env $GEM_ROOT $GEM_ROOT
58
-
59
- ENTRYPOINT ["bundle", "exec"]
60
- CMD ["rake"]
data/Gemfile DELETED
@@ -1,12 +0,0 @@
1
- source 'https://rubygems.org'
2
-
3
- # Specify your gem's dependencies in changelog-notifier.gemspec
4
- gemspec
5
-
6
- gem 'activerecord', '~> 6.0'
7
- gem 'database_cleaner-active_record', '~> 1.8'
8
- gem 'rake', '~> 12.0'
9
- gem 'rspec', '~> 3.0'
10
- gem 'slack-notifier', '~> 2'
11
- gem 'sqlite3', '~> 1.4'
12
- gem 'webmock', '~> 3.9'
data/Gemfile.lock DELETED
@@ -1,75 +0,0 @@
1
- PATH
2
- remote: .
3
- specs:
4
- changelog-notifier (1.5.1)
5
- titleize (~> 1.4.1)
6
-
7
- GEM
8
- remote: https://rubygems.org/
9
- specs:
10
- activemodel (6.0.3.4)
11
- activesupport (= 6.0.3.4)
12
- activerecord (6.0.3.4)
13
- activemodel (= 6.0.3.4)
14
- activesupport (= 6.0.3.4)
15
- activesupport (6.0.3.4)
16
- concurrent-ruby (~> 1.0, >= 1.0.2)
17
- i18n (>= 0.7, < 2)
18
- minitest (~> 5.1)
19
- tzinfo (~> 1.1)
20
- zeitwerk (~> 2.2, >= 2.2.2)
21
- addressable (2.7.0)
22
- public_suffix (>= 2.0.2, < 5.0)
23
- concurrent-ruby (1.1.7)
24
- crack (0.4.4)
25
- database_cleaner (1.8.5)
26
- database_cleaner-active_record (1.8.0)
27
- activerecord
28
- database_cleaner (~> 1.8.0)
29
- diff-lcs (1.4.4)
30
- hashdiff (1.0.1)
31
- i18n (1.8.5)
32
- concurrent-ruby (~> 1.0)
33
- minitest (5.14.2)
34
- public_suffix (4.0.6)
35
- rake (12.3.3)
36
- rspec (3.9.0)
37
- rspec-core (~> 3.9.0)
38
- rspec-expectations (~> 3.9.0)
39
- rspec-mocks (~> 3.9.0)
40
- rspec-core (3.9.3)
41
- rspec-support (~> 3.9.3)
42
- rspec-expectations (3.9.2)
43
- diff-lcs (>= 1.2.0, < 2.0)
44
- rspec-support (~> 3.9.0)
45
- rspec-mocks (3.9.1)
46
- diff-lcs (>= 1.2.0, < 2.0)
47
- rspec-support (~> 3.9.0)
48
- rspec-support (3.9.3)
49
- slack-notifier (2.3.2)
50
- sqlite3 (1.4.2)
51
- thread_safe (0.3.6)
52
- titleize (1.4.1)
53
- tzinfo (1.2.7)
54
- thread_safe (~> 0.1)
55
- webmock (3.9.1)
56
- addressable (>= 2.3.6)
57
- crack (>= 0.3.2)
58
- hashdiff (>= 0.4.0, < 2.0.0)
59
- zeitwerk (2.4.0)
60
-
61
- PLATFORMS
62
- ruby
63
-
64
- DEPENDENCIES
65
- activerecord (~> 6.0)
66
- changelog-notifier!
67
- database_cleaner-active_record (~> 1.8)
68
- rake (~> 12.0)
69
- rspec (~> 3.0)
70
- slack-notifier (~> 2)
71
- sqlite3 (~> 1.4)
72
- webmock (~> 3.9)
73
-
74
- BUNDLED WITH
75
- 2.1.4
data/Rakefile DELETED
@@ -1,8 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require 'bundler/gem_tasks'
4
- require 'rspec/core/rake_task'
5
-
6
- RSpec::Core::RakeTask.new(:spec)
7
-
8
- task default: :spec
data/bin/console DELETED
@@ -1,14 +0,0 @@
1
- #!/usr/bin/env ruby
2
-
3
- require 'bundler/setup'
4
- require 'changelog/notifier'
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__)
data/bin/setup DELETED
@@ -1,8 +0,0 @@
1
- #!/usr/bin/env bash
2
- set -euo pipefail
3
- IFS=$'\n\t'
4
- set -vx
5
-
6
- bundle install
7
-
8
- # Do any other automated setup that you need to do here
@@ -1,35 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require_relative 'lib/changelog/notifier/version'
4
-
5
- Gem::Specification.new do |spec|
6
- spec.name = 'changelog-notifier'
7
- spec.version = Changelog::Notifier::VERSION
8
- spec.authors = ['Guillaume Hain']
9
- spec.email = ['zedtux@zedroot.org']
10
-
11
- spec.summary = "Sends current version's release note from your " \
12
- 'CHANGELOG.md file'
13
- spec.description = 'This gem sends the release note, extracted from your ' \
14
- 'CHANGELOG.md file, to Slack when deployin with ' \
15
- 'Capistrano'
16
- spec.homepage = 'https://gitlab.com/zedtux/changelog-notifier'
17
- spec.license = 'MIT'
18
- spec.required_ruby_version = Gem::Requirement.new('>= 2.3.0')
19
-
20
- spec.metadata['allowed_push_host'] = 'https://rubygems.org'
21
- spec.metadata['homepage_uri'] = spec.homepage
22
- spec.metadata['source_code_uri'] = 'https://gitlab.com/zedtux/changelog-notifier'
23
- spec.metadata['changelog_uri'] = 'https://gitlab.com/zedtux/changelog-notifier/-/blob/master/CHANGELOG.md'
24
-
25
- # Specify which files should be added to the gem when it is released.
26
- # The `git ls-files -z` loads the files in the RubyGem that have been added into git.
27
- spec.files = Dir.chdir(File.expand_path('..', __FILE__)) do
28
- `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
29
- end
30
- spec.bindir = 'exe'
31
- spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
32
- spec.require_paths = ['lib']
33
-
34
- spec.add_dependency 'titleize', '~> 1.4.1'
35
- end
File without changes