mongoid-danger 0.1.1 → 0.2.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
- SHA1:
3
- metadata.gz: 4f0deceb5fcf50cb14954cb1df5e1faadd0132fc
4
- data.tar.gz: f72d670f9b7b4fffc036a0ed6eefb3bbcfc4d2de
2
+ SHA256:
3
+ metadata.gz: 2c3c8e60903fe60f10407f0ee125671965c4cbb776aba356a13b776558e363ff
4
+ data.tar.gz: 619436f4c882628e8248251106cb18b634b576f9f94898bd1e0fd2e723c5834a
5
5
  SHA512:
6
- metadata.gz: dc81fa98abbf135ee4b5ef75c9f2cd7d5090e45388031d372935a36d362985c3bbba208d3b984d747940df89c0d48e4b4e0cd413caadee4b352bfa22052f23dc
7
- data.tar.gz: c5af58e21afec490ded749418de370f5f0f29aa8940b028e847c9c4924dbeb158d8cad1dd11e72b83dfd3847019950abdf4e55729a5ea9662d44b90fec70c4a7
6
+ metadata.gz: 3e9185a972dc29450dee5fcfc83a4627c4a7f22f9e6fe41e7bf3326ff23675e4f70e6d6a96f615e58fc070022d8c400f7dbb096c7373be03289a580abb8e7619
7
+ data.tar.gz: 78855036ffb0efe1dac39e64d121bbfde02e40fc79229c7ce1734e27b9395e7ec34163e864aba78fb82e3a36298f657e731a80bf4a6cd3462a19d929b1a68ba3
@@ -0,0 +1,17 @@
1
+ name: PR Linter
2
+ on: [pull_request]
3
+ jobs:
4
+ danger:
5
+ runs-on: ubuntu-latest
6
+ steps:
7
+ - uses: actions/checkout@v2
8
+ with:
9
+ fetch-depth: 0
10
+ - uses: ruby/setup-ruby@v1
11
+ with:
12
+ ruby-version: 2.6
13
+ bundler-cache: true
14
+ - run: |
15
+ # the personal token is public, this is ok, base64 encode to avoid tripping Github
16
+ TOKEN=$(echo -n NWY1ZmM5MzEyMzNlYWY4OTZiOGU3MmI3MWQ3Mzk0MzgxMWE4OGVmYwo= | base64 --decode)
17
+ DANGER_GITHUB_API_TOKEN=$TOKEN bundle exec danger --verbose
@@ -0,0 +1,13 @@
1
+ name: Rubocop
2
+ on: [push, pull_request]
3
+ jobs:
4
+ lint:
5
+ runs-on: ubuntu-latest
6
+ steps:
7
+ - uses: actions/checkout@v2
8
+ - name: Set up Ruby
9
+ uses: ruby/setup-ruby@v1
10
+ with:
11
+ ruby-version: 2.7
12
+ bundler-cache: true
13
+ - run: bundle exec rubocop
@@ -0,0 +1,34 @@
1
+ name: CI RSpec Test
2
+
3
+ on: [push, pull_request]
4
+
5
+ jobs:
6
+ build:
7
+ name: >-
8
+ Ruby ${{ matrix.entry.ruby }}
9
+ env:
10
+ CI: true
11
+ TESTOPTS: -v
12
+ runs-on: ubuntu-latest
13
+ continue-on-error: false
14
+ strategy:
15
+ matrix:
16
+ entry:
17
+ - { ruby: "2.4", bundler: "2" }
18
+ steps:
19
+ - name: repo checkout
20
+ uses: actions/checkout@v2
21
+
22
+ - name: load ruby
23
+ uses: ruby/setup-ruby@v1
24
+ with:
25
+ ruby-version: ${{ matrix.entry.ruby }}
26
+ bundler: ${{ matrix.entry.bundler }}
27
+
28
+ - name: bundle install
29
+ run: bundle install --jobs 4 --retry 3
30
+
31
+ - name: test
32
+ timeout-minutes: 10
33
+ run: bundle exec rspec spec
34
+ continue-on-error: false
data/CHANGELOG.md CHANGED
@@ -1,10 +1,15 @@
1
1
  ### Changelog
2
2
 
