arxiv 0.1.7 → 0.1.10

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: 1edec782b776e7b7c0b094d5ac28080d019fe9dc
4
- data.tar.gz: b1267323afeb55920bbf7c06d7201c5124af98cd
2
+ SHA256:
3
+ metadata.gz: a87c7a8485b253f211621f402198eb53b1ed73f9433d9cb6fc03a82e3c628147
4
+ data.tar.gz: 541f006fa2ad13b80ea59098c37a7e08fe3d4de1f047d36dfbe7c98356e264fe
5
5
  SHA512:
6
- metadata.gz: b633003bd20f55dcc3440776906b29bd5f1713b979e31b5688b7546115f12c64fc2c35143309b17fb361affb1e95638e96f3218aaae0189dd590b7f2e4e72f8a
7
- data.tar.gz: a2daa99ad08adc5d28a25293d997940d8e799b6cb10a633a31d9cb86ff4b9094bdbcadafdab109fed9e5aec86c47ef89df8bb08d540ba79ac30fa2142449eea6
6
+ metadata.gz: 9d47774332a475a7452d10386f2c1199060dd0800b3c7e4962112ca1aa2cb16b9e856517806e85fdbc7c21d1c375567a1c40807eddf84de2be2df1d78d1700f2
7
+ data.tar.gz: 83bc6368247203bbf6fb77e9681a1e8ced2ebfb0daa2f6ecf0ac86f0d4c37efb4e5753d5c85d7e2f62fb492083c97cbc15d8deb3ffa6c1623efe8af3a1a38024
@@ -14,16 +14,16 @@ jobs:
14
14
  - name: Run tests
15
15
  run: rspec .
16
16
 
17
- deploy:
17
+ publish:
18
18
  name: Build and publish gem
19
- # if: github.ref == 'refs/heads/main' && needs.test.result == 'success'
19
+ if: github.ref == 'refs/heads/main' && needs.test.result == 'success'
20
20
  needs: test
21
21
  runs-on: ubuntu-latest
22
22
 
23
23
  steps:
24
24
  - uses: actions/checkout@v3
25
25
  - name: Set up Ruby
26
- uses: ruby/setup-ruby@477b21f02be01bcb8030d50f37cfec92bfa615b6
26
+ uses: ruby/setup-ruby@359bebbc29cbe6c87da6bc9ea3bc930432750108
27
27
  - name: Publish to GPR
28
28
  run: |
29
29
  curl -u $RUBYGEMS_USERNAME:$RUBYGEMS_PASSWORD https://rubygems.org/api/v1/api_key.yaml > ~/.gem/credentials; chmod 0600 ~/.gem/credentials
data/.ruby-version CHANGED
@@ -1 +1 @@
1
- ruby-2.2.1
1
+ 2.7.4
data/lib/arxiv/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Arxiv
2
- VERSION = "0.1.7"
2
+ VERSION = "0.1.10"
3
3
  end
data/lib/arxiv.rb CHANGED
@@ -39,7 +39,7 @@ module Arxiv
39
39
  end
40
40
 
41
41
  url = ::URI.parse("http://export.arxiv.org/api/query?id_list=#{id}")
42
- response = ::Nokogiri::XML(open(url)).remove_namespaces!
42
+ response = ::Nokogiri::XML(URI.open(url)).remove_namespaces!
43
43
  manuscript = Arxiv::Manuscript.parse(response.to_s, single: id)
44
44
 
45
45
  raise Arxiv::Error::ManuscriptNotFound, "Manuscript #{id} doesn't exist on arXiv" if manuscript.title.nil?
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: arxiv
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.7
4
+ version: 0.1.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Scholastica
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-04-25 00:00:00.000000000 Z
11
+ date: 2022-06-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: happymapper
@@ -124,7 +124,6 @@ files:
124
124
  - lib/arxiv/models/manuscript.rb
125
125
  - lib/arxiv/string_scrubber.rb
126
126
  - lib/arxiv/version.rb
127
- - package-lock.json
128
127
  - spec/arxiv/arxiv_spec.rb
129
128
  - spec/arxiv/models/author_spec.rb
130
129
  - spec/arxiv/models/category_spec.rb
@@ -150,8 +149,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
150
149
  - !ruby/object:Gem::Version
151
150
  version: '0'
152
151
  requirements: []
153
- rubyforge_project: arxiv
154
- rubygems_version: 2.4.5.5
152
+ rubygems_version: 3.1.6
155
153
  signing_key:
156
154
  specification_version: 4
157
155
  summary: Ruby wrapper accessing the arXiv API
data/package-lock.json DELETED
@@ -1,6 +0,0 @@
1
- {
2
- "name": "arxiv",
3
- "lockfileVersion": 2,
4
- "requires": true,
5
- "packages": {}
6
- }