ruby-grape-danger 0.2.0 → 0.2.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: ec847d3ab41f8dfdd3574918c3f6359ab0fc07fdbf987e07ba4122938fedc340
4
- data.tar.gz: 0001a3c7853211985573408c7f023eea39fbdf6f18a12ce13d6c347b6a7202f8
3
+ metadata.gz: 5491fc72b3c5201c2384eb81ce351544900fbf2ce07c06eab8cd8ef95bed582a
4
+ data.tar.gz: 7e4b79524283635bbea95c00d1d6c5c44b248512f145aefe4d418abb18fd0fba
5
5
  SHA512:
6
- metadata.gz: 84a7d0f9ef511cc3a300a2989fd9647ab60a58b3a2f84abe9f2705c60134da93c9caa20f0f4333bbf4241d3df3c52bcfa6e86054f2fc7ef038b8649ea2f64a2d
7
- data.tar.gz: 00d39f0e53db429a624c971537fbe19d12141891edbbac3e94b1462510eb96c7d9e2506cdc7aa104f0668128df1381c6914c3268535f488d07e757930cff72db
6
+ metadata.gz: fbfe985c96d9cfcac285c88317dde56b9e368dad086469019f5a04cf1947817f8142601a7d9b5a4502fa7dca9ddf391b0fda191a0133094d45d8261cd23d797c
7
+ data.tar.gz: 57c430ad6ba3ca1ccb91b1bb24ca5eac4870f93d484e9d40cc152a54c972ac510e79da814f050be1c40e8caf11b4ce3eca6b74fb6a3f8c821226e6dc4ebdf14e
@@ -0,0 +1,21 @@
1
+ name: danger
2
+ on: pull_request
3
+
4
+ jobs:
5
+ danger:
6
+ runs-on: ubuntu-latest
7
+ steps:
8
+ - uses: actions/checkout@v4
9
+ with:
10
+ fetch-depth: 100
11
+ - name: Set up Ruby
12
+ uses: ruby/setup-ruby@v1
13
+ with:
14
+ ruby-version: 3.2
15
+ bundler-cache: true
16
+ rubygems: latest
17
+ - name: Run Danger
18
+ run: |
19
+ # the token is public, has public_repo scope and belongs to the grape-bot user owned by @dblock, this is ok
20
+ TOKEN=$(echo -n Z2hwX2lYb0dPNXNyejYzOFJyaTV3QUxUdkNiS1dtblFwZTFuRXpmMwo= | base64 --decode)
21
+ DANGER_GITHUB_API_TOKEN=$TOKEN bundle exec danger --verbose
data/.gitignore CHANGED
@@ -1,3 +1,4 @@
1
1
  Gemfile.lock
2
2
  .bundle
3
3
  pkg
4
+ .idea/
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  ### Changelog
2
2
 
