notifiable 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.
data/Gemfile CHANGED
@@ -1,5 +1,4 @@
1
1
  source "http://gemcutter.org"
2
2
 
3
3
  gem "rails", "3.0.0.beta4"
4
- gem "mysql"
5
-
4
+ gem "mysql"
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"
@@ -1,7 +1,7 @@
1
- ActiveSupport.on_load(:action_view) { include Notifiable::Helpers::NotifiableHelpers }
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
@@ -1,3 +1,3 @@
1
1
  module Notifiable
2
- VERSION = "0.0.3".freeze
2
+ VERSION = "0.0.4".freeze
3
3
  end
data/lib/notifiable.rb CHANGED
@@ -1,5 +1,2 @@
1
- module Notifiable
2
-
3
- end
4
-
5
- require 'notifiable/rails'
1
+ require 'notifiable/rails'
2
+ require 'notifiable/version'
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
- - 3
9
- version: 0.0.3
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