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 +5 -5
- data/.github/workflows/ci.yml +3 -3
- data/.ruby-version +1 -1
- data/lib/arxiv/version.rb +1 -1
- data/lib/arxiv.rb +1 -1
- metadata +3 -5
- data/package-lock.json +0 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: a87c7a8485b253f211621f402198eb53b1ed73f9433d9cb6fc03a82e3c628147
|
4
|
+
data.tar.gz: 541f006fa2ad13b80ea59098c37a7e08fe3d4de1f047d36dfbe7c98356e264fe
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9d47774332a475a7452d10386f2c1199060dd0800b3c7e4962112ca1aa2cb16b9e856517806e85fdbc7c21d1c375567a1c40807eddf84de2be2df1d78d1700f2
|
7
|
+
data.tar.gz: 83bc6368247203bbf6fb77e9681a1e8ced2ebfb0daa2f6ecf0ac86f0d4c37efb4e5753d5c85d7e2f62fb492083c97cbc15d8deb3ffa6c1623efe8af3a1a38024
|
data/.github/workflows/ci.yml
CHANGED
@@ -14,16 +14,16 @@ jobs:
|
|
14
14
|
- name: Run tests
|
15
15
|
run: rspec .
|
16
16
|
|
17
|
-
|
17
|
+
publish:
|
18
18
|
name: Build and publish gem
|
19
|
-
|
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@
|
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
|
-
|
1
|
+
2.7.4
|
data/lib/arxiv/version.rb
CHANGED
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.
|
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-
|
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
|
-
|
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
|