ruby-pushbullet 0.1.3 → 0.1.4

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: e2e05f7318c86a09bb511d28c63811242e2dc180
4
- data.tar.gz: 38ee3dd285e45f43a1bb1bd495ace4925fce26e7
3
+ metadata.gz: 2d01ae5a8925f2005e8f575b222577f99605dafe
4
+ data.tar.gz: c0baf7b56c7182b8b6ca2215b3c0613bd1007275
5
5
  SHA512:
6
- metadata.gz: 6af85d29376b9873b168233aa4753ed13a2b625883066f2c11a01316f83d1f40bdac5b7c47d53bd2b28ead685ad7ffb3d190a4c9c13c85e2e3890d85156bf0b9
7
- data.tar.gz: 90198955dcaf00b4a8a44eea8a1968a3be04a36f0215b305bbce07f0ea07cef40294f01bcab6637d3c8c6d14ed30fae68b2464dc22172080fe0c03f438f07438
6
+ metadata.gz: d88bb7dd757b98fb1baf0abc7c1d9b23f0b5730062e2d665be00bd71fd0431f23eaccab3733ecc009f0b1c109e8d487c3dfa1c3abd6196e0f041152fa6eafb61
7
+ data.tar.gz: 3d67300b22a7b01214604e669aa6eca66cdf0278e5bedd5a6c7f4b58f053073cebfca3fe2eb05612bcc7d2904d3381039fcaa8f4879679293eb3492a76894be7
data/README.md CHANGED
@@ -1,12 +1,9 @@
1
1
  # Ruby Pushbullet API
2
2
 