3
- ### 0.1.1 (11/27/2016)
3
+ ### 0.2.0 (2022/08/18)
4
+
5
+ * [#5](https://github.com/mongoid/danger/pull/5): Upgraded to Danger 8.6.1 - [@joe1chen](https://github.com/joe1chen).
6
+ * [#5](https://github.com/mongoid/danger/pull/5): Replaced Travis-CI with GitHub Actions - [@joe1chen](https://github.com/joe1chen).
7
+
8
+ ### 0.1.1 (2016/11/27)
4
9
 
5
10
  * [#4](https://github.com/mongoid/danger/pull/4): Upgraded to danger 4.0.1 and danger-changelog 0.2.0 - [@dblock](https://github.com/dblock).
6
11
 
7
- ### 0.1.0 (9/5/2016)
12
+ ### 0.1.0 (2016/09/05)
8
13
 
9
14
  * [#3](https://github.com/mongoid/danger/pull/3): Initial public release as a gem for Danger 3.2.1 - [@dblock](https://github.com/dblock).
10
15
  * [#1](https://github.com/mongoid/danger/pull/1): Upgraded Danger to 3.0 - [@dblock](https://github.com/dblock).
data/README.md CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  [Danger](http://danger.systems) runs during Mongoid projects' CI process, and gives you a chance to automate common code review chores.
4
4
 
5
- [![Build Status](https://travis-ci.org/mongoid/danger.svg?branch=master)](https://travis-ci.org/mongoid/danger)
5
+ [![Build Status](https://github.com/mongoid/danger/actions/workflows/test.yml/badge.svg)](https://github.com/mongoid/danger/actions)
6
6
 
7
7
  ### Setup
8
8
 
@@ -24,6 +24,30 @@ gem 'mongoid-danger', '~> 0.1.0', require: false
24
24
 
25
25
  Commit a `Dangerfile`, eg. [mongoid-compatibility's Dangerfile](https://github.com/mongoid/mongoid-compatibility/blob/master/Dangerfile).
26
26
 
27
+ #### Add Danger to GitHub Actions
28
+
29
+ Add `.github/workflows/danger.yml`, eg. [mongoid-compatibility's danger.yml](https://github.com/mongoid/mongoid-compatibility/blob/master/.github/workflows/danger.yml).
30
+
31
+ ```yaml
32
+ name: PR Linter
33
+ on: [pull_request]
34
+ jobs:
35
+ danger:
36
+ runs-on: ubuntu-latest
37
+ steps:
38
+ - uses: actions/checkout@v2
39
+ with:
40
+ fetch-depth: 0
41
+ - uses: ruby/setup-ruby@v1
42
+ with:
43
+ ruby-version: 2.6
44
+ bundler-cache: true
45
+ - run: |
46
+ # the personal token is public, this is ok, base64 encode to avoid tripping Github
47
+ TOKEN=$(echo -n NWY1ZmM5MzEyMzNlYWY4OTZiOGU3MmI3MWQ3Mzk0MzgxMWE4OGVmYwo= | base64 --decode)
48
+ DANGER_GITHUB_API_TOKEN=$TOKEN bundle exec danger --verbose
49
+ ```
50
+
27
51
  #### Add Danger to Travis-CI
28
52
 
29
53
  Add Danger to `.travis.yml`, eg. [mongoid-compatibility's Travis.yml](https://github.com/mongoid/mongoid-compatibility/blob/master/.travis.yml).
@@ -1,3 +1,3 @@
1
1
  module MongoidDanger
2
- VERSION = '0.1.1'.freeze
2
+ VERSION = '0.2.0'.freeze
3
3
  end
@@ -17,6 +17,6 @@ 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', '~> 4.0.1'
20
+ s.add_runtime_dependency 'danger', '~> 8.6.1'
21
21
  s.add_runtime_dependency 'danger-changelog', '~> 0.2.0'
22
22
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mongoid-danger
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.2.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: 2016-11-27 00:00:00.000000000 Z
11
+ date: 2022-08-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake
@@ -44,14 +44,14 @@ dependencies:
44
44
  requirements:
45
45
  - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: 4.0.1
47
+ version: 8.6.1
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: 4.0.1
54
+ version: 8.6.1
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: danger-changelog
57
57
  requirement: !ruby/object:Gem::Requirement
@@ -74,11 +74,13 @@ executables: []
74
74
  extensions: []
75
75
  extra_rdoc_files: []
76
76
  files:
77
+ - ".github/workflows/danger.yml"
78
+ - ".github/workflows/rubocop.yml"
79
+ - ".github/workflows/test.yml"
77
80
  - ".gitignore"
78
81
  - ".rspec"
79
82
  - ".rubocop.yml"
80
83
  - ".rubocop_todo.yml"
81
- - ".travis.yml"
82
84
  - CHANGELOG.md
83
85
  - CONTRIBUTING.md
84
86
  - Dangerfile
@@ -94,7 +96,7 @@ files:
94
96
  homepage: https://github.com/mongoid/danger
95
97
  licenses: []
96
98
  metadata: {}
97
- post_install_message:
99
+ post_install_message:
98
100
  rdoc_options: []
99
101
  require_paths:
100
102
  - lib
@@ -109,9 +111,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
109
111
  - !ruby/object:Gem::Version
110
112
  version: '0'
111
113
  requirements: []
112
- rubyforge_project:
113
- rubygems_version: 2.5.1
114
- signing_key:
114
+ rubygems_version: 3.1.3
115
+ signing_key:
115
116
  specification_version: 4
116
117
  summary: Danger.systems conventions for mongoid projects.
117
118
  test_files:
data/.travis.yml DELETED
@@ -1,8 +0,0 @@
1
- language: ruby
2
-
3
- sudo: false
4
-
5
- rvm: 2.3.1
6
-
7
- before_script:
8
- - bundle exec danger