notifiable 0.0.1 → 0.0.2
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/lib/generators/notifiable_install/notifiable_install_generator.rb +7 -7
- data/lib/notifiable/rails.rb +2 -0
- data/lib/notifiable/version.rb +1 -1
- data/lib/notifiable.rb +1 -1
- metadata +2 -4
- data/lib/generators/notifiable_install/templates/README +0 -23
- data/lib/generators/notifiable_install/templates/sooner.rb +0 -13
@@ -26,13 +26,13 @@ class NotifiableInstallGenerator < Rails::Generators::Base
|
|
26
26
|
migration_template 'migration.rb', 'db/migrate/notifiable_create_notifications.rb'
|
27
27
|
end
|
28
28
|
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
def show_readme
|
34
|
-
readme "README"
|
35
|
-
end
|
29
|
+
# def copy_initializer
|
30
|
+
# template "notifiable.rb", "config/initializers/notifiable.rb"
|
31
|
+
# end
|
32
|
+
#
|
33
|
+
# def show_readme
|
34
|
+
# readme "README"
|
35
|
+
# end
|
36
36
|
|
37
37
|
protected
|
38
38
|
|
data/lib/notifiable/rails.rb
CHANGED
data/lib/notifiable/version.rb
CHANGED
data/lib/notifiable.rb
CHANGED
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
|
+
- 2
|
9
|
+
version: 0.0.2
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- Shenouda Bertel
|
@@ -38,9 +38,7 @@ files:
|
|
38
38
|
- lib/notifiable/version.rb
|
39
39
|
- lib/notifiable/rails.rb
|
40
40
|
- lib/notifiable.rb
|
41
|
-
- lib/generators/notifiable_install/templates/sooner.rb
|
42
41
|
- lib/generators/notifiable_install/templates/migration.rb
|
43
|
-
- lib/generators/notifiable_install/templates/README
|
44
42
|
- lib/generators/notifiable_install/notifiable_install_generator.rb
|
45
43
|
has_rdoc: true
|
46
44
|
homepage: http://github.com/shenoudab/notifiable
|
@@ -1,23 +0,0 @@
|
|
1
|
-
|
2
|
-
===============================================================================
|
3
|
-
|
4
|
-
Some setup you must do manually if you haven't yet:
|
5
|
-
|
6
|
-
1. Ensure you have defined root_url to *something* in your config/routes.rb.
|
7
|
-
|
8
|
-
root :to => "sooner/subscribers#new"
|
9
|
-
|
10
|
-
2. Ensure you have defined javascript in app/views/layouts/application.html.erb
|
11
|
-
|
12
|
-
<%= javascript_include_tag :defaults %>
|
13
|
-
<!-- or -->
|
14
|
-
<%= javascript_include_tag "http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js", "jquery.rails.js" %>
|
15
|
-
|
16
|
-
<%= csrf_meta_tag %>
|
17
|
-
|
18
|
-
3. Ensure you have flash messages in app/views/layouts/application.html.erb.
|
19
|
-
For example:
|
20
|
-
|
21
|
-
<p class="notice"><%= notice %></p>
|
22
|
-
|
23
|
-
===============================================================================
|
@@ -1,13 +0,0 @@
|
|
1
|
-
Sooner.setup do |config|
|
2
|
-
# Configure the e-mail address which will be shown in SoonerMailer.
|
3
|
-
config.mailer_sender = "info@sooner.com"
|
4
|
-
|
5
|
-
config.db_store = true
|
6
|
-
config.csv_store = true
|
7
|
-
config.csv_file = "subscribers.csv"
|
8
|
-
|
9
|
-
# Messages.
|
10
|
-
config.subscribed = 'Subscribed Successfully.'
|
11
|
-
config.already_subscribed = 'Already Subscribed.'
|
12
|
-
config.error_subscribed = 'Please Try to subscribe again.'
|
13
|
-
end
|