pushbullet_ruby 1.1.0 → 1.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +12 -12
- data/Gemfile +4 -4
- data/LICENSE.txt +21 -21
- data/Rakefile +2 -2
- data/lib/pushbullet_ruby/channel.rb +5 -2
- data/lib/pushbullet_ruby/chat.rb +5 -0
- data/lib/pushbullet_ruby/device.rb +5 -0
- data/lib/pushbullet_ruby/push.rb +6 -1
- data/lib/pushbullet_ruby/version.rb +3 -3
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 22629012848f7ed14f99e4f9bbc8a820922c9b2e
|
4
|
+
data.tar.gz: 32366e67a14fd7288bd3c2c2e239383f22122952
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dd225c21b0502aae8e9a2477a806ee30f477185df722e88473744a58e408138fafb2421f4b9c3f25f0cb273078343e4021fc23ca73079c5102a70d8e42eba7a1
|
7
|
+
data.tar.gz: 7e59047fedf84f633fde418be5d18500a6a826f0569f70b2b763f26133340cf024b3ed7f272d7b2a76998dac01ac170fba9f6059fc5f8acaace1d2949cba21f2
|
data/.gitignore
CHANGED
@@ -1,13 +1,13 @@
|
|
1
|
-
/.bundle/
|
2
|
-
/.yardoc
|
3
|
-
/Gemfile.lock
|
4
|
-
/_yardoc/
|
5
|
-
/coverage/
|
6
|
-
/doc/
|
7
|
-
/pkg/
|
8
|
-
/spec/reports/
|
9
|
-
/tmp/
|
10
|
-
/.idea/
|
11
|
-
/bin/
|
12
|
-
/*.gem
|
1
|
+
/.bundle/
|
2
|
+
/.yardoc
|
3
|
+
/Gemfile.lock
|
4
|
+
/_yardoc/
|
5
|
+
/coverage/
|
6
|
+
/doc/
|
7
|
+
/pkg/
|
8
|
+
/spec/reports/
|
9
|
+
/tmp/
|
10
|
+
/.idea/
|
11
|
+
/bin/
|
12
|
+
/*.gem
|
13
13
|
/test.rb
|
data/Gemfile
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
source 'https://rubygems.org'
|
2
|
-
|
3
|
-
# Specify your gem's dependencies in pushbullet_ruby.gemspec
|
4
|
-
gemspec
|
1
|
+
source 'https://rubygems.org'
|
2
|
+
|
3
|
+
# Specify your gem's dependencies in pushbullet_ruby.gemspec
|
4
|
+
gemspec
|
data/LICENSE.txt
CHANGED
@@ -1,21 +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.
|
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/Rakefile
CHANGED
@@ -1,2 +1,2 @@
|
|
1
|
-
require "bundler/gem_tasks"
|
2
|
-
task :default => :spec
|
1
|
+
require "bundler/gem_tasks"
|
2
|
+
task :default => :spec
|
@@ -1,9 +1,8 @@
|
|
1
|
-
require 'pushbullet_ruby/api'
|
1
|
+
require 'pushbullet_ruby/api/subscriptions'
|
2
2
|
|
3
3
|
module PushbulletRuby
|
4
4
|
class Channel
|
5
5
|
attr_reader :body
|
6
|
-
|
7
6
|
def self.from_response(response)
|
8
7
|
response.body['subscriptions'].each_with_object([]) do |attributes, memo|
|
9
8
|
next unless attributes['active']
|
@@ -11,6 +10,10 @@ module PushbulletRuby
|
|
11
10
|
end
|
12
11
|
end
|
13
12
|
|
13
|
+
def update(client: nil, params: {})
|
14
|
+
client.update_subscription(channel_id: self.id, params: params)
|
15
|
+
end
|
16
|
+
|
14
17
|
def initialize(response)
|
15
18
|
@body = response
|
16
19
|
end
|
data/lib/pushbullet_ruby/chat.rb
CHANGED
@@ -1,4 +1,5 @@
|
|
1
1
|
require 'pushbullet_ruby/entity'
|
2
|
+
require 'pushbullet_ruby/api/chats'
|
2
3
|
|
3
4
|
module PushbulletRuby
|
4
5
|
class Chat < Entity
|
@@ -9,6 +10,10 @@ module PushbulletRuby
|
|
9
10
|
end
|
10
11
|
end
|
11
12
|
|
13
|
+
def update(client: nil, params: {})
|
14
|
+
client.update_chat(chat_id: self.id, params: params)
|
15
|
+
end
|
16
|
+
|
12
17
|
def id
|
13
18
|
body['iden']
|
14
19
|
end
|
@@ -1,4 +1,5 @@
|
|
1
1
|
require 'pushbullet_ruby/entity'
|
2
|
+
require 'pushbullet_ruby/api/devices'
|
2
3
|
|
3
4
|
module PushbulletRuby
|
4
5
|
class Device < Entity
|
@@ -9,6 +10,10 @@ module PushbulletRuby
|
|
9
10
|
end
|
10
11
|
end
|
11
12
|
|
13
|
+
def update(client: nil, params: {})
|
14
|
+
client.update_device(device_id: self.id, params: params)
|
15
|
+
end
|
16
|
+
|
12
17
|
def id
|
13
18
|
body['iden']
|
14
19
|
end
|
data/lib/pushbullet_ruby/push.rb
CHANGED
@@ -1,4 +1,5 @@
|
|
1
1
|
require 'pushbullet_ruby/entity'
|
2
|
+
require 'pushbullet_ruby/api/pushes'
|
2
3
|
|
3
4
|
module PushbulletRuby
|
4
5
|
class Push < Entity
|
@@ -9,6 +10,10 @@ module PushbulletRuby
|
|
9
10
|
end
|
10
11
|
end
|
11
12
|
|
13
|
+
def update(client: nil, params: {})
|
14
|
+
client.update_push(push_id: self.id, params: params)
|
15
|
+
end
|
16
|
+
|
12
17
|
def id
|
13
18
|
body['iden']
|
14
19
|
end
|
@@ -17,4 +22,4 @@ module PushbulletRuby
|
|
17
22
|
body['type']
|
18
23
|
end
|
19
24
|
end
|
20
|
-
end
|
25
|
+
end
|
@@ -1,3 +1,3 @@
|
|
1
|
-
module PushbulletRuby
|
2
|
-
VERSION = "1.1.
|
3
|
-
end
|
1
|
+
module PushbulletRuby
|
2
|
+
VERSION = "1.1.1"
|
3
|
+
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pushbullet_ruby
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- creends
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-02-
|
11
|
+
date: 2016-02-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|