compare_linker 1.4.3 → 1.4.5

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: a66e1f77f2336333a3fec1904453bed0c8e006981bce6cb3c07261e32d8f264a
4
- data.tar.gz: c840aa131e2ced1492a3c8ba2b3c468b19ed7914f1ba79de1ad71b338244f347
3
+ metadata.gz: fc63fffabfc64acf95ae11c5f5b4ebd775885a85ad089bfe992a153b12432498
4
+ data.tar.gz: 52e5c167c808c94b24b2bbf61e81db6d79c7b4c01bc62ea38acd35a63cb5267d
5
5
  SHA512:
6
- metadata.gz: a5f77468a540e60074128207a50a4880fa763b2a4b870d91a07e207750585e9af92c82dba8242a412bb1f6ba1ca050ef2285ef05a45af547e80de9e7be4094fe
7
- data.tar.gz: fd762ab40117f3c14411b43456b29eee15ee7dfa2effddb95a16bde412bf8f84f163baa3dc5a61580e8655944ca77ba94e0893fe7e6eb2486cc265732b469ea6
6
+ metadata.gz: 7874f494a8957094899656edb1588cfe66f8958d19e55c5eba7cec9a917b61f8b574e7ccb0fa85970f64770a3406b674e4785ae191a7c9b0cf33e1aa8cca136c
7
+ data.tar.gz: a7dd37d94699afcf549f5c0bf3b9e2dfe3e5d61f7a5d0faf479f338e21453b800a3c975588d8fc7e60777d5ddd4c2882093e07c58ff70036484609a3f9b20e31
@@ -0,0 +1,11 @@
1
+ # https://docs.github.com/en/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file
2
+ version: 2
3
+ updates:
4
+ - package-ecosystem: "github-actions"
5
+ directory: "/"
6
+ schedule:
7
+ interval: "monthly"
8
+ time: "19:00"
9
+ timezone: "Asia/Tokyo"
10
+ assignees:
11
+ - "masutaka"
@@ -0,0 +1,20 @@
1
+ name: Pushover
2
+
3
+ on:
4
+ workflow_call:
5
+
6
+ jobs:
7
+ pushover:
8
+ runs-on: ubuntu-latest
9
+ timeout-minutes: 5
10
+ steps:
11
+ - name: pushover-actions
12
+ uses: umahmood/pushover-actions@5da31193f672e7418804bdb51836bdf20f393c8f # v1.1.0
13
+ env:
14
+ PUSHOVER_TOKEN: ${{ secrets.PUSHOVER_API_KEY }}
15
+ PUSHOVER_USER: ${{ secrets.PUSHOVER_USER_KEY }}
16
+ with:
17
+ status: "failure"
18
+ title: "Failed ${{ github.event.repository.full_name }}'s workflow (${{ github.workflow }})"
19
+ url: "${{ github.server_url }}/${{ github.event.repository.full_name }}/actions/runs/${{ github.run_id }}"
20
+ priority: 1 # High
@@ -0,0 +1,48 @@
1
+ name: Test
2
+
3
+ on:
4
+ push:
5
+ branches:
6
+ - main
7
+ pull_request:
8
+
9
+ jobs:
10
+ actionlint:
11
+ runs-on: ubuntu-latest
12
+ timeout-minutes: 5
13
+ permissions:
14
+ checks: write
15
+ contents: read
16
+ pull-requests: write
17
+ steps:
18
+ - uses: actions/checkout@v4
19
+ - name: Run actionlint
20
+ uses: reviewdog/action-actionlint@fd627997c9688c2f39e13917aed23873c031b834 # v1.48.0
21
+ with:
22
+ fail_on_error: true
23
+ filter_mode: nofilter
24
+ level: error
25
+ reporter: github-pr-review
26
+ rspec:
27
+ runs-on: ubuntu-latest
28
+ timeout-minutes: 5
29
+ strategy:
30
+ matrix:
31
+ ruby-version:
32
+ - '3.0'
33
+ - '3.1'
34
+ - '3.2'
35
+ - '3.3'
36
+ steps:
37
+ - uses: actions/checkout@v4
38
+ - uses: ruby/setup-ruby@v1
39
+ with:
40
+ ruby-version: ${{ matrix.ruby-version }}
41
+ bundler-cache: true
42
+ - name: Run rspec
43
+ run: bundle exec rake spec
44
+ pushover:
45
+ name: pushover if failure
46
+ if: github.ref_name == github.event.repository.default_branch && failure()
47
+ needs: [actionlint, rspec]
48
+ uses: ./.github/workflows/pushover.yml
data/README.md CHANGED
@@ -1,11 +1,11 @@
1
1
  # Compare Linker
