mondo 0.1.0 → 0.2.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 +5 -0
- data/lib/mondo/client.rb +7 -2
- data/lib/mondo/resource.rb +2 -1
- data/lib/mondo/transaction.rb +1 -2
- data/lib/mondo/version.rb +1 -1
- data/lib/mondo.rb +2 -0
- metadata +2 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e0eadcfb7260e06e44c4838adf6d68466d28f3fe
|
4
|
+
data.tar.gz: 5082e8edfd785314ce5fa6d48780a0791804cccc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 02bc42ce75e5091103eb61be994bf3f01e6f81873a269b69b2f75c8b1c673d98f740e6f09db596e7bb36798f1faf4c2340744a98390c3987967b2305a5abf2f2
|
7
|
+
data.tar.gz: 6e852e2fb918493528192a72838e6fddc65566bda7b0e19111ff763d65bed9178ca82cc4cac088accfd3593408a92bce6c75dd8c5b27df1374a2f2dc8e827d94
|
data/CHANGELOG.md
CHANGED
data/lib/mondo/client.rb
CHANGED
@@ -95,6 +95,10 @@ module Mondo
|
|
95
95
|
resp.parsed["transactions"].map { |tx| Transaction.new(tx, self) }
|
96
96
|
end
|
97
97
|
|
98
|
+
def create_feed_item(params)
|
99
|
+
FeedItem.new(params, self).save
|
100
|
+
end
|
101
|
+
|
98
102
|
def user_agent
|
99
103
|
@user_agent ||=
|
100
104
|
begin
|
@@ -108,8 +112,6 @@ module Mondo
|
|
108
112
|
end
|
109
113
|
end
|
110
114
|
|
111
|
-
private
|
112
|
-
|
113
115
|
# Send a request to the Mondo API servers
|
114
116
|
#
|
115
117
|
# @param [Symbol] method the HTTP method to use (e.g. +:get+, +:post+)
|
@@ -125,6 +127,9 @@ module Mondo
|
|
125
127
|
opts[:headers]['Authorization'] = "Bearer #{@access_token}"
|
126
128
|
|
127
129
|
opts[:body] = MultiJson.encode(opts[:data]) if !opts[:data].nil?
|
130
|
+
|
131
|
+
puts opts
|
132
|
+
|
128
133
|
path = URI.encode(path)
|
129
134
|
|
130
135
|
resp = connection.run_request(method, path, opts[:body], opts[:headers]) do |req|
|
data/lib/mondo/resource.rb
CHANGED
data/lib/mondo/transaction.rb
CHANGED
data/lib/mondo/version.rb
CHANGED
data/lib/mondo.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mondo
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tom Blomfield
|
@@ -148,3 +148,4 @@ summary: Ruby wrapper for the Mondo API
|
|
148
148
|
test_files:
|
149
149
|
- spec/client_spec.rb
|
150
150
|
- spec/spec_helper.rb
|
151
|
+
has_rdoc:
|