huawei_e3131 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +0 -0
- data/lib/huawei_e3131.rb +11 -1
- metadata +10 -9
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: b7564c0158eb89c71156d1d6c7cac09be4304132
|
4
|
+
data.tar.gz: 0626c92fbfb01dcc9b5b9a2af7edc46dd5ecf95f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bb2bb0347944e15caffb0a148da344921288e4a209271b6166edf00fa8acd329c46a64621aefd0047d5a62a96d3f480a829bf4da4320075e9a0234f12f9a9c53
|
7
|
+
data.tar.gz: 262ea4550894842111deadc7b9eccb96547f930bcd9635714cd78e7bd64eb8bb8c95b9ef2abdc00fde351bf602f08eabcd9738711b699a38183ebcba6e5443f6
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data.tar.gz.sig
CHANGED
Binary file
|
data/lib/huawei_e3131.rb
CHANGED
@@ -25,8 +25,12 @@ require 'rexle-builder'
|
|
25
25
|
|
26
26
|
class HuaweiE3131
|
27
27
|
|
28
|
-
def initialize(host='192.168.1.1', callback: nil)
|
28
|
+
def initialize(host='192.168.1.1', callback: nil, autostart: false)
|
29
|
+
|
29
30
|
@host, @callback = host, callback
|
31
|
+
|
32
|
+
start if autostart
|
33
|
+
|
30
34
|
end
|
31
35
|
|
32
36
|
def check_notifications()
|
@@ -66,6 +70,12 @@ class HuaweiE3131
|
|
66
70
|
end
|
67
71
|
|
68
72
|
end
|
73
|
+
|
74
|
+
# read an SMS message
|
75
|
+
#
|
76
|
+
def read(idx=1)
|
77
|
+
messages[idx.to_i-1]
|
78
|
+
end
|
69
79
|
|
70
80
|
def sms_count()
|
71
81
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: huawei_e3131
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- James Robertson
|
@@ -35,7 +35,7 @@ cert_chain:
|
|
35
35
|
N1SrCPJTgrDOB/y/+EfG4Nd3mtBPJAzIOVz2TAbXwE31144UUF/uRoIySYiDYta+
|
36
36
|
/TaNrWyfORZ4WOKDaEa3p1p7
|
37
37
|
-----END CERTIFICATE-----
|
38
|
-
date: 2019-
|
38
|
+
date: 2019-10-16 00:00:00.000000000 Z
|
39
39
|
dependencies:
|
40
40
|
- !ruby/object:Gem::Dependency
|
41
41
|
name: rexle
|
@@ -61,22 +61,22 @@ dependencies:
|
|
61
61
|
name: rest-client
|
62
62
|
requirement: !ruby/object:Gem::Requirement
|
63
63
|
requirements:
|
64
|
-
- - ">="
|
65
|
-
- !ruby/object:Gem::Version
|
66
|
-
version: 2.1.0
|
67
64
|
- - "~>"
|
68
65
|
- !ruby/object:Gem::Version
|
69
66
|
version: '2.1'
|
67
|
+
- - ">="
|
68
|
+
- !ruby/object:Gem::Version
|
69
|
+
version: 2.1.0
|
70
70
|
type: :runtime
|
71
71
|
prerelease: false
|
72
72
|
version_requirements: !ruby/object:Gem::Requirement
|
73
73
|
requirements:
|
74
|
-
- - ">="
|
75
|
-
- !ruby/object:Gem::Version
|
76
|
-
version: 2.1.0
|
77
74
|
- - "~>"
|
78
75
|
- !ruby/object:Gem::Version
|
79
76
|
version: '2.1'
|
77
|
+
- - ">="
|
78
|
+
- !ruby/object:Gem::Version
|
79
|
+
version: 2.1.0
|
80
80
|
description:
|
81
81
|
email: james@jamesrobertson.eu
|
82
82
|
executables: []
|
@@ -103,7 +103,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
103
103
|
- !ruby/object:Gem::Version
|
104
104
|
version: '0'
|
105
105
|
requirements: []
|
106
|
-
|
106
|
+
rubyforge_project:
|
107
|
+
rubygems_version: 2.5.2.1
|
107
108
|
signing_key:
|
108
109
|
specification_version: 4
|
109
110
|
summary: Checks the Huawei E3131 SMS inbox for new messages using the HTTP API.
|
metadata.gz.sig
CHANGED
Binary file
|