workflow_status 0.0.1 → 0.0.2

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,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2df972219e574cb89cf577ba655fd1260c314d24
4
- data.tar.gz: 8ce1351b6256830e613438bf88e4bf53b4660680
3
+ metadata.gz: 530de5549fdd5fae05fbc10cc0098e9c7bea0f2e
4
+ data.tar.gz: 1dc744873559cf07ad8a2978bb6bc89c942863d1
5
5
  SHA512:
6
- metadata.gz: 565a25f461d728033869d4123ca72e4586e1747287cc607535b4717df1f02881e4e24149b4e7b0e0dd60d82e19d4d2006b596ce0750d684292fbe98ae93184aa
7
- data.tar.gz: a77d58db868410a1328a695a85cc1e688a3d453355396a80cf04f17cf92c191bfad66ef3bb5b495d1722664734edaa6b26f41d6c46af93b330cd0c21ba1145c6
6
+ metadata.gz: 45cb2fd18b53c7d274a5d319da041e6176336b86323fe2a4b0a739a618de03b5fbdc4f8e5a25aaefc03efe9b31666ccf868277c217b8aa23e4ba38ba289b33d0
7
+ data.tar.gz: f4833fa9faf3f99bee37d94c7dd9bb6c344b00c81db89fd938727f0b21329c3b4cb15b2c0894c3e9e4d83b2cc45954bc92657c0f12518234156baab513c4bec9
@@ -6,7 +6,12 @@ module WorkflowStatus::InstanceMethods
6
6
  end
7
7
 
8
8
  def workflow_status=(status_symbol)
9
- value = workflow_status_map.fetch(status_symbol.to_sym)
9
+ if [0, 1, 2, '0', '1', '2'].include? status_symbol
10
+ value = status_symbol.to_i
11
+ else
12
+ value = workflow_status_map.fetch(status_symbol.to_sym)
13
+ end
14
+
10
15
  write_attribute :workflow_status, value
11
16
  end
12
17
 
@@ -1,3 +1,3 @@
1
1
  module WorkflowStatus
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: workflow_status
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - John Friel
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-06-02 00:00:00.000000000 Z
11
+ date: 2015-01-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler