collab 0.1.1 → 0.1.6

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: 035125d713bb0557c3201837d47b34ade974800e4d422c04e8f7705c18e7abf1
4
+ data.tar.gz: 4a4c6dae13075523895b6ef394db0848f7030d922a1d8b7abca2f3bd804db72a
5
5
  SHA512:
6
- metadata.gz: 730e7ca06ab6aacf089ca6ef0491d0b64653d0221143e20bffe8ca97103ae5353bc75e2dc7a84fbc0e02ab6367e2591ff8b7523a8d7f9c7c1676f74d46e39131
7
- data.tar.gz: 10ba3c6cf4c0bf1e30acf3a1c08fe427648a6887f16f123a4340de772308d43ba6b57a7d7ad6b34ae7c393a07ffeb90e66ad23e8620f0a2b8e593f9499617c4b
6
+ metadata.gz: c34b9b5002c6d8f1b41c6198c83d78a94cdb826cdc0d53e40b3cb4438114bb12d3a6759b7a73d4cef891f5dea6775cee8fe27c719218011e23194d56cb2213ea
7
+ data.tar.gz: 391e56c178e49861157b4479cca2a656175ce5e72de5526483dbc21608078b68da8c0f8399bcaa5f811eb0b536f897dcf0ae50323bd525335051975838ce7dd7
@@ -1,13 +1,13 @@
1
- require "collab/config"
2
1
  require "collab/railtie"
3
2
 
4
3
  module Collab
5
- def config
4
+ def self.config
6
5
  @config ||= Collab::Config.new
7
6
  return @config unless block_given?
8
7
  yield @config
9
8
  end
10
9
 
10
+ autoload "Config", "collab/config"
11
11
  autoload "Bridge", "collab/bridge"
12
12
  autoload "HasCollaborativeDocument", "collab/has_collaborative_document"
13
13
 
@@ -1,3 +1,3 @@
1
1
  module Collab
2
- VERSION = '0.1.1'
2
+ VERSION = '0.1.6'
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.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ben Aubin