handy_controller_helpers 0.0.2 → 0.0.3
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.
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 17311e1f02f8d47ac8b728bc8008317bbb2e069f
|
|
4
|
+
data.tar.gz: 85e6192b3c0816ceac7b2b14bf9361515a030fea
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 6b82eaae4f0c32c0e3359380409179f7c68ae0aef8d2ad0b1fb67f1f6d75b6ea532a6774d1ac356e22821da5c3335b841a679d846a32eceebef0c9fedc799a02
|
|
7
|
+
data.tar.gz: c5f214897bf1eb2fdfec02954ad70c4c757135af8d6633c63c59648d110232c43d8c9f38d7f5423e58c63c6eee42dcbb1ced93b4d65cffab739921390a2f2319
|
|
@@ -2,19 +2,23 @@ module HandyControllerHelpers
|
|
|
2
2
|
module FlashHelpers
|
|
3
3
|
|
|
4
4
|
def flash_unauthorized?
|
|
5
|
-
flash[:alert].should =~ /You are not authorized to access this page
|
|
5
|
+
flash[:alert].should =~ /You are not authorized to access this page/i
|
|
6
6
|
end
|
|
7
7
|
|
|
8
8
|
def flash_updated?
|
|
9
|
-
flash[:notice].should =~ /was successfully updated
|
|
9
|
+
flash[:notice].should =~ /was successfully updated/i
|
|
10
10
|
end
|
|
11
11
|
|
|
12
12
|
def flash_created?
|
|
13
|
-
flash[:notice].should =~ /was successfully created
|
|
13
|
+
flash[:notice].should =~ /was successfully created/i
|
|
14
14
|
end
|
|
15
15
|
|
|
16
16
|
def flash_destroyed?
|
|
17
|
-
flash[:notice].should =~ /was successfully destroyed
|
|
17
|
+
flash[:notice].should =~ /was successfully destroyed/i
|
|
18
|
+
end
|
|
19
|
+
|
|
20
|
+
def flash_recovered?
|
|
21
|
+
flash[:notice].should =~ /was successfully recovered/i
|
|
18
22
|
end
|
|
19
23
|
|
|
20
24
|
end
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: handy_controller_helpers
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.3
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Vassil Kalkov
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2013-
|
|
11
|
+
date: 2013-10-04 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rspec
|