simple_action 0.0.1.pre5 → 0.0.1.pre6

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- OTQzNmQyZDBjOGVlZThkYmJmNWU3MzJjODA4N2Q2MzI3MTk3MWQ1MA==
4
+ MWYwYjg0ZDEwMTBkZWJjNjNiODAwOWM1NDNkNmZjYzk0NDExZjg5ZA==
5
5
  data.tar.gz: !binary |-
6
- OTQ1MDM0ZTAxN2IyOWNhMjIyZjg3MzBkOTZiYTBlZjRkNWMwZDFmYw==
6
+ Y2Y5ZTRkZjRhNjVlMDY0NjA3MzBkODdjMjczNWEzMzBmMWZjY2Q0Yw==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- OTE1N2ZiNjhhODc0OWUzYmVmODE2NDlmNWUwZWRiMzRmNTc0OWM2OTNkYmMy
10
- NzEyNTQ4NGNkZWNhYjcwNTgwZWNiNWNlNTVmYzgwNDA2MTBiZWU4NjRkMzk5
11
- YWIxOTFhY2M1MWEzY2RlZTk0ZTc0OTY2OGQxZWI3MGQ5NTVmMjE=
9
+ M2U4N2NmZGUzYWZjNWFjYjQ3ZTI1YWM5ZTE4MzQ0NjA1Nzk0MmQ0ZDEzNTEy
10
+ OTJmNzA3MjgxYzNhZGNlZGVmNjFhZmQ2MTg0OTc0ZWYzNDkyYTY3NzRhMWI1
11
+ YjQyNzE4ZTlmMTEwOWYwZGJjZmMyODk5NzI5Y2RmZDIxYjU5N2M=
12
12
  data.tar.gz: !binary |-
13
- MzY4MWRiOWY5ZDA0YTAwN2RiYjc1NWU2NzI2ODA2NDYwYTE3MWM0NTRhNjU1
14
- NGEzNzFiMzE1MGUxODIwMjdiNDg2YTAyNjBjNmE2YzVlMTQ1NGQ1YThlM2Q2
15
- MjQzZThmNDdhYjM5Y2E0MzhkYWNjZTViYWExYzVlMDQ4NGU4OTQ=
13
+ MzdjYjk1MTUzZmVmM2QyYTc1NzNiMmIyOThhZDNiMjY2MjNhYTg3M2U4ZDc0
14
+ OWRmNzdkMjE1NThkMWMxNGEyOTQzNjM2NDcyMzExNTE4MDJmNmY5MDI0N2My
15
+ ZjNhZTc4NGM1MWRjNDVmYTJjZTJlMjQxZDdkMWQ4ZTVhYmUxY2I=
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- simple_action (0.0.1.pre4)
4
+ simple_action (0.0.1.pre5)
5
5
  simple_params (>= 0.0.3, < 1.0)
6
6
 
7
7
  GEM
@@ -30,6 +30,7 @@ module SimpleAction
30
30
  def initialize(params={})
31
31
  @raw_params = params
32
32
  @params = self.class.params_class.new(params)
33
+ @validity = nil
33
34
  end
34
35
 
35
36
  def params
@@ -37,7 +38,13 @@ module SimpleAction
37
38
  end
38
39
 
39
40
  def valid?
40
- @params.valid?
41
+ # Adding this so that I don't assert validity each time.
42
+ # TODO: I Still need a proper test for this.
43
+ if @validity.nil?
44
+ @validity = @params.valid?
45
+ else
46
+ @validity
47
+ end
41
48
  end
42
49
 
43
50
  def errors
@@ -1,3 +1,3 @@
1
1
  module SimpleAction
2
- VERSION = "0.0.1.pre5"
2
+ VERSION = "0.0.1.pre6"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: simple_action
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1.pre5
4
+ version: 0.0.1.pre6
5
5
  platform: ruby
6
6
  authors:
7
7
  - brycesenz