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.
@@ -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
- if (@keep_inbox_empty)
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
@@ -20,7 +20,7 @@ class Modem
20
20
  fn_time = Time.now.strftime("%Y-%m-%d.%H-%M-%S")
21
21
 
22
22
  # (re-) open the full log file
23
- filename = "rubygsm.#{fn_port}.#{fn_time}"
23
+ filename = "rubygsm.log"
24
24
  @log = File.new filename, "w"
25
25
 
26
26
  # dump some useful information
@@ -1,7 +1,7 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = "rubygsm"
3
- s.version = "0.5.2"
4
- s.date = "2009-03-17"
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.2
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-17 00:00:00 -07:00
13
+ date: 2009-03-24 00:00:00 -07:00
14
14
  default_executable:
15
15
  dependencies: []
16
16