the86-client 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +17 -0
- data/Gemfile +4 -0
- data/Guardfile +5 -0
- data/LICENSE +22 -0
- data/README.md +80 -0
- data/Rakefile +11 -0
- data/lib/the86-client.rb +69 -0
- data/lib/the86-client/active_model.rb +37 -0
- data/lib/the86-client/connection.rb +81 -0
- data/lib/the86-client/conversation.rb +14 -0
- data/lib/the86-client/errors.rb +20 -0
- data/lib/the86-client/oauth_bearer_authorization.rb +21 -0
- data/lib/the86-client/post.rb +26 -0
- data/lib/the86-client/resource.rb +149 -0
- data/lib/the86-client/resource_collection.rb +66 -0
- data/lib/the86-client/site.rb +18 -0
- data/lib/the86-client/user.rb +14 -0
- data/lib/the86-client/version.rb +5 -0
- data/spec/conversations_spec.rb +75 -0
- data/spec/oauth_bearer_authorization_spec.rb +19 -0
- data/spec/post_spec.rb +15 -0
- data/spec/posts_spec.rb +81 -0
- data/spec/resource_spec.rb +32 -0
- data/spec/spec_helper.rb +10 -0
- data/spec/support/webmock.rb +41 -0
- data/spec/users_spec.rb +78 -0
- data/the86-client.gemspec +47 -0
- metadata +256 -0
@@ -0,0 +1,47 @@
|
|
1
|
+
# -*- encoding: utf-8 -*-
|
2
|
+
require File.expand_path('../lib/the86-client/version', __FILE__)
|
3
|
+
|
4
|
+
Gem::Specification.new do |gem|
|
5
|
+
gem.authors = ["Paul Annesley"]
|
6
|
+
gem.email = ["paul@sitepoint.com"]
|
7
|
+
gem.description = %q{Client for The 86 conversation API server}
|
8
|
+
gem.summary = %q{Exposes The 86 conversation API server as an object model.}
|
9
|
+
gem.homepage = "https://github.com/sitepoint/the86-client"
|
10
|
+
|
11
|
+
gem.files = `git ls-files`.split($\)
|
12
|
+
gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
|
13
|
+
gem.test_files = gem.files.grep(%r{^spec/})
|
14
|
+
gem.name = "the86-client"
|
15
|
+
gem.require_paths = ["lib"]
|
16
|
+
gem.version = The86::Client::VERSION
|
17
|
+
|
18
|
+
##
|
19
|
+
# Runtime dependencies.
|
20
|
+
|
21
|
+
# Faraday: HTTP client.
|
22
|
+
gem.add_runtime_dependency "faraday"
|
23
|
+
gem.add_runtime_dependency "faraday_middleware"
|
24
|
+
gem.add_runtime_dependency "hashie"
|
25
|
+
|
26
|
+
# Virtus: declare attributes on plain Ruby objects.
|
27
|
+
gem.add_runtime_dependency "virtus"
|
28
|
+
|
29
|
+
##
|
30
|
+
# Development dependencies.
|
31
|
+
|
32
|
+
# Guard: watch files, trigger commands
|
33
|
+
gem.add_development_dependency "guard"
|
34
|
+
gem.add_development_dependency "guard-minitest"
|
35
|
+
|
36
|
+
# MiniTest: unit test / spec library.
|
37
|
+
gem.add_development_dependency "minitest"
|
38
|
+
gem.add_development_dependency "ansi"
|
39
|
+
gem.add_development_dependency "turn"
|
40
|
+
|
41
|
+
# Rake: build tool.
|
42
|
+
gem.add_development_dependency "rake"
|
43
|
+
|
44
|
+
# WebMock: HTTP request stubs and expectations.
|
45
|
+
gem.add_development_dependency "webmock"
|
46
|
+
|
47
|
+
end
|
metadata
ADDED
@@ -0,0 +1,256 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: the86-client
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.1
|
5
|
+
prerelease:
|
6
|
+
platform: ruby
|
7
|
+
authors:
|
8
|
+
- Paul Annesley
|
9
|
+
autorequire:
|
10
|
+
bindir: bin
|
11
|
+
cert_chain: []
|
12
|
+
date: 2012-07-26 00:00:00.000000000 Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
15
|
+
name: faraday
|
16
|
+
requirement: !ruby/object:Gem::Requirement
|
17
|
+
none: false
|
18
|
+
requirements:
|
19
|
+
- - ! '>='
|
20
|
+
- !ruby/object:Gem::Version
|
21
|
+
version: '0'
|
22
|
+
type: :runtime
|
23
|
+
prerelease: false
|
24
|
+
version_requirements: !ruby/object:Gem::Requirement
|
25
|
+
none: false
|
26
|
+
requirements:
|
27
|
+
- - ! '>='
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: '0'
|
30
|
+
- !ruby/object:Gem::Dependency
|
31
|
+
name: faraday_middleware
|
32
|
+
requirement: !ruby/object:Gem::Requirement
|
33
|
+
none: false
|
34
|
+
requirements:
|
35
|
+
- - ! '>='
|
36
|
+
- !ruby/object:Gem::Version
|
37
|
+
version: '0'
|
38
|
+
type: :runtime
|
39
|
+
prerelease: false
|
40
|
+
version_requirements: !ruby/object:Gem::Requirement
|
41
|
+
none: false
|
42
|
+
requirements:
|
43
|
+
- - ! '>='
|
44
|
+
- !ruby/object:Gem::Version
|
45
|
+
version: '0'
|
46
|
+
- !ruby/object:Gem::Dependency
|
47
|
+
name: hashie
|
48
|
+
requirement: !ruby/object:Gem::Requirement
|
49
|
+
none: false
|
50
|
+
requirements:
|
51
|
+
- - ! '>='
|
52
|
+
- !ruby/object:Gem::Version
|
53
|
+
version: '0'
|
54
|
+
type: :runtime
|
55
|
+
prerelease: false
|
56
|
+
version_requirements: !ruby/object:Gem::Requirement
|
57
|
+
none: false
|
58
|
+
requirements:
|
59
|
+
- - ! '>='
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0'
|
62
|
+
- !ruby/object:Gem::Dependency
|
63
|
+
name: virtus
|
64
|
+
requirement: !ruby/object:Gem::Requirement
|
65
|
+
none: false
|
66
|
+
requirements:
|
67
|
+
- - ! '>='
|
68
|
+
- !ruby/object:Gem::Version
|
69
|
+
version: '0'
|
70
|
+
type: :runtime
|
71
|
+
prerelease: false
|
72
|
+
version_requirements: !ruby/object:Gem::Requirement
|
73
|
+
none: false
|
74
|
+
requirements:
|
75
|
+
- - ! '>='
|
76
|
+
- !ruby/object:Gem::Version
|
77
|
+
version: '0'
|
78
|
+
- !ruby/object:Gem::Dependency
|
79
|
+
name: guard
|
80
|
+
requirement: !ruby/object:Gem::Requirement
|
81
|
+
none: false
|
82
|
+
requirements:
|
83
|
+
- - ! '>='
|
84
|
+
- !ruby/object:Gem::Version
|
85
|
+
version: '0'
|
86
|
+
type: :development
|
87
|
+
prerelease: false
|
88
|
+
version_requirements: !ruby/object:Gem::Requirement
|
89
|
+
none: false
|
90
|
+
requirements:
|
91
|
+
- - ! '>='
|
92
|
+
- !ruby/object:Gem::Version
|
93
|
+
version: '0'
|
94
|
+
- !ruby/object:Gem::Dependency
|
95
|
+
name: guard-minitest
|
96
|
+
requirement: !ruby/object:Gem::Requirement
|
97
|
+
none: false
|
98
|
+
requirements:
|
99
|
+
- - ! '>='
|
100
|
+
- !ruby/object:Gem::Version
|
101
|
+
version: '0'
|
102
|
+
type: :development
|
103
|
+
prerelease: false
|
104
|
+
version_requirements: !ruby/object:Gem::Requirement
|
105
|
+
none: false
|
106
|
+
requirements:
|
107
|
+
- - ! '>='
|
108
|
+
- !ruby/object:Gem::Version
|
109
|
+
version: '0'
|
110
|
+
- !ruby/object:Gem::Dependency
|
111
|
+
name: minitest
|
112
|
+
requirement: !ruby/object:Gem::Requirement
|
113
|
+
none: false
|
114
|
+
requirements:
|
115
|
+
- - ! '>='
|
116
|
+
- !ruby/object:Gem::Version
|
117
|
+
version: '0'
|
118
|
+
type: :development
|
119
|
+
prerelease: false
|
120
|
+
version_requirements: !ruby/object:Gem::Requirement
|
121
|
+
none: false
|
122
|
+
requirements:
|
123
|
+
- - ! '>='
|
124
|
+
- !ruby/object:Gem::Version
|
125
|
+
version: '0'
|
126
|
+
- !ruby/object:Gem::Dependency
|
127
|
+
name: ansi
|
128
|
+
requirement: !ruby/object:Gem::Requirement
|
129
|
+
none: false
|
130
|
+
requirements:
|
131
|
+
- - ! '>='
|
132
|
+
- !ruby/object:Gem::Version
|
133
|
+
version: '0'
|
134
|
+
type: :development
|
135
|
+
prerelease: false
|
136
|
+
version_requirements: !ruby/object:Gem::Requirement
|
137
|
+
none: false
|
138
|
+
requirements:
|
139
|
+
- - ! '>='
|
140
|
+
- !ruby/object:Gem::Version
|
141
|
+
version: '0'
|
142
|
+
- !ruby/object:Gem::Dependency
|
143
|
+
name: turn
|
144
|
+
requirement: !ruby/object:Gem::Requirement
|
145
|
+
none: false
|
146
|
+
requirements:
|
147
|
+
- - ! '>='
|
148
|
+
- !ruby/object:Gem::Version
|
149
|
+
version: '0'
|
150
|
+
type: :development
|
151
|
+
prerelease: false
|
152
|
+
version_requirements: !ruby/object:Gem::Requirement
|
153
|
+
none: false
|
154
|
+
requirements:
|
155
|
+
- - ! '>='
|
156
|
+
- !ruby/object:Gem::Version
|
157
|
+
version: '0'
|
158
|
+
- !ruby/object:Gem::Dependency
|
159
|
+
name: rake
|
160
|
+
requirement: !ruby/object:Gem::Requirement
|
161
|
+
none: false
|
162
|
+
requirements:
|
163
|
+
- - ! '>='
|
164
|
+
- !ruby/object:Gem::Version
|
165
|
+
version: '0'
|
166
|
+
type: :development
|
167
|
+
prerelease: false
|
168
|
+
version_requirements: !ruby/object:Gem::Requirement
|
169
|
+
none: false
|
170
|
+
requirements:
|
171
|
+
- - ! '>='
|
172
|
+
- !ruby/object:Gem::Version
|
173
|
+
version: '0'
|
174
|
+
- !ruby/object:Gem::Dependency
|
175
|
+
name: webmock
|
176
|
+
requirement: !ruby/object:Gem::Requirement
|
177
|
+
none: false
|
178
|
+
requirements:
|
179
|
+
- - ! '>='
|
180
|
+
- !ruby/object:Gem::Version
|
181
|
+
version: '0'
|
182
|
+
type: :development
|
183
|
+
prerelease: false
|
184
|
+
version_requirements: !ruby/object:Gem::Requirement
|
185
|
+
none: false
|
186
|
+
requirements:
|
187
|
+
- - ! '>='
|
188
|
+
- !ruby/object:Gem::Version
|
189
|
+
version: '0'
|
190
|
+
description: Client for The 86 conversation API server
|
191
|
+
email:
|
192
|
+
- paul@sitepoint.com
|
193
|
+
executables: []
|
194
|
+
extensions: []
|
195
|
+
extra_rdoc_files: []
|
196
|
+
files:
|
197
|
+
- .gitignore
|
198
|
+
- Gemfile
|
199
|
+
- Guardfile
|
200
|
+
- LICENSE
|
201
|
+
- README.md
|
202
|
+
- Rakefile
|
203
|
+
- lib/the86-client.rb
|
204
|
+
- lib/the86-client/active_model.rb
|
205
|
+
- lib/the86-client/connection.rb
|
206
|
+
- lib/the86-client/conversation.rb
|
207
|
+
- lib/the86-client/errors.rb
|
208
|
+
- lib/the86-client/oauth_bearer_authorization.rb
|
209
|
+
- lib/the86-client/post.rb
|
210
|
+
- lib/the86-client/resource.rb
|
211
|
+
- lib/the86-client/resource_collection.rb
|
212
|
+
- lib/the86-client/site.rb
|
213
|
+
- lib/the86-client/user.rb
|
214
|
+
- lib/the86-client/version.rb
|
215
|
+
- spec/conversations_spec.rb
|
216
|
+
- spec/oauth_bearer_authorization_spec.rb
|
217
|
+
- spec/post_spec.rb
|
218
|
+
- spec/posts_spec.rb
|
219
|
+
- spec/resource_spec.rb
|
220
|
+
- spec/spec_helper.rb
|
221
|
+
- spec/support/webmock.rb
|
222
|
+
- spec/users_spec.rb
|
223
|
+
- the86-client.gemspec
|
224
|
+
homepage: https://github.com/sitepoint/the86-client
|
225
|
+
licenses: []
|
226
|
+
post_install_message:
|
227
|
+
rdoc_options: []
|
228
|
+
require_paths:
|
229
|
+
- lib
|
230
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
231
|
+
none: false
|
232
|
+
requirements:
|
233
|
+
- - ! '>='
|
234
|
+
- !ruby/object:Gem::Version
|
235
|
+
version: '0'
|
236
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
237
|
+
none: false
|
238
|
+
requirements:
|
239
|
+
- - ! '>='
|
240
|
+
- !ruby/object:Gem::Version
|
241
|
+
version: '0'
|
242
|
+
requirements: []
|
243
|
+
rubyforge_project:
|
244
|
+
rubygems_version: 1.8.23
|
245
|
+
signing_key:
|
246
|
+
specification_version: 3
|
247
|
+
summary: Exposes The 86 conversation API server as an object model.
|
248
|
+
test_files:
|
249
|
+
- spec/conversations_spec.rb
|
250
|
+
- spec/oauth_bearer_authorization_spec.rb
|
251
|
+
- spec/post_spec.rb
|
252
|
+
- spec/posts_spec.rb
|
253
|
+
- spec/resource_spec.rb
|
254
|
+
- spec/spec_helper.rb
|
255
|
+
- spec/support/webmock.rb
|
256
|
+
- spec/users_spec.rb
|