relation 0.2.2 → 0.2.3

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: '097136267e7a2b9cecbd1ff106eb84df3930efce3a2f11fbc6abe195af8bd90b'
4
- data.tar.gz: 66485232db2609f3b83867106e13b010ce589a7566f91ad19f1fcfb9d10d1558
3
+ metadata.gz: 6381b0fed7fc68aab0a9e3518e8e6148f16fcc292ea78536861c85cb597341ab
4
+ data.tar.gz: 5994578fd40c339c169ef8f74fc04c24ed2d84bcf828187613d763d9bb105621
5
5
  SHA512:
6
- metadata.gz: 421d20a7a733acab04cf0975eac1bd2a8c6442632d27e47cb38ff5d61509739411afc5fc52368784d6fc4ceeeb459389cd8d81692ef7aa89f17019cf14006023
7
- data.tar.gz: da45f4f21d6ea83ec6d4b8bf690b88f79bb9b6aa398e54c899aa549c63024ade77260e4336175149e24eca542035527a6a461ea6f14112d3de2ef93689eda93b
6
+ metadata.gz: 6e7149d1b781f01f34ba6aecd9a4df859b1493b51be0ae3a56c51e59cd6204e205ab21b5398a17f9d64612b939d102f5246658b8b30efe3ae0bb0a215d16ce48
7
+ data.tar.gz: 9b7d23050de06e0267c56cf6fe40c9ca04e419c83b9c7069f406a93e069a67368398f6dae091c93abdb41750cd042d3ef44d529fac6a7233458a843c0ea802a6
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- relation (0.2.2)
4
+ relation (0.2.3)
5
5
  activerecord
6
6
 
7
7
  GEM
@@ -75,7 +75,7 @@ GEM
75
75
  mini_mime (1.0.0)
76
76
  mini_portile2 (2.3.0)
77
77
  minitest (5.11.3)
78
- nio4r (2.3.0)
78
+ nio4r (2.3.1)
79
79
  nokogiri (1.8.2)
80
80
  mini_portile2 (~> 2.3.0)
81
81
  rack (2.0.5)
@@ -1,4 +1,4 @@
1
- class CreateRelations < ActiveRecord::Migration
1
+ class CreateRelations < ActiveRecord::Migration[5.2]
2
2
  def change
3
3
  create_table :relations, id: false do |t|
4
4
  t.string :name
@@ -0,0 +1,25 @@
1
+ module ModRelation
2
+ class Engine < Rails::Engine
3
+ isolate_namespace ModRelation
4
+
5
+ # # https://github.com/rails/rails/issues/22261
6
+ # initializer :append_migrations do |app|
7
+ # config.paths['db/migrate'].expanded.each do |path|
8
+ # app.config.paths['db/migrate'] << path
9
+ # ActiveRecord::Migrator.migrations_paths << path
10
+ # end
11
+ # end
12
+
13
+ end
14
+ end
15
+
16
+
17
+ # # https://github.com/rails/rails/issues/22261
18
+ # module ActiveRecord
19
+ # #module ActiveRecord::Current
20
+ # class Schema < Migration
21
+ # def migrations_paths
22
+ # (ActiveRecord::Migrator.migrations_paths + Rails.application.paths['db/migrate'].to_a).uniq
23
+ # end
24
+ # end
25
+ # end
@@ -1,3 +1,3 @@
1
1
  module ModRelation
2
- VERSION = '0.2.2'
2
+ VERSION = '0.2.3'
3
3
  end
data/lib/relation.rb CHANGED
@@ -1,4 +1,4 @@
1
- module ModRelation
2
- class Engine < Rails::Engine
3
- end
4
- end
1
+ require 'relation/engine.rb'
2
+ require 'models/relation.rb'
3
+ require 'models/relation_ext.rb'
4
+ require 'models/dangling.rb'
data/relation.gemspec CHANGED
@@ -20,7 +20,7 @@ Gem::Specification.new do |s|
20
20
  s.files = `git ls-files`.split("\n")
21
21
  s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
22
22
  s.test_files = `git ls-files -- {test,features}/*`.split("\n")
23
- s.require_paths = ['lib']
23
+ s.require_paths = ['lib', 'app']
24
24
 
25
25
  s.add_dependency 'activerecord'
26
26
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: relation
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.2
4
+ version: 0.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dittmar Krall
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-04-27 00:00:00.000000000 Z
11
+ date: 2018-05-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord
@@ -136,6 +136,7 @@ files:
136
136
  - gemfiles/rails_5.1.gemfile
137
137
  - gemfiles/rails_5.2.gemfile
138
138
  - lib/relation.rb
139
+ - lib/relation/engine.rb
139
140
  - lib/relation/version.rb
140
141
  - relation.gemspec
141
142
  - test/dangling_test.rb
@@ -151,6 +152,7 @@ post_install_message:
151
152
  rdoc_options: []
152
153
  require_paths:
153
154
  - lib
155
+ - app
154
156
  required_ruby_version: !ruby/object:Gem::Requirement
155
157
  requirements:
156
158
  - - ">="