vinyl 0.0.3 → 0.0.4
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.
- data/README.md +2 -2
- data/lib/vinyl/rule.rb +1 -1
- data/lib/vinyl/version.rb +1 -1
- metadata +2 -2
data/README.md
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
# Vinyl
|
|
2
|
-
**_Access Level for him and her_**
|
|
1
|
+
# Vinyl [](https://codeclimate.com/github/tarolandia/vinyl)
|
|
2
|
+
**_Access Level for him and her_**
|
|
3
3
|
|
|
4
4
|
_by: Federico Saravia Barrantes [@fsaravia](https://github.com/fsaravia) and Lautaro Orazi [@tarolandia](https://github.com/tarolandia)_
|
|
5
5
|
|
data/lib/vinyl/rule.rb
CHANGED
|
@@ -27,7 +27,7 @@ module Vinyl
|
|
|
27
27
|
method = args[0][:with_method]
|
|
28
28
|
access_level = args[0][:get_access_level]
|
|
29
29
|
validators = args[0][:if_pass]
|
|
30
|
-
if(route.empty? || method.empty? || access_level.to_s.empty?) then
|
|
30
|
+
if(route.to_s.empty? || method.empty? || access_level.to_s.empty?) then
|
|
31
31
|
raise InvalidAclRule, "Vinyl.rule is invalid"
|
|
32
32
|
end
|
|
33
33
|
rescue NoMethodError => e
|
data/lib/vinyl/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: vinyl
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.4
|
|
5
5
|
prerelease:
|
|
6
6
|
platform: ruby
|
|
7
7
|
authors:
|
|
@@ -10,7 +10,7 @@ authors:
|
|
|
10
10
|
autorequire:
|
|
11
11
|
bindir: bin
|
|
12
12
|
cert_chain: []
|
|
13
|
-
date: 2012-
|
|
13
|
+
date: 2012-11-05 00:00:00.000000000 Z
|
|
14
14
|
dependencies:
|
|
15
15
|
- !ruby/object:Gem::Dependency
|
|
16
16
|
name: rspec
|