collab 0.1.1 → 0.1.2

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
  SHA256:
3
- metadata.gz: bed5f0b5e200818d926fba3438bb9d7aac97f8a3d56ed618030b9cb3aadaaaf4
4
- data.tar.gz: 54398d937f3b7e6f8bbc7d9a16d3622a67741efba090cc3b099f1d03fbe7c010
3
+ metadata.gz: a013e8f3a8b9d0f207190ad866745dd008a6c3920419128270e850c7e17db029
4
+ data.tar.gz: 54a7d5b787d2295f8aa60530ac38b6e3a433b4067dedb02223e7ca3874dabf2a
5
5
  SHA512:
6
- metadata.gz: 730e7ca06ab6aacf089ca6ef0491d0b64653d0221143e20bffe8ca97103ae5353bc75e2dc7a84fbc0e02ab6367e2591ff8b7523a8d7f9c7c1676f74d46e39131
7
- data.tar.gz: 10ba3c6cf4c0bf1e30acf3a1c08fe427648a6887f16f123a4340de772308d43ba6b57a7d7ad6b34ae7c393a07ffeb90e66ad23e8620f0a2b8e593f9499617c4b
6
+ metadata.gz: c8f573deab8a0738a93f7680d7f3ad65af29f45c832365ef98702166456a5036e445766d7abc5b6784b925be6c4b0e0e31db7f2dfdf5144a2fa9af943b06a758
7
+ data.tar.gz: a59241f5a3c9511cb5fdd3e6644cfe23be09c4db2072c95c0f9e2ad7fdce5986ae51f6993dc72c74bc533282123d671786ef49a9ba6f08de0baa406bd84b0cd5
@@ -1,3 +1,3 @@
1
1
  module Collab
2
- VERSION = '0.1.1'
2
+ VERSION = '0.1.2'
3
3
  end
@@ -6,10 +6,17 @@ module Collab
6
6
  include ::Rails::Generators::Migration
7
7
 
8
8
  desc "Creates the necessary migrations and initializer for the gem"
9
-
10
9
  source_root File.expand_path('templates', __dir__)
11
10
 
12
- def copy_initializer_file
11
+ class <<self
12
+ # Implement the required interface for Rails::Generators::Migration.
13
+ def next_migration_number(dirname)
14
+ next_migration_number = current_migration_number(dirname) + 1
15
+ ActiveRecord::Migration.next_migration_number(next_migration_number)
16
+ end
17
+ end
18
+
19
+ def copy_files
13
20
  migration_template(
14
21
  "create_collab_tables.rb",
15
22
  "db/migrate/create_collab_tables.rb",
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: collab
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ben Aubin