kutt 0.1.2 → 0.2
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.
- checksums.yaml +4 -4
- data/lib/kutt.rb +2 -2
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 396005f27cb2300a33bfe3e11fee78a5f92504d497defdc9eaef0f2a2ea73c31
|
|
4
|
+
data.tar.gz: f1d7ff7258999aa3f97c11bc0e38123530a360bfdf6454f555f4cca582c9abcf
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 1c4752eb6e59d9bcaee2e4c257c545c84a0e805eb1d07bd3342a8bd4c7ff824e691df2b8772bad012ec3ca12fa48033c1881a7b0ca3b641c8f20d6275ddff27b
|
|
7
|
+
data.tar.gz: 982c0e772abb7f58c15e201c14a63d13cb30bcd219b2df5a777cb9facee0acd6c5096588b88eed411a1860289036af48d7ebe66071a0d1b7c00321cc310a8c31
|
data/lib/kutt.rb
CHANGED
|
@@ -2,8 +2,8 @@ require 'httparty'
|
|
|
2
2
|
require 'json'
|
|
3
3
|
|
|
4
4
|
class Kutt
|
|
5
|
-
def initialize(apikey)
|
|
6
|
-
@base_url =
|
|
5
|
+
def initialize(apikey, base_url = 'https://kutt.it')
|
|
6
|
+
@base_url = base_url
|
|
7
7
|
@headers = { 'Content-Type': 'application/json', 'Accept': 'application/json',
|
|
8
8
|
'X-API-Key': apikey}
|
|
9
9
|
return true
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: kutt
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: '0.2'
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Amirali Esfandiari
|
|
@@ -9,7 +9,7 @@ authors:
|
|
|
9
9
|
autorequire:
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date:
|
|
12
|
+
date: 2020-09-30 00:00:00.000000000 Z
|
|
13
13
|
dependencies: []
|
|
14
14
|
description: library for url shortener service kutt.it
|
|
15
15
|
email: amiralinull@gmail.com
|
|
@@ -37,7 +37,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
37
37
|
- !ruby/object:Gem::Version
|
|
38
38
|
version: '0'
|
|
39
39
|
requirements: []
|
|
40
|
-
rubygems_version: 3.
|
|
40
|
+
rubygems_version: 3.1.2
|
|
41
41
|
signing_key:
|
|
42
42
|
specification_version: 4
|
|
43
43
|
summary: Ruby wrapper for kutt.it
|