jeffrafter-rubygsm 0.5.2 → 0.5.4
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/rubygsm/core.rb +1 -16
- data/lib/rubygsm/log.rb +1 -1
- data/rubygsm.gemspec +2 -2
- metadata +2 -2
data/lib/rubygsm/core.rb
CHANGED
@@ -842,24 +842,9 @@ class Modem
|
|
842
842
|
while true
|
843
843
|
command "AT"
|
844
844
|
|
845
|
-
# enable new message notification mode every ten intevals, in case the
|
846
|
-
# modem "forgets" (power cycle, etc)
|
847
|
-
if (@polled % 10) == 0
|
848
|
-
try_command("AT+CNMI=2,2,0,0,0") if @keep_alive
|
849
|
-
end
|
850
|
-
|
851
845
|
# check for messages in the default mailbox (wether read or not)
|
852
846
|
# read them and then delete them
|
853
|
-
|
854
|
-
log "Keeping the inbox empty========================================"
|
855
|
-
fetch_and_delete_stored_messages
|
856
|
-
end
|
857
|
-
|
858
|
-
# check for new messages lurking in the device's
|
859
|
-
# memory (in case we missed them (yes, it happens))
|
860
|
-
if (@read_unread_messages && (@polled % 4) == 0)
|
861
|
-
fetch_unread_messages
|
862
|
-
end
|
847
|
+
fetch_and_delete_stored_messages
|
863
848
|
|
864
849
|
# if there are any new incoming messages,
|
865
850
|
# iterate, and pass each to the receiver
|
data/lib/rubygsm/log.rb
CHANGED
data/rubygsm.gemspec
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
Gem::Specification.new do |s|
|
2
2
|
s.name = "rubygsm"
|
3
|
-
s.version = "0.5.
|
4
|
-
s.date = "2009-03-
|
3
|
+
s.version = "0.5.4"
|
4
|
+
s.date = "2009-03-24"
|
5
5
|
s.summary = "Send and receive SMS with a GSM modem"
|
6
6
|
s.email = "adam.mckaig@gmail.com"
|
7
7
|
s.homepage = "http://github.com/adammck/rubygsm"
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jeffrafter-rubygsm
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Adam Mckaig
|
@@ -10,7 +10,7 @@ autorequire:
|
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
12
|
|
13
|
-
date: 2009-03-
|
13
|
+
date: 2009-03-24 00:00:00 -07:00
|
14
14
|
default_executable:
|
15
15
|
dependencies: []
|
16
16
|
|