jeffrafter-win32-sms 0.3.1 → 0.4.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/VERSION.yml +2 -2
  2. data/lib/win32/sms.rb +4 -4
  3. metadata +1 -1
@@ -1,4 +1,4 @@
1
1
  ---
2
- :minor: 3
3
- :patch: 1
2
+ :minor: 4
3
+ :patch: 0
4
4
  :major: 0
@@ -61,8 +61,8 @@ module Win32
61
61
  @device = nil
62
62
  end
63
63
 
64
- def command(data, term = "\r\n")
65
- write(data + "\r\n")
64
+ def command(data, term = "\r")
65
+ write(data + "\r")
66
66
  response = wait(term)
67
67
  response.delete_if do |line|
68
68
  (line[0,6] == "+WIND:") or
@@ -104,7 +104,7 @@ module Win32
104
104
 
105
105
  def sms(number, text)
106
106
  # initiate the sms, and wait for either the text prompt or an error
107
- command "AT+CMGS=\"#{number}\"", ["\r\n", "> "]
107
+ command "AT+CMGS=\"#{number}\"", ["\r", "> "]
108
108
  begin
109
109
  # send the sms, and wait until it is accepted or rejected
110
110
  text = encode(text)
@@ -145,7 +145,7 @@ module Win32
145
145
 
146
146
  protected
147
147
 
148
- def wait(term = "\r\n")
148
+ def wait(term = "\r")
149
149
  response = []
150
150
  loop do
151
151
  buffer = read_until(term)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jeffrafter-win32-sms
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.1
4
+ version: 0.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jeff Rafter