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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a44071b97b0fc8ee7fb8bb871a51d44137123871
4
- data.tar.gz: 41291a742f922ea9158275b3a96533a12a8df905
3
+ metadata.gz: 911f11bbf0d3a5a1910628f3d9c910ddd47b7dcc
4
+ data.tar.gz: e78cbb065f200978172bb9aea2d63903cde99834
5
5
  SHA512:
6
- metadata.gz: 783a7f93c202ce1d75c82ef19954391a970455511b207923d3348edea6a7c647732fce3bdf66d4fe69bc8425d96756d1bf9a073a7e4fefbf38709f7f0554f0cc
7
- data.tar.gz: 8d2a87abe38ea6fe33f3b69d98ecbd6b111bdbcbbc15082417fc15fcce8e0f62afec3fa883d84686dcc281daa4a69b612e94c626d31fa0e9443d48f23cf2360a
6
+ metadata.gz: 65e99500e31c3cbe34ed15d7677d28d6bc7d6d088a80a1e5af0f1fd18f9246a8005ea986fe887ee875ddd46eb54f17d047f6b9998f0531ba49e90bf576fb271d
7
+ data.tar.gz: 1ffb3df87853b18c1fd1ff03642645663c2c9be613a8d586770af3fd65eb69260ece9ce48bb3367842b06efc9bb8025e714a92b4f3c5aa7a3502f4cbb1e8a72a
data/CHANGELOG.md CHANGED
@@ -1,3 +1,8 @@
1
+ ## 0.4.6 - Novermber 14, 2015
2
+
3
+ - Only fetch account_if if not set
4
+
5
+
1
6
  ## 0.4.5 - Novermber 14, 2015
2
7
 
3
8
  - Add support for balance
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
@@ -1,3 +1,3 @@
1
1
  module Mondo
2
- VERSION = '0.4.5'.freeze
2
+ VERSION = '0.4.6'.freeze
3
3
  end
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.5
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-14 00:00:00.000000000 Z
11
+ date: 2015-11-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: oauth2