fldigi 0.1.3 → 0.1.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/lib/fldigi.rb +8 -8
  2. metadata +8 -6
  3. checksums.yaml +0 -7
@@ -148,12 +148,12 @@ class Fldigi
148
148
  # Turn spot on/off (true/false).
149
149
  if @spot!=@spot_old
150
150
  ret=self.sendcmd("spot.get_auto")
151
- if (ret==1 and @spot==true) or (ret==0 and @spot==false)
151
+ if (ret==1 and @spot==true) or (ret==0 and @spot==false) or (ret==@spot)
152
152
  @spot_old=@spot
153
153
  else
154
154
  self.sendcmd("spot.set_auto", @spot)
155
155
  ret=self.sendcmd("spot.get_auto")
156
- if (ret==1 and @spot==true) or (ret==0 and @spot==false)
156
+ if (ret==1 and @spot==true) or (ret==0 and @spot==false) or (ret==@spot)
157
157
  @spot_old=@spot
158
158
  else
159
159
  puts "spot.set_auto failed <-----------------------" if @debug
@@ -165,12 +165,12 @@ class Fldigi
165
165
  # Turn AFC on/off (true/false).
166
166
  if @afc!=@afc_old
167
167
  ret=self.sendcmd("main.get_afc")
168
- if (ret==1 and @afc==true) or (ret==0 and @afc==false)
168
+ if (ret==1 and @afc==true) or (ret==0 and @afc==false) or (ret==@afc)
169
169
  @afc_old=@afc
170
170
  else
171
171
  self.sendcmd("main.set_afc", @afc)
172
172
  ret=self.sendcmd("main.get_afc")
173
- if (ret==1 and @afc==true) or (ret==0 and @afc==false)
173
+ if (ret==1 and @afc==true) or (ret==0 and @afc==false) or (ret==@afc)
174
174
  @afc_old=@afc
175
175
  else
176
176
  puts "main.set_afc failed <-----------------------" if @debug
@@ -198,12 +198,12 @@ class Fldigi
198
198
  # Turn RSID receive on/off (true/false).
199
199
  if @rsid!=@rsid_old
200
200
  ret=self.sendcmd("main.get_rsid")
201
- if (ret==1 and @rsid==true) or (ret==0 and @rsid==false)
201
+ if (ret==1 and @rsid==true) or (ret==0 and @rsid==false) or (ret==@rsid)
202
202
  @rsid_old=@rsid
203
203
  else
204
204
  self.sendcmd("main.set_rsid", @rsid)
205
205
  ret=self.sendcmd("main.get_rsid")
206
- if (ret==1 and @rsid==true) or (ret==0 and @rsid==false)
206
+ if (ret==1 and @rsid==true) or (ret==0 and @rsid==false) or (ret==@rsid)
207
207
  @rsid_old=@rsid
208
208
  else
209
209
  puts "main.set_rsid failed <-----------------------" if @debug
@@ -215,12 +215,12 @@ class Fldigi
215
215
  # Turn squelch on/off (true/false).
216
216
  if @squelch!=@squelch_old
217
217
  ret=self.sendcmd("main.get_squelch")
218
- if (ret==1 and @squelch==true) or (ret==0 and @squelch==false)
218
+ if (ret==1 and @squelch==true) or (ret==0 and @squelch==false) or (ret==@squelch)
219
219
  @squelch_old=@squelch
220
220
  else
221
221
  self.sendcmd("main.set_squelch", @squelch)
222
222
  ret=self.sendcmd("main.get_squelch")
223
- if (ret==1 and @squelch==true) or (ret==0 and @squelch==false)
223
+ if (ret==1 and @squelch==true) or (ret==0 and @squelch==false) or (ret==@squelch)
224
224
  @squelch_old=@squelch
225
225
  else
226
226
  puts "main.set_squelch failed <-----------------------" if @debug
metadata CHANGED
@@ -1,7 +1,8 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fldigi
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
+ prerelease:
5
6
  platform: ruby
6
7
  authors:
7
8
  - Jeff Francis, N0GQ
@@ -20,25 +21,26 @@ files:
20
21
  homepage: http://fldigi.gritch.org/
21
22
  licenses:
22
23
  - MIT
23
- metadata: {}
24
24
  post_install_message:
25
25
  rdoc_options: []
26
26
  require_paths:
27
27
  - lib
28
28
  required_ruby_version: !ruby/object:Gem::Requirement
29
+ none: false
29
30
  requirements:
30
- - - '>='
31
+ - - ! '>='
31
32
  - !ruby/object:Gem::Version
32
33
  version: '0'
33
34
  required_rubygems_version: !ruby/object:Gem::Requirement
35
+ none: false
34
36
  requirements:
35
- - - '>='
37
+ - - ! '>='
36
38
  - !ruby/object:Gem::Version
37
39
  version: '0'
38
40
  requirements: []
39
41
  rubyforge_project:
40
- rubygems_version: 2.0.14
42
+ rubygems_version: 1.8.23
41
43
  signing_key:
42
- specification_version: 4
44
+ specification_version: 3
43
45
  summary: A library for talking to FLDigi.
44
46
  test_files: []
checksums.yaml DELETED
@@ -1,7 +0,0 @@
1
- ---
2
- SHA1:
3
- metadata.gz: 24dfadfe3ad0ceef6d30d8956d62ef8c171018bc
4
- data.tar.gz: eae7838de788329b4e385440d4da5a995a2232c0
5
- SHA512:
6
- metadata.gz: c36b7242805366e1878fa079d7fbaeca55951740999eeaa39ee694eaf6662615cc199c9909a18d23c535e68c29bf5cb7b2bd6688ef52d73a3f413ed2a2eaadcc
7
- data.tar.gz: 3612685cde709147fbb2738f994cd7aaeb305ef253048975ea54b57a9fb7e839b4e1c4638f84b7880c9cb26e8f8bfd259490bbab0f43de2260909f49d3dbe250