flashee 0.3.0 → 0.3.2

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
  SHA256:
3
- metadata.gz: 10a3abf3d286902e516703192962bc9c20ab0ace855e77628c0bdce5ec607a9b
4
- data.tar.gz: 51fbea15a0f8b04c5dea43c130c9a4c79b86bb2bbbc36f20d8895dc8f29b8e69
3
+ metadata.gz: db739791f4f0f26df44f738fd357b6a5c51fe468d324b1a8ada0ac56c3b5067e
4
+ data.tar.gz: 2e6e89df16f95ac6a16c7356aa3d23561d96c5d7e3bf7b9d34f7ab82e6032dd2
5
5
  SHA512:
6
- metadata.gz: e3cca6b92c48df5743e395a8b97d6b62088f669ba80cf42cc1e0f4f93ec88e29016e808a1e98f430dc79c2400eefd38706d1b0396b2371b45369db76937e33f6
7
- data.tar.gz: 764420fe30a5c2faaea8fd3583777a05dae50b570b17c7a1dc49e7d8008dc2d00ae8949e4d45f0303bdab0310f0725b9c2de7de015f148915c2afabd2dc14c4d
6
+ metadata.gz: 2fe1852624da34dac2483cb790ba6c6f4cc4145d35fd7fdad828c5fb15434560cab4f9edac9c0a58d1d0e641a12200ee679597b90b2bed5b2dbbc692a3538bfd
7
+ data.tar.gz: 23053ef42fba5034e8a6fc2cc0b2e9ad00b7ef0edbe84f53a6b0314ab1fcd252dd4ef1c665686296ecdbaaa11563d243f9c0b83345fa64c3d2a7a1368785917e
data/README.md CHANGED
@@ -35,7 +35,7 @@ $ rails g flashee:install:boostrap
35
35
  # foundation
36
36
  $ rails g flashee:install:foundation
37
37
 
38
- # foundation
38
+ # bulma
39
39
  $ rails g flashee:install:bulma
40
40
  ```
41
41
 
@@ -1,3 +1,3 @@
1
1
  module Flashee
2
- VERSION = '0.3.0'
2
+ VERSION = '0.3.2'
3
3
  end
@@ -1,14 +1,24 @@
1
1
  module FlasheeHelper
2
- def flashee_for flash_type
3
- case flash_type.to_s
4
- when "success"
5
- "success"
6
- when "error"
7
- "error"
8
- when "alert"
9
- "alert"
10
- else
11
- flash_type.to_s
12
- end
2
+ # Called by the `_flash_messages.html.erb` partial to drop-in the css class
3
+ # that matches the value of `:type` on the flash message.
4
+ #
5
+ # == Parameters:
6
+ # flash_type::
7
+ # A symbol or string that is passed from the flash messages `type` attribute
8
+ #
9
+ # == Returns:
10
+ # A string for the css class
11
+ #
12
+ def flashee_for flash_type
13
+ case flash_type.to_s
14
+ when "success"
15
+ "success"
16
+ when "error"
17
+ "error"
18
+ when "alert"
19
+ "alert"
20
+ else
21
+ flash_type.to_s
13
22
  end
23
+ end
14
24
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: flashee
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Josh Burns