gittr 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +14 -0
- data/Gemfile +4 -0
- data/LICENSE.txt +22 -0
- data/README.md +43 -0
- data/Rakefile +2 -0
- data/circle.yml +8 -0
- data/gittr.gemspec +33 -0
- data/lib/gittr.rb +23 -0
- data/lib/gittr/channel.rb +7 -0
- data/lib/gittr/client.rb +95 -0
- data/lib/gittr/hash_constructor.rb +20 -0
- data/lib/gittr/message.rb +11 -0
- data/lib/gittr/organization.rb +7 -0
- data/lib/gittr/repository.rb +11 -0
- data/lib/gittr/room.rb +11 -0
- data/lib/gittr/user.rb +7 -0
- data/lib/gittr/version.rb +3 -0
- data/spec/channel_spec.rb +11 -0
- data/spec/client_spec.rb +147 -0
- data/spec/gittr_spec.rb +12 -0
- data/spec/hash_constructor_spec.rb +31 -0
- data/spec/message_spec.rb +14 -0
- data/spec/organization_spec.rb +11 -0
- data/spec/repository_spec.rb +13 -0
- data/spec/room_spec.rb +11 -0
- data/spec/spec_helper.rb +21 -0
- data/spec/user_spec.rb +12 -0
- data/spec/vcr/join_room.yml +54 -0
- data/spec/vcr/list_messages.yml +292 -0
- data/spec/vcr/read_message.yml +48 -0
- data/spec/vcr/rooms.yml +53 -0
- data/spec/vcr/rooms_channels.yml +52 -0
- data/spec/vcr/rooms_users.yml +54 -0
- data/spec/vcr/send_message.yml +54 -0
- data/spec/vcr/update_message.yml +48 -0
- data/spec/vcr/user.yml +53 -0
- data/spec/vcr/user_channels.yml +52 -0
- data/spec/vcr/user_orgs.yml +52 -0
- data/spec/vcr/user_repos.yml +1371 -0
- data/spec/vcr/user_rooms.yml +54 -0
- metadata +233 -0
@@ -0,0 +1,54 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: https://api.gitter.im/v1/user/54b7df5bdb8155e6700eb552/rooms
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
Accept:
|
11
|
+
- application/json
|
12
|
+
Authorization:
|
13
|
+
- Bearer redacted
|
14
|
+
Content-Type:
|
15
|
+
- application/json
|
16
|
+
response:
|
17
|
+
status:
|
18
|
+
code: 200
|
19
|
+
message: OK
|
20
|
+
headers:
|
21
|
+
Access-Control-Expose-Headers:
|
22
|
+
- X-RateLimit-Limit,X-RateLimit-Remaining,X-RateLimit-Reset
|
23
|
+
Content-Type:
|
24
|
+
- application/json; charset=utf-8
|
25
|
+
Date:
|
26
|
+
- Mon, 19 Jan 2015 19:19:08 GMT
|
27
|
+
Etag:
|
28
|
+
- W/"268-8d395810"
|
29
|
+
Server:
|
30
|
+
- nginx
|
31
|
+
Vary:
|
32
|
+
- Origin
|
33
|
+
X-Ratelimit-Limit:
|
34
|
+
- '100'
|
35
|
+
X-Ratelimit-Remaining:
|
36
|
+
- '99'
|
37
|
+
X-Ratelimit-Reset:
|
38
|
+
- '1421695208243'
|
39
|
+
X-Server-Id:
|
40
|
+
- app-002
|
41
|
+
X-Upstream:
|
42
|
+
- 127.0.0.1:5025
|
43
|
+
Content-Length:
|
44
|
+
- '616'
|
45
|
+
Connection:
|
46
|
+
- keep-alive
|
47
|
+
body:
|
48
|
+
encoding: UTF-8
|
49
|
+
string: '[{"id":"54bc01e3db8155e6700ecbca","name":"zoso10/Gittr","topic":"Gitter
|
50
|
+
REST API wrapper","uri":"zoso10/Gittr","oneToOne":false,"userCount":1,"unreadItems":0,"mentions":0,"lurk":false,"url":"/zoso10/Gittr","githubType":"REPO","security":"PUBLIC","premium":false,"noindex":false},{"id":"54b7e136db8155e6700eb569","name":"zoso10/skriv","topic":"Advanced
|
51
|
+
Note-Taking Application","uri":"zoso10/skriv","oneToOne":false,"userCount":2,"unreadItems":0,"mentions":0,"lastAccessTime":"2015-01-19T15:13:59.643Z","lurk":false,"url":"/zoso10/skriv","githubType":"REPO","security":"PUBLIC","premium":false,"noindex":false,"v":1}]'
|
52
|
+
http_version:
|
53
|
+
recorded_at: Mon, 19 Jan 2015 19:19:08 GMT
|
54
|
+
recorded_with: VCR 2.9.3
|
metadata
ADDED
@@ -0,0 +1,233 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: gittr
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.1
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Tyler Ewing
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2015-01-20 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: httparty
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - '>='
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '0'
|
20
|
+
type: :runtime
|
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: bundler
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - ~>
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '1.7'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - ~>
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '1.7'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: rake
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - ~>
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '10.0'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - ~>
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '10.0'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: vcr
|
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: webmock
|
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: rspec
|
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: codeclimate-test-reporter
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - '>='
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: '0'
|
104
|
+
type: :development
|
105
|
+
prerelease: false
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - '>='
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: '0'
|
111
|
+
- !ruby/object:Gem::Dependency
|
112
|
+
name: pry
|
113
|
+
requirement: !ruby/object:Gem::Requirement
|
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
|
+
requirements:
|
122
|
+
- - '>='
|
123
|
+
- !ruby/object:Gem::Version
|
124
|
+
version: '0'
|
125
|
+
- !ruby/object:Gem::Dependency
|
126
|
+
name: pry-byebug
|
127
|
+
requirement: !ruby/object:Gem::Requirement
|
128
|
+
requirements:
|
129
|
+
- - '>='
|
130
|
+
- !ruby/object:Gem::Version
|
131
|
+
version: '0'
|
132
|
+
type: :development
|
133
|
+
prerelease: false
|
134
|
+
version_requirements: !ruby/object:Gem::Requirement
|
135
|
+
requirements:
|
136
|
+
- - '>='
|
137
|
+
- !ruby/object:Gem::Version
|
138
|
+
version: '0'
|
139
|
+
description: Gittr is a Ruby wrapper for the Gitter chat client REST API.
|
140
|
+
email:
|
141
|
+
- tewing10@gmail.com
|
142
|
+
executables: []
|
143
|
+
extensions: []
|
144
|
+
extra_rdoc_files: []
|
145
|
+
files:
|
146
|
+
- .gitignore
|
147
|
+
- Gemfile
|
148
|
+
- LICENSE.txt
|
149
|
+
- README.md
|
150
|
+
- Rakefile
|
151
|
+
- circle.yml
|
152
|
+
- gittr.gemspec
|
153
|
+
- lib/gittr.rb
|
154
|
+
- lib/gittr/channel.rb
|
155
|
+
- lib/gittr/client.rb
|
156
|
+
- lib/gittr/hash_constructor.rb
|
157
|
+
- lib/gittr/message.rb
|
158
|
+
- lib/gittr/organization.rb
|
159
|
+
- lib/gittr/repository.rb
|
160
|
+
- lib/gittr/room.rb
|
161
|
+
- lib/gittr/user.rb
|
162
|
+
- lib/gittr/version.rb
|
163
|
+
- spec/channel_spec.rb
|
164
|
+
- spec/client_spec.rb
|
165
|
+
- spec/gittr_spec.rb
|
166
|
+
- spec/hash_constructor_spec.rb
|
167
|
+
- spec/message_spec.rb
|
168
|
+
- spec/organization_spec.rb
|
169
|
+
- spec/repository_spec.rb
|
170
|
+
- spec/room_spec.rb
|
171
|
+
- spec/spec_helper.rb
|
172
|
+
- spec/user_spec.rb
|
173
|
+
- spec/vcr/join_room.yml
|
174
|
+
- spec/vcr/list_messages.yml
|
175
|
+
- spec/vcr/read_message.yml
|
176
|
+
- spec/vcr/rooms.yml
|
177
|
+
- spec/vcr/rooms_channels.yml
|
178
|
+
- spec/vcr/rooms_users.yml
|
179
|
+
- spec/vcr/send_message.yml
|
180
|
+
- spec/vcr/update_message.yml
|
181
|
+
- spec/vcr/user.yml
|
182
|
+
- spec/vcr/user_channels.yml
|
183
|
+
- spec/vcr/user_orgs.yml
|
184
|
+
- spec/vcr/user_repos.yml
|
185
|
+
- spec/vcr/user_rooms.yml
|
186
|
+
homepage: https://github.com/zoso10/Gittr
|
187
|
+
licenses:
|
188
|
+
- MIT
|
189
|
+
metadata: {}
|
190
|
+
post_install_message:
|
191
|
+
rdoc_options: []
|
192
|
+
require_paths:
|
193
|
+
- lib
|
194
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
195
|
+
requirements:
|
196
|
+
- - '>='
|
197
|
+
- !ruby/object:Gem::Version
|
198
|
+
version: '2.0'
|
199
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
200
|
+
requirements:
|
201
|
+
- - '>='
|
202
|
+
- !ruby/object:Gem::Version
|
203
|
+
version: '0'
|
204
|
+
requirements: []
|
205
|
+
rubyforge_project:
|
206
|
+
rubygems_version: 2.4.3
|
207
|
+
signing_key:
|
208
|
+
specification_version: 4
|
209
|
+
summary: Gitter REST API wrapper
|
210
|
+
test_files:
|
211
|
+
- spec/channel_spec.rb
|
212
|
+
- spec/client_spec.rb
|
213
|
+
- spec/gittr_spec.rb
|
214
|
+
- spec/hash_constructor_spec.rb
|
215
|
+
- spec/message_spec.rb
|
216
|
+
- spec/organization_spec.rb
|
217
|
+
- spec/repository_spec.rb
|
218
|
+
- spec/room_spec.rb
|
219
|
+
- spec/spec_helper.rb
|
220
|
+
- spec/user_spec.rb
|
221
|
+
- spec/vcr/join_room.yml
|
222
|
+
- spec/vcr/list_messages.yml
|
223
|
+
- spec/vcr/read_message.yml
|
224
|
+
- spec/vcr/rooms.yml
|
225
|
+
- spec/vcr/rooms_channels.yml
|
226
|
+
- spec/vcr/rooms_users.yml
|
227
|
+
- spec/vcr/send_message.yml
|
228
|
+
- spec/vcr/update_message.yml
|
229
|
+
- spec/vcr/user.yml
|
230
|
+
- spec/vcr/user_channels.yml
|
231
|
+
- spec/vcr/user_orgs.yml
|
232
|
+
- spec/vcr/user_repos.yml
|
233
|
+
- spec/vcr/user_rooms.yml
|