2
2
 
3
- [![Travis Status](https://img.shields.io/travis/masutaka/compare_linker.svg?logo=travis&style=flat-square)][travisci]
3
+ [![Test](https://github.com/masutaka/compare_linker/actions/workflows/test.yml/badge.svg)][Test]
4
4
  [![License](https://img.shields.io/github/license/masutaka/compare_linker.svg?style=flat-square)][license]
5
5
  [![Gem](https://img.shields.io/gem/v/compare_linker.svg?logo=ruby&style=flat-square)][gem-link]
6
6
 
7
- [travisci]: https://travis-ci.org/masutaka/compare_linker
8
- [license]: https://github.com/masutaka/compare_linker/blob/master/LICENSE.txt
7
+ [Test]: https://github.com/masutaka/compare_linker/actions/workflows/test.yml?query=branch%3Amain
8
+ [license]: https://github.com/masutaka/compare_linker/blob/main/LICENSE.txt
9
9
  [gem-link]: http://badge.fury.io/rb/compare_linker
10
10
 
11
11
  ## Description
@@ -22,7 +22,7 @@ class CompareLinker
22
22
  ].find { |uri| uri.to_s.match(/github\.com\//) }
23
23
 
24
24
  if github_url = redirect_url(github_url)
25
- _, @repo_owner, @repo_name = github_url.match(%r!github\.com/([^/]+)/([^/]+)!).to_a
25
+ _, @repo_owner, @repo_name = github_url.match(%r!github\.com/([^/]+)/([^/#]+)!).to_a
26
26
  else
27
27
  @repo_owner, @repo_name = gem_dictionary.lookup(gem_info["name"])
28
28
  @homepage_uri = gem_info["homepage_uri"]
@@ -1,4 +1,5 @@
1
1
  require "bundler"
2
+ require "base64"
2
3
 
3
4
  class CompareLinker
4
5
  class LockfileFetcher
@@ -1,3 +1,3 @@
1
1
  class CompareLinker
2
- VERSION = "1.4.3"
2
+ VERSION = "1.4.5"
3
3
  end
@@ -0,0 +1 @@
1
+ {"name":"digest-crc","downloads":24696499,"version":"0.5.1","version_downloads":404439,"platform":"ruby","authors":"Postmodern","info":"Adds support for calculating Cyclic Redundancy Check (CRC) to the Digest module.","licenses":["MIT"],"metadata":{"changelog_uri":"https://github.com/postmodern/digest-crc/blob/master/ChangeLog.md","bug_tracker_uri":"https://github.com/postmodern/digest-crc/issues","source_code_uri":"https://github.com/postmodern/digest-crc","documentation_uri":"https://rubydoc.info/gems/digest-crc"},"yanked":false,"sha":"697b64b7c94e46756c178840d42bebdae9ebdb215da682f00dc3e6f3a107c181","project_uri":"https://rubygems.org/gems/digest-crc","gem_uri":"https://rubygems.org/gems/digest-crc-0.5.1.gem","homepage_uri":"https://github.com/postmodern/digest-crc#readme","wiki_uri":null,"documentation_uri":"https://rubydoc.info/gems/digest-crc","mailing_list_uri":null,"source_code_uri":"https://github.com/postmodern/digest-crc","bug_tracker_uri":"https://github.com/postmodern/digest-crc/issues","changelog_uri":"https://github.com/postmodern/digest-crc/blob/master/ChangeLog.md","dependencies":{"development":[{"name":"bundler","requirements":"~\u003e 2.0"}],"runtime":[]}}
@@ -32,6 +32,19 @@ describe CompareLinker::GithubLinkFinder do
32
32
  end
33
33
  end
34
34
 
35
+ context "if github url includes hash" do
36
+ before do
37
+ allow(HTTPClient).to receive(:get_content).and_return load_fixture("digest-crc.json")
38
+ allow(subject).to receive(:redirect_url).and_return "https://github.com/postmodern/digest-crc#readme"
39
+ end
40
+
41
+ it "extracts repo_owner and repo_name" do
42
+ subject.find("digest-crc")
43
+ expect(subject.repo_owner).to eq "postmodern"
44
+ expect(subject.repo_name).to eq "digest-crc"
45
+ end
46
+ end
47
+
35
48
  context "if gem not found on rubygems.org" do
36
49
  before do
37
50
  exception = HTTPClient::BadResponseError.new "unexpected response:..."
metadata CHANGED
@@ -1,15 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: compare_linker
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.3
4
+ version: 1.4.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Takashi Masuda
8
8
  - Kensuke Nagae
9
- autorequire:
9
+ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2019-03-03 00:00:00.000000000 Z
12
+ date: 2024-06-16 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: octokit
@@ -103,9 +103,11 @@ executables: []
103
103
  extensions: []
104
104
  extra_rdoc_files: []
105
105
  files:
106
+ - ".github/dependabot.yml"
107
+ - ".github/workflows/pushover.yml"
108
+ - ".github/workflows/test.yml"
106
109
  - ".gitignore"
107
110
  - ".rspec"
108
- - ".travis.yml"
109
111
  - Gemfile
110
112
  - LICENSE.txt
111
113
  - README.md
@@ -128,6 +130,7 @@ files:
128
130
  - runner.rb
129
131
  - spec/factories/gem_info.rb
130
132
  - spec/fixtures/coffee-script-source.json
133
+ - spec/fixtures/digest-crc.json
131
134
  - spec/fixtures/rails.json
132
135
  - spec/fixtures/web_translate_it.json
133
136
  - spec/lib/compare_linker/formatter/markdown_spec.rb
@@ -140,7 +143,7 @@ homepage: https://github.com/masutaka/compare_linker
140
143
  licenses:
141
144
  - MIT
142
145
  metadata: {}
143
- post_install_message:
146
+ post_install_message:
144
147
  rdoc_options: []
145
148
  require_paths:
146
149
  - lib
@@ -155,13 +158,14 @@ required_rubygems_version: !ruby/object:Gem::Requirement
155
158
  - !ruby/object:Gem::Version
156
159
  version: '0'
157
160
  requirements: []
158
- rubygems_version: 3.0.1
159
- signing_key:
161
+ rubygems_version: 3.5.3
162
+ signing_key:
160
163
  specification_version: 4
161
164
  summary: Create GitHub's compare view URLs for pull request
162
165
  test_files:
163
166
  - spec/factories/gem_info.rb
164
167
  - spec/fixtures/coffee-script-source.json
168
+ - spec/fixtures/digest-crc.json
165
169
  - spec/fixtures/rails.json
166
170
  - spec/fixtures/web_translate_it.json
167
171
  - spec/lib/compare_linker/formatter/markdown_spec.rb
data/.travis.yml DELETED
@@ -1,6 +0,0 @@
1
- language: ruby
2
- rvm:
3
- - 2.6.1
4
- - 2.5.3
5
- - 2.4.5
6
- - 2.3.8