arxiv 0.0.6 → 0.0.7
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.
- data/README.rdoc +3 -1
- data/doc/arxiv-logo.psd +0 -0
- data/lib/arxiv/models/manuscript.rb +4 -1
- data/lib/arxiv/version.rb +1 -1
- data/spec/arxiv/models/manuscript_spec.rb +1 -1
- metadata +10 -9
data/README.rdoc
CHANGED
@@ -39,4 +39,6 @@ Look at a manuscript's categories:
|
|
39
39
|
manuscript.primary_category.description # => "Physics - Instrumentation and Methods for Astrophysics"
|
40
40
|
|
41
41
|
== License
|
42
|
-
This project
|
42
|
+
This is an open source project built by {Scholastica}[https://scholasticahq.com] under the {MIT-LICENSE}[https://github.com/scholastica/timber/blob/master/MIT-LICENSE].
|
43
|
+
|
44
|
+
http://docs.scholastica.s3.amazonaws.com/github_scholastica_footer_logo.png
|
data/doc/arxiv-logo.psd
ADDED
Binary file
|
@@ -49,7 +49,10 @@ module Arxiv
|
|
49
49
|
end
|
50
50
|
|
51
51
|
def pdf_url
|
52
|
-
|
52
|
+
if available_in_pdf?
|
53
|
+
url = links.find { |l| l.content_type == "application/pdf" }.url
|
54
|
+
"#{url}.pdf" unless url =~ /\.pdf$/
|
55
|
+
end
|
53
56
|
end
|
54
57
|
|
55
58
|
end
|
data/lib/arxiv/version.rb
CHANGED
@@ -91,7 +91,7 @@ module Arxiv
|
|
91
91
|
|
92
92
|
describe "pdf_url" do
|
93
93
|
it "should return the url to download the manuscript in PDF format" do
|
94
|
-
@manuscript.pdf_url.should == 'http://arxiv.org/pdf/1202.0819v1'
|
94
|
+
@manuscript.pdf_url.should == 'http://arxiv.org/pdf/1202.0819v1.pdf'
|
95
95
|
end
|
96
96
|
end
|
97
97
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: arxiv
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.7
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -11,11 +11,11 @@ authors:
|
|
11
11
|
autorequire:
|
12
12
|
bindir: bin
|
13
13
|
cert_chain: []
|
14
|
-
date:
|
14
|
+
date: 2013-02-07 00:00:00.000000000Z
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: happymapper
|
18
|
-
requirement: &
|
18
|
+
requirement: &70223325202200 !ruby/object:Gem::Requirement
|
19
19
|
none: false
|
20
20
|
requirements:
|
21
21
|
- - ! '>='
|
@@ -23,10 +23,10 @@ dependencies:
|
|
23
23
|
version: '0'
|
24
24
|
type: :runtime
|
25
25
|
prerelease: false
|
26
|
-
version_requirements: *
|
26
|
+
version_requirements: *70223325202200
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: nokogiri
|
29
|
-
requirement: &
|
29
|
+
requirement: &70223325201780 !ruby/object:Gem::Requirement
|
30
30
|
none: false
|
31
31
|
requirements:
|
32
32
|
- - ! '>='
|
@@ -34,10 +34,10 @@ dependencies:
|
|
34
34
|
version: '0'
|
35
35
|
type: :runtime
|
36
36
|
prerelease: false
|
37
|
-
version_requirements: *
|
37
|
+
version_requirements: *70223325201780
|
38
38
|
- !ruby/object:Gem::Dependency
|
39
39
|
name: rspec
|
40
|
-
requirement: &
|
40
|
+
requirement: &70223327886520 !ruby/object:Gem::Requirement
|
41
41
|
none: false
|
42
42
|
requirements:
|
43
43
|
- - ! '>='
|
@@ -45,7 +45,7 @@ dependencies:
|
|
45
45
|
version: '0'
|
46
46
|
type: :development
|
47
47
|
prerelease: false
|
48
|
-
version_requirements: *
|
48
|
+
version_requirements: *70223327886520
|
49
49
|
description: Makes interacting with arXiv data really easy.
|
50
50
|
email:
|
51
51
|
- coryschires@gmail.com
|
@@ -61,6 +61,7 @@ files:
|
|
61
61
|
- README.rdoc
|
62
62
|
- Rakefile
|
63
63
|
- arxiv.gemspec
|
64
|
+
- doc/arxiv-logo.psd
|
64
65
|
- lib/arxiv.rb
|
65
66
|
- lib/arxiv/models/author.rb
|
66
67
|
- lib/arxiv/models/category.rb
|
@@ -94,7 +95,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
94
95
|
version: '0'
|
95
96
|
requirements: []
|
96
97
|
rubyforge_project: arxiv
|
97
|
-
rubygems_version: 1.8.
|
98
|
+
rubygems_version: 1.8.15
|
98
99
|
signing_key:
|
99
100
|
specification_version: 3
|
100
101
|
summary: Ruby wrapper accessing the arXiv API
|