isgd 1.0.4 → 1.0.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +3 -0
  3. data/lib/isgd.rb +3 -3
  4. metadata +5 -4
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 070a0e2e6ad334da8d2756385fb8fdb184b0c398
4
- data.tar.gz: b313ea6a9a08a41b0dec0a837b92a2d8c556909a
3
+ metadata.gz: 7ed97393f7aeb7dbed290f88c90a2ab9277dc9e5
4
+ data.tar.gz: f3824b671c8f586c3b546fcb74896e315f6916d5
5
5
  SHA512:
6
- metadata.gz: 7aa2591c91e64fc9b6fb6e5d2774ca1b99cb7739d5c545525623e8a877264fbbc197ddd82ce52c661c38ec1abef44b0b27f9a1d8e9d90c7860c78c06a5896ac0
7
- data.tar.gz: ca9464aaeb98429606203c3cfbbc6194bb4c39b7f628ee76ab348e185514076db1a88e1c633640fcfc80f1207844958e487e6cc7fd4b3ae9f603ee253772f0d4
6
+ metadata.gz: 3565009151f95a0103090981aeacdba1f67ecb663f996be8ab3278649c65c0e7d19c5bf4a9435b16ae3c2f2383d7147af48dab60201dbd0ce4d5d56a75e27d19
7
+ data.tar.gz: c5346a59dda7da2b536b04e358385d339fcec00195e8ddf8bff8ed5563bd38d27f771b128e3dfb6770973ba6a288ddb850dca4a43d378a0c52b2bbc0c23245e9
@@ -1,5 +1,8 @@
1
1
  # Changelog
2
2
  ## Version 1
3
+ ### Version 1.0.5
4
+ * Migrate to HTTPS. This resolves the 301 Moved Permanently errors (#1).
5
+
3
6
  ### Version 1.0.4
4
7
  * Bump HTTPClient version.
5
8
 
@@ -20,7 +20,7 @@ module ISGD
20
20
  params[:shorturl] = short if !short.nil? && 30 < short.length < 5
21
21
  @client = HTTPClient.new if @client.nil?
22
22
 
23
- response = JSON.parse(@client.get(URI.parse('http://is.gd/create.php'), params).body)
23
+ response = JSON.parse(@client.get(URI.parse('https://is.gd/create.php'), params).body)
24
24
 
25
25
  return response['errormessage'] if response.key?('errormessage')
26
26
 
@@ -40,10 +40,10 @@ module ISGD
40
40
  }
41
41
  @client = HTTPClient.new if @client.nil?
42
42
 
43
- response = JSON.parse(@client.get(URI.parse('http://is.gd/forward.php'), params).body)
43
+ response = JSON.parse(@client.get(URI.parse('https://is.gd/forward.php'), params).body)
44
44
 
45
45
  return response['errormessage'] if response.key?('errormessage')
46
46
 
47
47
  response['url']
48
48
  end
49
- end
49
+ end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: isgd
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.4
4
+ version: 1.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Eli Foster
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-05-02 00:00:00.000000000 Z
11
+ date: 2016-07-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httpclient
@@ -36,7 +36,7 @@ homepage: https://github.com/elifoster/isgd-rb
36
36
  licenses:
37
37
  - MIT
38
38
  metadata:
39
- issue_tracker: https://github.com/elifoster/isgdrb/issues
39
+ issue_tracker: https://github.com/elifoster/isgd-rb/issues
40
40
  post_install_message:
41
41
  rdoc_options: []
42
42
  require_paths:
@@ -53,8 +53,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
53
53
  version: '0'
54
54
  requirements: []
55
55
  rubyforge_project:
56
- rubygems_version: 2.5.1
56
+ rubygems_version: 2.6.4
57
57
  signing_key:
58
58
  specification_version: 4
59
59
  summary: A Ruby gem for interacting with the isgd API.
60
60
  test_files: []
61
+ has_rdoc: