presbeus 0.0.15 → 0.0.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +5 -5
- data/lib/presbeus.rb +5 -5
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: cc9731376d5d08360d6f980c32a854b50fadca3b
|
4
|
+
data.tar.gz: 16b6eb5cadcf1a65886f1e4d0a20f776f1e899c5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e23be2bebb78c0c239c47e9c2ddf127252284a3fa376bd4b4318ba72349e03bd71c8d08b46a6f351ee285a8f1c94a41ec4c7c62d69fa51a4ad2153f3dd4a894d
|
7
|
+
data.tar.gz: 5995df7f6a0af83e6bae5835459ec0c3e522466dc480f9a09efd1809cc4a27ac5984651693ae25e61a8f270c4021c24e3447296a8cc23c1279e844a114523fc0
|
data/lib/presbeus.rb
CHANGED
@@ -28,7 +28,7 @@ class Presbeus
|
|
28
28
|
argument(:devices, [], "list devices") { puts table devices }
|
29
29
|
argument(:pushes, [], "list pushes") { puts table pushes_with_color }
|
30
30
|
argument(:threads, [:device_id], "show threads for device") do
|
31
|
-
|c| puts table threads c[0]
|
31
|
+
|c| puts table threads c[0]
|
32
32
|
end
|
33
33
|
argument(:last, [:device_id], "show last thread for device") do |c|
|
34
34
|
puts table last_thread c[0]
|
@@ -39,7 +39,7 @@ class Presbeus
|
|
39
39
|
argument(:thread, [:device_id, :thead_id], "show SMS thread") do |c|
|
40
40
|
puts table thread_with_two_columns_wrap c[0], c[1]
|
41
41
|
end
|
42
|
-
argument(:sms, [:device_id, :phone_number, :all], "send SMS") do |c|
|
42
|
+
argument(:sms, [:device_id, :phone_number, :all], "send SMS") do |c|
|
43
43
|
send_sms c[0], c[1], c[2..-1].join(" ")
|
44
44
|
end
|
45
45
|
end
|
@@ -129,7 +129,7 @@ class Presbeus
|
|
129
129
|
|
130
130
|
def threads iden
|
131
131
|
get_v2("permanents/#{iden}_threads")["threads"].reverse.map do |thread|
|
132
|
-
parse_thread thread
|
132
|
+
Presbeus.parse_thread thread
|
133
133
|
end
|
134
134
|
end
|
135
135
|
|
@@ -213,7 +213,7 @@ class Presbeus
|
|
213
213
|
res << date
|
214
214
|
res << text
|
215
215
|
end
|
216
|
-
res
|
216
|
+
res
|
217
217
|
end
|
218
218
|
|
219
219
|
def pushes_with_color modified_after = nil
|
@@ -252,7 +252,7 @@ class Presbeus
|
|
252
252
|
end
|
253
253
|
|
254
254
|
def run command
|
255
|
-
if command.size > 0
|
255
|
+
if command.size > 0
|
256
256
|
name = command[0].to_sym
|
257
257
|
if @arguments.keys.include?(name) and good_syntax?(name, command)
|
258
258
|
@arguments[name][:block].call command[1..-1]
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: presbeus
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.16
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Olivier Abdesselam
|
@@ -123,7 +123,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
123
123
|
version: '0'
|
124
124
|
requirements: []
|
125
125
|
rubyforge_project:
|
126
|
-
rubygems_version: 2.
|
126
|
+
rubygems_version: 2.6.14
|
127
127
|
signing_key:
|
128
128
|
specification_version: 4
|
129
129
|
summary: command line SMS client for pushbullet
|