3
+ ### 0.2.2 (Next)
4
+
5
+ * Your contribution here.
6
+
7
+ ### 0.2.1 (2024/01/02)
8
+
9
+ * [#11](https://github.com/ruby-grape/danger/pull/11): Upgraded Danger to 9.x, danger-changelog 0.7.x & switched from Travis to GHA.
10
+
3
11
  ### 0.2.0 (2020/05/09)
4
12
 
5
13
  * [#8](https://github.com/ruby-grape/danger/pull/8): Upgraded Danger 8.0, danger-changelog 0.6.1 and added danger-toc 0.2.0 - [@dblock](https://github.com/dblock).
data/README.md CHANGED
@@ -18,16 +18,12 @@
18
18
 
19
19
  Enable Danger for a project within the [ruby-grape organization](https://github.com/ruby-grape).
20
20
 
21
- ### Set DANGER_GITHUB_API_TOKEN in Travis-CI
22
-
23
- In Travis-CI, choose _Settings_ and add `DANGER_GITHUB_API_TOKEN` in _Environment Variables_. Set the value to the API key for the [grape-bot](https://github.com/grape-bot) user, look in [this build log](https://travis-ci.org/ruby-grape/danger/builds/148579641) for its value.
24
-
25
21
  ### Add Danger
26
22
 
27
23
  Add `ruby-grape-danger` to `Gemfile`.
28
24
 
29
25
  ```ruby
30
- gem 'ruby-grape-danger', '~> 0.1.0', require: false
26
+ gem 'ruby-grape-danger', require: false
31
27
  ```
32
28
 
33
29
  ### Add Dangerfile
@@ -38,18 +34,6 @@ Commit a `Dangerfile`, eg. [Grape's Dangerfile](https://github.com/ruby-grape/gr
38
34
  danger.import_dangerfile(gem: 'ruby-grape-danger')
39
35
  ```
40
36
 
41
- ### Add Danger to Travis-CI
42
-
43
- Add Danger to `.travis.yml`, eg. [Grape's Travis.yml](https://github.com/ruby-grape/grape/blob/master/.travis.yml).
44
-
45
- ```yaml
46
- matrix:
47
- include:
48
- - rvm: 2.3.1
49
- script:
50
- - bundle exec danger
51
- ```
52
-
53
37
  ### Commit via a Pull Request
54
38
 
55
39
  To test things out, make a dummy entry in `CHANGELOG.md` that doesn't match the standard format and make a pull request. Iterate until green.
data/RELEASING.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Releasing
2
2
 
3
- There're no particular rules about when to release ruby-grape-danger. Release bug fixes frequently, features not so frequently and breaking API changes rarely.
3
+ There are no particular rules about when to release ruby-grape-danger. Release bug fixes frequently, features not so frequently and breaking API changes rarely.
4
4
 
5
5
  ### Release
6
6
 
@@ -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/ruby-grape/ruby-grape-danger) for all supported platforms.
14
+ Check that the last build succeeded in for all supported platforms.
15
15
 
16
16
  Increment the version, modify [lib/ruby-grape-danger/version.rb](lib/ruby-grape-danger/version.rb).
17
17
 
@@ -1,3 +1,3 @@
1
1
  module RubyGrapeDanger
2
- VERSION = '0.2.0'.freeze
2
+ VERSION = '0.2.1'.freeze
3
3
  end
@@ -17,7 +17,7 @@ Gem::Specification.new do |s|
17
17
 
18
18
  s.add_development_dependency 'rake'
19
19
  s.add_development_dependency 'rspec'
20
- s.add_runtime_dependency 'danger', '~> 8.0.0'
21
- s.add_runtime_dependency 'danger-changelog', '~> 0.6.1'
22
- s.add_runtime_dependency 'danger-toc', '~> 0.2.0'
20
+ s.add_runtime_dependency 'danger', '~> 9'
21
+ s.add_runtime_dependency 'danger-changelog', '~> 0.7'
22
+ s.add_runtime_dependency 'danger-toc', '~> 0.2'
23
23
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ruby-grape-danger
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
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-09 00:00:00.000000000 Z
11
+ date: 2024-02-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake
@@ -44,42 +44,42 @@ dependencies:
44
44
  requirements:
45
45
  - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: 8.0.0
47
+ version: '9'
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - "~>"
53
53
  - !ruby/object:Gem::Version
54
- version: 8.0.0
54
+ version: '9'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: danger-changelog
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
59
  - - "~>"
60
60
  - !ruby/object:Gem::Version
61
- version: 0.6.1
61
+ version: '0.7'
62
62
  type: :runtime
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
66
  - - "~>"
67
67
  - !ruby/object:Gem::Version
68
- version: 0.6.1
68
+ version: '0.7'
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: danger-toc
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
73
  - - "~>"
74
74
  - !ruby/object:Gem::Version
75
- version: 0.2.0
75
+ version: '0.2'
76
76
  type: :runtime
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
80
  - - "~>"
81
81
  - !ruby/object:Gem::Version
82
- version: 0.2.0
82
+ version: '0.2'
83
83
  description: Packages a Dangerfile to be used with Danger for projects within the
84
84
  Ruby Grape community.
85
85
  email:
@@ -88,11 +88,11 @@ executables: []
88
88
  extensions: []
89
89
  extra_rdoc_files: []
90
90
  files:
91
+ - ".github/workflows/danger.yml"
91
92
  - ".gitignore"
92
93
  - ".rspec"
93
94
  - ".rubocop.yml"
94
95
  - ".rubocop_todo.yml"
95
- - ".travis.yml"
96
96
  - CHANGELOG.md
97
97
  - CONTRIBUTING.md
98
98
  - Dangerfile
@@ -108,7 +108,7 @@ files:
108
108
  homepage: https://github.com/ruby-grape/danger
109
109
  licenses: []
110
110
  metadata: {}
111
- post_install_message:
111
+ post_install_message:
112
112
  rdoc_options: []
113
113
  require_paths:
114
114
  - lib
@@ -123,8 +123,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
123
123
  - !ruby/object:Gem::Version
124
124
  version: '0'
125
125
  requirements: []
126
- rubygems_version: 3.0.3
127
- signing_key:
126
+ rubygems_version: 3.5.3
127
+ signing_key:
128
128
  specification_version: 4
129
129
  summary: Danger.systems conventions for ruby-grape projects.
130
130
  test_files:
data/.travis.yml DELETED
@@ -1,9 +0,0 @@
1
- language: ruby
2
-
3
- sudo: false
4
-
5
- rvm:
6
- - 2.6.6
7
-
8
- before_script:
9
- - bundle exec danger