spf_barcode 0.0.4 → 0.0.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,15 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: bc7308fd9f94a8ba57579c851272677dc1e2c0bd
4
- data.tar.gz: b619b4ec36cf8c31db6564ed363ea9c5c70e6591
2
+ !binary "U0hBMQ==":
3
+ metadata.gz: !binary |-
4
+ MmRjN2NjYThjZDNlNGVmZWQ1MGFiMGM0MjQxMjcyMmEwMjU4NmZhZA==
5
+ data.tar.gz: !binary |-
6
+ OGZkODIwZmMwMjFmYjA5YmU5NWM5YTM1OGIzMmJkMjRkNWFmYjY1Zg==
5
7
  SHA512:
6
- metadata.gz: 7b1250db7ff8bc38ca342d6d4f48bcdc77b14ba504345221ac8077d6eaa44af1d989f4bd470fd0444ba3dc417f5eb5e752cc00993e2f33d1b6cd075b5dc844cc
7
- data.tar.gz: 35eaa32020168e9ff7ff0565bbe1bcd6e104c8738f1443140290d57c1d72f3678d9067425dbe9854e5299968e891febc315de8c46fcee40878cb2db742c5a8ad
8
+ metadata.gz: !binary |-
9
+ ZDg1YjgxZDAzYjQwNzU0ZDI0NmJmMzVmYjk4NmRjMzg1YzYzNDU1NTczZjBm
10
+ M2ZhMjMyNmM5NzI1OGZlYWRlNWQyZTAxNmZmMzRhNmRhMDdjZGM1NGY3Yjhj
11
+ NTUzNWRjODRiMzNmZDZlZTc5MjdkMDVjY2FjN2MyOTU5YjViYjk=
12
+ data.tar.gz: !binary |-
13
+ MmY1MGUzZjBkYmE5YjUyMjE3N2YwZmExY2VmMGJiNTM4ZTkxYjJhMGQ0Yzg5
14
+ NjAwZGZhNmZlNTBiYWI0Y2VhNDg2MjhkY2Q0NmY3Y2JhNWE5ZGJhNDNmOTk5
15
+ NGM5NTE0YzNhZmY2MTU5M2E4Y2I0NGM4MmM1NjM3NmM0Y2I5ZWU=
@@ -1,3 +1,3 @@
1
1
  module SpfBarcode
2
- VERSION = "0.0.4"
2
+ VERSION = "0.0.6"
3
3
  end
data/lib/spf_barcode.rb CHANGED
@@ -47,10 +47,38 @@ class BarcodeOptimaDecode
47
47
  def decode
48
48
 
49
49
  if @barcode.length == 3
50
- if @barcode == '900'
51
- @accion = "OK"
52
- elsif @barcode == '901'
53
- @accion = "ROTURA"
50
+ case @barcode
51
+ when '*900*' then @accion = 'OK'
52
+ when '*901*' then @accion = 'ROTURA'
53
+
54
+ when '*903*' then @accion = 'CONFIRMAROTURA'
55
+ when '*904*' then @accion = 'CANCELAROTURA'
56
+
57
+ when '*501*' then @accion = 'SELECCIONAR1'
58
+ when '*502*' then @accion = 'SELECCIONAR2'
59
+ when '*503*' then @accion = 'SELECCIONAR3'
60
+ when '*504*' then @accion = 'SELECCIONAR4'
61
+ when '*505*' then @accion = 'SELECCIONAR5'
62
+ when '*506*' then @accion = 'SELECCIONAR6'
63
+ when '*601*' then @accion = 'MOTIVO01'
64
+ when '*602*' then @accion = 'MOTIVO02'
65
+ when '*603*' then @accion = 'MOTIVO03'
66
+ when '*604*' then @accion = 'MOTIVO04'
67
+ when '*605*' then @accion = 'MOTIVO05'
68
+ when '*606*' then @accion = 'MOTIVO06'
69
+ when '*607*' then @accion = 'MOTIVO07'
70
+ when '*608*' then @accion = 'MOTIVO08'
71
+ when '*609*' then @accion = 'MOTIVO09'
72
+
73
+ when '*701*' then @accion = 'MOMENTO01'
74
+ when '*702*' then @accion = 'MOMENTO02'
75
+ when '*703*' then @accion = 'MOMENTO03'
76
+ when '*704*' then @accion = 'MOMENTO04'
77
+ when '*705*' then @accion = 'MOMENTO05'
78
+ when '*706*' then @accion = 'MOMENTO06'
79
+ when '*707*' then @accion = 'MOMENTO07'
80
+ when '*708*' then @accion = 'MOMENTO08'
81
+ when '*709*' then @accion = 'MOMENTO09'
54
82
  end
55
83
  else
56
84
 
metadata CHANGED
@@ -1,27 +1,27 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: spf_barcode
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Carlos Ramseyer
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-09-02 00:00:00.000000000 Z
11
+ date: 2016-09-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - "~>"
17
+ - - ~>
18
18
  - !ruby/object:Gem::Version
19
19
  version: 4.0.2
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - "~>"
24
+ - - ~>
25
25
  - !ruby/object:Gem::Version
26
26
  version: 4.0.2
27
27
  description: Lector de codigo de barra
@@ -79,17 +79,17 @@ require_paths:
79
79
  - lib
80
80
  required_ruby_version: !ruby/object:Gem::Requirement
81
81
  requirements:
82
- - - ">="
82
+ - - ! '>='
83
83
  - !ruby/object:Gem::Version
84
84
  version: '0'
85
85
  required_rubygems_version: !ruby/object:Gem::Requirement
86
86
  requirements:
87
- - - ">="
87
+ - - ! '>='
88
88
  - !ruby/object:Gem::Version
89
89
  version: '0'
90
90
  requirements: []
91
91
  rubyforge_project:
92
- rubygems_version: 2.2.0
92
+ rubygems_version: 2.2.2
93
93
  signing_key:
94
94
  specification_version: 4
95
95
  summary: SpfBarcode.