wupee 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/db/migrate/{20151029113122_create_wupee_notification_types.rb → 20151029113100_create_wupee_notification_types.rb} +0 -0
- data/db/migrate/20151029113101_create_wupee_notification_type_configurations.rb +2 -1
- data/db/migrate/20151029113107_create_wupee_notifications.rb +3 -1
- data/lib/wupee/version.rb +1 -1
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7a68177257cd6c80b4cdedfe0dd4bc4dc80cf0e2
|
4
|
+
data.tar.gz: 75cefb2e7706cd51c24f0beca1e5a44821889203
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 409dfd9842e0573158ac9e7363f7b46029f73e0d36eb2ae34fea834a1cb01b9f09c93da7e05ced9bb98bd7103567a31205d0ff4d8837f4110a7ca31b86fa1b02
|
7
|
+
data.tar.gz: 31f82beb4cd4102acfe26f9161e639c6255bcc1f475d3671bb9267c42bd7c663fd54548f758ebc502a9e90021f95b629d943572aee9d18515a1999a9954fcf8a
|
File without changes
|
@@ -1,12 +1,13 @@
|
|
1
1
|
class CreateWupeeNotificationTypeConfigurations < ActiveRecord::Migration
|
2
2
|
def change
|
3
3
|
create_table :wupee_notification_type_configurations do |t|
|
4
|
-
t.belongs_to :notification_type
|
4
|
+
t.belongs_to :notification_type
|
5
5
|
t.belongs_to :receiver, polymorphic: true
|
6
6
|
t.integer :value, default: 0
|
7
7
|
t.timestamps null: false
|
8
8
|
end
|
9
9
|
|
10
|
+
add_foreign_key :wupee_notification_type_configurations, :wupee_notification_types, column: :notification_type_id
|
10
11
|
add_index :wupee_notification_type_configurations, [:notification_type_id], name: "idx_wupee_notif_type_config_on_notification_type_id"
|
11
12
|
add_index :wupee_notification_type_configurations, [:receiver_type, :receiver_id], name: "idx_wupee_notif_typ_config_on_receiver_type_and_receiver_id"
|
12
13
|
end
|
@@ -3,12 +3,14 @@ class CreateWupeeNotifications < ActiveRecord::Migration
|
|
3
3
|
create_table :wupee_notifications do |t|
|
4
4
|
t.references :receiver, polymorphic: true
|
5
5
|
t.references :attached_object, polymorphic: true
|
6
|
-
t.belongs_to :notification_type
|
6
|
+
t.belongs_to :notification_type
|
7
7
|
t.integer :notification_type_id
|
8
8
|
t.boolean :is_read, default: false
|
9
9
|
t.boolean :is_sent, default: false
|
10
10
|
|
11
11
|
t.timestamps null: false
|
12
12
|
end
|
13
|
+
|
14
|
+
add_foreign_key :wupee_notifications, :wupee_notification_types, column: :notification_type_id
|
13
15
|
end
|
14
16
|
end
|
data/lib/wupee/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: wupee
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Peng DU
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2015-11-
|
12
|
+
date: 2015-11-03 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rails
|
@@ -87,7 +87,7 @@ dependencies:
|
|
87
87
|
- - ">="
|
88
88
|
- !ruby/object:Gem::Version
|
89
89
|
version: '0'
|
90
|
-
description:
|
90
|
+
description: Simple notification system for rails
|
91
91
|
email:
|
92
92
|
- peng@sleede.com
|
93
93
|
- nicolas@sleede.com
|
@@ -109,9 +109,9 @@ files:
|
|
109
109
|
- app/views/wupee/api/notifications/_notification.json.jbuilder
|
110
110
|
- app/views/wupee/api/notifications/index.json.jbuilder
|
111
111
|
- app/views/wupee/api/notifications/show.json.jbuilder
|
112
|
+
- db/migrate/20151029113100_create_wupee_notification_types.rb
|
112
113
|
- db/migrate/20151029113101_create_wupee_notification_type_configurations.rb
|
113
114
|
- db/migrate/20151029113107_create_wupee_notifications.rb
|
114
|
-
- db/migrate/20151029113122_create_wupee_notification_types.rb
|
115
115
|
- lib/generators/wupee/install/USAGE
|
116
116
|
- lib/generators/wupee/install/install_generator.rb
|
117
117
|
- lib/generators/wupee/install/templates/notifications_mailer.rb
|
@@ -216,7 +216,7 @@ rubyforge_project:
|
|
216
216
|
rubygems_version: 2.4.8
|
217
217
|
signing_key:
|
218
218
|
specification_version: 4
|
219
|
-
summary:
|
219
|
+
summary: Simple notification system for rails
|
220
220
|
test_files:
|
221
221
|
- spec/controllers/notifications_controller_spec.rb
|
222
222
|
- spec/dummy/app/assets/javascripts/application.js
|