mailboxer 0.12.0 → 0.12.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: e3663b48d3f59bd57f4c6887c75dd7dafe718a92
4
- data.tar.gz: 65e549798e08294cf5e65be533da9d9e1d596668
3
+ metadata.gz: 817cf7c78089efb56672419868ef85128a84857a
4
+ data.tar.gz: 2cca2d3e2948bcb8fbcc2f6d36940fb6f6bbecea
5
5
  SHA512:
6
- metadata.gz: 15a866f46f7055e7b9a29c096d1d2ae7e43a02f23fb035d5196fb992a82ef6662592fd5a20f409779e716c4172335833cae6f7044035a762ab840527e63dfe93
7
- data.tar.gz: 8f3dcc9976025c7bd27f6af5dda989196a0c25e8cbadb854c3ed877b26089085c4cdbb5666c68732bf766dbd193a5e5b485bf4dfb831911bde5140f9685dc2a3
6
+ metadata.gz: 6b8cabe81345558627e24d8f48c4304fb9d0f6dd4140fd561a3f72289fd6972b6f755ef431db57ca0b551c90116f841eade0f34b68d8354e8aa6d8a9abe83d39
7
+ data.tar.gz: bb5d7f3ffd4aa640e29374330c4bac05c23f406ec0d06c1d6e8c3ef0196943f7f5014c9936e90ff29e6dd530e568d82f517a0a8e6419f7037170fdd98994801d
data/README.md CHANGED
@@ -59,10 +59,11 @@ $ rake db:migrate
59
59
  Upgrading
60
60
  ---------
61
61
 
62
- If upgrading from 0.11.0 to 0.12.0, run the following generator:
62
+ If upgrading from 0.11.0 to 0.12.0, run the following generators:
63
63
 
64
64
  ```sh
65
65
  $ rails generate mailboxer:namespacing_compatibility
66
+ $ rails generate -s mailboxer:install
66
67
  ```
67
68
 
68
69
  Then, migrate your database:
@@ -9,6 +9,8 @@ class MailboxerNamespacingCompatibility < ActiveRecord::Migration
9
9
  rename_index :mailboxer_notifications, :notifications_on_conversation_id, :mailboxer_notifications_on_conversation_id
10
10
  rename_index :mailboxer_receipts, :receipts_on_notification_id, :mailboxer_receipts_on_notification_id
11
11
  end
12
+
13
+ Mailboxer::Notification.where(type: 'Message').update_all(type: 'Mailboxer::Message')
12
14
  end
13
15
 
14
16
  def self.down
@@ -20,5 +22,7 @@ class MailboxerNamespacingCompatibility < ActiveRecord::Migration
20
22
  rename_index :notifications, :mailboxer_notifications_on_conversation_id, :notifications_on_conversation_id
21
23
  rename_index :receipts, :mailboxer_receipts_on_notification_id, :receipts_on_notification_id
22
24
  end
25
+
26
+ Mailboxer::Notification.where(type: 'Mailboxer::Message').update_all(type: 'Message')
23
27
  end
24
28
  end
@@ -1,3 +1,3 @@
1
1
  module Mailboxer
2
- VERSION = "0.12.0"
2
+ VERSION = "0.12.1"
3
3
  end
data/mailboxer.gemspec CHANGED
@@ -33,7 +33,7 @@ Gem::Specification.new do |s|
33
33
  s.add_development_dependency 'racc'
34
34
  end
35
35
  # Specs
36
- s.add_development_dependency('rspec-rails', '>= 2.6.1')
36
+ s.add_development_dependency 'rspec-rails', '~> 2.99'
37
37
  s.add_development_dependency('appraisal', '~> 1.0.0')
38
38
  s.add_development_dependency('shoulda-matchers')
39
39
  # Fixtures
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mailboxer
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.12.0
4
+ version: 0.12.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Eduardo Casanova Cuesta
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-06-05 00:00:00.000000000 Z
11
+ date: 2014-06-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: foreigner
@@ -56,16 +56,16 @@ dependencies:
56
56
  name: rspec-rails
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - ">="
59
+ - - "~>"
60
60
  - !ruby/object:Gem::Version
61
- version: 2.6.1
61
+ version: '2.99'
62
62
  type: :development
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
- - - ">="
66
+ - - "~>"
67
67
  - !ruby/object:Gem::Version
68
- version: 2.6.1
68
+ version: '2.99'
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: appraisal
71
71
  requirement: !ruby/object:Gem::Requirement