buffer 0.0.1 → 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (54) hide show
  1. checksums.yaml +7 -0
  2. data/.bufferapprc.template +23 -0
  3. data/.gitignore +6 -0
  4. data/.rubocop.yml +18 -0
  5. data/.ruby-version +1 -0
  6. data/.travis.yml +5 -0
  7. data/API_COVERAGE.md +19 -0
  8. data/Gemfile +1 -1
  9. data/Guardfile +10 -0
  10. data/{LICENSE → LICENSE.txt} +1 -1
  11. data/README.md +62 -80
  12. data/Rakefile +25 -1
  13. data/TODO.md +3 -0
  14. data/bin/buffer +35 -0
  15. data/buffer.gemspec +26 -16
  16. data/lib/buffer/client.rb +26 -0
  17. data/lib/buffer/core.rb +64 -0
  18. data/lib/buffer/datastructure.rb +18 -0
  19. data/lib/buffer/encode.rb +33 -0
  20. data/lib/buffer/error.rb +10 -0
  21. data/lib/buffer/info.rb +10 -0
  22. data/lib/buffer/link.rb +10 -0
  23. data/lib/buffer/profile.rb +27 -0
  24. data/lib/buffer/update.rb +75 -0
  25. data/lib/buffer/user.rb +9 -0
  26. data/lib/buffer/version.rb +1 -1
  27. data/lib/buffer.rb +16 -102
  28. data/spec/fixtures/destroy.txt +10 -0
  29. data/spec/fixtures/info.txt +10 -0
  30. data/spec/fixtures/interactions_by_update_id.txt +10 -0
  31. data/spec/fixtures/link.txt +12 -0
  32. data/spec/fixtures/profile_authenticated.txt +11 -0
  33. data/spec/fixtures/profile_schedules_by_id.txt +10 -0
  34. data/spec/fixtures/profiles_by_id.txt +10 -0
  35. data/spec/fixtures/update_by_id.txt +10 -0
  36. data/spec/fixtures/update_by_id_non_auth.txt +9 -0
  37. data/spec/fixtures/updates_by_profile_id.txt +10 -0
  38. data/spec/fixtures/updates_by_profile_id_pending.txt +10 -0
  39. data/spec/fixtures/user_authenticated.txt +19 -0
  40. data/spec/lib/buffer/encode_spec.rb +42 -0
  41. data/spec/lib/buffer/link_spec.rb +22 -0
  42. data/spec/lib/buffer/profile_spec.rb +87 -0
  43. data/spec/lib/buffer/schedule_spec.rb +80 -0
  44. data/spec/lib/buffer/update_spec.rb +227 -0
  45. data/spec/lib/buffer/user_spec.rb +26 -0
  46. data/spec/lib/buffer_spec.rb +30 -0
  47. data/spec/lib/core_spec.rb +60 -0
  48. data/spec/spec_helper.rb +171 -0
  49. metadata +215 -67
  50. data/spec/buffer_spec.rb +0 -354
  51. data/spec/fixtures/create_body.txt +0 -1
  52. data/spec/fixtures/success.json +0 -1
  53. data/spec/fixtures/user.json +0 -1
  54. data/spec/helper.rb +0 -43
metadata CHANGED
@@ -1,175 +1,323 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: buffer
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
5
- prerelease:
4
+ version: 0.1.0
6
5
  platform: ruby
7
6
  authors:
8
- - Tom Ashworth
7
+ - ZPH
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2012-07-31 00:00:00.000000000 Z
11
+ date: 2015-04-05 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
- name: faraday
14
+ name: rspec
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
- type: :runtime
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ">="
25
+ - !ruby/object:Gem::Version
26
+ version: '0'
27
+ - !ruby/object:Gem::Dependency
28
+ name: webmock
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ">="
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: guard-rspec
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ">="
46
+ - !ruby/object:Gem::Version
47
+ version: '0'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ">="
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: guard-bundler
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - ">="
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - ">="
67
+ - !ruby/object:Gem::Version
68
+ version: '0'
69
+ - !ruby/object:Gem::Dependency
70
+ name: rb-fsevent
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - ">="
74
+ - !ruby/object:Gem::Version
75
+ version: '0'
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - ">="
81
+ - !ruby/object:Gem::Version
82
+ version: '0'
83
+ - !ruby/object:Gem::Dependency
84
+ name: growl
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - ">="
88
+ - !ruby/object:Gem::Version
89
+ version: '0'
90
+ type: :development
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - ">="
95
+ - !ruby/object:Gem::Version
96
+ version: '0'
97
+ - !ruby/object:Gem::Dependency
98
+ name: pry-uber
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - ">="
102
+ - !ruby/object:Gem::Version
103
+ version: '0'
104
+ type: :development
23
105
  prerelease: false
24
106
  version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
107
  requirements:
27
- - - ! '>='
108
+ - - ">="
28
109
  - !ruby/object:Gem::Version
29
110
  version: '0'
30
111
  - !ruby/object:Gem::Dependency
31
112
  name: multi_json
32
113
  requirement: !ruby/object:Gem::Requirement
33
- none: false
34
114
  requirements:
