danger-gem_changes 0.0.1 → 0.0.3

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b90abf7d1a201531f08f7af72190e138cf14c5f4f47dd238145fa9ba47b8f70e
4
- data.tar.gz: e2621d8f5b4ab6fd712c0b664e93922157f213f5260d9803faf85bec77056a79
3
+ metadata.gz: 59d7f53a0aa74339b86b9847b1b3416b5cb5a8d918ebe969cdca2b936407fc19
4
+ data.tar.gz: 000fa34400b3392649ae437f94ee55bdea025b212f3711bfd0e3ac07a7f0c6d2
5
5
  SHA512:
6
- metadata.gz: 5cad6310e609b0fb0278ac24b8e03b7057481d7799acdf33c5d1cac77e0270089b660625549bc7f51ee08a72ecb257a74b69885233dc2959470d76a9080c6e17
7
- data.tar.gz: 92a1e2d83779561eafa148d4eab18c2ae618750a178e50a5a4b0c8d6726b63906c64a47d385bffe0e5e11a1d5dc000faa7473a64979abec90d4b0f2a25108038
6
+ metadata.gz: 06ddb79761d667e5c894ed43af76481cd18a3728ddf9a5fa7dbe2fcb397173906a156caa30222baff4c3ce4adecc830f02d9649aea7d194c65de7be0560b0f01
7
+ data.tar.gz: eaba10548ca556d7cada7e59c5171d27d4539c0ba98fe18d780ac9bb4e4400daa13c486d2cdeba14034c96863e56d2430c543a57be0dd80ef9d7d130b1141b55
data/Gemfile.lock CHANGED
@@ -1,10 +1,9 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- danger-gem_changes (0.0.1)
4
+ danger-gem_changes (0.0.3)
5
5
  danger-plugin-api (~> 1.0)
6
6
  nokogiri (~> 1.0)
7
- open-uri (~> 0.4)
8
7
 
9
8
  GEM
10
9
  remote: https://rubygems.org/
@@ -37,7 +36,6 @@ GEM
37
36
  terminal-table (>= 1, < 4)
38
37
  danger-plugin-api (1.0.0)
39
38
  danger (> 2.0)
40
- date (3.3.4)
41
39
  debug (1.9.2)
42
40
  irb (~> 1.10)
43
41
  reline (>= 0.3.8)
@@ -96,10 +94,6 @@ GEM
96
94
  base64
97
95
  faraday (>= 1, < 3)
98
96
  sawyer (~> 0.9)
99
- open-uri (0.4.1)
100
- stringio
101
- time
102
- uri
103
97
  open4 (1.3.4)
104
98
  parallel (1.24.0)
105
99
  parser (3.3.1.0)
@@ -172,8 +166,6 @@ GEM
172
166
  terminal-table (3.0.2)
173
167
  unicode-display_width (>= 1.1.1, < 3)
174
168
  thor (1.3.1)
175
- time (0.3.0)
176
- date
177
169
  unicode-display_width (2.5.0)
178
170
  uri (0.13.0)
179
171
  yard (0.9.36)
@@ -19,8 +19,9 @@ Gem::Specification.new do |spec|
19
19
  spec.require_paths = ["lib"]
20
20
 
21
21
  spec.metadata["rubygems_mfa_required"] = "true"
22
+ spec.metadata["source_code_uri"] = spec.homepage
23
+ spec.metadata["issue_tracker_uri"] = "#{spec.homepage}/issues"
22
24
  spec.required_ruby_version = ">= 2.7"
23
25
  spec.add_runtime_dependency "danger-plugin-api", "~> 1.0"
24
26
  spec.add_runtime_dependency "nokogiri", "~> 1.0"
25
- spec.add_runtime_dependency "open-uri", "~> 0.4"
26
27
  end
@@ -1,12 +1,11 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  require "nokogiri"
4
- require "open-uri"
5
4
 
6
5
  module GemChanges
7
6
  Gem = Struct.new(:name, keyword_init: true) do
8
7
  def rubygems_uri
9
- "https://rubygems.org/gems/#{name}"
8
+ URI.parse("https://rubygems.org/gems/#{name}")
10
9
  end
11
10
 
