arxiv 0.0.6 → 0.0.7

Sign up to get free protection for your applications and to get access to all the features.
@@ -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 uses MIT-LICENSE.
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
Binary file
@@ -49,7 +49,10 @@ module Arxiv
49
49
  end
50
50
 
51
51
  def pdf_url
52
- links.find { |l| l.content_type == "application/pdf" }.url if available_in_pdf?
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
@@ -1,3 +1,3 @@
1
1
  module Arxiv
2
- VERSION = "0.0.6"
2
+ VERSION = "0.0.7"
3
3
  end
@@ -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.6
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: 2012-03-04 00:00:00.000000000Z
14
+ date: 2013-02-07 00:00:00.000000000Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: happymapper
18
- requirement: &2156944160 !ruby/object:Gem::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: *2156944160
26
+ version_requirements: *70223325202200
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: nokogiri
29
- requirement: &2156943740 !ruby/object:Gem::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: *2156943740
37
+ version_requirements: *70223325201780
38
38
  - !ruby/object:Gem::Dependency
39
39
  name: rspec
40
- requirement: &2156943320 !ruby/object:Gem::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: *2156943320
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.10
98
+ rubygems_version: 1.8.15
98
99
  signing_key:
99
100
  specification_version: 3
100
101
  summary: Ruby wrapper accessing the arXiv API