3
- Stable:
4
3
  [![Build Status](https://travis-ci.org/letz/ruby-pushbullet.svg?branch=master)](https://travis-ci.org/letz/ruby-pushbullet)
5
- Dev:
6
- [![Build Status](https://travis-ci.org/letz/ruby-pushbullet.svg?branch=development)](https://travis-ci.org/letz/ruby-pushbullet)
7
-
8
4
  [![Code Climate](https://codeclimate.com/github/letz/ruby-pushbullet/badges/gpa.svg)](https://codeclimate.com/github/letz/ruby-pushbullet)
9
5
  [![Gem Version](https://badge.fury.io/rb/ruby-pushbullet.svg)](http://badge.fury.io/rb/ruby-pushbullet)
6
+ [![Codacy Badge](https://api.codacy.com/project/badge/5c759948c4a740dcb2efe9172b70cd4c)](https://www.codacy.com/app/letz/ruby-pushbullet)
10
7
 
11
8
 
12
9
  This library is an implementation of [Pushbullet API](https://docs.pushbullet.com/http)
@@ -6,7 +6,7 @@ module Pushbullet
6
6
  END_POINT = "https://api.pushbullet.com/v#{API_VERSION}/"
7
7
 
8
8
  def get(path)
9
- JSON.parse(generic_request(path).get &handle_error)
9
+ JSON.parse(generic_request(path).get(&handle_error))
10
10
  end
11
11
 
12
12
  def post(path, params = {})
@@ -11,7 +11,7 @@ describe Pushbullet::Channel do
11
11
  end
12
12
  end
13
13
 
14
- it 'returns channel with recent pushes' do
14
+ it 'returns channel with recent pushes' do
15
15
  VCR.use_cassette('channel_info') do
16
16
  described_class.get_info(tag).recent_pushes.each do |push|
17
17
  expect(push).to be_a Pushbullet::Push
@@ -6,7 +6,6 @@ end
6
6
  require 'webmock/rspec'
7
7
  require 'awesome_print'
8
8
  require 'factory_girl'
9
- require 'pry'
10
9
  require 'vcr'
11
10
  require 'support/factories'
12
11
 
metadata CHANGED
@@ -1,197 +1,183 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ruby-pushbullet
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ricardo Leitao
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-04-28 00:00:00.000000000 Z
11
+ date: 2015-11-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
15
- version_requirements: !ruby/object:Gem::Requirement
16
- requirements:
17
- - - '>='
18
- - !ruby/object:Gem::Version
19
- version: '0'
20
15
  requirement: !ruby/object:Gem::Requirement
21
16
  requirements:
22
- - - '>='
17
+ - - ">="
23
18
  - !ruby/object:Gem::Version
24
19
  version: '0'
25
- prerelease: false
26
20
  type: :development
27
- - !ruby/object:Gem::Dependency
28
- name: pry
21
+ prerelease: false
29
22
  version_requirements: !ruby/object:Gem::Requirement
30
23
  requirements:
31
- - - '>='
24
+ - - ">="
32
25
  - !ruby/object:Gem::Version
33
26
  version: '0'
27
+ - !ruby/object:Gem::Dependency
28
+ name: rake
34
29
  requirement: !ruby/object:Gem::Requirement
35
30
  requirements:
36
- - - '>='
31
+ - - ">="
37
32
  - !ruby/object:Gem::Version
38
33
  version: '0'
39
- prerelease: false
40
34
  type: :development
41
- - !ruby/object:Gem::Dependency
42
- name: rake
35
+ prerelease: false
43
36
  version_requirements: !ruby/object:Gem::Requirement
44
37
  requirements:
45
- - - '>='
38
+ - - ">="
46
39
  - !ruby/object:Gem::Version
47
40
  version: '0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: rspec
48
43
  requirement: !ruby/object:Gem::Requirement
49
44
  requirements:
50
- - - '>='
45
+ - - "~>"
51
46
  - !ruby/object:Gem::Version
52
- version: '0'
53
- prerelease: false
47
+ version: 3.0.0
54
48
  type: :development
55
- - !ruby/object:Gem::Dependency
56
- name: rspec
49
+ prerelease: false
57
50
  version_requirements: !ruby/object:Gem::Requirement
58
51
  requirements:
59
- - - ~>
52
+ - - "~>"
60
53
  - !ruby/object:Gem::Version
61
54
  version: 3.0.0
55
+ - !ruby/object:Gem::Dependency
56
+ name: factory_girl
62
57
  requirement: !ruby/object:Gem::Requirement
63
58
  requirements:
64
- - - ~>
59
+ - - ">="
65
60
  - !ruby/object:Gem::Version
66
- version: 3.0.0
67
- prerelease: false
61
+ version: '0'
68
62
  type: :development
69
- - !ruby/object:Gem::Dependency
70
- name: factory_girl
63
+ prerelease: false
71
64
  version_requirements: !ruby/object:Gem::Requirement
72
65
  requirements:
73
- - - '>='
66
+ - - ">="
74
67
  - !ruby/object:Gem::Version
75
68
  version: '0'
69
+ - !ruby/object:Gem::Dependency
70
+ name: webmock
76
71
  requirement: !ruby/object:Gem::Requirement
77
72
  requirements:
78
- - - '>='
73
+ - - ">="
79
74
  - !ruby/object:Gem::Version
80
75
  version: '0'
81
- prerelease: false
82
76
  type: :development
83
- - !ruby/object:Gem::Dependency
84
- name: webmock
77
+ prerelease: false
85
78
  version_requirements: !ruby/object:Gem::Requirement
86
79
  requirements:
87
- - - '>='
80
+ - - ">="
88
81
  - !ruby/object:Gem::Version
89
82
  version: '0'
83
+ - !ruby/object:Gem::Dependency
84
+ name: rubocop
90
85
  requirement: !ruby/object:Gem::Requirement
91
86
  requirements:
92
- - - '>='
87
+ - - ">="
93
88
  - !ruby/object:Gem::Version
94
89
  version: '0'
95
- prerelease: false
96
90
  type: :development
97
- - !ruby/object:Gem::Dependency
98
- name: rubocop
91
+ prerelease: false
99
92
  version_requirements: !ruby/object:Gem::Requirement
100
93
  requirements:
101
- - - '>='
94
+ - - ">="
102
95
  - !ruby/object:Gem::Version
103
96
  version: '0'
97
+ - !ruby/object:Gem::Dependency
98
+ name: rubocop-rspec
104
99
  requirement: !ruby/object:Gem::Requirement
105
100
  requirements:
106
- - - '>='
101
+ - - ">="
107
102
  - !ruby/object:Gem::Version
108
103
  version: '0'
109
- prerelease: false
110
104
  type: :development
111
- - !ruby/object:Gem::Dependency
112
- name: rubocop-rspec
105
+ prerelease: false
113
106
  version_requirements: !ruby/object:Gem::Requirement
114
107
  requirements:
115
- - - '>='
108
+ - - ">="
116
109
  - !ruby/object:Gem::Version
117
110
  version: '0'
111
+ - !ruby/object:Gem::Dependency
112
+ name: awesome_print
118
113
  requirement: !ruby/object:Gem::Requirement
119
114
  requirements:
120
- - - '>='
115
+ - - ">="
121
116
  - !ruby/object:Gem::Version
122
117
  version: '0'
123
- prerelease: false
124
118
  type: :development
125
- - !ruby/object:Gem::Dependency
126
- name: awesome_print
119
+ prerelease: false
127
120
  version_requirements: !ruby/object:Gem::Requirement
128
121
  requirements:
129
- - - '>='
122
+ - - ">="
130
123
  - !ruby/object:Gem::Version
131
124
  version: '0'
125
+ - !ruby/object:Gem::Dependency
126
+ name: vcr
132
127
  requirement: !ruby/object:Gem::Requirement
133
128
  requirements:
134
- - - '>='
129
+ - - ">="
135
130
  - !ruby/object:Gem::Version
136
131
  version: '0'
137
- prerelease: false
138
132
  type: :development
139
- - !ruby/object:Gem::Dependency
140
- name: vcr
133
+ prerelease: false
141
134
  version_requirements: !ruby/object:Gem::Requirement
142
135
  requirements:
143
- - - '>='
136
+ - - ">="
144
137
  - !ruby/object:Gem::Version
145
138
  version: '0'
139
+ - !ruby/object:Gem::Dependency
140
+ name: simplecov
146
141
  requirement: !ruby/object:Gem::Requirement
147
142
  requirements:
148
- - - '>='
143
+ - - ">="
149
144
  - !ruby/object:Gem::Version
150
145
  version: '0'
151
- prerelease: false
152
146
  type: :development
153
- - !ruby/object:Gem::Dependency
154
- name: simplecov
147
+ prerelease: false
155
148
  version_requirements: !ruby/object:Gem::Requirement
156
149
  requirements:
157
- - - '>='
150
+ - - ">="
158
151
  - !ruby/object:Gem::Version
159
152
  version: '0'
153
+ - !ruby/object:Gem::Dependency
154
+ name: rest-client
160
155
  requirement: !ruby/object:Gem::Requirement
161
156
  requirements:
162
- - - '>='
157
+ - - "~>"
163
158
  - !ruby/object:Gem::Version
164
- version: '0'
159
+ version: 1.8.0
160
+ type: :runtime
165
161
  prerelease: false
166
- type: :development
167
- - !ruby/object:Gem::Dependency
168
- name: rest-client
169
162
  version_requirements: !ruby/object:Gem::Requirement
170
163
  requirements:
171
- - - ~>
164
+ - - "~>"
172
165
  - !ruby/object:Gem::Version
173
- version: 1.7.2
174
- requirement: !ruby/object:Gem::Requirement
175
- requirements:
176
- - - ~>
177
- - !ruby/object:Gem::Version
178
- version: 1.7.2
179
- prerelease: false
180
- type: :runtime
166
+ version: 1.8.0
181
167
  - !ruby/object:Gem::Dependency
182
168
  name: json
183
- version_requirements: !ruby/object:Gem::Requirement
169
+ requirement: !ruby/object:Gem::Requirement
184
170
  requirements:
185
- - - '>='
171
+ - - ">="
186
172
  - !ruby/object:Gem::Version
187
173
  version: '0'
188
- requirement: !ruby/object:Gem::Requirement
174
+ type: :runtime
175
+ prerelease: false
176
+ version_requirements: !ruby/object:Gem::Requirement
189
177
  requirements:
190
- - - '>='
178
+ - - ">="
191
179
  - !ruby/object:Gem::Version
192
180
  version: '0'
193
- prerelease: false
194
- type: :runtime
195
181
  description: Ruby client of Pushbullet API.
196
182
  email:
197
183
  - letzdevelopment@gmail.com
@@ -236,29 +222,27 @@ homepage: https://github.com/letz/ruby-pushbullet
236
222
  licenses:
237
223
  - MIT
238
224
  metadata: {}
239
- post_install_message:
225
+ post_install_message:
240
226
  rdoc_options: []
241
227
  require_paths:
242
228
  - lib
243
229
  required_ruby_version: !ruby/object:Gem::Requirement
244
230
  requirements:
245
- - - '>='
231
+ - - ">="
246
232
  - !ruby/object:Gem::Version
247
233
  version: '0'
248
234
  required_rubygems_version: !ruby/object:Gem::Requirement
249
235
  requirements:
250
- - - '>='
236
+ - - ">="
251
237
  - !ruby/object:Gem::Version
252
238
  version: '0'
253
239
  requirements: []
254
- rubyforge_project:
255
- rubygems_version: 2.4.5
256
- signing_key:
240
+ rubyforge_project:
241
+ rubygems_version: 2.5.0
242
+ signing_key:
257
243
  specification_version: 4
258
244
  summary: Ruby client of Pushbullet API.
259
245
  test_files:
260
- - spec/pushbullet_spec.rb
261
- - spec/spec_helper.rb
262
246
  - spec/fixtures/vcr_cassettes/channel_info.yml
263
247
  - spec/fixtures/vcr_cassettes/channel_subscribe.yml
264
248
  - spec/fixtures/vcr_cassettes/channel_unsubscribe.yml
@@ -277,5 +261,8 @@ test_files:
277
261
  - spec/pushbullet/contact_spec.rb
278
262
  - spec/pushbullet/devices_spec.rb
279
263
  - spec/pushbullet/push_spec.rb
264
+ - spec/pushbullet_spec.rb
280
265
  - spec/shared/error_handling.rb
266
+ - spec/spec_helper.rb
281
267
  - spec/support/factories.rb
268
+ has_rdoc: