secondbase 2.1.4 → 2.1.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: a3c0154843d09220b2d1fb0e823d46f5f8cbd600
4
- data.tar.gz: e41e248774443c45da704427bac5e025980df2af
3
+ metadata.gz: b25c7d8a0d9a09b96a96ccce592db10205f4700d
4
+ data.tar.gz: 055a9e547eea47ed1b1d02381fbf1aa4b772d00a
5
5
  SHA512:
6
- metadata.gz: 06eb76f4c0f728e4976c126a4be35533fd2a26f10e13c348e9e2549681f3ac9b8766574f2a089289d312b53a5b05283751f050b2cd4825ad79ad6677e79776a5
7
- data.tar.gz: 32fec882c3c3f9e67bbf29bd22550954dcd0b889dab6579cb1f56bc14e234e57fb5262cdcfb538b73f48b62d23cd516c5f836c7212edde6939068717fb0fd4d7
6
+ metadata.gz: b662f3dbdf9c973a7fa03a907a42f1eeb407f8d42ce4c9d39b8624e297c856f65f5c4826ece08ba070508624fd6d744720a0873c86533a0113823912dbed2f37
7
+ data.tar.gz: 41f0556d4ab3166f35e9e2ac4fc3ed830a3868e5322d74d9ba3fa06aeb8e15a9307e85dca8bace25ebc14e90f8980e077229836c7b803be65b87a72a4a1c8b47
@@ -2,6 +2,11 @@
2
2
 
3
3
  Please follow the format set down in http://keepachangelog.com
4
4
 
5
+ ## v2.1.5
6
+
7
+ * Allow custom db paths to work. Fixes #51 #52. Thanks @MrJoy.
8
+
9
+
5
10
  ## v2.1.4
6
11
 
7
12
  * Rails v5.1 support.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 2.1.4
1
+ 2.1.5
@@ -15,7 +15,11 @@ module SecondBase
15
15
  include(Module.new{
16
16
 
17
17
  def migration_template(*args)
18
- args[1].sub! 'db/migrate', "#{Railtie.config_path}/migrate" if args[1]
18
+ path = Pathname
19
+ .new(Rails.application.config.paths['db/migrate'].first)
20
+ .relative_path_from(Rails.root)
21
+ .to_s
22
+ args[1].sub! path, "#{Railtie.config_path}/migrate" if args[1]
19
23
  super(*args)
20
24
  end
21
25
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: secondbase
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.4
4
+ version: 2.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Karle Durante
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2017-07-11 00:00:00.000000000 Z
13
+ date: 2017-10-04 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rails
@@ -200,7 +200,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
200
200
  version: '0'
201
201
  requirements: []
202
202
  rubyforge_project:
203
- rubygems_version: 2.6.4
203
+ rubygems_version: 2.6.8
204
204
  signing_key:
205
205
  specification_version: 4
206
206
  summary: Seamless second database integration for Rails.