arxiv 0.1.4 → 0.1.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
  SHA1:
3
- metadata.gz: 6b3c270215d3c9b3813d3c92d9c10d2c170a3881
4
- data.tar.gz: a739179d013070d32ad37e6f78a6c413858c85c2
3
+ metadata.gz: ce7996cf522e9c90561c0a9515aa22f613124d22
4
+ data.tar.gz: 0cf53c4ddba5b607f90778c5702de317177b0c1f
5
5
  SHA512:
6
- metadata.gz: f6c947d476518316af35c3ae69e80dde43d382803c8848db0a2eeddbe88a72302d00d63a9b7045db9775241592e9dfe85e100a5a15de098cb9958b159ebe7892
7
- data.tar.gz: 31ede1191b470074922d30d6e3281cb2e06867d3990c0e1dd7b9ab52c3e34284645a65beb66d0d0c0b722d2e268610c1287d851951f44277a1dd07672f6fe8bf
6
+ metadata.gz: 0273f198800bf6e4f9c26280baf5ea96d970e9aecf3cfb03da8f434877219786658aee95a570d78dd55fd231e36684f8490abf46e84531283b2e670c6d41b7d3
7
+ data.tar.gz: a346fca87434112820fd44407d4f45ddce88bc38abceb16c4ed84c51d5c781249a8028b416840025c1fb3b51a51af51d1d9ae075492f9ded4c85569e20e0f09f
@@ -51,6 +51,7 @@ module Arxiv
51
51
  def pdf_url
52
52
  if available_in_pdf?
53
53
  url = links.find { |l| l.content_type == "application/pdf" }.url
54
+ url = StringScrubber.force_ssl_url(url)
54
55
  "#{url}.pdf" unless url =~ /\.pdf$/
55
56
  end
56
57
  end
@@ -1,3 +1,3 @@
1
1
  module Arxiv
2
- VERSION = "0.1.4"
2
+ VERSION = "0.1.5"
3
3
  end
@@ -93,7 +93,7 @@ module Arxiv
93
93
 
94
94
  describe "pdf_url" do
95
95
  it "should return the url to download the manuscript in PDF format" do
96
- expect(@manuscript.pdf_url).to eql('http://arxiv.org/pdf/1202.0819v1.pdf')
96
+ expect(@manuscript.pdf_url).to eql('https://arxiv.org/pdf/1202.0819v1.pdf')
97
97
  end
98
98
  end
99
99
 
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.1.4
4
+ version: 0.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Scholastica