12
11
  def changelog_uri
@@ -39,7 +38,7 @@ module GemChanges
39
38
  end
40
39
 
41
40
  def rubygems_html
42
- OpenURI.open_uri(rubygems_uri).read
41
+ Net::HTTP.get(rubygems_uri)
43
42
  end
44
43
  end
45
44
  end
@@ -49,11 +49,19 @@ module GemChanges
49
49
  end
50
50
 
51
51
  def source_link
52
- "[Source](#{gem.source_code_uri})"
52
+ if gem.source_code_uri
53
+ "[Source](#{gem.source_code_uri})"
54
+ else
55
+ "???"
56
+ end
53
57
  end
54
58
 
55
59
  def changelog_link
56
- "[Changelog](#{gem.changelog_uri})"
60
+ if gem.changelog_uri
61
+ "[Changelog](#{gem.changelog_uri})"
62
+ else
63
+ "???"
64
+ end
57
65
  end
58
66
 
59
67
  def change_link
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module GemChanges
4
- VERSION = "0.0.1"
4
+ VERSION = "0.0.3"
5
5
  end
@@ -97,7 +97,7 @@ module Danger
97
97
  | Gem | Source | Changelog | Change |
98
98
  | --- | ------ | --------- | ------ |
99
99
  | [rubocop-factory_bot](https://rubygems.org/gems/rubocop-factory_bot) | [Source](https://github.com/rubocop/rubocop-factory_bot) | [Changelog](https://github.com/rubocop/rubocop-factory_bot/blob/master/CHANGELOG.md) | [v2.25.0 <- v2.25.1](https://github.com/rubocop/rubocop-factory_bot/compare/v2.25.0...v2.25.1) |
100
- | [rubocop-performance](https://rubygems.org/gems/rubocop-performance) | [Source](https://github.com/rubocop/rubocop-performance/) | [Changelog](https://github.com/rubocop/rubocop-performance/blob/master/CHANGELOG.md) | Added at 1.21.0 |
100
+ | [rubocop-performance](https://rubygems.org/gems/rubocop-performance) | [Source](https://github.com/rubocop/rubocop-performance) | [Changelog](https://github.com/rubocop/rubocop-performance/blob/master/CHANGELOG.md) | Added at 1.21.0 |
101
101
  | [rubocop-rake](https://rubygems.org/gems/rubocop-rake) | [Source](https://github.com/rubocop/rubocop-rake) | [Changelog](https://github.com/rubocop/rubocop-rake/blob/master/CHANGELOG.md) | [v0.6.0 -> v0.6.1](https://github.com/rubocop/rubocop-rake/compare/v0.6.0...v0.6.1) |
102
102
  | [rubocop-rspec](https://rubygems.org/gems/rubocop-rspec) | [Source](https://github.com/rubocop/rubocop-rspec) | [Changelog](https://github.com/rubocop/rubocop-rspec/blob/master/CHANGELOG.md) | Removed at 2.29.2 |
103
103
  MARKDOWN
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: danger-gem_changes
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - John DeSilva
@@ -38,20 +38,6 @@ dependencies:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
40
  version: '1.0'
41
- - !ruby/object:Gem::Dependency
42
- name: open-uri
43
- requirement: !ruby/object:Gem::Requirement
44
- requirements:
45
- - - "~>"
46
- - !ruby/object:Gem::Version
47
- version: '0.4'
48
- type: :runtime
49
- prerelease: false
50
- version_requirements: !ruby/object:Gem::Requirement
51
- requirements:
52
- - - "~>"
53
- - !ruby/object:Gem::Version
54
- version: '0.4'
55
41
  description: A danger plugin for helping review gem depencency changes.
56
42
  email:
57
43
  - john@aesthetikx.info
@@ -84,6 +70,8 @@ licenses:
84
70
  - MIT
85
71
  metadata:
86
72
  rubygems_mfa_required: 'true'
73
+ source_code_uri: https://github.com/Aesthetikx/danger-gem_changes
74
+ issue_tracker_uri: https://github.com/Aesthetikx/danger-gem_changes/issues
87
75
  post_install_message:
88
76
  rdoc_options: []
89
77
  require_paths: