loquor 0.6.0 → 0.7.0
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/loquor/http_action.rb +3 -3
- data/lib/loquor/resource.rb +1 -1
- data/lib/loquor/resource_mock.rb +4 -0
- data/lib/loquor/version.rb +1 -1
- data/test/resource_test.rb +6 -0
- 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: 837513aa345f52c304b8524e4e0c7f8b12dd5869
|
4
|
+
data.tar.gz: 13a5373cc387569f252695d476fd03ec5a477fc5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3d5a08684effe150f0dad33625649399953dab6c79996c7a9c4c1187e27523c76571902c4a3bbcfba7acd55f8eebf30c3355892bb1ade2cd6f8cf413ca3fb333
|
7
|
+
data.tar.gz: 10c496162c95d058cd31c1e7299c9e62c0d32d8203ef0ce7998429fb4e4f8756c6c649a8c2a56e347ec3fec4b62142f4c417f08bd5682ea4cd454bf34506b8f1
|
data/CHANGELOG.md
CHANGED
data/lib/loquor/http_action.rb
CHANGED
@@ -10,7 +10,7 @@ module Loquor
|
|
10
10
|
@config.logger.info "Signing request."
|
11
11
|
ApiAuth.sign!(request, @config.access_id, @config.secret_key)
|
12
12
|
end
|
13
|
-
|
13
|
+
|
14
14
|
def execute
|
15
15
|
@config.logger.info "Making HTTP request to: #{full_url}"
|
16
16
|
signed_request.execute
|
@@ -21,9 +21,9 @@ module Loquor
|
|
21
21
|
@config.logger.error("Exception while executing request: #{e.message} <#{e.class}>")
|
22
22
|
raise
|
23
23
|
end
|
24
|
-
|
24
|
+
|
25
25
|
private
|
26
|
-
|
26
|
+
|
27
27
|
def full_url
|
28
28
|
"#{@config.endpoint}#{@url}"
|
29
29
|
end
|
data/lib/loquor/resource.rb
CHANGED
data/lib/loquor/resource_mock.rb
CHANGED
data/lib/loquor/version.rb
CHANGED
data/test/resource_test.rb
CHANGED
@@ -38,6 +38,12 @@ module Loquor
|
|
38
38
|
Foobar.where(email: email).to_a
|
39
39
|
end
|
40
40
|
|
41
|
+
def test_create_should_put_correct_params
|
42
|
+
payload = {bar: 'foo'}
|
43
|
+
Loquor.expects(:post).with("/foobar", payload: payload)
|
44
|
+
Foobar.create(payload)
|
45
|
+
end
|
46
|
+
|
41
47
|
def test_update_should_put_correct_params
|
42
48
|
id = 8
|
43
49
|
payload = {bar: 'foo'}
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: loquor
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.7.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jeremy Walker
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-12-
|
11
|
+
date: 2013-12-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: filum
|