invitation 0.4.4 → 0.4.5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6625803e19fe85cb9aa39b324bda1fac25b626c3
4
- data.tar.gz: d614e528ae7e16e97874ca44456914d67cc733b0
3
+ metadata.gz: 7fb6ecb6c28da3b30a263c6463d7414c0f51833d
4
+ data.tar.gz: 20809ed7eeb1a17b9670ca1bf367239c4a756b08
5
5
  SHA512:
6
- metadata.gz: '0198cae75bc57cac311e68bc705422bc9e4d983ce74b638237a0e68cdc1d719e13c62d3c322a6f84d17d19332b2d55460de4028a62e075e583ab26657af3ec4f'
7
- data.tar.gz: bd3c43bc8f868c90b21140b5bfb2ce2420f98a7783af1ce63bb141be82f668ae5d8a4250487a07f5c911aaed14e15e0fbf38333df03c2d70cd1db954a34a9f79
6
+ metadata.gz: 19fd8f1e9fd2ee55f6098c86e5d4ffcae60913c29696b3180ed1a4aeaf953d0e0f4a373ec4977f8a09e4201b6acbdff6cf2fd98baf6bcb61c8813619ff872a3b
7
+ data.tar.gz: 6b3cff19c001aa3cd885e1753adbc14cd53e6d57985f289b93b03ee0bf0a01774e6648dccfdc6467694fbb992dbd57aabc34e842f081c59f1377aa2d7bf13fdf
@@ -68,6 +68,12 @@ module Invitation
68
68
  [invitable_class_name.classify]
69
69
  end.join('::')
70
70
  end
71
+
72
+ def migration_version
73
+ if Rails.version.start_with? '5'
74
+ "[#{ActiveRecord::Migration.current_version}]"
75
+ end
76
+ end
71
77
  end
72
78
  end
73
79
  end
@@ -1,4 +1,4 @@
1
- class CreateInvites < ActiveRecord::Migration
1
+ class CreateInvites < ActiveRecord::Migration<%= migration_version %>
2
2
  def change
3
3
  create_table :invites do |t|
4
4
  t.string :email
@@ -1,3 +1,3 @@
1
1
  module Invitation
2
- VERSION = '0.4.4'.freeze
2
+ VERSION = '0.4.5'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: invitation
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.4
4
+ version: 0.4.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Justin Tomich
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-09-30 00:00:00.000000000 Z
11
+ date: 2018-03-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails