handy_controller_helpers 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 78ee74ea44b9cb3bed86f64843471249d8fdcc75
4
- data.tar.gz: 41c63f5ddd1eae851424987437c151241e257ba1
3
+ metadata.gz: 17311e1f02f8d47ac8b728bc8008317bbb2e069f
4
+ data.tar.gz: 85e6192b3c0816ceac7b2b14bf9361515a030fea
5
5
  SHA512:
6
- metadata.gz: 29a7ce75e70b0f01de2a676a84c2a8fda23f9ea11dcc62fb60f41621c9c6c55cf282ddf08b8c68be437265edfe7db8277831055e4a50f1fb0f58b0a77d59e390
7
- data.tar.gz: 6d4b8a1a023b3babb30e8cc258b6051881c3f1d4e5e18ab313e748c1eec397107f2e687c49351f180692a0b3a630646327948039514010a224cdfd06b8f39970
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./i
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./i
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./i
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./i
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
@@ -1,3 +1,3 @@
1
1
  module HandyControllerHelpers
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  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.2
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-09-10 00:00:00.000000000 Z
11
+ date: 2013-10-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec