groupme-api 0.7.0 → 0.7.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +36 -38
- data/groupme-api.gemspec +1 -0
- data/lib/groupme/image_client.rb +2 -2
- data/lib/groupme/version.rb +1 -1
- data/spec/groupme/image_client_spec.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a4512cb454df4cf7c91d422681eaeea2b7148461
|
4
|
+
data.tar.gz: 808a07bcf9f00489749be865c85cbcf3d933c736
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4ad9f65fc24468b6401025d7657c9f28b49d3814367b5df80553d4e08d0e420df4aeea81793eecec2a56f43197f9e7af1e2600578979c1aee9a5696cd110ec35
|
7
|
+
data.tar.gz: dd8e88f22178a584797e8382b520cf1f4996fe52bafeff73ebd3d9ff82f7580252a7297eb75f3b97847167aff6073e2e3375c5325022bcb2a7bca068bd3c6bdc
|
data/Gemfile.lock
CHANGED
@@ -1,28 +1,28 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
groupme-api (0.7.
|
4
|
+
groupme-api (0.7.1)
|
5
5
|
httpclient (~> 2.8)
|
6
6
|
|
7
7
|
GEM
|
8
8
|
remote: https://rubygems.org/
|
9
9
|
specs:
|
10
|
-
addressable (2.
|
11
|
-
public_suffix (>= 2.0.2, <
|
10
|
+
addressable (2.7.0)
|
11
|
+
public_suffix (>= 2.0.2, < 5.0)
|
12
12
|
coderay (1.1.2)
|
13
|
-
coveralls (0.8.
|
13
|
+
coveralls (0.8.23)
|
14
14
|
json (>= 1.8, < 3)
|
15
15
|
simplecov (~> 0.16.1)
|
16
16
|
term-ansicolor (~> 1.3)
|
17
|
-
thor (
|
17
|
+
thor (>= 0.19.4, < 2.0)
|
18
18
|
tins (~> 1.6)
|
19
19
|
crack (0.4.3)
|
20
20
|
safe_yaml (~> 1.0.0)
|
21
21
|
diff-lcs (1.3)
|
22
|
-
docile (1.3.
|
23
|
-
ffi (1.
|
22
|
+
docile (1.3.2)
|
23
|
+
ffi (1.11.1)
|
24
24
|
formatador (0.2.5)
|
25
|
-
guard (2.
|
25
|
+
guard (2.15.1)
|
26
26
|
formatador (>= 0.2.4)
|
27
27
|
listen (>= 2.7, < 4.0)
|
28
28
|
lumberjack (>= 1.0.12, < 2.0)
|
@@ -36,57 +36,55 @@ GEM
|
|
36
36
|
guard (~> 2.1)
|
37
37
|
guard-compat (~> 1.1)
|
38
38
|
rspec (>= 2.99.0, < 4.0)
|
39
|
-
hashdiff (0.
|
39
|
+
hashdiff (1.0.0)
|
40
40
|
httpclient (2.8.3)
|
41
|
-
json (2.
|
42
|
-
listen (3.
|
43
|
-
rb-fsevent (~> 0.
|
44
|
-
rb-inotify (~> 0.9, >= 0.9.
|
45
|
-
ruby_dep (~> 1.2)
|
41
|
+
json (2.2.0)
|
42
|
+
listen (3.2.0)
|
43
|
+
rb-fsevent (~> 0.10, >= 0.10.3)
|
44
|
+
rb-inotify (~> 0.9, >= 0.9.10)
|
46
45
|
lumberjack (1.0.13)
|
47
|
-
method_source (0.9.
|
46
|
+
method_source (0.9.2)
|
48
47
|
nenv (0.3.0)
|
49
|
-
notiffany (0.1.
|
48
|
+
notiffany (0.1.3)
|
50
49
|
nenv (~> 0.1)
|
51
50
|
shellany (~> 0.0)
|
52
|
-
pry (0.
|
51
|
+
pry (0.12.2)
|
53
52
|
coderay (~> 1.1.0)
|
54
53
|
method_source (~> 0.9.0)
|
55
|
-
public_suffix (
|
54
|
+
public_suffix (4.0.1)
|
56
55
|
rake (10.5.0)
|
57
56
|
rb-fsevent (0.10.3)
|
58
|
-
rb-inotify (0.
|
59
|
-
ffi (
|
60
|
-
rspec (3.
|
61
|
-
rspec-core (~> 3.
|
62
|
-
rspec-expectations (~> 3.
|
63
|
-
rspec-mocks (~> 3.
|
64
|
-
rspec-core (3.
|
65
|
-
rspec-support (~> 3.
|
66
|
-
rspec-expectations (3.
|
57
|
+
rb-inotify (0.10.0)
|
58
|
+
ffi (~> 1.0)
|
59
|
+
rspec (3.9.0)
|
60
|
+
rspec-core (~> 3.9.0)
|
61
|
+
rspec-expectations (~> 3.9.0)
|
62
|
+
rspec-mocks (~> 3.9.0)
|
63
|
+
rspec-core (3.9.0)
|
64
|
+
rspec-support (~> 3.9.0)
|
65
|
+
rspec-expectations (3.9.0)
|
67
66
|
diff-lcs (>= 1.2.0, < 2.0)
|
68
|
-
rspec-support (~> 3.
|
69
|
-
rspec-mocks (3.
|
67
|
+
rspec-support (~> 3.9.0)
|
68
|
+
rspec-mocks (3.9.0)
|
70
69
|
diff-lcs (>= 1.2.0, < 2.0)
|
71
|
-
rspec-support (~> 3.
|
72
|
-
rspec-support (3.
|
73
|
-
|
74
|
-
safe_yaml (1.0.4)
|
70
|
+
rspec-support (~> 3.9.0)
|
71
|
+
rspec-support (3.9.0)
|
72
|
+
safe_yaml (1.0.5)
|
75
73
|
shellany (0.0.1)
|
76
74
|
simplecov (0.16.1)
|
77
75
|
docile (~> 1.1)
|
78
76
|
json (>= 1.8, < 3)
|
79
77
|
simplecov-html (~> 0.10.0)
|
80
78
|
simplecov-html (0.10.2)
|
81
|
-
term-ansicolor (1.7.
|
79
|
+
term-ansicolor (1.7.1)
|
82
80
|
tins (~> 1.0)
|
83
|
-
thor (0.
|
84
|
-
tins (1.
|
81
|
+
thor (0.20.3)
|
82
|
+
tins (1.21.1)
|
85
83
|
vcr (4.0.0)
|
86
|
-
webmock (3.
|
84
|
+
webmock (3.7.6)
|
87
85
|
addressable (>= 2.3.6)
|
88
86
|
crack (>= 0.3.2)
|
89
|
-
hashdiff
|
87
|
+
hashdiff (>= 0.4.0, < 2.0.0)
|
90
88
|
|
91
89
|
PLATFORMS
|
92
90
|
ruby
|
data/groupme-api.gemspec
CHANGED
data/lib/groupme/image_client.rb
CHANGED
@@ -11,8 +11,8 @@ module GroupMe
|
|
11
11
|
@client = HTTPClient.new(base_url: API_BASE_URL, default_header: { 'X-Access-Token': @access_token, 'Content-Type': 'image/jpeg' })
|
12
12
|
end
|
13
13
|
|
14
|
-
def upload(
|
15
|
-
response = @client.post('pictures',
|
14
|
+
def upload(image_blob)
|
15
|
+
response = @client.post('pictures', image_blob)
|
16
16
|
|
17
17
|
return response.reason unless response.ok?
|
18
18
|
|
data/lib/groupme/version.rb
CHANGED
@@ -10,7 +10,7 @@ RSpec.describe GroupMe::ImageClient do
|
|
10
10
|
_image_client = GroupMe::ImageClient.new
|
11
11
|
_image_client.upload(image_blob)
|
12
12
|
|
13
|
-
expect(WebMock).to have_requested(:post, 'https://image.groupme.com/pictures').with(body: image_blob
|
13
|
+
expect(WebMock).to have_requested(:post, 'https://image.groupme.com/pictures').with(body: image_blob)
|
14
14
|
end
|
15
15
|
end
|
16
16
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: groupme-api
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.7.
|
4
|
+
version: 0.7.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kinnell Shah
|
@@ -173,7 +173,8 @@ files:
|
|
173
173
|
- spec/support/vcr.rb
|
174
174
|
- spec/support/webmock.rb
|
175
175
|
homepage: https://github.com/kinnell/groupme-ruby-gem
|
176
|
-
licenses:
|
176
|
+
licenses:
|
177
|
+
- MIT
|
177
178
|
metadata: {}
|
178
179
|
post_install_message:
|
179
180
|
rdoc_options: []
|