red_light 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.
@@ -30,7 +30,7 @@ module RedLight
30
30
  controller = path[:controller]
31
31
  action = path[:action]
32
32
 
33
- if RED_LIGHT_RULES[controller] && RED_LIGHT_RULES[controller].include?(action)
33
+ if ::RED_LIGHT_RULES[controller] && ::RED_LIGHT_RULES[controller].include?(action)
34
34
  part.gsub!(/action="#{form_action}"/, "action='javascript:void(0);' rel='fancy_login'")
35
35
  end
36
36
  rescue ActionController::RoutingError => e
@@ -45,7 +45,7 @@ module RedLight
45
45
  controller = path[:controller]
46
46
  action = path[:action]
47
47
 
48
- if RED_LIGHT_RULES[controller] && RED_LIGHT_RULES[controller].include?(action)
48
+ if ::RED_LIGHT_RULES[controller] && ::RED_LIGHT_RULES[controller].include?(action)
49
49
  href_regex = Regexp.compile(Regexp.escape('href="/'+href+'"'))
50
50
  part.gsub!(href_regex, "href='/#{href}' rel='fancy_login'")
51
51
  end
@@ -1,3 +1,3 @@
1
1
  module RedLight
2
- VERSION = "0.0.3"
2
+ VERSION = "0.0.4"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: red_light
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -13,7 +13,7 @@ date: 2013-05-19 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler
16
- requirement: &70364864552540 !ruby/object:Gem::Requirement
16
+ requirement: &70228373512080 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ~>
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: '1.3'
22
22
  type: :development
23
23
  prerelease: false
24
- version_requirements: *70364864552540
24
+ version_requirements: *70228373512080
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: rake
27
- requirement: &70364864548840 !ruby/object:Gem::Requirement
27
+ requirement: &70228373509660 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ! '>='
@@ -32,7 +32,7 @@ dependencies:
32
32
  version: '0'
33
33
  type: :development
34
34
  prerelease: false
35
- version_requirements: *70364864548840
35
+ version_requirements: *70228373509660
36
36
  description: a gem used to add fancy login to your rails application
37
37
  email:
38
38
  - leomayleomay@gmail.com