notifiable 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile +1 -2
- data/Rakefile +1 -1
- data/lib/notifiable/rails.rb +3 -3
- data/lib/notifiable/version.rb +1 -1
- data/lib/notifiable.rb +2 -5
- data/public/images/error_msg.png +0 -0
- data/public/images/info_warning_msg.png +0 -0
- data/public/stylesheets/system_messages.css +31 -0
- metadata +5 -2
data/Gemfile
CHANGED
data/Rakefile
CHANGED
@@ -26,7 +26,7 @@ spec = Gem::Specification.new do |s|
|
|
26
26
|
s.name = "notifiable"
|
27
27
|
s.summary = "Insert Notifiable summary."
|
28
28
|
s.description = "Insert Notifiable description."
|
29
|
-
s.files = FileList["[A-Z]*", "{app,config,lib}/**/*"]
|
29
|
+
s.files = FileList["[A-Z]*", "{app,config,public,lib}/**/*"]
|
30
30
|
s.version = Notifiable::VERSION.dup
|
31
31
|
s.email = "sbertel@mobithought.com"
|
32
32
|
s.homepage = "http://github.com/shenoudab/notifiable"
|
data/lib/notifiable/rails.rb
CHANGED
@@ -1,7 +1,7 @@
|
|
1
|
-
ActiveSupport.on_load(:action_view) { include
|
1
|
+
ActiveSupport.on_load(:action_view) { include NotifiableHelpers }
|
2
2
|
|
3
3
|
module Notifiable
|
4
4
|
class Engine < ::Rails::Engine
|
5
|
-
|
5
|
+
#config.notifiable = Notifiable
|
6
6
|
end
|
7
|
-
end
|
7
|
+
end
|
data/lib/notifiable/version.rb
CHANGED
data/lib/notifiable.rb
CHANGED
Binary file
|
Binary file
|
@@ -0,0 +1,31 @@
|
|
1
|
+
.system-message{
|
2
|
+
text-align: center;
|
3
|
+
margin: 10px;
|
4
|
+
width: 350px;
|
5
|
+
padding: 5px;
|
6
|
+
border: 1px solid black;
|
7
|
+
}
|
8
|
+
|
9
|
+
.system-message-header{
|
10
|
+
text-align: center;
|
11
|
+
border: 1px solid black;
|
12
|
+
font-weight: bold;
|
13
|
+
}
|
14
|
+
|
15
|
+
.system-message-header.info{
|
16
|
+
background: url(/images/info_warning_msg.png) no-repeat;
|
17
|
+
color: white;
|
18
|
+
padding-left: 20px;
|
19
|
+
background-color: #4AA02C;
|
20
|
+
}
|
21
|
+
|
22
|
+
.system-message-header.warn{
|
23
|
+
background: url(/images/info_warning_msg.png) no-repeat;
|
24
|
+
background-color: #FFFF66;
|
25
|
+
}
|
26
|
+
|
27
|
+
.system-message-header.error{
|
28
|
+
background: url(/images/error_msg.png) no-repeat;
|
29
|
+
color: white;
|
30
|
+
background-color: #E77471;
|
31
|
+
}
|
metadata
CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 0
|
7
7
|
- 0
|
8
|
-
-
|
9
|
-
version: 0.0.
|
8
|
+
- 4
|
9
|
+
version: 0.0.4
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- Shenouda Bertel
|
@@ -34,6 +34,9 @@ files:
|
|
34
34
|
- app/controllers/notifiable/notifications_controller.rb
|
35
35
|
- app/models/notifiable/notification.rb
|
36
36
|
- app/views/notifiable/notifications/new.html.erb
|
37
|
+
- public/images/info_warning_msg.png
|
38
|
+
- public/images/error_msg.png
|
39
|
+
- public/stylesheets/system_messages.css
|
37
40
|
- lib/notifiable/helpers/notifiable_helpers.rb
|
38
41
|
- lib/notifiable/version.rb
|
39
42
|
- lib/notifiable/rails.rb
|