singly 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/.gitignore +17 -0
- data/Gemfile +4 -0
- data/LICENSE.txt +22 -0
- data/README.md +63 -0
- data/Rakefile +8 -0
- data/lib/singly/account.rb +63 -0
- data/lib/singly/api/auth/merge.rb +8 -0
- data/lib/singly/api/auth/service/oauth1_apply.rb +13 -0
- data/lib/singly/api/auth/service/oauth2_apply.rb +13 -0
- data/lib/singly/api/auth/service.rb +23 -0
- data/lib/singly/api/auth.rb +163 -0
- data/lib/singly/api/friends/group.rb +12 -0
- data/lib/singly/api/friends.rb +76 -0
- data/lib/singly/api/id.rb +6 -0
- data/lib/singly/api/multi.rb +6 -0
- data/lib/singly/api/profile.rb +6 -0
- data/lib/singly/api/profiles/delete.rb +8 -0
- data/lib/singly/api/profiles/delete_profile.rb +8 -0
- data/lib/singly/api/profiles/delete_service.rb +8 -0
- data/lib/singly/api/profiles/self.rb +8 -0
- data/lib/singly/api/profiles/self_update.rb +8 -0
- data/lib/singly/api/profiles/service.rb +18 -0
- data/lib/singly/api/profiles.rb +178 -0
- data/lib/singly/api/proxy/delete.rb +8 -0
- data/lib/singly/api/proxy/get.rb +8 -0
- data/lib/singly/api/proxy/post.rb +8 -0
- data/lib/singly/api/proxy/put.rb +8 -0
- data/lib/singly/api/proxy.rb +169 -0
- data/lib/singly/api/services/37signals.rb +14 -0
- data/lib/singly/api/services/bodymedia.rb +30 -0
- data/lib/singly/api/services/dropbox.rb +22 -0
- data/lib/singly/api/services/dwolla.rb +14 -0
- data/lib/singly/api/services/endpoint.rb +12 -0
- data/lib/singly/api/services/facebook.rb +62 -0
- data/lib/singly/api/services/fitbit.rb +34 -0
- data/lib/singly/api/services/flickr.rb +26 -0
- data/lib/singly/api/services/foursquare.rb +34 -0
- data/lib/singly/api/services/gcal.rb +18 -0
- data/lib/singly/api/services/gcontacts.rb +18 -0
- data/lib/singly/api/services/gdocs.rb +18 -0
- data/lib/singly/api/services/github.rb +34 -0
- data/lib/singly/api/services/gmail.rb +22 -0
- data/lib/singly/api/services/google.rb +14 -0
- data/lib/singly/api/services/gplus.rb +18 -0
- data/lib/singly/api/services/id_endpoint.rb +12 -0
- data/lib/singly/api/services/imgur.rb +14 -0
- data/lib/singly/api/services/instagram.rb +26 -0
- data/lib/singly/api/services/klout.rb +26 -0
- data/lib/singly/api/services/linkedin.rb +26 -0
- data/lib/singly/api/services/meetup.rb +30 -0
- data/lib/singly/api/services/paypal.rb +14 -0
- data/lib/singly/api/services/picasa.rb +22 -0
- data/lib/singly/api/services/rdio.rb +26 -0
- data/lib/singly/api/services/reddit.rb +14 -0
- data/lib/singly/api/services/runkeeper.rb +38 -0
- data/lib/singly/api/services/service.rb +48 -0
- data/lib/singly/api/services/shutterfly.rb +22 -0
- data/lib/singly/api/services/soundcloud.rb +14 -0
- data/lib/singly/api/services/stocktwits.rb +22 -0
- data/lib/singly/api/services/tout.rb +14 -0
- data/lib/singly/api/services/tumblr.rb +26 -0
- data/lib/singly/api/services/twitter.rb +42 -0
- data/lib/singly/api/services/withings.rb +18 -0
- data/lib/singly/api/services/wordpress.rb +22 -0
- data/lib/singly/api/services/yammer.rb +26 -0
- data/lib/singly/api/services/youtube.rb +18 -0
- data/lib/singly/api/services/zeo.rb +26 -0
- data/lib/singly/api/services.rb +158 -0
- data/lib/singly/api/types/type.rb +12 -0
- data/lib/singly/api/types.rb +68 -0
- data/lib/singly/endpoint.rb +112 -0
- data/lib/singly/error.rb +24 -0
- data/lib/singly/http.rb +38 -0
- data/lib/singly/logger.rb +14 -0
- data/lib/singly.rb +37 -0
- data/lib/version.rb +3 -0
- data/singly.gemspec +25 -0
- data/spec/integration/auth_spec.rb +14 -0
- data/spec/singly/account_spec.rb +108 -0
- data/spec/singly/api/auth_spec.rb +8 -0
- data/spec/singly/endpoint_spec.rb +100 -0
- data/spec/singly/error_spec.rb +40 -0
- data/spec/singly/http_spec.rb +52 -0
- data/spec/singly/logger_spec.rb +32 -0
- data/spec/singly_spec.rb +53 -0
- data/spec/spec_helper.rb +27 -0
- data/spec/vcr_cassettes/http_fetch_with_api_error.yml +39 -0
- data/spec/vcr_cassettes/http_fetch_with_json_response.yml +102 -0
- data/spec/vcr_cassettes/http_fetch_with_non_json_response.yml +39 -0
- metadata +216 -0
@@ -0,0 +1,39 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: https://api.singly.com/v0/enoch
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
User-Agent:
|
11
|
+
- Typhoeus - https://github.com/typhoeus/typhoeus
|
12
|
+
response:
|
13
|
+
status:
|
14
|
+
code: 200
|
15
|
+
message: OK
|
16
|
+
headers:
|
17
|
+
Access-Control-Allow-Headers:
|
18
|
+
- Accept, Cache-Control, Pragma, User-Agent, Origin, X-Request, Referer, X-Requested-With,
|
19
|
+
Content-Type
|
20
|
+
Access-Control-Allow-Methods:
|
21
|
+
- GET, POST, OPTIONS, PUT, DELETE
|
22
|
+
Access-Control-Allow-Origin:
|
23
|
+
- ! '*'
|
24
|
+
Content-Type:
|
25
|
+
- application/json; charset=utf-8
|
26
|
+
Date:
|
27
|
+
- Sun, 17 Feb 2013 03:22:16 GMT
|
28
|
+
X-Powered-By:
|
29
|
+
- Express
|
30
|
+
Content-Length:
|
31
|
+
- '4'
|
32
|
+
Connection:
|
33
|
+
- keep-alive
|
34
|
+
body:
|
35
|
+
encoding: US-ASCII
|
36
|
+
string: 'true'
|
37
|
+
http_version: '1.1'
|
38
|
+
recorded_at: Sun, 17 Feb 2013 03:22:16 GMT
|
39
|
+
recorded_with: VCR 2.4.0
|
metadata
ADDED
@@ -0,0 +1,216 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: singly
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.0
|
5
|
+
prerelease:
|
6
|
+
platform: ruby
|
7
|
+
authors:
|
8
|
+
- Kevin Cantwell
|
9
|
+
autorequire:
|
10
|
+
bindir: bin
|
11
|
+
cert_chain: []
|
12
|
+
date: 2013-02-22 00:00:00.000000000 Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
15
|
+
name: json
|
16
|
+
requirement: !ruby/object:Gem::Requirement
|
17
|
+
none: false
|
18
|
+
requirements:
|
19
|
+
- - ~>
|
20
|
+
- !ruby/object:Gem::Version
|
21
|
+
version: 1.7.6
|
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: 1.7.6
|
30
|
+
- !ruby/object:Gem::Dependency
|
31
|
+
name: typhoeus
|
32
|
+
requirement: !ruby/object:Gem::Requirement
|
33
|
+
none: false
|
34
|
+
requirements:
|
35
|
+
- - ! '>='
|
36
|
+
- !ruby/object:Gem::Version
|
37
|
+
version: 0.5.4
|
38
|
+
- - <
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '0.7'
|
41
|
+
type: :runtime
|
42
|
+
prerelease: false
|
43
|
+
version_requirements: !ruby/object:Gem::Requirement
|
44
|
+
none: false
|
45
|
+
requirements:
|
46
|
+
- - ! '>='
|
47
|
+
- !ruby/object:Gem::Version
|
48
|
+
version: 0.5.4
|
49
|
+
- - <
|
50
|
+
- !ruby/object:Gem::Version
|
51
|
+
version: '0.7'
|
52
|
+
- !ruby/object:Gem::Dependency
|
53
|
+
name: rspec
|
54
|
+
requirement: !ruby/object:Gem::Requirement
|
55
|
+
none: false
|
56
|
+
requirements:
|
57
|
+
- - ~>
|
58
|
+
- !ruby/object:Gem::Version
|
59
|
+
version: '2.8'
|
60
|
+
type: :development
|
61
|
+
prerelease: false
|
62
|
+
version_requirements: !ruby/object:Gem::Requirement
|
63
|
+
none: false
|
64
|
+
requirements:
|
65
|
+
- - ~>
|
66
|
+
- !ruby/object:Gem::Version
|
67
|
+
version: '2.8'
|
68
|
+
- !ruby/object:Gem::Dependency
|
69
|
+
name: vcr
|
70
|
+
requirement: !ruby/object:Gem::Requirement
|
71
|
+
none: false
|
72
|
+
requirements:
|
73
|
+
- - ~>
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '2.3'
|
76
|
+
type: :development
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
none: false
|
80
|
+
requirements:
|
81
|
+
- - ~>
|
82
|
+
- !ruby/object:Gem::Version
|
83
|
+
version: '2.3'
|
84
|
+
description: Object-oriented interaction with the Singly API
|
85
|
+
email:
|
86
|
+
- kevin@timehop.com
|
87
|
+
executables: []
|
88
|
+
extensions: []
|
89
|
+
extra_rdoc_files: []
|
90
|
+
files:
|
91
|
+
- .gitignore
|
92
|
+
- Gemfile
|
93
|
+
- LICENSE.txt
|
94
|
+
- README.md
|
95
|
+
- Rakefile
|
96
|
+
- lib/singly.rb
|
97
|
+
- lib/singly/account.rb
|
98
|
+
- lib/singly/api/auth.rb
|
99
|
+
- lib/singly/api/auth/merge.rb
|
100
|
+
- lib/singly/api/auth/service.rb
|
101
|
+
- lib/singly/api/auth/service/oauth1_apply.rb
|
102
|
+
- lib/singly/api/auth/service/oauth2_apply.rb
|
103
|
+
- lib/singly/api/friends.rb
|
104
|
+
- lib/singly/api/friends/group.rb
|
105
|
+
- lib/singly/api/id.rb
|
106
|
+
- lib/singly/api/multi.rb
|
107
|
+
- lib/singly/api/profile.rb
|
108
|
+
- lib/singly/api/profiles.rb
|
109
|
+
- lib/singly/api/profiles/delete.rb
|
110
|
+
- lib/singly/api/profiles/delete_profile.rb
|
111
|
+
- lib/singly/api/profiles/delete_service.rb
|
112
|
+
- lib/singly/api/profiles/self.rb
|
113
|
+
- lib/singly/api/profiles/self_update.rb
|
114
|
+
- lib/singly/api/profiles/service.rb
|
115
|
+
- lib/singly/api/proxy.rb
|
116
|
+
- lib/singly/api/proxy/delete.rb
|
117
|
+
- lib/singly/api/proxy/get.rb
|
118
|
+
- lib/singly/api/proxy/post.rb
|
119
|
+
- lib/singly/api/proxy/put.rb
|
120
|
+
- lib/singly/api/services.rb
|
121
|
+
- lib/singly/api/services/37signals.rb
|
122
|
+
- lib/singly/api/services/bodymedia.rb
|
123
|
+
- lib/singly/api/services/dropbox.rb
|
124
|
+
- lib/singly/api/services/dwolla.rb
|
125
|
+
- lib/singly/api/services/endpoint.rb
|
126
|
+
- lib/singly/api/services/facebook.rb
|
127
|
+
- lib/singly/api/services/fitbit.rb
|
128
|
+
- lib/singly/api/services/flickr.rb
|
129
|
+
- lib/singly/api/services/foursquare.rb
|
130
|
+
- lib/singly/api/services/gcal.rb
|
131
|
+
- lib/singly/api/services/gcontacts.rb
|
132
|
+
- lib/singly/api/services/gdocs.rb
|
133
|
+
- lib/singly/api/services/github.rb
|
134
|
+
- lib/singly/api/services/gmail.rb
|
135
|
+
- lib/singly/api/services/google.rb
|
136
|
+
- lib/singly/api/services/gplus.rb
|
137
|
+
- lib/singly/api/services/id_endpoint.rb
|
138
|
+
- lib/singly/api/services/imgur.rb
|
139
|
+
- lib/singly/api/services/instagram.rb
|
140
|
+
- lib/singly/api/services/klout.rb
|
141
|
+
- lib/singly/api/services/linkedin.rb
|
142
|
+
- lib/singly/api/services/meetup.rb
|
143
|
+
- lib/singly/api/services/paypal.rb
|
144
|
+
- lib/singly/api/services/picasa.rb
|
145
|
+
- lib/singly/api/services/rdio.rb
|
146
|
+
- lib/singly/api/services/reddit.rb
|
147
|
+
- lib/singly/api/services/runkeeper.rb
|
148
|
+
- lib/singly/api/services/service.rb
|
149
|
+
- lib/singly/api/services/shutterfly.rb
|
150
|
+
- lib/singly/api/services/soundcloud.rb
|
151
|
+
- lib/singly/api/services/stocktwits.rb
|
152
|
+
- lib/singly/api/services/tout.rb
|
153
|
+
- lib/singly/api/services/tumblr.rb
|
154
|
+
- lib/singly/api/services/twitter.rb
|
155
|
+
- lib/singly/api/services/withings.rb
|
156
|
+
- lib/singly/api/services/wordpress.rb
|
157
|
+
- lib/singly/api/services/yammer.rb
|
158
|
+
- lib/singly/api/services/youtube.rb
|
159
|
+
- lib/singly/api/services/zeo.rb
|
160
|
+
- lib/singly/api/types.rb
|
161
|
+
- lib/singly/api/types/type.rb
|
162
|
+
- lib/singly/endpoint.rb
|
163
|
+
- lib/singly/error.rb
|
164
|
+
- lib/singly/http.rb
|
165
|
+
- lib/singly/logger.rb
|
166
|
+
- lib/version.rb
|
167
|
+
- singly.gemspec
|
168
|
+
- spec/integration/auth_spec.rb
|
169
|
+
- spec/singly/account_spec.rb
|
170
|
+
- spec/singly/api/auth_spec.rb
|
171
|
+
- spec/singly/endpoint_spec.rb
|
172
|
+
- spec/singly/error_spec.rb
|
173
|
+
- spec/singly/http_spec.rb
|
174
|
+
- spec/singly/logger_spec.rb
|
175
|
+
- spec/singly_spec.rb
|
176
|
+
- spec/spec_helper.rb
|
177
|
+
- spec/vcr_cassettes/http_fetch_with_api_error.yml
|
178
|
+
- spec/vcr_cassettes/http_fetch_with_json_response.yml
|
179
|
+
- spec/vcr_cassettes/http_fetch_with_non_json_response.yml
|
180
|
+
homepage: ''
|
181
|
+
licenses: []
|
182
|
+
post_install_message:
|
183
|
+
rdoc_options: []
|
184
|
+
require_paths:
|
185
|
+
- lib
|
186
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
187
|
+
none: false
|
188
|
+
requirements:
|
189
|
+
- - ! '>='
|
190
|
+
- !ruby/object:Gem::Version
|
191
|
+
version: '0'
|
192
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
193
|
+
none: false
|
194
|
+
requirements:
|
195
|
+
- - ! '>='
|
196
|
+
- !ruby/object:Gem::Version
|
197
|
+
version: '0'
|
198
|
+
requirements: []
|
199
|
+
rubyforge_project:
|
200
|
+
rubygems_version: 1.8.24
|
201
|
+
signing_key:
|
202
|
+
specification_version: 3
|
203
|
+
summary: See documentation at TBD
|
204
|
+
test_files:
|
205
|
+
- spec/integration/auth_spec.rb
|
206
|
+
- spec/singly/account_spec.rb
|
207
|
+
- spec/singly/api/auth_spec.rb
|
208
|
+
- spec/singly/endpoint_spec.rb
|
209
|
+
- spec/singly/error_spec.rb
|
210
|
+
- spec/singly/http_spec.rb
|
211
|
+
- spec/singly/logger_spec.rb
|
212
|
+
- spec/singly_spec.rb
|
213
|
+
- spec/spec_helper.rb
|
214
|
+
- spec/vcr_cassettes/http_fetch_with_api_error.yml
|
215
|
+
- spec/vcr_cassettes/http_fetch_with_json_response.yml
|
216
|
+
- spec/vcr_cassettes/http_fetch_with_non_json_response.yml
|