35
- - - ! '>='
115
+ - - ">="
36
116
  - !ruby/object:Gem::Version
37
117
  version: '0'
38
118
  type: :runtime
39
119
  prerelease: false
40
120
  version_requirements: !ruby/object:Gem::Requirement
41
- none: false
42
121
  requirements:
43
- - - ! '>='
122
+ - - ">="
44
123
  - !ruby/object:Gem::Version
45
124
  version: '0'
46
125
  - !ruby/object:Gem::Dependency
47
- name: i18n
126
+ name: yajl-ruby
48
127
  requirement: !ruby/object:Gem::Requirement
49
- none: false
50
128
  requirements:
51
- - - ! '>='
129
+ - - ">="
52
130
  - !ruby/object:Gem::Version
53
131
  version: '0'
54
132
  type: :runtime
55
133
  prerelease: false
56
134
  version_requirements: !ruby/object:Gem::Requirement
57
- none: false
58
135
  requirements:
59
- - - ! '>='
136
+ - - ">="
60
137
  - !ruby/object:Gem::Version
61
138
  version: '0'
62
139
  - !ruby/object:Gem::Dependency
63
- name: active_support
140
+ name: faraday_middleware
64
141
  requirement: !ruby/object:Gem::Requirement
65
- none: false
66
142
  requirements:
67
- - - ! '>='
143
+ - - ">="
68
144
  - !ruby/object:Gem::Version
69
145
  version: '0'
70
146
  type: :runtime
71
147
  prerelease: false
72
148
  version_requirements: !ruby/object:Gem::Requirement
73
- none: false
74
149
  requirements:
75
- - - ! '>='
150
+ - - ">="
76
151
  - !ruby/object:Gem::Version
77
152
  version: '0'
78
153
  - !ruby/object:Gem::Dependency
79
- name: rspec
154
+ name: faraday
80
155
  requirement: !ruby/object:Gem::Requirement
81
- none: false
82
156
  requirements:
83
- - - ~>
157
+ - - ">="
84
158
  - !ruby/object:Gem::Version
85
- version: '2.7'
86
- type: :development
159
+ version: '0'
160
+ type: :runtime
87
161
  prerelease: false
88
162
  version_requirements: !ruby/object:Gem::Requirement
89
- none: false
90
163
  requirements:
91
- - - ~>
164
+ - - ">="
92
165
  - !ruby/object:Gem::Version
93
- version: '2.7'
166
+ version: '0'
94
167
  - !ruby/object:Gem::Dependency
95
- name: simplecov
168
+ name: hashie
96
169
  requirement: !ruby/object:Gem::Requirement
97
- none: false
98
170
  requirements:
99
- - - ! '>='
171
+ - - ">="
100
172
  - !ruby/object:Gem::Version
101
173
  version: '0'
102
- type: :development
174
+ type: :runtime
103
175
  prerelease: false
104
176
  version_requirements: !ruby/object:Gem::Requirement
105
- none: false
106
177
  requirements:
107
- - - ! '>='
178
+ - - ">="
108
179
  - !ruby/object:Gem::Version
109
180
  version: '0'
110
181
  - !ruby/object:Gem::Dependency
111
- name: webmock
182
+ name: rake
112
183
  requirement: !ruby/object:Gem::Requirement
113
- none: false
114
184
  requirements:
115
- - - ! '>='
185
+ - - ">="
116
186
  - !ruby/object:Gem::Version
117
187
  version: '0'
118
- type: :development
188
+ type: :runtime
189
+ prerelease: false
190
+ version_requirements: !ruby/object:Gem::Requirement
191
+ requirements:
192
+ - - ">="
193
+ - !ruby/object:Gem::Version
194
+ version: '0'
195
+ - !ruby/object:Gem::Dependency
196
+ name: addressable
197
+ requirement: !ruby/object:Gem::Requirement
198
+ requirements:
199
+ - - ">="
200
+ - !ruby/object:Gem::Version
201
+ version: '0'
202
+ type: :runtime
203
+ prerelease: false
204
+ version_requirements: !ruby/object:Gem::Requirement
205
+ requirements:
206
+ - - ">="
207
+ - !ruby/object:Gem::Version
208
+ version: '0'
209
+ - !ruby/object:Gem::Dependency
210
+ name: environs
211
+ requirement: !ruby/object:Gem::Requirement
212
+ requirements:
213
+ - - ">="
214
+ - !ruby/object:Gem::Version
215
+ version: '0'
216
+ type: :runtime
119
217
  prerelease: false
120
218
  version_requirements: !ruby/object:Gem::Requirement
121
- none: false
122
219
  requirements:
123
- - - ! '>='
220
+ - - ">="
124
221
  - !ruby/object:Gem::Version
125
222
  version: '0'
126
- description: Buffer API wrapper for Ruby
223
+ description: Buffer is an API Wrapper Gem for Bufferapp.com's API
127
224
  email:
128
- - tom@phuu.net
129
- executables: []
225
+ - Zander@civet.ws
226
+ executables:
227
+ - buffer
130
228
  extensions: []
131
229
  extra_rdoc_files: []
132
230
  files:
133
- - .gitignore
231
+ - ".bufferapprc.template"
232
+ - ".gitignore"
233
+ - ".rubocop.yml"
234
+ - ".ruby-version"
235
+ - ".travis.yml"
236
+ - API_COVERAGE.md
134
237
  - Gemfile
135
- - LICENSE
238
+ - Guardfile
239
+ - LICENSE.txt
136
240
  - README.md
137
241
  - Rakefile
242
+ - TODO.md
243
+ - bin/buffer
138
244
  - buffer.gemspec
139
245
  - lib/buffer.rb
246
+ - lib/buffer/client.rb
247
+ - lib/buffer/core.rb
248
+ - lib/buffer/datastructure.rb
249
+ - lib/buffer/encode.rb
250
+ - lib/buffer/error.rb
251
+ - lib/buffer/info.rb
252
+ - lib/buffer/link.rb
253
+ - lib/buffer/profile.rb
254
+ - lib/buffer/update.rb
255
+ - lib/buffer/user.rb
140
256
  - lib/buffer/version.rb
141
- - spec/buffer_spec.rb
142
- - spec/fixtures/create_body.txt
143
- - spec/fixtures/success.json
144
- - spec/fixtures/user.json
145
- - spec/helper.rb
146
- homepage: ''
257
+ - spec/fixtures/destroy.txt
258
+ - spec/fixtures/info.txt
259
+ - spec/fixtures/interactions_by_update_id.txt
260
+ - spec/fixtures/link.txt
261
+ - spec/fixtures/profile_authenticated.txt
262
+ - spec/fixtures/profile_schedules_by_id.txt
263
+ - spec/fixtures/profiles_by_id.txt
264
+ - spec/fixtures/update_by_id.txt
265
+ - spec/fixtures/update_by_id_non_auth.txt
266
+ - spec/fixtures/updates_by_profile_id.txt
267
+ - spec/fixtures/updates_by_profile_id_pending.txt
268
+ - spec/fixtures/user_authenticated.txt
269
+ - spec/lib/buffer/encode_spec.rb
270
+ - spec/lib/buffer/link_spec.rb
271
+ - spec/lib/buffer/profile_spec.rb
272
+ - spec/lib/buffer/schedule_spec.rb
273
+ - spec/lib/buffer/update_spec.rb
274
+ - spec/lib/buffer/user_spec.rb
275
+ - spec/lib/buffer_spec.rb
276
+ - spec/lib/core_spec.rb
277
+ - spec/spec_helper.rb
278
+ homepage: http://github.com/bufferapp/buffer-ruby
147
279
  licenses: []
280
+ metadata: {}
148
281
  post_install_message:
149
282
  rdoc_options: []
150
283
  require_paths:
151
284
  - lib
152
285
  required_ruby_version: !ruby/object:Gem::Requirement
153
- none: false
154
286
  requirements:
155
- - - ! '>='
287
+ - - ">="
156
288
  - !ruby/object:Gem::Version
157
289
  version: '0'
158
290
  required_rubygems_version: !ruby/object:Gem::Requirement
159
- none: false
160
291
  requirements:
161
- - - ! '>='
292
+ - - ">="
162
293
  - !ruby/object:Gem::Version
163
294
  version: '0'
164
295
  requirements: []
165
296
  rubyforge_project:
166
- rubygems_version: 1.8.24
297
+ rubygems_version: 2.2.2
167
298
  signing_key:
168
- specification_version: 3
169
- summary: Buffer API wrapper for Ruby
299
+ specification_version: 4
300
+ summary: Buffer is an API Wrapper Gem for Bufferapp.com's API
170
301
  test_files:
171
- - spec/buffer_spec.rb
172
- - spec/fixtures/create_body.txt
173
- - spec/fixtures/success.json
174
- - spec/fixtures/user.json
175
- - spec/helper.rb
302
+ - spec/fixtures/destroy.txt
303
+ - spec/fixtures/info.txt
304
+ - spec/fixtures/interactions_by_update_id.txt
305
+ - spec/fixtures/link.txt
306
+ - spec/fixtures/profile_authenticated.txt
307
+ - spec/fixtures/profile_schedules_by_id.txt
308
+ - spec/fixtures/profiles_by_id.txt
309
+ - spec/fixtures/update_by_id.txt
310
+ - spec/fixtures/update_by_id_non_auth.txt
311
+ - spec/fixtures/updates_by_profile_id.txt
312
+ - spec/fixtures/updates_by_profile_id_pending.txt
313
+ - spec/fixtures/user_authenticated.txt
314
+ - spec/lib/buffer/encode_spec.rb
315
+ - spec/lib/buffer/link_spec.rb
316
+ - spec/lib/buffer/profile_spec.rb
317
+ - spec/lib/buffer/schedule_spec.rb
318
+ - spec/lib/buffer/update_spec.rb
319
+ - spec/lib/buffer/user_spec.rb
320
+ - spec/lib/buffer_spec.rb
321
+ - spec/lib/core_spec.rb
322
+ - spec/spec_helper.rb
323
+ has_rdoc: