boilerman 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/boilerman/actions.rb +2 -2
- data/lib/boilerman/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4d0b93d188ff0b252fb90c77bb5c02b088fb5d0f
|
4
|
+
data.tar.gz: 5c5a39f8e85a50dc0fc1c7ca528b5133ef31d878
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f340f14a8e9d22673c3e903de743bd14819cebf8b76e603ae9dc47cc97a755a83de77a6575c8764bf268f4e2e79b13141736ebd2abda0638962dec2e4aa5b1b6
|
7
|
+
data.tar.gz: 17d8b01e5a49a6db8ceb33f18a19f6e7c3b5c62f12575ce4c28b21eb803b120adf9368f7d7db3d0dcc1196c4df45a89fe6ef4f6cc632bdd4ddb5ce3c0b6305a6
|
data/lib/boilerman/actions.rb
CHANGED
@@ -69,7 +69,7 @@ module Boilerman
|
|
69
69
|
# without_filters
|
70
70
|
unless without_filters.empty?
|
71
71
|
filter_list = filter_list.inject(Hash.new) do |new_results, (controller, actions)|
|
72
|
-
new_results[controller] = actions.select{|action, filters| (without_filters & filters).empty? }
|
72
|
+
new_results[controller] = actions.select{|action, filters| (without_filters & Array(filters)).empty? }
|
73
73
|
new_results
|
74
74
|
end
|
75
75
|
end
|
@@ -77,7 +77,7 @@ module Boilerman
|
|
77
77
|
# with_filters
|
78
78
|
unless with_filters.empty?
|
79
79
|
filter_list = filter_list.inject(Hash.new) do |new_results, (controller, actions)|
|
80
|
-
new_results[controller] = actions.select{|action, filters| (with_filters - filters).empty? }
|
80
|
+
new_results[controller] = actions.select{|action, filters| (with_filters - Array(filters)).empty? }
|
81
81
|
new_results
|
82
82
|
end
|
83
83
|
end
|
data/lib/boilerman/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: boilerman
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tomek Rabczak
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-11-
|
11
|
+
date: 2015-11-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -248,3 +248,4 @@ test_files:
|
|
248
248
|
- test/helpers/boilerman/controllers_helper_test.rb
|
249
249
|
- test/integration/navigation_test.rb
|
250
250
|
- test/test_helper.rb
|
251
|
+
has_rdoc:
|