collab 0.1.1 → 0.1.2
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 +4 -4
- data/lib/collab/version.rb +1 -1
- data/lib/generators/collab/install/install_generator.rb +9 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a013e8f3a8b9d0f207190ad866745dd008a6c3920419128270e850c7e17db029
|
4
|
+
data.tar.gz: 54a7d5b787d2295f8aa60530ac38b6e3a433b4067dedb02223e7ca3874dabf2a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c8f573deab8a0738a93f7680d7f3ad65af29f45c832365ef98702166456a5036e445766d7abc5b6784b925be6c4b0e0e31db7f2dfdf5144a2fa9af943b06a758
|
7
|
+
data.tar.gz: a59241f5a3c9511cb5fdd3e6644cfe23be09c4db2072c95c0f9e2ad7fdce5986ae51f6993dc72c74bc533282123d671786ef49a9ba6f08de0baa406bd84b0cd5
|
data/lib/collab/version.rb
CHANGED
@@ -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
|
-
|
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",
|