unwrappr 0.8.0 → 0.8.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 +4 -4
- data/CHANGELOG.md +29 -1
- data/README.md +9 -1
- data/lib/unwrappr/cli.rb +1 -2
- data/lib/unwrappr/gem_change.rb +2 -2
- data/lib/unwrappr/github/client.rb +1 -14
- data/lib/unwrappr/lock_file_diff.rb +2 -2
- data/lib/unwrappr/octokit.rb +14 -1
- data/lib/unwrappr/researchers/github_repo.rb +2 -2
- data/lib/unwrappr/ruby_gems.rb +2 -3
- data/lib/unwrappr/version.rb +1 -1
- data/lib/unwrappr/writers/project_links.rb +4 -6
- data/lib/unwrappr/writers/security_vulnerabilities.rb +1 -6
- data/lib/unwrappr/writers/title.rb +1 -1
- metadata +18 -119
- data/.buildkite/pipeline.yml +0 -47
- data/.buildkite/steps/rspec.sh +0 -9
- data/.buildkite/steps/rubocop.sh +0 -9
- data/.github/workflows/ci.yml +0 -23
- data/.gitignore +0 -13
- data/.rspec +0 -3
- data/.rubocop.yml +0 -29
- data/.tool-versions +0 -1
- data/CODE_OF_CONDUCT.md +0 -74
- data/Gemfile +0 -8
- data/Guardfile +0 -16
- data/Rakefile +0 -10
- data/bin/console +0 -11
- data/bin/setup +0 -8
- data/unwrappr.gemspec +0 -61
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7ae6417dff4d5d1a73e92c782bb6c06b834f3ec95ed1c987f143e9321add4a65
|
4
|
+
data.tar.gz: 18157c51c06f4a9106c9e0e502af2b0ff7290baf441012b76f9f7aef2ca6693b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d875a24ddbd14f51d72f4ade136e24b4eb85a72624a692b3803482d4689bcdff513fc5a587bf18fde8f0200764908cc8837e326b1904f4cecf707edf1385dc01
|
7
|
+
data.tar.gz: 14bae761a15aac69b97faddc67fb0c47ef169db1883a62175612ef5b3baee2aac59a83ca5c9b1f7a8ec853fca83739c1f279de3d1c59e9642f88c3c18eabd39d
|
data/CHANGELOG.md
CHANGED
@@ -6,7 +6,35 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
6
6
|
|
7
7
|
## [Unreleased]
|
8
8
|
|
9
|
-
[Unreleased]: https://github.com/envato/unwrappr/compare/v0.8.
|
9
|
+
[Unreleased]: https://github.com/envato/unwrappr/compare/v0.8.2...HEAD
|
10
|
+
|
11
|
+
## [0.8.2] 2024-12-28
|
12
|
+
|
13
|
+
### Add
|
14
|
+
- Add Ruby 3.4 to the CI test matrix ([#95]).
|
15
|
+
- Add `base64` as a runtime dependency to support Ruby 3.4+ ([#95]).
|
16
|
+
|
17
|
+
[0.8.2]: https://github.com/envato/unwrappr/compare/v0.8.1...v0.8.2
|
18
|
+
[#95]: https://github.com/envato/unwrappr/pull/95
|
19
|
+
|
20
|
+
## [0.8.1] 2023-02-07
|
21
|
+
|
22
|
+
### Add
|
23
|
+
- Add Ruby 3.1 and 3.2 to the CI test matrix ([#92], [#93]).
|
24
|
+
|
25
|
+
### Fix
|
26
|
+
- Resolve a number of issues raised by Rubocop ([#92], [#93]).
|
27
|
+
- Resolve GitHub Actions Node.js 12 deprecation ([#93]).
|
28
|
+
- Remove development files from the gem package ([#94]).
|
29
|
+
|
30
|
+
### Documentation
|
31
|
+
- Document how to grab credentials from the keychain ([#91]).
|
32
|
+
|
33
|
+
[0.8.1]: https://github.com/envato/unwrappr/compare/v0.8.0...v0.8.1
|
34
|
+
[#91]: https://github.com/envato/unwrappr/pull/91
|
35
|
+
[#92]: https://github.com/envato/unwrappr/pull/92
|
36
|
+
[#93]: https://github.com/envato/unwrappr/pull/93
|
37
|
+
[#94]: https://github.com/envato/unwrappr/pull/94
|
10
38
|
|
11
39
|
## [0.8.0] 2021-07-22
|
12
40
|
|
data/README.md
CHANGED
@@ -41,7 +41,15 @@ $ gem install unwrappr
|
|
41
41
|
|
42
42
|
## Configuration
|
43
43
|
|
44
|
-
`unwrappr` needs a [GitHub Personal Access
|
44
|
+
`unwrappr` needs a [GitHub Personal Access
|
45
|
+
Token](https://github.com/settings/tokens), stored in the environment as
|
46
|
+
`GITHUB_TOKEN`. If you have your Personal Access Token stored in the macOS
|
47
|
+
keychain, you can pull this into your shell environment using the `security`
|
48
|
+
tool. _E.g:_
|
49
|
+
|
50
|
+
```bash
|
51
|
+
export GITHUB_TOKEN=$(security find-internet-password -gs github.com 2>&1 | awk -F' ' '$1 == "password:" { print $2 }' | tr -d '"')
|
52
|
+
```
|
45
53
|
|
46
54
|
To run `unwrappr` in the current working directory use...
|
47
55
|
|
data/lib/unwrappr/cli.rb
CHANGED
@@ -29,8 +29,7 @@ module Unwrappr
|
|
29
29
|
exit(0)
|
30
30
|
end
|
31
31
|
|
32
|
-
subcommand 'all', 'run bundle update, push to GitHub, '
|
33
|
-
'create a pr and annotate changes' do
|
32
|
+
subcommand 'all', 'run bundle update, push to GitHub, create a pr and annotate changes' do
|
34
33
|
option ['-R', '--recursive'],
|
35
34
|
:flag,
|
36
35
|
'Recurse into subdirectories',
|
data/lib/unwrappr/gem_change.rb
CHANGED
@@ -22,11 +22,11 @@ module Unwrappr
|
|
22
22
|
def_delegators :@lock_file_diff, :filename, :sha
|
23
23
|
|
24
24
|
def added?
|
25
|
-
|
25
|
+
head_version && base_version.nil?
|
26
26
|
end
|
27
27
|
|
28
28
|
def removed?
|
29
|
-
|
29
|
+
base_version && head_version.nil?
|
30
30
|
end
|
31
31
|
|
32
32
|
def major?
|
@@ -60,20 +60,7 @@ module Unwrappr
|
|
60
60
|
end
|
61
61
|
|
62
62
|
def git_client
|
63
|
-
@git_client ||= Octokit::Client.new(access_token:
|
64
|
-
end
|
65
|
-
|
66
|
-
def github_token
|
67
|
-
@github_token ||= ENV.fetch('GITHUB_TOKEN')
|
68
|
-
rescue KeyError
|
69
|
-
raise %(
|
70
|
-
Missing environment variable GITHUB_TOKEN.
|
71
|
-
See https://github.com/settings/tokens to set up personal access tokens.
|
72
|
-
Add to the environment:
|
73
|
-
|
74
|
-
export GITHUB_TOKEN=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
|
75
|
-
|
76
|
-
)
|
63
|
+
@git_client ||= Octokit::Client.new(access_token: Octokit.access_token_from_environment)
|
77
64
|
end
|
78
65
|
end
|
79
66
|
end
|
@@ -63,9 +63,9 @@ module Unwrappr
|
|
63
63
|
# '+ websocket-driver (0.6.5)'
|
64
64
|
# Careful not to match this (note the wider indent):
|
65
65
|
# '+ websocket-extensions (>= 0.1.0)'
|
66
|
-
pattern = /^(?<change_type>[
|
66
|
+
pattern = /^(?<change_type>[+-]) (?<gem_name>\S+) \(\d/
|
67
67
|
match = pattern.match(line)
|
68
|
-
|
68
|
+
[match[:gem_name], match[:change_type]] unless match.nil?
|
69
69
|
end
|
70
70
|
end
|
71
71
|
end
|
data/lib/unwrappr/octokit.rb
CHANGED
@@ -3,6 +3,19 @@
|
|
3
3
|
# Wrapper around octokit
|
4
4
|
module Octokit
|
5
5
|
def self.client
|
6
|
-
@client ||= Client.new(access_token:
|
6
|
+
@client ||= Client.new(access_token: access_token_from_environment)
|
7
|
+
end
|
8
|
+
|
9
|
+
def self.access_token_from_environment
|
10
|
+
ENV.fetch('GITHUB_TOKEN') do
|
11
|
+
raise <<~MESSAGE
|
12
|
+
Missing environment variable GITHUB_TOKEN.
|
13
|
+
See https://github.com/settings/tokens to set up personal access tokens.
|
14
|
+
Add to the environment:
|
15
|
+
|
16
|
+
export GITHUB_TOKEN=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
|
17
|
+
|
18
|
+
MESSAGE
|
19
|
+
end
|
7
20
|
end
|
8
21
|
end
|
@@ -13,8 +13,8 @@ module Unwrappr
|
|
13
13
|
}ix.freeze
|
14
14
|
|
15
15
|
def research(_gem_change, gem_change_info)
|
16
|
-
repo = match_repo(gem_change_info,
|
17
|
-
match_repo(gem_change_info,
|
16
|
+
repo = match_repo(gem_change_info, 'source_code_uri') ||
|
17
|
+
match_repo(gem_change_info, 'homepage_uri')
|
18
18
|
gem_change_info.merge(github_repo: repo)
|
19
19
|
end
|
20
20
|
|
data/lib/unwrappr/ruby_gems.rb
CHANGED
@@ -18,7 +18,7 @@ module Unwrappr
|
|
18
18
|
def parse(response, name)
|
19
19
|
case response.status
|
20
20
|
when 200
|
21
|
-
JSON.parse(response.body
|
21
|
+
JSON.parse(response.body)
|
22
22
|
when 404
|
23
23
|
nil
|
24
24
|
else
|
@@ -27,8 +27,7 @@ module Unwrappr
|
|
27
27
|
end
|
28
28
|
|
29
29
|
def error_message(response:, name:)
|
30
|
-
"Rubygems response for #{name}: "
|
31
|
-
"HTTP #{response.status}: #{response.body}"
|
30
|
+
"Rubygems response for #{name}: HTTP #{response.status}: #{response.body}"
|
32
31
|
end
|
33
32
|
end
|
34
33
|
end
|
data/lib/unwrappr/version.rb
CHANGED
@@ -24,13 +24,11 @@ module Unwrappr
|
|
24
24
|
private
|
25
25
|
|
26
26
|
def change_log
|
27
|
-
link_or_strikethrough('change-log',
|
28
|
-
ruby_gems_info&.changelog_uri)
|
27
|
+
link_or_strikethrough('change-log', ruby_gems_info('changelog_uri'))
|
29
28
|
end
|
30
29
|
|
31
30
|
def source_code
|
32
|
-
link_or_strikethrough('source-code',
|
33
|
-
ruby_gems_info&.source_code_uri)
|
31
|
+
link_or_strikethrough('source-code', ruby_gems_info('source_code_uri'))
|
34
32
|
end
|
35
33
|
|
36
34
|
GEM_DIFF_URL_TEMPLATE = 'https://my.diffend.io/gems/%s/%s/%s'
|
@@ -46,8 +44,8 @@ module Unwrappr
|
|
46
44
|
link_or_strikethrough('gem-diff', gem_diff_url)
|
47
45
|
end
|
48
46
|
|
49
|
-
def ruby_gems_info
|
50
|
-
@gem_change_info
|
47
|
+
def ruby_gems_info(*args)
|
48
|
+
@gem_change_info.dig(:ruby_gems, *args)
|
51
49
|
end
|
52
50
|
|
53
51
|
def link_or_strikethrough(text, url)
|
@@ -85,12 +85,7 @@ module Unwrappr
|
|
85
85
|
end
|
86
86
|
|
87
87
|
def cvss_v2(advisory)
|
88
|
-
|
89
|
-
if advisory.cvss_v2
|
90
|
-
"CVSS V2: [#{advisory.cvss_v2} #{advisory.criticality}]"\
|
91
|
-
"(#{cvss_v2_url(advisory.cve_id)})"
|
92
|
-
end
|
93
|
-
# rubocop:enable Style/GuardClause
|
88
|
+
"CVSS V2: [#{advisory.cvss_v2} #{advisory.criticality}](#{cvss_v2_url(advisory.cve_id)})" if advisory.cvss_v2
|
94
89
|
end
|
95
90
|
|
96
91
|
def cvss_v2_url(id)
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: unwrappr
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.8.
|
4
|
+
version: 0.8.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Emilyn Escabarte
|
@@ -9,11 +9,24 @@ authors:
|
|
9
9
|
- Orien Madgwick
|
10
10
|
- Pete Johns
|
11
11
|
- Vladimir Chervanev
|
12
|
-
autorequire:
|
13
12
|
bindir: exe
|
14
13
|
cert_chain: []
|
15
|
-
date:
|
14
|
+
date: 2024-12-28 00:00:00.000000000 Z
|
16
15
|
dependencies:
|
16
|
+
- !ruby/object:Gem::Dependency
|
17
|
+
name: base64
|
18
|
+
requirement: !ruby/object:Gem::Requirement
|
19
|
+
requirements:
|
20
|
+
- - ">="
|
21
|
+
- !ruby/object:Gem::Version
|
22
|
+
version: '0'
|
23
|
+
type: :runtime
|
24
|
+
prerelease: false
|
25
|
+
version_requirements: !ruby/object:Gem::Requirement
|
26
|
+
requirements:
|
27
|
+
- - ">="
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: '0'
|
17
30
|
- !ruby/object:Gem::Dependency
|
18
31
|
name: bundler
|
19
32
|
requirement: !ruby/object:Gem::Requirement
|
@@ -112,104 +125,6 @@ dependencies:
|
|
112
125
|
- - "~>"
|
113
126
|
- !ruby/object:Gem::Version
|
114
127
|
version: '1'
|
115
|
-
- !ruby/object:Gem::Dependency
|
116
|
-
name: guard
|
117
|
-
requirement: !ruby/object:Gem::Requirement
|
118
|
-
requirements:
|
119
|
-
- - "~>"
|
120
|
-
- !ruby/object:Gem::Version
|
121
|
-
version: '2'
|
122
|
-
type: :development
|
123
|
-
prerelease: false
|
124
|
-
version_requirements: !ruby/object:Gem::Requirement
|
125
|
-
requirements:
|
126
|
-
- - "~>"
|
127
|
-
- !ruby/object:Gem::Version
|
128
|
-
version: '2'
|
129
|
-
- !ruby/object:Gem::Dependency
|
130
|
-
name: guard-rspec
|
131
|
-
requirement: !ruby/object:Gem::Requirement
|
132
|
-
requirements:
|
133
|
-
- - "~>"
|
134
|
-
- !ruby/object:Gem::Version
|
135
|
-
version: '4'
|
136
|
-
type: :development
|
137
|
-
prerelease: false
|
138
|
-
version_requirements: !ruby/object:Gem::Requirement
|
139
|
-
requirements:
|
140
|
-
- - "~>"
|
141
|
-
- !ruby/object:Gem::Version
|
142
|
-
version: '4'
|
143
|
-
- !ruby/object:Gem::Dependency
|
144
|
-
name: pry
|
145
|
-
requirement: !ruby/object:Gem::Requirement
|
146
|
-
requirements:
|
147
|
-
- - "~>"
|
148
|
-
- !ruby/object:Gem::Version
|
149
|
-
version: '0'
|
150
|
-
type: :development
|
151
|
-
prerelease: false
|
152
|
-
version_requirements: !ruby/object:Gem::Requirement
|
153
|
-
requirements:
|
154
|
-
- - "~>"
|
155
|
-
- !ruby/object:Gem::Version
|
156
|
-
version: '0'
|
157
|
-
- !ruby/object:Gem::Dependency
|
158
|
-
name: rake
|
159
|
-
requirement: !ruby/object:Gem::Requirement
|
160
|
-
requirements:
|
161
|
-
- - ">="
|
162
|
-
- !ruby/object:Gem::Version
|
163
|
-
version: 12.3.3
|
164
|
-
type: :development
|
165
|
-
prerelease: false
|
166
|
-
version_requirements: !ruby/object:Gem::Requirement
|
167
|
-
requirements:
|
168
|
-
- - ">="
|
169
|
-
- !ruby/object:Gem::Version
|
170
|
-
version: 12.3.3
|
171
|
-
- !ruby/object:Gem::Dependency
|
172
|
-
name: rspec
|
173
|
-
requirement: !ruby/object:Gem::Requirement
|
174
|
-
requirements:
|
175
|
-
- - "~>"
|
176
|
-
- !ruby/object:Gem::Version
|
177
|
-
version: '3.0'
|
178
|
-
type: :development
|
179
|
-
prerelease: false
|
180
|
-
version_requirements: !ruby/object:Gem::Requirement
|
181
|
-
requirements:
|
182
|
-
- - "~>"
|
183
|
-
- !ruby/object:Gem::Version
|
184
|
-
version: '3.0'
|
185
|
-
- !ruby/object:Gem::Dependency
|
186
|
-
name: rspec-its
|
187
|
-
requirement: !ruby/object:Gem::Requirement
|
188
|
-
requirements:
|
189
|
-
- - "~>"
|
190
|
-
- !ruby/object:Gem::Version
|
191
|
-
version: '1'
|
192
|
-
type: :development
|
193
|
-
prerelease: false
|
194
|
-
version_requirements: !ruby/object:Gem::Requirement
|
195
|
-
requirements:
|
196
|
-
- - "~>"
|
197
|
-
- !ruby/object:Gem::Version
|
198
|
-
version: '1'
|
199
|
-
- !ruby/object:Gem::Dependency
|
200
|
-
name: rubocop
|
201
|
-
requirement: !ruby/object:Gem::Requirement
|
202
|
-
requirements:
|
203
|
-
- - ">="
|
204
|
-
- !ruby/object:Gem::Version
|
205
|
-
version: 0.49.0
|
206
|
-
type: :development
|
207
|
-
prerelease: false
|
208
|
-
version_requirements: !ruby/object:Gem::Requirement
|
209
|
-
requirements:
|
210
|
-
- - ">="
|
211
|
-
- !ruby/object:Gem::Version
|
212
|
-
version: 0.49.0
|
213
128
|
description: 'bundle update PRs: Automated. Annotated.'
|
214
129
|
email:
|
215
130
|
- emilyn.escabarte@envato.com
|
@@ -222,23 +137,9 @@ executables:
|
|
222
137
|
extensions: []
|
223
138
|
extra_rdoc_files: []
|
224
139
|
files:
|
225
|
-
- ".buildkite/pipeline.yml"
|
226
|
-
- ".buildkite/steps/rspec.sh"
|
227
|
-
- ".buildkite/steps/rubocop.sh"
|
228
|
-
- ".github/workflows/ci.yml"
|
229
|
-
- ".gitignore"
|
230
|
-
- ".rspec"
|
231
|
-
- ".rubocop.yml"
|
232
|
-
- ".tool-versions"
|
233
140
|
- CHANGELOG.md
|
234
|
-
- CODE_OF_CONDUCT.md
|
235
|
-
- Gemfile
|
236
|
-
- Guardfile
|
237
141
|
- LICENSE.txt
|
238
142
|
- README.md
|
239
|
-
- Rakefile
|
240
|
-
- bin/console
|
241
|
-
- bin/setup
|
242
143
|
- exe/unwrappr
|
243
144
|
- lib/unwrappr.rb
|
244
145
|
- lib/unwrappr/bundler_command_runner.rb
|
@@ -267,7 +168,6 @@ files:
|
|
267
168
|
- lib/unwrappr/writers/security_vulnerabilities.rb
|
268
169
|
- lib/unwrappr/writers/title.rb
|
269
170
|
- lib/unwrappr/writers/version_change.rb
|
270
|
-
- unwrappr.gemspec
|
271
171
|
homepage: https://opensource.envato.com/projects/unwrappr.html
|
272
172
|
licenses:
|
273
173
|
- MIT
|
@@ -276,8 +176,8 @@ metadata:
|
|
276
176
|
changelog_uri: https://github.com/envato/unwrappr/blob/HEAD/CHANGELOG.md
|
277
177
|
documentation_uri: https://github.com/envato/unwrappr/blob/HEAD/README.md
|
278
178
|
homepage_uri: https://opensource.envato.com/projects/unwrappr.html
|
179
|
+
rubygems_mfa_required: 'true'
|
279
180
|
source_code_uri: https://github.com/envato/unwrappr
|
280
|
-
post_install_message:
|
281
181
|
rdoc_options: []
|
282
182
|
require_paths:
|
283
183
|
- lib
|
@@ -292,8 +192,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
292
192
|
- !ruby/object:Gem::Version
|
293
193
|
version: '2.7'
|
294
194
|
requirements: []
|
295
|
-
rubygems_version: 3.2
|
296
|
-
signing_key:
|
195
|
+
rubygems_version: 3.6.2
|
297
196
|
specification_version: 4
|
298
197
|
summary: A tool to unwrap your gems and see what's changed easily
|
299
198
|
test_files: []
|
data/.buildkite/pipeline.yml
DELETED
@@ -1,47 +0,0 @@
|
|
1
|
-
---
|
2
|
-
|
3
|
-
steps:
|
4
|
-
- label: ":ruby: 2.6 :rspec:"
|
5
|
-
command: ".buildkite/steps/rspec.sh"
|
6
|
-
plugins:
|
7
|
-
docker#v1.2.1:
|
8
|
-
image: "ruby:2.6"
|
9
|
-
agents:
|
10
|
-
queue: "platform-docker-spot"
|
11
|
-
timeout_in_minutes: 5
|
12
|
-
|
13
|
-
- label: ":ruby: 2.5 :rspec:"
|
14
|
-
command: ".buildkite/steps/rspec.sh"
|
15
|
-
plugins:
|
16
|
-
docker#v1.2.1:
|
17
|
-
image: "ruby:2.5"
|
18
|
-
agents:
|
19
|
-
queue: "platform-docker-spot"
|
20
|
-
timeout_in_minutes: 5
|
21
|
-
|
22
|
-
- label: ":ruby: 2.4 :rspec:"
|
23
|
-
command: ".buildkite/steps/rspec.sh"
|
24
|
-
plugins:
|
25
|
-
docker#v1.2.1:
|
26
|
-
image: "ruby:2.4"
|
27
|
-
agents:
|
28
|
-
queue: "platform-docker-spot"
|
29
|
-
timeout_in_minutes: 5
|
30
|
-
|
31
|
-
- label: ":ruby: 2.3 :rspec:"
|
32
|
-
command: ".buildkite/steps/rspec.sh"
|
33
|
-
plugins:
|
34
|
-
docker#v1.2.1:
|
35
|
-
image: "ruby:2.3"
|
36
|
-
agents:
|
37
|
-
queue: "platform-docker-spot"
|
38
|
-
timeout_in_minutes: 5
|
39
|
-
|
40
|
-
- label: ":rubocop:"
|
41
|
-
command: ".buildkite/steps/rubocop.sh"
|
42
|
-
plugins:
|
43
|
-
docker#v1.2.1:
|
44
|
-
image: "ruby"
|
45
|
-
agents:
|
46
|
-
queue: "platform-docker-spot"
|
47
|
-
timeout_in_minutes: 5
|
data/.buildkite/steps/rspec.sh
DELETED
data/.buildkite/steps/rubocop.sh
DELETED
data/.github/workflows/ci.yml
DELETED
@@ -1,23 +0,0 @@
|
|
1
|
-
name: CI
|
2
|
-
|
3
|
-
on: [push, pull_request]
|
4
|
-
|
5
|
-
jobs:
|
6
|
-
test:
|
7
|
-
strategy:
|
8
|
-
fail-fast: false
|
9
|
-
matrix:
|
10
|
-
ruby: ['2.5', '2.6', '2.7', '3.0']
|
11
|
-
runs-on: ubuntu-latest
|
12
|
-
|
13
|
-
steps:
|
14
|
-
- name: Checkout
|
15
|
-
uses: actions/checkout@v2
|
16
|
-
- name: Set up Ruby
|
17
|
-
uses: ruby/setup-ruby@v1
|
18
|
-
with:
|
19
|
-
ruby-version: ${{ matrix.ruby }}
|
20
|
-
- name: Install dependencies
|
21
|
-
run: bundle install
|
22
|
-
- name: Run tests
|
23
|
-
run: bundle exec rake
|
data/.gitignore
DELETED
data/.rspec
DELETED
data/.rubocop.yml
DELETED
@@ -1,29 +0,0 @@
|
|
1
|
-
---
|
2
|
-
AllCops:
|
3
|
-
Exclude:
|
4
|
-
- 'spike/*.rb'
|
5
|
-
NewCops: enable
|
6
|
-
TargetRubyVersion: 2.5
|
7
|
-
|
8
|
-
Gemspec/RequiredRubyVersion:
|
9
|
-
Enabled: false
|
10
|
-
|
11
|
-
Metrics/BlockLength:
|
12
|
-
Exclude:
|
13
|
-
- 'spec/**/*'
|
14
|
-
- 'test/**/*'
|
15
|
-
|
16
|
-
Metrics/LineLength:
|
17
|
-
Exclude:
|
18
|
-
- 'spec/**/*'
|
19
|
-
- 'test/**/*'
|
20
|
-
|
21
|
-
Metrics/ModuleLength:
|
22
|
-
Exclude:
|
23
|
-
- 'spec/**/*'
|
24
|
-
- 'test/**/*'
|
25
|
-
|
26
|
-
Style/Documentation:
|
27
|
-
Exclude:
|
28
|
-
- 'spec/**/*'
|
29
|
-
- 'test/**/*'
|
data/.tool-versions
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
ruby 3.0.0
|
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 pete.johns@envato.com. 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/Gemfile
DELETED
data/Guardfile
DELETED
@@ -1,16 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
guard :rspec, cmd: 'bundle exec rspec' do
|
4
|
-
require 'guard/rspec/dsl'
|
5
|
-
dsl = Guard::RSpec::Dsl.new(self)
|
6
|
-
|
7
|
-
# RSpec files
|
8
|
-
rspec = dsl.rspec
|
9
|
-
watch(rspec.spec_helper) { rspec.spec_dir }
|
10
|
-
watch(rspec.spec_support) { rspec.spec_dir }
|
11
|
-
watch(rspec.spec_files)
|
12
|
-
|
13
|
-
# Ruby files
|
14
|
-
ruby = dsl.ruby
|
15
|
-
dsl.watch_spec_files_for(ruby.lib_files)
|
16
|
-
end
|
data/Rakefile
DELETED
data/bin/console
DELETED
@@ -1,11 +0,0 @@
|
|
1
|
-
#!/usr/bin/env ruby
|
2
|
-
# frozen_string_literal: true
|
3
|
-
|
4
|
-
require 'bundler/setup'
|
5
|
-
require 'unwrappr'
|
6
|
-
|
7
|
-
# You can add fixtures and/or initialization code here to make experimenting
|
8
|
-
# with your gem easier. You can also use a different console, if you like.
|
9
|
-
|
10
|
-
require 'pry'
|
11
|
-
Pry.start
|
data/bin/setup
DELETED
data/unwrappr.gemspec
DELETED
@@ -1,61 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
lib = File.expand_path('lib', __dir__)
|
4
|
-
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
5
|
-
require 'unwrappr/version'
|
6
|
-
|
7
|
-
AUTHORS = {
|
8
|
-
'emilyn.escabarte@envato.com' => 'Emilyn Escabarte',
|
9
|
-
'joe.sustaric@envato.com' => 'Joe Sustaric',
|
10
|
-
'orien.madgwick@envato.com' => 'Orien Madgwick',
|
11
|
-
'pete.johns@envato.com' => 'Pete Johns',
|
12
|
-
'vladimir.chervanev@envato.com' => 'Vladimir Chervanev'
|
13
|
-
}.freeze
|
14
|
-
|
15
|
-
GITHUB_URL = 'https://github.com/envato/unwrappr'
|
16
|
-
HOMEPAGE_URL = 'https://opensource.envato.com/projects/unwrappr.html'
|
17
|
-
|
18
|
-
Gem::Specification.new do |spec| # rubocop:disable Metrics/BlockLength:
|
19
|
-
spec.name = 'unwrappr'
|
20
|
-
spec.version = Unwrappr::VERSION
|
21
|
-
spec.authors = AUTHORS.values
|
22
|
-
spec.email = AUTHORS.keys
|
23
|
-
|
24
|
-
spec.summary = "A tool to unwrap your gems and see what's changed easily"
|
25
|
-
spec.description = 'bundle update PRs: Automated. Annotated.'
|
26
|
-
spec.homepage = HOMEPAGE_URL
|
27
|
-
spec.license = 'MIT'
|
28
|
-
spec.required_ruby_version = '>= 2.5'
|
29
|
-
spec.required_rubygems_version = '>= 2.7'
|
30
|
-
|
31
|
-
spec.files = `git ls-files -z`.split("\x0").reject do |f|
|
32
|
-
f.match(%r{^(test|spec|features)/})
|
33
|
-
end
|
34
|
-
spec.bindir = 'exe'
|
35
|
-
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
36
|
-
spec.require_paths = ['lib']
|
37
|
-
|
38
|
-
spec.add_dependency 'bundler', '< 3'
|
39
|
-
spec.add_dependency 'bundler-audit', '>= 0.6.0'
|
40
|
-
spec.add_dependency 'clamp', '~> 1'
|
41
|
-
spec.add_dependency 'faraday', '~> 1'
|
42
|
-
spec.add_dependency 'git', '~> 1'
|
43
|
-
spec.add_dependency 'octokit', '~> 4.0'
|
44
|
-
spec.add_dependency 'safe_shell', '~> 1'
|
45
|
-
|
46
|
-
spec.add_development_dependency 'guard', '~> 2'
|
47
|
-
spec.add_development_dependency 'guard-rspec', '~> 4'
|
48
|
-
spec.add_development_dependency 'pry', '~> 0'
|
49
|
-
spec.add_development_dependency 'rake', '>= 12.3.3'
|
50
|
-
spec.add_development_dependency 'rspec', '~> 3.0'
|
51
|
-
spec.add_development_dependency 'rspec-its', '~> 1'
|
52
|
-
spec.add_development_dependency 'rubocop', '>= 0.49.0'
|
53
|
-
|
54
|
-
spec.metadata = {
|
55
|
-
'bug_tracker_uri' => "#{GITHUB_URL}/issues",
|
56
|
-
'changelog_uri' => "#{GITHUB_URL}/blob/HEAD/CHANGELOG.md",
|
57
|
-
'documentation_uri' => "#{GITHUB_URL}/blob/HEAD/README.md",
|
58
|
-
'homepage_uri' => HOMEPAGE_URL,
|
59
|
-
'source_code_uri' => GITHUB_URL
|
60
|
-
}
|
61
|
-
end
|