milkman 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 38520a80fb1607bb32d9720b75f40133869eaaf0
4
+ data.tar.gz: 80984262fdce323445dd1e42b60947d4b823f606
5
+ SHA512:
6
+ metadata.gz: 7bb839ff26427753b5ee0c135231235676bc872e4c56ddaa895bd14e765b10db92b498b86c85aae1986327c17c2e6c7c57a6e541959b2ddeac3524b423027d2b
7
+ data.tar.gz: b192f495d38233a6c7bf3376c473a06ac6d1f1bc3857073e1efcf10d65e6e48c81ee09da3e220ffd2a2865a93eac6e89ad1987664dc11283444d7a05a7409250
@@ -1 +1 @@
1
- ruby-1.9.3-p392
1
+ ruby-2.1.5
data/README.md CHANGED
@@ -1,5 +1,6 @@
1
1
  # Milkman
2
2
 
3
+ [![Gem Version](https://badge.fury.io/rb/milkman.png)](http://badge.fury.io/rb/milkman)
3
4
  [![Build Status](https://travis-ci.org/kevintuhumury/milkman.png?branch=master)](https://travis-ci.org/kevintuhumury/milkman)
4
5
  [![Dependency Status](https://gemnasium.com/kevintuhumury/milkman.png)](https://gemnasium.com/kevintuhumury/milkman)
5
6
  [![Code Climate](https://codeclimate.com/github/kevintuhumury/milkman.png)](https://codeclimate.com/github/kevintuhumury/milkman)
@@ -61,7 +62,9 @@ Using Milkman is easy. All you need to know is that all calls go through the `Mi
61
62
 
62
63
  In order to retrieve the above information, we'll need an instance of the Milkman client. So let's create it:
63
64
 
64
- client = Milkman::Client.new api_key: API_KEY, shared_secret: SHARED_SECRET, auth_token: AUTH_TOKEN
65
+ ```ruby
66
+ client = Milkman::Client.new api_key: API_KEY, shared_secret: SHARED_SECRET, auth_token: AUTH_TOKEN
67
+ ```
65
68
 
66
69
  That's it.
67
70
 
@@ -69,16 +72,24 @@ That's it.
69
72
 
70
73
  Now, let's call our `rtm.tasks.getList` method:
71
74
 
72
- client.get "rtm.tasks.getList"
75
+ ```ruby
76
+ client.get "rtm.tasks.getList"
77
+ ```
73
78
 
74
79
  The above call will return every task you have. As can be seen on the [API page](https://www.rememberthemilk.com/services/api/methods/rtm.tasks.getList.rtm) of the above method, there are a couple of optional parameters, like `list_id`, `filter` and `last_sync`. These can be used as follows:
75
80
 
76
- client.get "rtm.tasks.getList", { list_id: 1, filter: "some filter" }
81
+ ```ruby
82
+ client.get "rtm.tasks.getList", { list_id: 1, filter: "some filter" }
83
+ ```
77
84
 
78
85
  ### Response format
79
86
 
80
87
  Eventhough the API documentation shows the responses as XML, Milkman will return JSON as it's default response format.
81
88
 
89
+ ### Example usage of Milkman
90
+
91
+ Milkman was actually created to power the [Milkman Dashing widget](https://github.com/kevintuhumury/dashing-milkman). You can check out a preview [here](https://github.com/kevintuhumury/dashing-milkman#preview).
92
+
82
93
  ## Contributing
83
94
 
84
95
  You're very welcome to contribute to this gem. To do so, please follow these steps:
@@ -24,7 +24,7 @@ module Milkman
24
24
  private
25
25
 
26
26
  def request
27
- @response ||= self.class.get @url
27
+ @response ||= self.class.get @url, format: :json
28
28
  end
29
29
 
30
30
  def response
@@ -1,3 +1,3 @@
1
1
  module Milkman
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
@@ -23,7 +23,7 @@ module Milkman
23
23
  end
24
24
 
25
25
  it "makes a call to the RTM API" do
26
- described_class.should_receive(:get).with url
26
+ described_class.should_receive(:get).with url, format: :json
27
27
  described_class.call url
28
28
  end
29
29
 
metadata CHANGED
@@ -1,158 +1,139 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: milkman
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
5
- prerelease:
4
+ version: 0.0.2
6
5
  platform: ruby
7
6
  authors:
8
7
  - Kevin Tuhumury
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2013-04-09 00:00:00.000000000 Z
11
+ date: 2015-02-24 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: thor
16
15
  requirement: !ruby/object:Gem::Requirement
17
- none: false
18
16
  requirements:
19
- - - ! '>='
17
+ - - ">="
20
18
  - !ruby/object:Gem::Version
21
19
  version: '0'
22
20
  type: :runtime
23
21
  prerelease: false
24
22
  version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
23
  requirements:
27
- - - ! '>='
24
+ - - ">="
28
25
  - !ruby/object:Gem::Version
29
26
  version: '0'
30
27
  - !ruby/object:Gem::Dependency
31
28
  name: i18n
32
29
  requirement: !ruby/object:Gem::Requirement
33
- none: false
34
30
  requirements:
35
- - - ! '>='
31
+ - - ">="
36
32
  - !ruby/object:Gem::Version
37
33
  version: '0'
38
34
  type: :runtime
39
35
  prerelease: false
40
36
  version_requirements: !ruby/object:Gem::Requirement
41
- none: false
42
37
  requirements:
43
- - - ! '>='
38
+ - - ">="
44
39
  - !ruby/object:Gem::Version
45
40
  version: '0'
46
41
  - !ruby/object:Gem::Dependency
47
42
  name: httparty
48
43
  requirement: !ruby/object:Gem::Requirement
49
- none: false
50
44
  requirements:
51
- - - ! '>='
45
+ - - ">="
52
46
  - !ruby/object:Gem::Version
53
47
  version: '0'
54
48
  type: :runtime
55
49
  prerelease: false
56
50
  version_requirements: !ruby/object:Gem::Requirement
57
- none: false
58
51
  requirements:
59
- - - ! '>='
52
+ - - ">="
60
53
  - !ruby/object:Gem::Version
61
54
  version: '0'
62
55
  - !ruby/object:Gem::Dependency
63
56
  name: bundler
64
57
  requirement: !ruby/object:Gem::Requirement
65
- none: false
66
58
  requirements:
67
- - - ~>
59
+ - - "~>"
68
60
  - !ruby/object:Gem::Version
69
61
  version: '1.3'
70
62
  type: :development
71
63
  prerelease: false
72
64
  version_requirements: !ruby/object:Gem::Requirement
73
- none: false
74
65
  requirements:
75
- - - ~>
66
+ - - "~>"
76
67
  - !ruby/object:Gem::Version
77
68
  version: '1.3'
78
69
  - !ruby/object:Gem::Dependency
79
70
  name: rake
80
71
  requirement: !ruby/object:Gem::Requirement
81
- none: false
82
72
  requirements:
83
- - - ! '>='
73
+ - - ">="
84
74
  - !ruby/object:Gem::Version
85
75
  version: '0'
86
76
  type: :development
87
77
  prerelease: false
88
78
  version_requirements: !ruby/object:Gem::Requirement
89
- none: false
90
79
  requirements:
91
- - - ! '>='
80
+ - - ">="
92
81
  - !ruby/object:Gem::Version
93
82
  version: '0'
94
83
  - !ruby/object:Gem::Dependency
95
84
  name: rspec
96
85
  requirement: !ruby/object:Gem::Requirement
97
- none: false
98
86
  requirements:
99
- - - ! '>='
87
+ - - ">="
100
88
  - !ruby/object:Gem::Version
101
89
  version: '0'
102
90
  type: :development
103
91
  prerelease: false
104
92
  version_requirements: !ruby/object:Gem::Requirement
105
- none: false
106
93
  requirements:
107
- - - ! '>='
94
+ - - ">="
108
95
  - !ruby/object:Gem::Version
109
96
  version: '0'
110
97
  - !ruby/object:Gem::Dependency
111
98
  name: simplecov
112
99
  requirement: !ruby/object:Gem::Requirement
113
- none: false
114
100
  requirements:
115
- - - ! '>='
101
+ - - ">="
116
102
  - !ruby/object:Gem::Version
117
103
  version: '0'
118
104
  type: :development
119
105
  prerelease: false
120
106
  version_requirements: !ruby/object:Gem::Requirement
121
- none: false
122
107
  requirements:
123
- - - ! '>='
108
+ - - ">="
124
109
  - !ruby/object:Gem::Version
125
110
  version: '0'
126
111
  - !ruby/object:Gem::Dependency
127
112
  name: capture_stdout
128
113
  requirement: !ruby/object:Gem::Requirement
129
- none: false
130
114
  requirements:
131
- - - ! '>='
115
+ - - ">="
132
116
  - !ruby/object:Gem::Version
133
117
  version: '0'
134
118
  type: :development
135
119
  prerelease: false
136
120
  version_requirements: !ruby/object:Gem::Requirement
137
- none: false
138
121
  requirements:
139
- - - ! '>='
122
+ - - ">="
140
123
  - !ruby/object:Gem::Version
141
124
  version: '0'
142
125
  - !ruby/object:Gem::Dependency
143
126
  name: coveralls
144
127
  requirement: !ruby/object:Gem::Requirement
145
- none: false
146
128
  requirements:
147
- - - ! '>='
129
+ - - ">="
148
130
  - !ruby/object:Gem::Version
149
131
  version: '0'
150
132
  type: :development
151
133
  prerelease: false
152
134
  version_requirements: !ruby/object:Gem::Requirement
153
- none: false
154
135
  requirements:
155
- - - ! '>='
136
+ - - ">="
156
137
  - !ruby/object:Gem::Version
157
138
  version: '0'
158
139
  description: This gem provides a Ruby wrapper around the Remember The Milk (RTM) API
@@ -164,11 +145,11 @@ executables:
164
145
  extensions: []
165
146
  extra_rdoc_files: []
166
147
  files:
167
- - .coveralls.yml
168
- - .gitignore
169
- - .ruby-gemset
170
- - .ruby-version
171
- - .travis.yml
148
+ - ".coveralls.yml"
149
+ - ".gitignore"
150
+ - ".ruby-gemset"
151
+ - ".ruby-version"
152
+ - ".travis.yml"
172
153
  - Gemfile
173
154
  - LICENSE.txt
174
155
  - README.md
@@ -193,33 +174,26 @@ files:
193
174
  homepage: http://github.com/kevintuhumury/milkman
194
175
  licenses:
195
176
  - MIT
177
+ metadata: {}
196
178
  post_install_message:
197
179
  rdoc_options: []
198
180
  require_paths:
199
181
  - lib
200
182
  required_ruby_version: !ruby/object:Gem::Requirement
201
- none: false
202
183
  requirements:
203
- - - ! '>='
184
+ - - ">="
204
185
  - !ruby/object:Gem::Version
205
186
  version: '0'
206
- segments:
207
- - 0
208
- hash: 1332773264260098832
209
187
  required_rubygems_version: !ruby/object:Gem::Requirement
210
- none: false
211
188
  requirements:
212
- - - ! '>='
189
+ - - ">="
213
190
  - !ruby/object:Gem::Version
214
191
  version: '0'
215
- segments:
216
- - 0
217
- hash: 1332773264260098832
218
192
  requirements: []
219
193
  rubyforge_project:
220
- rubygems_version: 1.8.25
194
+ rubygems_version: 2.4.3
221
195
  signing_key:
222
- specification_version: 3
196
+ specification_version: 4
223
197
  summary: Milkman is a Ruby wrapper for the Remember The Milk (RTM) API.
224
198
  test_files:
225
199
  - spec/milkman/authorizer_spec.rb