pushbullet_ruby 1.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 +9 -0
- data/Gemfile +4 -0
- data/LICENSE.txt +21 -0
- data/README.md +41 -0
- data/Rakefile +2 -0
- data/lib/pushbullet_ruby/api/contacts.rb +9 -0
- data/lib/pushbullet_ruby/api/devices.rb +13 -0
- data/lib/pushbullet_ruby/api/me.rb +9 -0
- data/lib/pushbullet_ruby/api/pushes.rb +22 -0
- data/lib/pushbullet_ruby/api/subscriptions.rb +23 -0
- data/lib/pushbullet_ruby/api.rb +15 -0
- data/lib/pushbullet_ruby/authorization.rb +10 -0
- data/lib/pushbullet_ruby/channel.rb +22 -0
- data/lib/pushbullet_ruby/client.rb +51 -0
- data/lib/pushbullet_ruby/contact.rb +12 -0
- data/lib/pushbullet_ruby/device.rb +20 -0
- data/lib/pushbullet_ruby/entity.rb +17 -0
- data/lib/pushbullet_ruby/http_exeption.rb +34 -0
- data/lib/pushbullet_ruby/parse_json.rb +13 -0
- data/lib/pushbullet_ruby/push.rb +13 -0
- data/lib/pushbullet_ruby/pushable/file.rb +53 -0
- data/lib/pushbullet_ruby/pushable/link.rb +13 -0
- data/lib/pushbullet_ruby/pushable/note.rb +13 -0
- data/lib/pushbullet_ruby/pushable.rb +47 -0
- data/lib/pushbullet_ruby/request.rb +23 -0
- data/lib/pushbullet_ruby/token.rb +14 -0
- data/lib/pushbullet_ruby/user.rb +9 -0
- data/lib/pushbullet_ruby/version.rb +3 -0
- data/lib/pushbullet_ruby.rb +10 -0
- data/pushbullet_ruby.gemspec +35 -0
- data/token.json +1 -0
- metadata +131 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 2dae0e7808cbb8b26e29d8dce88ce2422717990c
|
4
|
+
data.tar.gz: 524e45b761a5aabd47e3507c2506de08eb898477
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: b8d4a658e59faf4c23b339d1560a0b64926b3b8661732334f7ca88060e047353a54c51dcec8e31dd9d520ae0d96436cb63b8df42e778f77e8473e4def7c37fa0
|
7
|
+
data.tar.gz: 819e336ab483032124a92d56566360333560b754d5d253834f029bd12e44f056ae57d043510b7162b7b82ab97e9eb0c072b6a83b16f59220aab952dab69a84a6
|
data/.gitignore
ADDED
data/Gemfile
ADDED
data/LICENSE.txt
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) 2016
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
7
|
+
in the Software without restriction, including without limitation the rights
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
10
|
+
furnished to do so, subject to the following conditions:
|
11
|
+
|
12
|
+
The above copyright notice and this permission notice shall be included in
|
13
|
+
all copies or substantial portions of the Software.
|
14
|
+
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
21
|
+
THE SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,41 @@
|
|
1
|
+
# PushbulletRuby
|
2
|
+
|
3
|
+
Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/pushbullet_ruby`. To experiment with that code, run `bin/console` for an interactive prompt.
|
4
|
+
|
5
|
+
TODO: Delete this and the text above, and describe your gem
|
6
|
+
|
7
|
+
## Installation
|
8
|
+
|
9
|
+
Add this line to your application's Gemfile:
|
10
|
+
|
11
|
+
```ruby
|
12
|
+
gem 'pushbullet_ruby'
|
13
|
+
```
|
14
|
+
|
15
|
+
And then execute:
|
16
|
+
|
17
|
+
$ bundle
|
18
|
+
|
19
|
+
Or install it yourself as:
|
20
|
+
|
21
|
+
$ gem install pushbullet_ruby
|
22
|
+
|
23
|
+
## Usage
|
24
|
+
|
25
|
+
TODO: Write usage instructions here
|
26
|
+
|
27
|
+
## Development
|
28
|
+
|
29
|
+
After checking out the repo, run `bin/setup` to install dependencies. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
|
30
|
+
|
31
|
+
To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
|
32
|
+
|
33
|
+
## Contributing
|
34
|
+
|
35
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/creends/pushbullet_ruby.
|
36
|
+
|
37
|
+
|
38
|
+
## License
|
39
|
+
|
40
|
+
The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
|
41
|
+
|
data/Rakefile
ADDED
@@ -0,0 +1,13 @@
|
|
1
|
+
module PushbulletRuby
|
2
|
+
module API
|
3
|
+
module Devices
|
4
|
+
def devices
|
5
|
+
PushbulletRuby::Device.from_responce(get('/v2/devices'))
|
6
|
+
end
|
7
|
+
|
8
|
+
def update_device(id: nil, params: {})
|
9
|
+
PushbulletRuby::Device.new(post("/v2/devices/#{id}", params).body)
|
10
|
+
end
|
11
|
+
end
|
12
|
+
end
|
13
|
+
end
|
@@ -0,0 +1,22 @@
|
|
1
|
+
require 'pushbullet_ruby/pushable'
|
2
|
+
require 'pushbullet_ruby/pushable/note'
|
3
|
+
require 'pushbullet_ruby/pushable/link'
|
4
|
+
require 'pushbullet_ruby/pushable/file'
|
5
|
+
|
6
|
+
module PushbulletRuby
|
7
|
+
module API
|
8
|
+
module Pushes
|
9
|
+
def push_note(receiver: nil, identifier: nil, params: {})
|
10
|
+
PushbulletRuby::Pushable::Note.push(self, receiver, identifier, params)
|
11
|
+
end
|
12
|
+
|
13
|
+
def push_link(receiver: nil, identifier: nil, params: {})
|
14
|
+
PushbulletRuby::Pushable::Link.push(self, receiver, identifier, params)
|
15
|
+
end
|
16
|
+
|
17
|
+
def push_file(receiver: nil, identifier: nil, params: {})
|
18
|
+
PushbulletRuby::Pushable::File.push(self, receiver, identifier, params)
|
19
|
+
end
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
@@ -0,0 +1,23 @@
|
|
1
|
+
require 'pushbullet_ruby/push'
|
2
|
+
|
3
|
+
module PushbulletRuby
|
4
|
+
module API
|
5
|
+
module Subscriptions
|
6
|
+
def subscriptions
|
7
|
+
PushbulletRuby::Channel.from_response(get('/v2/subscriptions'))
|
8
|
+
end
|
9
|
+
|
10
|
+
def channel_info(tag)
|
11
|
+
PushbulletRuby::Channel.new(get('/v2/channel-info', tag: tag).body)
|
12
|
+
end
|
13
|
+
|
14
|
+
def recent_pushes(tag)
|
15
|
+
pushes = []
|
16
|
+
channel_info(tag).body['recent_pushes'].each do |push|
|
17
|
+
pushes << PushbulletRuby::Push.new(push)
|
18
|
+
end
|
19
|
+
pushes
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
23
|
+
end
|
@@ -0,0 +1,15 @@
|
|
1
|
+
require 'pushbullet_ruby/api/me'
|
2
|
+
require 'pushbullet_ruby/api/devices'
|
3
|
+
require 'pushbullet_ruby/api/pushes'
|
4
|
+
require 'pushbullet_ruby/api/contacts'
|
5
|
+
require 'pushbullet_ruby/api/subscriptions'
|
6
|
+
|
7
|
+
module PushbulletRuby
|
8
|
+
module API
|
9
|
+
include Me
|
10
|
+
include Devices
|
11
|
+
include Pushes
|
12
|
+
include Contacts
|
13
|
+
include Subscriptions
|
14
|
+
end
|
15
|
+
end
|
@@ -0,0 +1,22 @@
|
|
1
|
+
require 'pushbullet_ruby/api'
|
2
|
+
|
3
|
+
module PushbulletRuby
|
4
|
+
class Channel
|
5
|
+
attr_reader :body
|
6
|
+
|
7
|
+
def self.from_response(response)
|
8
|
+
response.body['subscriptions'].each_with_object([]) do |attributes, memo|
|
9
|
+
next unless attributes['active']
|
10
|
+
memo << new(attributes['channel'])
|
11
|
+
end
|
12
|
+
end
|
13
|
+
|
14
|
+
def initialize(response)
|
15
|
+
@body = response
|
16
|
+
end
|
17
|
+
|
18
|
+
def tag
|
19
|
+
body['tag']
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
@@ -0,0 +1,51 @@
|
|
1
|
+
require 'faraday'
|
2
|
+
require 'mime/types'
|
3
|
+
|
4
|
+
require 'pushbullet_ruby/api'
|
5
|
+
require 'pushbullet_ruby/request'
|
6
|
+
require 'pushbullet_ruby/authorization'
|
7
|
+
require 'pushbullet_ruby/parse_json'
|
8
|
+
require 'pushbullet_ruby/http_exeption'
|
9
|
+
|
10
|
+
module PushbulletRuby
|
11
|
+
class Client
|
12
|
+
include Request
|
13
|
+
include API
|
14
|
+
|
15
|
+
attr_reader :key
|
16
|
+
|
17
|
+
URL = 'https://api.pushbullet.com'
|
18
|
+
|
19
|
+
def initialize(key)
|
20
|
+
@key = key
|
21
|
+
end
|
22
|
+
|
23
|
+
def connection
|
24
|
+
@connection ||= Faraday.new(URL, connection_options)
|
25
|
+
end
|
26
|
+
|
27
|
+
def connection_options
|
28
|
+
@connection_options ||= {
|
29
|
+
builder: middleware,
|
30
|
+
headers: {
|
31
|
+
accept: 'application/json',
|
32
|
+
user_agent: 'Pushbullet Gem'
|
33
|
+
},
|
34
|
+
ssl: {
|
35
|
+
verify: false
|
36
|
+
}
|
37
|
+
}
|
38
|
+
end
|
39
|
+
|
40
|
+
def middleware
|
41
|
+
@middleware ||= Faraday::RackBuilder.new do |f|
|
42
|
+
f.request :multipart
|
43
|
+
f.request :url_encoded
|
44
|
+
f.use PushbulletRuby::Authorization, 'Bearer', key
|
45
|
+
f.use PushbulletRuby::ParseJSON
|
46
|
+
f.use PushbulletRuby::HttpException
|
47
|
+
f.adapter :net_http
|
48
|
+
end
|
49
|
+
end
|
50
|
+
end
|
51
|
+
end
|
@@ -0,0 +1,12 @@
|
|
1
|
+
require 'pushbullet_ruby/entity'
|
2
|
+
|
3
|
+
module PushbulletRuby
|
4
|
+
class Contact < Entity
|
5
|
+
def self.from_response(response)
|
6
|
+
response.body['contacts'].each_with_object([]) do |attributes, memo|
|
7
|
+
next unless attributes['active']
|
8
|
+
memo << new(attributes)
|
9
|
+
end
|
10
|
+
end
|
11
|
+
end
|
12
|
+
end
|
@@ -0,0 +1,20 @@
|
|
1
|
+
require 'pushbullet_ruby/entity'
|
2
|
+
|
3
|
+
module PushbulletRuby
|
4
|
+
class Device < Entity
|
5
|
+
def self.from_responce(response)
|
6
|
+
response.body['devices'].each_with_object([]) do |attributes, memo|
|
7
|
+
next unless attributes['active']
|
8
|
+
memo << new(attributes)
|
9
|
+
end
|
10
|
+
end
|
11
|
+
|
12
|
+
def id
|
13
|
+
body['iden']
|
14
|
+
end
|
15
|
+
|
16
|
+
def name
|
17
|
+
body['nickname']
|
18
|
+
end
|
19
|
+
end
|
20
|
+
end
|
@@ -0,0 +1,34 @@
|
|
1
|
+
module PushbulletRuby
|
2
|
+
class BadRequest < StandardError; end
|
3
|
+
class Unauthorized < StandardError; end
|
4
|
+
class RequestFailed < StandardError; end
|
5
|
+
class Forbidden < StandardError; end
|
6
|
+
class NotFound < StandardError; end
|
7
|
+
class ServerError < StandardError; end
|
8
|
+
|
9
|
+
class HttpException < Faraday::Response::Middleware
|
10
|
+
def call(env)
|
11
|
+
@app.call(env).on_complete do |response|
|
12
|
+
exception =
|
13
|
+
case response.status
|
14
|
+
when 400 then PushbulletRuby::BadRequest
|
15
|
+
when 401 then PushbulletRuby::Unauthorized
|
16
|
+
when 402 then PushbulletRuby::RequestFailed
|
17
|
+
when 403 then PushbulletRuby::Forbidden
|
18
|
+
when 404 then PushbulletRuby::NotFound
|
19
|
+
when 500..505 then PushbulletRuby::ServerError
|
20
|
+
end
|
21
|
+
|
22
|
+
raise exception, error_message(response.body) if exception
|
23
|
+
end
|
24
|
+
end
|
25
|
+
|
26
|
+
private
|
27
|
+
|
28
|
+
def error_message(response_body)
|
29
|
+
hash = JSON.parse(response_body)['error']
|
30
|
+
|
31
|
+
[hash['message'], hash['cat']].join(' ')
|
32
|
+
end
|
33
|
+
end
|
34
|
+
end
|
@@ -0,0 +1,13 @@
|
|
1
|
+
require 'json'
|
2
|
+
|
3
|
+
module PushbulletRuby
|
4
|
+
class ParseJSON < Faraday::Response::Middleware
|
5
|
+
def on_complete(env)
|
6
|
+
env[:body] = JSON.parse(env[:body]) unless unparsable_status_codes.include?(env.status)
|
7
|
+
end
|
8
|
+
|
9
|
+
def unparsable_status_codes
|
10
|
+
[204]
|
11
|
+
end
|
12
|
+
end
|
13
|
+
end
|
@@ -0,0 +1,53 @@
|
|
1
|
+
module PushbulletRuby
|
2
|
+
class Pushable
|
3
|
+
class File < Pushable
|
4
|
+
def push
|
5
|
+
raise MissingParameter unless params.keys.sort == required_parameters.sort
|
6
|
+
|
7
|
+
file_name = params[:file_name]
|
8
|
+
file_path = params[:file_path]
|
9
|
+
|
10
|
+
upload_file(file_name, file_path) do |data|
|
11
|
+
payload = {
|
12
|
+
file_name: data['file_name'],
|
13
|
+
file_type: data['file_type'],
|
14
|
+
file_url: data['file_url'],
|
15
|
+
body: params['body'],
|
16
|
+
type: type
|
17
|
+
}
|
18
|
+
|
19
|
+
payload = specify_receiver(payload)
|
20
|
+
|
21
|
+
client.post('/v2/pushes', payload)
|
22
|
+
end
|
23
|
+
end
|
24
|
+
|
25
|
+
def type
|
26
|
+
:file
|
27
|
+
end
|
28
|
+
|
29
|
+
def required_parameters
|
30
|
+
[:file_name, :file_path, :body]
|
31
|
+
end
|
32
|
+
|
33
|
+
def upload_file(file_name, file_path, &block)
|
34
|
+
mime_type = MIME::Types.type_for(file_path).first.to_s
|
35
|
+
|
36
|
+
data = upload_request(file_name, mime_type)
|
37
|
+
|
38
|
+
upload_url = data.body['upload_url']
|
39
|
+
params = data.body['data']
|
40
|
+
|
41
|
+
io = Faraday::UploadIO.new(file_path, mime_type)
|
42
|
+
|
43
|
+
client.post upload_url, params.merge(file: io)
|
44
|
+
|
45
|
+
yield data.body
|
46
|
+
end
|
47
|
+
|
48
|
+
def upload_request(file_name, mime_type)
|
49
|
+
client.post '/v2/upload-request', file_name: file_name, file_type: mime_type
|
50
|
+
end
|
51
|
+
end
|
52
|
+
end
|
53
|
+
end
|
@@ -0,0 +1,47 @@
|
|
1
|
+
require 'pushbullet_ruby/push'
|
2
|
+
|
3
|
+
module PushbulletRuby
|
4
|
+
class Pushable
|
5
|
+
class MissingParameter < StandardError; end
|
6
|
+
|
7
|
+
attr_reader :client, :receiver, :identifier, :params
|
8
|
+
|
9
|
+
def self.push(client, receiver, identifier, params)
|
10
|
+
Push.new(new(client, receiver, identifier, params).push.body)
|
11
|
+
end
|
12
|
+
|
13
|
+
def initialize(client, receiver, identifier, params)
|
14
|
+
@client = client
|
15
|
+
@receiver = receiver
|
16
|
+
@identifier = identifier
|
17
|
+
@params = params
|
18
|
+
end
|
19
|
+
|
20
|
+
def push
|
21
|
+
raise MissingParameter unless params.keys.sort == required_parameters.sort
|
22
|
+
|
23
|
+
payload = params.merge(type: type)
|
24
|
+
payload = specify_receiver(payload)
|
25
|
+
client.post('/v2/pushes', payload)
|
26
|
+
end
|
27
|
+
|
28
|
+
def specify_receiver(payload)
|
29
|
+
if receiver && identifier
|
30
|
+
payload.merge(receiver_type => identifier)
|
31
|
+
else
|
32
|
+
payload
|
33
|
+
end
|
34
|
+
end
|
35
|
+
|
36
|
+
def receiver_type
|
37
|
+
case receiver
|
38
|
+
when :device then :device_iden
|
39
|
+
when :email then receiver
|
40
|
+
when :channel then :channel_tag
|
41
|
+
when :client then :client_iden
|
42
|
+
else
|
43
|
+
raise NotImplementedError
|
44
|
+
end
|
45
|
+
end
|
46
|
+
end
|
47
|
+
end
|
@@ -0,0 +1,23 @@
|
|
1
|
+
module PushbulletRuby
|
2
|
+
module Request
|
3
|
+
def get(path, parms = {})
|
4
|
+
request(:get, path, parms)
|
5
|
+
end
|
6
|
+
|
7
|
+
def post(path, payload)
|
8
|
+
request(:post, path, payload)
|
9
|
+
end
|
10
|
+
|
11
|
+
def delete(path)
|
12
|
+
request(:delete, path)
|
13
|
+
end
|
14
|
+
|
15
|
+
def request(method, path, params = {})
|
16
|
+
connection.send(method) do |request|
|
17
|
+
request.url path
|
18
|
+
request.params = params if method == :get
|
19
|
+
request.body = params if method == :post
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
23
|
+
end
|
@@ -0,0 +1,10 @@
|
|
1
|
+
require 'pushbullet_ruby/client'
|
2
|
+
require 'pushbullet_ruby/user'
|
3
|
+
require 'pushbullet_ruby/device'
|
4
|
+
require 'pushbullet_ruby/pushable'
|
5
|
+
require 'pushbullet_ruby/contact'
|
6
|
+
require 'pushbullet_ruby/channel'
|
7
|
+
require 'pushbullet_ruby/token'
|
8
|
+
|
9
|
+
module PushbulletRuby
|
10
|
+
end
|
@@ -0,0 +1,35 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
lib = File.expand_path('../lib', __FILE__)
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
+
require 'pushbullet_ruby/version'
|
5
|
+
|
6
|
+
Gem::Specification.new do |spec|
|
7
|
+
spec.name = "pushbullet_ruby"
|
8
|
+
spec.version = PushbulletRuby::VERSION
|
9
|
+
spec.authors = ["creends"]
|
10
|
+
spec.email = "creends@outlook.com"
|
11
|
+
|
12
|
+
spec.summary = nil
|
13
|
+
spec.description = "Ruby client of Pushbullet API"
|
14
|
+
spec.homepage = "https://github.com/creends/pushbullet_ruby"
|
15
|
+
spec.license = "MIT"
|
16
|
+
|
17
|
+
# Prevent pushing this gem to RubyGems.org by setting 'allowed_push_host', or
|
18
|
+
# delete this section to allow pushing this gem to any host.
|
19
|
+
if spec.respond_to?(:metadata)
|
20
|
+
spec.metadata['allowed_push_host'] = 'https://rubygems.org'
|
21
|
+
else
|
22
|
+
raise "RubyGems 2.0 or newer is required to protect against public gem pushes."
|
23
|
+
end
|
24
|
+
|
25
|
+
spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
26
|
+
spec.bindir = "exe"
|
27
|
+
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
28
|
+
spec.require_paths = ["lib"]
|
29
|
+
|
30
|
+
spec.add_development_dependency "bundler", "~> 1.11"
|
31
|
+
spec.add_development_dependency "rake", "~> 10.0"
|
32
|
+
|
33
|
+
spec.add_dependency 'faraday', '~> 0.9.0'
|
34
|
+
spec.add_dependency 'mime-types'
|
35
|
+
end
|
data/token.json
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
{"token": "your api key here"}
|
metadata
ADDED
@@ -0,0 +1,131 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: pushbullet_ruby
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 1.0.1
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- creends
|
8
|
+
autorequire:
|
9
|
+
bindir: exe
|
10
|
+
cert_chain: []
|
11
|
+
date: 2016-02-18 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: bundler
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '1.11'
|
20
|
+
type: :development
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '1.11'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: rake
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '10.0'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '10.0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: faraday
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "~>"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: 0.9.0
|
48
|
+
type: :runtime
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "~>"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: 0.9.0
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: mime-types
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - ">="
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0'
|
62
|
+
type: :runtime
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - ">="
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '0'
|
69
|
+
description: Ruby client of Pushbullet API
|
70
|
+
email: creends@outlook.com
|
71
|
+
executables: []
|
72
|
+
extensions: []
|
73
|
+
extra_rdoc_files: []
|
74
|
+
files:
|
75
|
+
- ".gitignore"
|
76
|
+
- Gemfile
|
77
|
+
- LICENSE.txt
|
78
|
+
- README.md
|
79
|
+
- Rakefile
|
80
|
+
- lib/pushbullet_ruby.rb
|
81
|
+
- lib/pushbullet_ruby/api.rb
|
82
|
+
- lib/pushbullet_ruby/api/contacts.rb
|
83
|
+
- lib/pushbullet_ruby/api/devices.rb
|
84
|
+
- lib/pushbullet_ruby/api/me.rb
|
85
|
+
- lib/pushbullet_ruby/api/pushes.rb
|
86
|
+
- lib/pushbullet_ruby/api/subscriptions.rb
|
87
|
+
- lib/pushbullet_ruby/authorization.rb
|
88
|
+
- lib/pushbullet_ruby/channel.rb
|
89
|
+
- lib/pushbullet_ruby/client.rb
|
90
|
+
- lib/pushbullet_ruby/contact.rb
|
91
|
+
- lib/pushbullet_ruby/device.rb
|
92
|
+
- lib/pushbullet_ruby/entity.rb
|
93
|
+
- lib/pushbullet_ruby/http_exeption.rb
|
94
|
+
- lib/pushbullet_ruby/parse_json.rb
|
95
|
+
- lib/pushbullet_ruby/push.rb
|
96
|
+
- lib/pushbullet_ruby/pushable.rb
|
97
|
+
- lib/pushbullet_ruby/pushable/file.rb
|
98
|
+
- lib/pushbullet_ruby/pushable/link.rb
|
99
|
+
- lib/pushbullet_ruby/pushable/note.rb
|
100
|
+
- lib/pushbullet_ruby/request.rb
|
101
|
+
- lib/pushbullet_ruby/token.rb
|
102
|
+
- lib/pushbullet_ruby/user.rb
|
103
|
+
- lib/pushbullet_ruby/version.rb
|
104
|
+
- pushbullet_ruby.gemspec
|
105
|
+
- token.json
|
106
|
+
homepage: https://github.com/creends/pushbullet_ruby
|
107
|
+
licenses:
|
108
|
+
- MIT
|
109
|
+
metadata:
|
110
|
+
allowed_push_host: https://rubygems.org
|
111
|
+
post_install_message:
|
112
|
+
rdoc_options: []
|
113
|
+
require_paths:
|
114
|
+
- lib
|
115
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
116
|
+
requirements:
|
117
|
+
- - ">="
|
118
|
+
- !ruby/object:Gem::Version
|
119
|
+
version: '0'
|
120
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
121
|
+
requirements:
|
122
|
+
- - ">="
|
123
|
+
- !ruby/object:Gem::Version
|
124
|
+
version: '0'
|
125
|
+
requirements: []
|
126
|
+
rubyforge_project:
|
127
|
+
rubygems_version: 2.5.1
|
128
|
+
signing_key:
|
129
|
+
specification_version: 4
|
130
|
+
summary: ''
|
131
|
+
test_files: []
|