isgd 1.0.4 → 1.0.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +3 -0
- data/lib/isgd.rb +3 -3
- metadata +5 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7ed97393f7aeb7dbed290f88c90a2ab9277dc9e5
|
4
|
+
data.tar.gz: f3824b671c8f586c3b546fcb74896e315f6916d5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3565009151f95a0103090981aeacdba1f67ecb663f996be8ab3278649c65c0e7d19c5bf4a9435b16ae3c2f2383d7147af48dab60201dbd0ce4d5d56a75e27d19
|
7
|
+
data.tar.gz: c5346a59dda7da2b536b04e358385d339fcec00195e8ddf8bff8ed5563bd38d27f771b128e3dfb6770973ba6a288ddb850dca4a43d378a0c52b2bbc0c23245e9
|
data/CHANGELOG.md
CHANGED
data/lib/isgd.rb
CHANGED
@@ -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('
|
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('
|
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
|
+
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-
|
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/
|
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.
|
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:
|