danger-changelog 0.6.1 → 0.7.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: 11af2b5d7acdef3916a5d3804da6d6b3cb0b881132e5cf3fadabd562823987a5
4
- data.tar.gz: 4dd589ec527ba8cc88326749593652e296ee908b982674a3402f7b521d74dfb3
3
+ metadata.gz: 03270bfff2f0983bbf17c710358dfb6850d727f28afa131593deaed8c6824c0f
4
+ data.tar.gz: 8723e715d8f3f357e3d72d8e181c3d9174085de6c32ea79a87fbdbcf61160085
5
5
  SHA512:
6
- metadata.gz: c2ea9affac3dda11f80eb7622c2e405efc0508f257e6afac328312a7ab238df755975c285b73e23c9d1cd77bdf7487f02b581d0b161c329473f99dfbb8bdece7
7
- data.tar.gz: 927698782c171ac595a8fde12380ac7cbe8097d18018060d3821304b0ab0dd2d26baba9af561c8b275cc8423d1f53ba75b4deba072d2f21a5245a5a5689c9d8a
6
+ metadata.gz: 21fe62c2ce3142983ad12dcdee2dca0e3e1246ed376924619dba25151bd4556608f978d1e1b2225a9cfc5ae548eca5302e48a589b1e70711fafc01f759a09d2e
7
+ data.tar.gz: 02c819d7ec4819b83c76c146778beb44f9a9c716726113d41d5cbaee70523ca91ed0c137b5dd92c52540b34a1e24faaa8dab846f73ea72c4cbd73a99e2232d22
@@ -0,0 +1,23 @@
1
+ name: Danger
2
+ on:
3
+ pull_request:
4
+ types: [ opened, reopened, edited, synchronize ]
5
+ jobs:
6
+ danger:
7
+ name: Danger
8
+ runs-on: ubuntu-latest
9
+ steps:
10
+ - name: Checkout
11
+ uses: actions/checkout@v3
12
+ with:
13
+ fetch-depth: 0
14
+ - name: Set up Ruby
15
+ uses: ruby/setup-ruby@v1
16
+ with:
17
+ ruby-version: 2.7
18
+ bundler-cache: true
19
+ - name: Run Danger
20
+ run: |
21
+ # the personal token is public, this is ok, base64 encode to avoid tripping Github
22
+ TOKEN=$(echo -n Z2hwX0xNQ3VmanBFeTBvYkZVTWh6NVNqVFFBOEUxU25abzBqRUVuaAo= | base64 --decode)
23
+ DANGER_GITHUB_API_TOKEN=$TOKEN bundle exec danger --verbose
@@ -0,0 +1,16 @@
1
+ name: Lint
2
+ on: [ push, pull_request ]
3
+ jobs:
4
+ rubocop:
5
+ name: RuboCop
6
+ runs-on: ubuntu-latest
7
+ steps:
8
+ - name: Checkout
9
+ uses: actions/checkout@v3
10
+ - name: Set up Ruby
11
+ uses: ruby/setup-ruby@v1
12
+ with:
13
+ ruby-version: 2.7
14
+ bundler-cache: true
15
+ - name: RuboCop
16
+ run: bundle exec rubocop
@@ -0,0 +1,20 @@
1
+ name: Test
2
+ on: [ push, pull_request ]
3
+ jobs:
4
+ test:
5
+ name: Test (Ruby ${{ matrix.ruby-version }})
6
+ runs-on: ubuntu-latest
7
+ strategy:
8
+ fail-fast: false
9
+ matrix:
10
+ ruby-version: [ '2.7' ]
11
+ steps:
12
+ - name: Checkout
13
+ uses: actions/checkout@v3
14
+ - name: Set up Ruby
15
+ uses: ruby/setup-ruby@v1
16
+ with:
17
+ ruby-version: ${{ matrix.ruby-version }}
18
+ bundler-cache: true
19
+ - name: Run test
20
+ run: bundle exec rake spec
data/.gitignore CHANGED
@@ -3,3 +3,4 @@ pkg
3
3
  .idea/
4
4
  Gemfile.lock
5
5
  .yardoc
6
+ vendor/bundle
data/CHANGELOG.md CHANGED
@@ -1,5 +1,10 @@
1
1
  ## Changelog
2
2
 
3
+ ### 0.7.0 (2023/11/21)
4
+
5
+ * [#62](https://github.com/dblock/danger-changelog/pull/62): Migrate CI from Travis to GitHub Actions - [@mathroule](https://github.com/mathroule).
6
+ * [#61](https://github.com/dblock/danger-changelog/pull/61): Add support for ISO date & time - [@mathroule](https://github.com/mathroule).
7
+
3
8
  ### 0.6.1 (2020/05/08)
4
9
 
5
10
  * [#33](https://github.com/dblock/danger-changelog/issues/33): Attempt to point out known problems in Intridea format - [@dblock](https://github.com/dblock).
data/CONTRIBUTING.md CHANGED
@@ -114,7 +114,7 @@ git push origin my-feature-branch -f
114
114
 
115
115
  ### Check on Your Pull Request
116
116
 
117
- Go back to your pull request after a few minutes and see whether it passed muster with Travis-CI. Everything should look green, otherwise fix issues and amend your commit as described above.
117
+ Go back to your pull request after a few minutes and see whether it passed muster with GitHub Actions. Everything should look green, otherwise fix issues and amend your commit as described above.
118
118
 
119
119
  ### Be Patient
120
120
 
data/README.md CHANGED
@@ -4,7 +4,7 @@ A plugin for [danger.systems](http://danger.systems) that obsessive-compulsively
4
4
  It can make sure, for example, that changes are attributed properly, have a valid version number, a date in the ISO8601 format, balanced parenthesis and brackets, and that they’re always terminated with a period.
5
5
 
6
6
  [![Gem Version](https://badge.fury.io/rb/danger-changelog.svg)](https://badge.fury.io/rb/danger-changelog)
7
- [![Build Status](https://travis-ci.org/dblock/danger-changelog.svg?branch=master)](https://travis-ci.org/dblock/danger-changelog)
7
+ [![Build Status](https://github.com/dblock/danger-changelog/actions/workflows/test.yml/badge.svg?branch=master&event=push)](https://github.com/dblock/danger-changelog/actions/workflows/test.yml)
8
8
 
9
9
  # Table of Contents
10
10
 
data/RELEASING.md CHANGED
@@ -11,7 +11,7 @@ bundle install
11
11
  rake
12
12
  ```
13
13
 
14
- Check that the last build succeeded in [Travis CI](https://travis-ci.org/dblock/danger-changelog) for all supported platforms.
14
+ Check that the last build succeeded in [GitHub Actions](https://github.com/dblock/danger-changelog/actions) for all supported platforms.
15
15
 
16
16
  Increment the version, modify [lib/changelog/gem_version.rb](lib/changelog/gem_version.rb).
17
17
 
@@ -7,14 +7,14 @@ module Danger
7
7
 
8
8
  HASHES = /\#{1,4}/.freeze
9
9
  SEMVER = /(?<semver>(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:-((?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?)/.freeze
10
- ISO8601_DATE = %r{(?<date>([0-9]{4})[-/]?(1[0-2]|0?[1-9])[-/]+(3[01]|0?[1-9]|[12][0-9]))}.freeze
10
+ ISO8601_DATETIME = %r{(?<datetime>([0-9]{4})[-/]?(1[0-2]|0?[1-9])[-/]+(3[01]|0?[1-9]|[12][0-9])(T[0-9]{2}:[0-9]{2}:[0-9]{2})?Z?)}.freeze
11
11
 
12
12
  def valid?
13
13
  stripped_line = line.strip
14
14
 
15
15
  m = stripped_line.match(/^#{HASHES}\s#{OPEN_PARENS}[\w\s\:]*#{CLOSE_PARENS}$/) # title
16
16
  m ||= stripped_line.match(/^#{HASHES}\s#{OPEN_PARENS}#{SEMVER}#{CLOSE_PARENS}$/) # semver only
17
- m ||= stripped_line.match(/^#{HASHES}\s#{OPEN_PARENS}#{SEMVER}#{CLOSE_PARENS}[\s\-]+#{OPEN_PARENS}(#{ISO8601_DATE}|\w*)#{CLOSE_PARENS}$/) # semver and iso 8601 date or next version description
17
+ m ||= stripped_line.match(/^#{HASHES}\s#{OPEN_PARENS}#{SEMVER}#{CLOSE_PARENS}[\s\-]+#{OPEN_PARENS}(#{ISO8601_DATETIME}|\w*)#{CLOSE_PARENS}$/) # semver and ISO 8601 date & time or next version description
18
18
 
19
19
  !m.nil? && balanced?(stripped_line)
20
20
  end
@@ -1,3 +1,3 @@
1
1
  module Changelog
2
- VERSION = '0.6.1'.freeze
2
+ VERSION = '0.7.0'.freeze
3
3
  end
@@ -11,3 +11,6 @@
11
11
  ### 1.2.3 (2018/13)
12
12
  ### 1.2.3 (2018/1/1/3)
13
13
  ### 1.2.3 - 2018/01/02
14
+ ### 1.2.3 - 2023-09-28
15
+ ### 1.2.3 - 2023-09-28Z
16
+ ### 1.2.3 - 2023-09-28T21:59:56Z
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: danger-changelog
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.1
4
+ version: 0.7.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - dblock
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-05-08 00:00:00.000000000 Z
11
+ date: 2023-11-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: danger-plugin-api
@@ -31,11 +31,13 @@ executables: []
31
31
  extensions: []
32
32
  extra_rdoc_files: []
33
33
  files:
34
+ - ".github/workflows/danger.yml"
35
+ - ".github/workflows/lint.yml"
36
+ - ".github/workflows/test.yml"
34
37
  - ".gitignore"
35
38
  - ".rspec"
36
39
  - ".rubocop.yml"
37
40
  - ".rubocop_todo.yml"
38
- - ".travis.yml"
39
41
  - CHANGELOG.md
40
42
  - CONTRIBUTING.md
41
43
  - Dangerfile
@@ -94,7 +96,7 @@ homepage: https://github.com/dblock/danger-changelog
94
96
  licenses:
95
97
  - MIT
96
98
  metadata: {}
97
- post_install_message:
99
+ post_install_message:
98
100
  rdoc_options: []
99
101
  require_paths:
100
102
  - lib
@@ -109,8 +111,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
109
111
  - !ruby/object:Gem::Version
110
112
  version: '0'
111
113
  requirements: []
112
- rubygems_version: 3.0.3
113
- signing_key:
114
+ rubygems_version: 3.1.6
115
+ signing_key:
114
116
  specification_version: 4
115
117
  summary: A danger.systems plugin that is OCD about your CHANGELOG.
116
118
  test_files:
data/.travis.yml DELETED
@@ -1,14 +0,0 @@
1
- language: ruby
2
-
3
- cache:
4
- directories:
5
- - bundle
6
-
7
- rvm:
8
- - 2.6.2
9
-
10
- before_script:
11
- - bundle exec danger
12
-
13
- script:
14
- - bundle exec rake spec