wupee 1.0.0 → 1.0.1

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: af10fc3ae97b36dc7ac42eeb137b1efa44a6f7e3
4
- data.tar.gz: e1b1f83375a63a78f51eb8da2ca172a3c4740e59
3
+ metadata.gz: 7a68177257cd6c80b4cdedfe0dd4bc4dc80cf0e2
4
+ data.tar.gz: 75cefb2e7706cd51c24f0beca1e5a44821889203
5
5
  SHA512:
6
- metadata.gz: b5fc93a9d6c9441262c26f4780b0eea850dea8a101b6743fac2077fcd7960d48f06338a5fcaf8cfe1c8e3e993ddb9b3ade0c52d45e388c03e6149ed1ab32d526
7
- data.tar.gz: a3c6b5d420d0b52ccaf0b2a554868d1bccdff120ab5f25282ed2bd0297b53e431fd5a90bbe37fdd454cbe47729d9a9ddc6aa8f3c3d23dcd65e2ede94fec49bc4
6
+ metadata.gz: 409dfd9842e0573158ac9e7363f7b46029f73e0d36eb2ae34fea834a1cb01b9f09c93da7e05ced9bb98bd7103567a31205d0ff4d8837f4110a7ca31b86fa1b02
7
+ data.tar.gz: 31f82beb4cd4102acfe26f9161e639c6255bcc1f475d3671bb9267c42bd7c663fd54548f758ebc502a9e90021f95b629d943572aee9d18515a1999a9954fcf8a
@@ -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, foreign_key: true
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, foreign_key: true
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
@@ -1,3 +1,3 @@
1
1
  module Wupee
2
- VERSION = "1.0.0"
2
+ VERSION = "1.0.1"
3
3
  end
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.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-02 00:00:00.000000000 Z
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: A simple notification system for sleede rails project
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: A simple notification system for sleede rails project
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