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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1648018d16b02811eb7784f5991ebe35e39f7d15
4
- data.tar.gz: 60300f9a257451b624ce2595831c3876133eae3e
3
+ metadata.gz: a4512cb454df4cf7c91d422681eaeea2b7148461
4
+ data.tar.gz: 808a07bcf9f00489749be865c85cbcf3d933c736
5
5
  SHA512:
6
- metadata.gz: a45fc143af1b07948d439808258633460c0d8e62b044284c2ac35ba9f4ec7b57f3dfb04a8f9ee719b2b31adad72f8b7589bcb8dfdf82800b6c5b94cc67bece83
7
- data.tar.gz: 8dd9aa132200252fa349080e0b5430e783d4226e452009263cd37aff606f3cedf5c0c447bd7fb72539ed69b40bcc19e36ba589b03203fc03ebf29f9580d64e40
6
+ metadata.gz: 4ad9f65fc24468b6401025d7657c9f28b49d3814367b5df80553d4e08d0e420df4aeea81793eecec2a56f43197f9e7af1e2600578979c1aee9a5696cd110ec35
7
+ data.tar.gz: dd8e88f22178a584797e8382b520cf1f4996fe52bafeff73ebd3d9ff82f7580252a7297eb75f3b97847167aff6073e2e3375c5325022bcb2a7bca068bd3c6bdc
@@ -1,28 +1,28 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- groupme-api (0.7.0)
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.5.2)
11
- public_suffix (>= 2.0.2, < 4.0)
10
+ addressable (2.7.0)
11
+ public_suffix (>= 2.0.2, < 5.0)
12
12
  coderay (1.1.2)
13
- coveralls (0.8.22)
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 (~> 0.19.4)
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.1)
23
- ffi (1.9.25)
22
+ docile (1.3.2)
23
+ ffi (1.11.1)
24
24
  formatador (0.2.5)
25
- guard (2.14.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.3.7)
39
+ hashdiff (1.0.0)
40
40
  httpclient (2.8.3)
41
- json (2.1.0)
42
- listen (3.1.5)
43
- rb-fsevent (~> 0.9, >= 0.9.4)
44
- rb-inotify (~> 0.9, >= 0.9.7)
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.1)
46
+ method_source (0.9.2)
48
47
  nenv (0.3.0)
49
- notiffany (0.1.1)
48
+ notiffany (0.1.3)
50
49
  nenv (~> 0.1)
51
50
  shellany (~> 0.0)
52
- pry (0.11.3)
51
+ pry (0.12.2)
53
52
  coderay (~> 1.1.0)
54
53
  method_source (~> 0.9.0)
55
- public_suffix (3.0.3)
54
+ public_suffix (4.0.1)
56
55
  rake (10.5.0)
57
56
  rb-fsevent (0.10.3)
58
- rb-inotify (0.9.10)
59
- ffi (>= 0.5.0, < 2)
60
- rspec (3.8.0)
61
- rspec-core (~> 3.8.0)
62
- rspec-expectations (~> 3.8.0)
63
- rspec-mocks (~> 3.8.0)
64
- rspec-core (3.8.0)
65
- rspec-support (~> 3.8.0)
66
- rspec-expectations (3.8.2)
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.8.0)
69
- rspec-mocks (3.8.0)
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.8.0)
72
- rspec-support (3.8.0)
73
- ruby_dep (1.5.0)
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.0)
79
+ term-ansicolor (1.7.1)
82
80
  tins (~> 1.0)
83
- thor (0.19.4)
84
- tins (1.18.0)
81
+ thor (0.20.3)
82
+ tins (1.21.1)
85
83
  vcr (4.0.0)
86
- webmock (3.4.2)
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
@@ -10,6 +10,7 @@ Gem::Specification.new do |spec|
10
10
  spec.name = 'groupme-api'
11
11
  spec.version = GroupMe::VERSION
12
12
  spec.summary = 'A Ruby wrapper for GroupMe REST API (v3)'
13
+ spec.license = 'MIT'
13
14
 
14
15
  spec.author = 'Kinnell Shah'
15
16
  spec.email = 'kinnell@gmail.com'
@@ -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(body = {})
15
- response = @client.post('pictures', body&.to_json)\
14
+ def upload(image_blob)
15
+ response = @client.post('pictures', image_blob)
16
16
 
17
17
  return response.reason unless response.ok?
18
18
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module GroupMe
4
- VERSION = '0.7.0'
4
+ VERSION = '0.7.1'
5
5
  end
@@ -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.to_json)
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.0
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: []