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.
Files changed (3) hide show
  1. checksums.yaml +5 -5
  2. data/lib/presbeus.rb +5 -5
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA256:
3
- metadata.gz: 00e0a0329604646d433d84d3225b1da21226310894c99be8ef18058cb8d0f64f
4
- data.tar.gz: 3a9d9d68290d224f723537d51c4361e5f8f3e3009eee71b120abfbda14da32e5
2
+ SHA1:
3
+ metadata.gz: cc9731376d5d08360d6f980c32a854b50fadca3b
4
+ data.tar.gz: 16b6eb5cadcf1a65886f1e4d0a20f776f1e899c5
5
5
  SHA512:
6
- metadata.gz: f0061337c6d7051e9e37ac5e779e16595ccd3688b8726eb618e0a73e9090c799ef86106d54ed3f14c736ecfd912ce4cb1d6854adf1e0a57abbc55fc4218fa455
7
- data.tar.gz: d43ac285b41963bf06c2fdcc72c37b8f79b0a568651c78aebe89a55edee541921641e2b07e35a893c57f56057fed977e90d60d2357776214d65d6ba0f3eeed3d
6
+ metadata.gz: e23be2bebb78c0c239c47e9c2ddf127252284a3fa376bd4b4318ba72349e03bd71c8d08b46a6f351ee285a8f1c94a41ec4c7c62d69fa51a4ad2153f3dd4a894d
7
+ data.tar.gz: 5995df7f6a0af83e6bae5835459ec0c3e522466dc480f9a09efd1809cc4a27ac5984651693ae25e61a8f270c4021c24e3447296a8cc23c1279e844a114523fc0
@@ -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.15
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.7.7
126
+ rubygems_version: 2.6.14
127
127
  signing_key:
128
128
  specification_version: 4
129
129
  summary: command line SMS client for pushbullet