ask_awesomely 0.1.6 → 0.1.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/ask_awesomely/api_client.rb +3 -3
- data/lib/ask_awesomely/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 57f17215b78dd2e3143b8491973c5f92886e51eb
|
4
|
+
data.tar.gz: 896f7286ff272ff2a6ed5065a467d0506c8c3c71
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 41d6794bb832347d86d7d8a6052e928999fc2f640cfa5aaa59da04806374386b2a0128ee2533f15967c1a2ce653fc75e65325d545fa72abb89db8804240bdc4f
|
7
|
+
data.tar.gz: fbaf9fb504249c1f1d1e6f1b87a1dc39f9a41c47003c3967c2d953b38d3f0b5951ec26bed5d908b78b2b8d39e4e009b93315eb59c7e06c8d394d2c0f3c2116ba
|
@@ -2,13 +2,13 @@ module AskAwesomely
|
|
2
2
|
class ApiClient
|
3
3
|
|
4
4
|
USER_AGENT = "leemachin/ask_awesomely; (v#{AskAwesomely::VERSION})"
|
5
|
-
BASE_URL = "https://api.typeform.io/
|
5
|
+
BASE_URL = "https://api.typeform.io/v0.4"
|
6
6
|
ENDPOINTS = {
|
7
7
|
root: "/",
|
8
8
|
create_typeform: "/forms",
|
9
9
|
create_picture: "/images"
|
10
10
|
}
|
11
|
-
|
11
|
+
|
12
12
|
def initialize
|
13
13
|
Typhoeus::Config.user_agent = USER_AGENT
|
14
14
|
end
|
@@ -21,7 +21,7 @@ module AskAwesomely
|
|
21
21
|
|
22
22
|
JSON.parse(response.body)
|
23
23
|
end
|
24
|
-
|
24
|
+
|
25
25
|
def submit_typeform(typeform)
|
26
26
|
response = request.post(
|
27
27
|
url_for(:create_typeform),
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ask_awesomely
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Lee Machin
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2016-02-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk
|