solidstate 0.4.1 → 0.4.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: 177f13added0c1e49799aaa760f19cb3413d5bfd
4
- data.tar.gz: ea4af1520e043f61ec8db56da88e7ee8fe4770a1
3
+ metadata.gz: cf9d24356e1045263be132b87cd0cf51e259ce8f
4
+ data.tar.gz: a396a2ad162c852bae0b92ea911cf6e756433ad6
5
5
  SHA512:
6
- metadata.gz: a175bbbf921917ee2b46b48c871fb4e3ec85117ac5457935fb3c19de15abde6f05459f9621e2e5ae3b66fcbd0430c2d62ce15bc61f1fc5cc97a9677ba6dd0841
7
- data.tar.gz: 48e76aa6f70927bd3c85e617474efb82a2f1c0a470ea9f4857798ca171c178cec913eab93cd1c85005d2eed2dada8068d55a66d39a0274179282ed3ba842ab3d
6
+ metadata.gz: ace7f75ac671daa60c4d6470a55cdf042b81fc9d8cec6c77ae2935e83ce008f08379501e7acc33368a67f66a1e0ad69affe8f45a3ad47600d577c43b7af89448
7
+ data.tar.gz: 556060b92175ad4d4ad80e89e732a1f2968adf2a55cac957248a107731dec2f441b18e85879c8fdd15ccca3657f0538c79d11fd05ce7ac508ff7b0cca3cbf9b0
@@ -13,6 +13,8 @@ module SolidState
13
13
 
14
14
  def states(*list, &block)
15
15
  list = list.collect(&:to_s)
16
+
17
+ raise "states have already been set! To get list of possible states, call #{name}.possible_states" if self.possible_states
16
18
  raise "This is not a list of names" unless list.first.respond_to?(:downcase)
17
19
 
18
20
  self.possible_states = list
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = "solidstate"
5
- s.version = '0.4.1'
5
+ s.version = '0.4.2'
6
6
  s.platform = Gem::Platform::RUBY
7
7
  s.authors = ['Tomás Pollak']
8
8
  s.email = ['tomas@forkhq.com']
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: solidstate
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.1
4
+ version: 0.4.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tomás Pollak
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-07-31 00:00:00.000000000 Z
11
+ date: 2018-10-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler