danger-yajp 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.github/workflows/gem-push.yml +40 -0
- data/.gitignore +70 -0
- data/.rubocop.yml +148 -0
- data/.travis.yml +12 -0
- data/Gemfile +6 -0
- data/Gemfile.lock +178 -0
- data/Guardfile +21 -0
- data/LICENSE +21 -0
- data/README.md +103 -0
- data/Rakefile +25 -0
- data/danger-yajp.gemspec +51 -0
- data/lib/danger_plugin.rb +3 -0
- data/lib/danger_yajp.rb +3 -0
- data/lib/yajp/gem_version.rb +5 -0
- data/lib/yajp/plugin.rb +244 -0
- data/spec/spec_helper.rb +68 -0
- data/spec/support/transitions.all.json +106 -0
- data/spec/yajp_spec.rb +101 -0
- metadata +219 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 66916c1769e7fecc6c05f5eb549e5775ae7bc8a98eac77bcf0efa727fdc5ec13
|
4
|
+
data.tar.gz: 24cca5f396eda224b143d326a152960a6dab5281634f02891d51ed0dfedfc97e
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 622b3ed1ff1e2168b1666861adfc20255a83573166a38ccf4edb352b9eaaf5e8d83e7eea900a3ce1d6e5954312ea3c6352ef89b23666b6b2f222c4079eaf5c9a
|
7
|
+
data.tar.gz: 5efc4d116c9c8e053c89086bde433515e09cfa11da105fe48f51ec76da0280281b90caefd8e7bb79a5c8da7e6590e47df3b66e5714dd2883af187f47fbc36740
|
@@ -0,0 +1,40 @@
|
|
1
|
+
name: Ruby Gem
|
2
|
+
|
3
|
+
on:
|
4
|
+
push:
|
5
|
+
branches: main
|
6
|
+
|
7
|
+
jobs:
|
8
|
+
build:
|
9
|
+
name: Build + Publish
|
10
|
+
runs-on: ubuntu-latest
|
11
|
+
|
12
|
+
steps:
|
13
|
+
- uses: actions/checkout@v2
|
14
|
+
- name: Set up Ruby 2.6
|
15
|
+
uses: actions/setup-ruby@v1
|
16
|
+
with:
|
17
|
+
ruby-version: 2.6.x
|
18
|
+
|
19
|
+
- name: Publish to GPR
|
20
|
+
run: |
|
21
|
+
mkdir -p $HOME/.gem
|
22
|
+
touch $HOME/.gem/credentials
|
23
|
+
chmod 0600 $HOME/.gem/credentials
|
24
|
+
printf -- "---\n:github: ${GEM_HOST_API_KEY}\n" > $HOME/.gem/credentials
|
25
|
+
gem build *.gemspec
|
26
|
+
gem push --KEY github --host https://rubygems.pkg.github.com/${OWNER} *.gem
|
27
|
+
env:
|
28
|
+
GEM_HOST_API_KEY: "Bearer ${{secrets.GITHUB_TOKEN}}"
|
29
|
+
OWNER: ${{ github.repository_owner }}
|
30
|
+
|
31
|
+
- name: Publish to RubyGems
|
32
|
+
run: |
|
33
|
+
mkdir -p $HOME/.gem
|
34
|
+
touch $HOME/.gem/credentials
|
35
|
+
chmod 0600 $HOME/.gem/credentials
|
36
|
+
printf -- "---\n:rubygems_api_key: ${GEM_HOST_API_KEY}\n" > $HOME/.gem/credentials
|
37
|
+
gem build *.gemspec
|
38
|
+
gem push *.gem
|
39
|
+
env:
|
40
|
+
GEM_HOST_API_KEY: "${{secrets.RUBYGEMS_AUTH_TOKEN}}"
|
data/.gitignore
ADDED
@@ -0,0 +1,70 @@
|
|
1
|
+
*.rbc
|
2
|
+
capybara-*.html
|
3
|
+
.rspec
|
4
|
+
/db/*.sqlite3
|
5
|
+
/db/*.sqlite3-journal
|
6
|
+
/db/*.sqlite3-[0-9]*
|
7
|
+
/public/system
|
8
|
+
/coverage/
|
9
|
+
/spec/tmp
|
10
|
+
*.orig
|
11
|
+
rerun.txt
|
12
|
+
pickle-email-*.html
|
13
|
+
|
14
|
+
# Ignore all logfiles and tempfiles.
|
15
|
+
/log/*
|
16
|
+
/tmp/*
|
17
|
+
!/log/.keep
|
18
|
+
!/tmp/.keep
|
19
|
+
|
20
|
+
# TODO Comment out this rule if you are OK with secrets being uploaded to the repo
|
21
|
+
config/initializers/secret_token.rb
|
22
|
+
config/master.key
|
23
|
+
|
24
|
+
# Only include if you have production secrets in this file, which is no longer a Rails default
|
25
|
+
# config/secrets.yml
|
26
|
+
|
27
|
+
# dotenv
|
28
|
+
# TODO Comment out this rule if environment variables can be committed
|
29
|
+
.env
|
30
|
+
|
31
|
+
## Environment normalization:
|
32
|
+
/.bundle
|
33
|
+
/vendor/bundle
|
34
|
+
|
35
|
+
# these should all be checked in to normalize the environment:
|
36
|
+
# Gemfile.lock, .ruby-version, .ruby-gemset
|
37
|
+
|
38
|
+
# unless supporting rvm < 1.11.0 or doing something fancy, ignore this:
|
39
|
+
.rvmrc
|
40
|
+
|
41
|
+
# if using bower-rails ignore default bower_components path bower.json files
|
42
|
+
/vendor/assets/bower_components
|
43
|
+
*.bowerrc
|
44
|
+
bower.json
|
45
|
+
|
46
|
+
# Ignore pow environment settings
|
47
|
+
.powenv
|
48
|
+
|
49
|
+
# Ignore Byebug command history file.
|
50
|
+
.byebug_history
|
51
|
+
|
52
|
+
# Ignore node_modules
|
53
|
+
node_modules/
|
54
|
+
|
55
|
+
# Ignore precompiled javascript packs
|
56
|
+
/public/packs
|
57
|
+
/public/packs-test
|
58
|
+
/public/assets
|
59
|
+
|
60
|
+
# Ignore yarn files
|
61
|
+
/yarn-error.log
|
62
|
+
yarn-debug.log*
|
63
|
+
.yarn-integrity
|
64
|
+
|
65
|
+
# Ignore uploaded files in development
|
66
|
+
/storage/*
|
67
|
+
!/storage/.keep
|
68
|
+
|
69
|
+
# Ignore docs file
|
70
|
+
.yardoc
|
data/.rubocop.yml
ADDED
@@ -0,0 +1,148 @@
|
|
1
|
+
# Defaults can be found here: https://github.com/bbatsov/rubocop/blob/master/config/default.yml
|
2
|
+
|
3
|
+
# If you don't like these settings, just delete this file :)
|
4
|
+
|
5
|
+
AllCops:
|
6
|
+
TargetRubyVersion: 2.6
|
7
|
+
|
8
|
+
Style/StringLiterals:
|
9
|
+
EnforcedStyle: single_quotes
|
10
|
+
Enabled: true
|
11
|
+
|
12
|
+
# kind_of? is a good way to check a type
|
13
|
+
Style/ClassCheck:
|
14
|
+
EnforcedStyle: kind_of?
|
15
|
+
|
16
|
+
# specs sometimes have useless assignments, which is fine
|
17
|
+
Lint/UselessAssignment:
|
18
|
+
Exclude:
|
19
|
+
- '**/spec/**/*'
|
20
|
+
|
21
|
+
# We could potentially enable the 2 below:
|
22
|
+
Layout/FirstHashElementIndentation:
|
23
|
+
Enabled: false
|
24
|
+
|
25
|
+
Layout/HashAlignment:
|
26
|
+
Enabled: false
|
27
|
+
|
28
|
+
# HoundCI doesn't like this rule
|
29
|
+
Layout/DotPosition:
|
30
|
+
Enabled: false
|
31
|
+
|
32
|
+
# We allow !! as it's an easy way to convert ot boolean
|
33
|
+
Style/DoubleNegation:
|
34
|
+
Enabled: false
|
35
|
+
|
36
|
+
# Cop supports --auto-correct.
|
37
|
+
Lint/UnusedBlockArgument:
|
38
|
+
Enabled: false
|
39
|
+
|
40
|
+
# We want to allow class Fastlane::Class
|
41
|
+
Style/ClassAndModuleChildren:
|
42
|
+
Enabled: false
|
43
|
+
|
44
|
+
Metrics/AbcSize:
|
45
|
+
Max: 60
|
46
|
+
|
47
|
+
# The %w might be confusing for new users
|
48
|
+
Style/WordArray:
|
49
|
+
MinSize: 19
|
50
|
+
|
51
|
+
# raise and fail are both okay
|
52
|
+
Style/SignalException:
|
53
|
+
Enabled: false
|
54
|
+
|
55
|
+
# Better too much 'return' than one missing
|
56
|
+
Style/RedundantReturn:
|
57
|
+
Enabled: false
|
58
|
+
|
59
|
+
# Having if in the same line might not always be good
|
60
|
+
Style/IfUnlessModifier:
|
61
|
+
Enabled: false
|
62
|
+
|
63
|
+
# and and or is okay
|
64
|
+
Style/AndOr:
|
65
|
+
Enabled: false
|
66
|
+
|
67
|
+
# Configuration parameters: CountComments.
|
68
|
+
Metrics/ClassLength:
|
69
|
+
Max: 350
|
70
|
+
|
71
|
+
Metrics/CyclomaticComplexity:
|
72
|
+
Max: 17
|
73
|
+
|
74
|
+
# Configuration parameters: AllowURI, URISchemes.
|
75
|
+
Layout/LineLength:
|
76
|
+
Max: 370
|
77
|
+
|
78
|
+
# Configuration parameters: CountKeywordArgs.
|
79
|
+
Metrics/ParameterLists:
|
80
|
+
Max: 10
|
81
|
+
|
82
|
+
Metrics/PerceivedComplexity:
|
83
|
+
Max: 18
|
84
|
+
|
85
|
+
# Sometimes it's easier to read without guards
|
86
|
+
Style/GuardClause:
|
87
|
+
Enabled: false
|
88
|
+
|
89
|
+
# something = if something_else
|
90
|
+
# that's confusing
|
91
|
+
Style/ConditionalAssignment:
|
92
|
+
Enabled: false
|
93
|
+
|
94
|
+
# Better to have too much self than missing a self
|
95
|
+
Style/RedundantSelf:
|
96
|
+
Enabled: false
|
97
|
+
|
98
|
+
Metrics/MethodLength:
|
99
|
+
Max: 60
|
100
|
+
|
101
|
+
# We're not there yet
|
102
|
+
Style/Documentation:
|
103
|
+
Enabled: false
|
104
|
+
|
105
|
+
# Adds complexity
|
106
|
+
Style/IfInsideElse:
|
107
|
+
Enabled: false
|
108
|
+
|
109
|
+
# danger specific
|
110
|
+
|
111
|
+
Style/BlockComments:
|
112
|
+
Enabled: false
|
113
|
+
|
114
|
+
Layout/MultilineMethodCallIndentation:
|
115
|
+
EnforcedStyle: indented
|
116
|
+
|
117
|
+
# FIXME: 25
|
118
|
+
Metrics/BlockLength:
|
119
|
+
Max: 345
|
120
|
+
Exclude:
|
121
|
+
- "**/*_spec.rb"
|
122
|
+
|
123
|
+
Style/MixinGrouping:
|
124
|
+
Enabled: false
|
125
|
+
|
126
|
+
Naming/FileName:
|
127
|
+
Enabled: false
|
128
|
+
|
129
|
+
Layout/HeredocIndentation:
|
130
|
+
Enabled: false
|
131
|
+
|
132
|
+
Style/SpecialGlobalVars:
|
133
|
+
Enabled: false
|
134
|
+
|
135
|
+
Style/PercentLiteralDelimiters:
|
136
|
+
PreferredDelimiters:
|
137
|
+
"%": ()
|
138
|
+
"%i": ()
|
139
|
+
"%q": ()
|
140
|
+
"%Q": ()
|
141
|
+
"%r": "{}"
|
142
|
+
"%s": ()
|
143
|
+
"%w": ()
|
144
|
+
"%W": ()
|
145
|
+
"%x": ()
|
146
|
+
|
147
|
+
Security/YAMLLoad:
|
148
|
+
Enabled: false
|
data/.travis.yml
ADDED
data/Gemfile
ADDED
data/Gemfile.lock
ADDED
@@ -0,0 +1,178 @@
|
|
1
|
+
PATH
|
2
|
+
remote: .
|
3
|
+
specs:
|
4
|
+
danger-yajp (0.0.1)
|
5
|
+
danger-plugin-api
|
6
|
+
jira-ruby
|
7
|
+
|
8
|
+
GEM
|
9
|
+
remote: https://rubygems.org/
|
10
|
+
specs:
|
11
|
+
activesupport (6.0.3.4)
|
12
|
+
concurrent-ruby (~> 1.0, >= 1.0.2)
|
13
|
+
i18n (>= 0.7, < 2)
|
14
|
+
minitest (~> 5.1)
|
15
|
+
tzinfo (~> 1.1)
|
16
|
+
zeitwerk (~> 2.2, >= 2.2.2)
|
17
|
+
addressable (2.7.0)
|
18
|
+
public_suffix (>= 2.0.2, < 5.0)
|
19
|
+
ast (2.4.1)
|
20
|
+
atlassian-jwt (0.2.0)
|
21
|
+
jwt (~> 2.1.0)
|
22
|
+
claide (1.0.3)
|
23
|
+
claide-plugins (0.9.2)
|
24
|
+
cork
|
25
|
+
nap
|
26
|
+
open4 (~> 1.3)
|
27
|
+
coderay (1.1.3)
|
28
|
+
colored2 (3.1.2)
|
29
|
+
concurrent-ruby (1.1.7)
|
30
|
+
cork (0.3.0)
|
31
|
+
colored2 (~> 3.1)
|
32
|
+
crack (0.4.4)
|
33
|
+
danger (8.2.0)
|
34
|
+
claide (~> 1.0)
|
35
|
+
claide-plugins (>= 0.9.2)
|
36
|
+
colored2 (~> 3.1)
|
37
|
+
cork (~> 0.1)
|
38
|
+
faraday (>= 0.9.0, < 2.0)
|
39
|
+
faraday-http-cache (~> 2.0)
|
40
|
+
git (~> 1.7)
|
41
|
+
kramdown (~> 2.3)
|
42
|
+
kramdown-parser-gfm (~> 1.0)
|
43
|
+
no_proxy_fix
|
44
|
+
octokit (~> 4.7)
|
45
|
+
terminal-table (~> 1)
|
46
|
+
danger-plugin-api (1.0.0)
|
47
|
+
danger (> 2.0)
|
48
|
+
diff-lcs (1.4.4)
|
49
|
+
faraday (1.1.0)
|
50
|
+
multipart-post (>= 1.2, < 3)
|
51
|
+
ruby2_keywords
|
52
|
+
faraday-http-cache (2.2.0)
|
53
|
+
faraday (>= 0.8)
|
54
|
+
ffi (1.13.1-x64-mingw32)
|
55
|
+
formatador (0.2.5)
|
56
|
+
git (1.7.0)
|
57
|
+
rchardet (~> 1.8)
|
58
|
+
guard (2.16.2)
|
59
|
+
formatador (>= 0.2.4)
|
60
|
+
listen (>= 2.7, < 4.0)
|
61
|
+
lumberjack (>= 1.0.12, < 2.0)
|
62
|
+
nenv (~> 0.1)
|
63
|
+
notiffany (~> 0.0)
|
64
|
+
pry (>= 0.9.12)
|
65
|
+
shellany (~> 0.0)
|
66
|
+
thor (>= 0.18.1)
|
67
|
+
guard-compat (1.2.1)
|
68
|
+
guard-rspec (4.7.3)
|
69
|
+
guard (~> 2.1)
|
70
|
+
guard-compat (~> 1.1)
|
71
|
+
rspec (>= 2.99.0, < 4.0)
|
72
|
+
hashdiff (1.0.1)
|
73
|
+
i18n (1.8.5)
|
74
|
+
concurrent-ruby (~> 1.0)
|
75
|
+
jira-ruby (2.1.3)
|
76
|
+
activesupport
|
77
|
+
atlassian-jwt
|
78
|
+
multipart-post
|
79
|
+
oauth (~> 0.5, >= 0.5.0)
|
80
|
+
jwt (2.1.0)
|
81
|
+
kramdown (2.3.0)
|
82
|
+
rexml
|
83
|
+
kramdown-parser-gfm (1.1.0)
|
84
|
+
kramdown (~> 2.0)
|
85
|
+
listen (3.2.1)
|
86
|
+
rb-fsevent (~> 0.10, >= 0.10.3)
|
87
|
+
rb-inotify (~> 0.9, >= 0.9.10)
|
88
|
+
lumberjack (1.2.8)
|
89
|
+
method_source (1.0.0)
|
90
|
+
minitest (5.14.2)
|
91
|
+
multipart-post (2.1.1)
|
92
|
+
nap (1.1.0)
|
93
|
+
nenv (0.3.0)
|
94
|
+
no_proxy_fix (0.1.2)
|
95
|
+
notiffany (0.1.3)
|
96
|
+
nenv (~> 0.1)
|
97
|
+
shellany (~> 0.0)
|
98
|
+
oauth (0.5.4)
|
99
|
+
octokit (4.19.0)
|
100
|
+
faraday (>= 0.9)
|
101
|
+
sawyer (~> 0.8.0, >= 0.5.3)
|
102
|
+
open4 (1.3.4)
|
103
|
+
parallel (1.19.2)
|
104
|
+
parser (2.7.2.0)
|
105
|
+
ast (~> 2.4.1)
|
106
|
+
pry (0.13.1)
|
107
|
+
coderay (~> 1.1)
|
108
|
+
method_source (~> 1.0)
|
109
|
+
public_suffix (4.0.6)
|
110
|
+
rainbow (3.0.0)
|
111
|
+
rake (13.0.1)
|
112
|
+
rb-fsevent (0.10.4)
|
113
|
+
rb-inotify (0.10.1)
|
114
|
+
ffi (~> 1.0)
|
115
|
+
rchardet (1.8.0)
|
116
|
+
regexp_parser (1.8.2)
|
117
|
+
rexml (3.2.4)
|
118
|
+
rspec (3.9.0)
|
119
|
+
rspec-core (~> 3.9.0)
|
120
|
+
rspec-expectations (~> 3.9.0)
|
121
|
+
rspec-mocks (~> 3.9.0)
|
122
|
+
rspec-core (3.9.3)
|
123
|
+
rspec-support (~> 3.9.3)
|
124
|
+
rspec-expectations (3.9.3)
|
125
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
126
|
+
rspec-support (~> 3.9.0)
|
127
|
+
rspec-mocks (3.9.1)
|
128
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
129
|
+
rspec-support (~> 3.9.0)
|
130
|
+
rspec-support (3.9.4)
|
131
|
+
rubocop (1.0.0)
|
132
|
+
parallel (~> 1.10)
|
133
|
+
parser (>= 2.7.1.5)
|
134
|
+
rainbow (>= 2.2.2, < 4.0)
|
135
|
+
regexp_parser (>= 1.8)
|
136
|
+
rexml
|
137
|
+
rubocop-ast (>= 0.6.0)
|
138
|
+
ruby-progressbar (~> 1.7)
|
139
|
+
unicode-display_width (>= 1.4.0, < 2.0)
|
140
|
+
rubocop-ast (1.1.0)
|
141
|
+
parser (>= 2.7.1.5)
|
142
|
+
ruby-progressbar (1.10.1)
|
143
|
+
ruby2_keywords (0.0.2)
|
144
|
+
sawyer (0.8.2)
|
145
|
+
addressable (>= 2.3.5)
|
146
|
+
faraday (> 0.8, < 2.0)
|
147
|
+
shellany (0.0.1)
|
148
|
+
terminal-table (1.8.0)
|
149
|
+
unicode-display_width (~> 1.1, >= 1.1.1)
|
150
|
+
thor (1.0.1)
|
151
|
+
thread_safe (0.3.6)
|
152
|
+
tzinfo (1.2.7)
|
153
|
+
thread_safe (~> 0.1)
|
154
|
+
unicode-display_width (1.7.0)
|
155
|
+
webmock (3.9.3)
|
156
|
+
addressable (>= 2.3.6)
|
157
|
+
crack (>= 0.3.2)
|
158
|
+
hashdiff (>= 0.4.0, < 2.0.0)
|
159
|
+
yard (0.9.25)
|
160
|
+
zeitwerk (2.4.1)
|
161
|
+
|
162
|
+
PLATFORMS
|
163
|
+
x64-mingw32
|
164
|
+
|
165
|
+
DEPENDENCIES
|
166
|
+
bundler
|
167
|
+
danger-yajp!
|
168
|
+
guard (~> 2.16)
|
169
|
+
guard-rspec (~> 4.7)
|
170
|
+
pry
|
171
|
+
rake (~> 13.0)
|
172
|
+
rspec (~> 3.9)
|
173
|
+
rubocop (~> 1.0.0)
|
174
|
+
webmock (~> 3.9)
|
175
|
+
yard (~> 0.9.11)
|
176
|
+
|
177
|
+
BUNDLED WITH
|
178
|
+
2.1.4
|