mondo 0.4.5 → 0.4.6
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/README.md +13 -1
- data/lib/mondo/client.rb +1 -1
- data/lib/mondo/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: 911f11bbf0d3a5a1910628f3d9c910ddd47b7dcc
|
4
|
+
data.tar.gz: e78cbb065f200978172bb9aea2d63903cde99834
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 65e99500e31c3cbe34ed15d7677d28d6bc7d6d088a80a1e5af0f1fd18f9246a8005ea986fe887ee875ddd46eb54f17d047f6b9998f0531ba49e90bf576fb271d
|
7
|
+
data.tar.gz: 1ffb3df87853b18c1fd1ff03642645663c2c9be613a8d586770af3fd65eb69260ece9ce48bb3367842b06efc9bb8025e714a92b4f3c5aa7a3502f4cbb1e8a72a
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
@@ -9,7 +9,7 @@ API documentation, usage guides, and setup information can be found at [getmondo
|
|
9
9
|
```ruby
|
10
10
|
mondo = Mondo::Client.new(
|
11
11
|
token: YOUR_TOKEN,
|
12
|
-
account_id: YOUR_ACCOUNT_ID
|
12
|
+
account_id: YOUR_ACCOUNT_ID # recommended, but optional. If not set, the client will fetch it from the API
|
13
13
|
)
|
14
14
|
```
|
15
15
|
|
@@ -115,4 +115,16 @@ mondo.web_hooks.first.delete
|
|
115
115
|
|
116
116
|
```
|
117
117
|
|
118
|
+
## Feed Items
|
118
119
|
|
120
|
+
```ruby
|
121
|
+
# Create a new feed item
|
122
|
+
|
123
|
+
mondo.create_feed_item(
|
124
|
+
title: "Foo",
|
125
|
+
image_url: "https://www.example.com/img.jpg", # small icon shown in the feed
|
126
|
+
url: "https://www.example.com", # when feed item is clicked, show this page in a webview
|
127
|
+
)
|
128
|
+
|
129
|
+
|
130
|
+
```
|
data/lib/mondo/client.rb
CHANGED
@@ -20,7 +20,7 @@ module Mondo
|
|
20
20
|
self.account_id = args.fetch(:account_id, nil)
|
21
21
|
self.api_url = args.fetch(:api_url, DEFAULT_API_URL)
|
22
22
|
raise ClientError.new("You must provide a token") unless self.access_token
|
23
|
-
set_account
|
23
|
+
set_account unless account_id
|
24
24
|
end
|
25
25
|
|
26
26
|
# Hacky
|
data/lib/mondo/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mondo
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tom Blomfield
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-11-
|
11
|
+
date: 2015-11-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: oauth2
|