stateful_link 0.0.5 → 0.0.6

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- stateful_link (0.0.4)
4
+ stateful_link (0.0.6)
5
5
  rails (>= 3)
6
6
 
7
7
  GEM
@@ -21,7 +21,6 @@ module StatefulLink
21
21
  active = args.first
22
22
  chosen = args.second
23
23
  state = options[:state] || proc { action_state(active, chosen) }
24
- raise ArgumentError, ":state should be proc" unless state.is_a?(Proc)
25
24
  state = instance_exec(&state)
26
25
  state = :active if state == true
27
26
  state = :inactive if state == false
@@ -1,3 +1,3 @@
1
1
  module StatefulLink
2
- VERSION = '0.0.5'
2
+ VERSION = '0.0.6'
3
3
  end
metadata CHANGED
@@ -1,8 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: stateful_link
3
3
  version: !ruby/object:Gem::Version
4
+ hash: 19
4
5
  prerelease:
5
- version: 0.0.5
6
+ segments:
7
+ - 0
8
+ - 0
9
+ - 6
10
+ version: 0.0.6
6
11
  platform: ruby
7
12
  authors:
8
13
  - Victor Sokolov
@@ -10,7 +15,7 @@ autorequire:
10
15
  bindir: bin
11
16
  cert_chain: []
12
17
 
13
- date: 2011-04-05 00:00:00 +04:00
18
+ date: 2011-04-08 00:00:00 +04:00
14
19
  default_executable:
15
20
  dependencies:
16
21
  - !ruby/object:Gem::Dependency
@@ -21,6 +26,9 @@ dependencies:
21
26
  requirements:
22
27
  - - ">="
23
28
  - !ruby/object:Gem::Version
29
+ hash: 5
30
+ segments:
31
+ - 3
24
32
  version: "3"
25
33
  type: :runtime
26
34
  version_requirements: *id001
@@ -32,6 +40,10 @@ dependencies:
32
40
  requirements:
33
41
  - - ~>
34
42
  - !ruby/object:Gem::Version
43
+ hash: 11
44
+ segments:
45
+ - 2
46
+ - 4
35
47
  version: "2.4"
36
48
  type: :development
37
49
  version_requirements: *id002
@@ -43,6 +55,9 @@ dependencies:
43
55
  requirements:
44
56
  - - ">="
45
57
  - !ruby/object:Gem::Version
58
+ hash: 3
59
+ segments:
60
+ - 0
46
61
  version: "0"
47
62
  type: :development
48
63
  version_requirements: *id003
@@ -54,6 +69,9 @@ dependencies:
54
69
  requirements:
55
70
  - - ">="
56
71
  - !ruby/object:Gem::Version
72
+ hash: 3
73
+ segments:
74
+ - 0
57
75
  version: "0"
58
76
  type: :development
59
77
  version_requirements: *id004
@@ -127,17 +145,23 @@ required_ruby_version: !ruby/object:Gem::Requirement
127
145
  requirements:
128
146
  - - ">="
129
147
  - !ruby/object:Gem::Version
148
+ hash: 3
149
+ segments:
150
+ - 0
130
151
  version: "0"
131
152
  required_rubygems_version: !ruby/object:Gem::Requirement
132
153
  none: false
133
154
  requirements:
134
155
  - - ">="
135
156
  - !ruby/object:Gem::Version
157
+ hash: 3
158
+ segments:
159
+ - 0
136
160
  version: "0"
137
161
  requirements: []
138
162
 
139
163
  rubyforge_project:
140
- rubygems_version: 1.5.3
164
+ rubygems_version: 1.6.0
141
165
  signing_key:
142
166
  specification_version: 3
143
167
  summary: Helper to generate stateful navigation links.