mockley_crew 1.0.0 → 1.1.0

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: 993536215b5d2e4fe3a215e7b791fe4f7d270d88d4cabe27503ce96523baba24
4
- data.tar.gz: 3374d188f2a337e4346885e8a1e842ee5d7ef765aa9d03b27331f038bf0f2be4
3
+ metadata.gz: 4173d4ddccffb0981b09d0eb985b325ce33d709d81b62d4aa1b15c56a031c7bb
4
+ data.tar.gz: e9e79d0aef2f51aa426f2bd3bcf66cf1e53d490ea0e36326cb7ed49e1410d275
5
5
  SHA512:
6
- metadata.gz: f7d9014166b658fa57d7b32385f88bd064d709a58b0844d3886e76910727fd0966e3890ed61c096b514cd9222cb25cf5f97dd2f773e26f729c015b6158fcca53
7
- data.tar.gz: ebbb9d82dd74ace41203af0c67a8c81cae734beffa5e6d7d1488a900276852184cfeb65fecd2eff1b819607c7ec7aff29594bf01f65a87d2a3e20b9ab568d9dd
6
+ metadata.gz: 2c4f38e8a93aff0e42fdd407ca9590e23ba290215a4b3dcf8ccdcd4420228857a64f70fe3e3ff77bcf7cd30a208bb8a6e3e342ebce3bf159dc5fa13c431033f8
7
+ data.tar.gz: e3568a7ecff35c43207241dc9a571b0ba5214e04a7d057a330b8dbb2db9e1f094f95c88edb3bad75543566a615c6d967e240c8f38e770930b550834af7467036
@@ -49,4 +49,8 @@ module MockleyCrew
49
49
  def self.root
50
50
  File.expand_path '../..', __FILE__
51
51
  end
52
+
53
+ def self.activated?
54
+ ActiveRecord::Base.connection.instance_variable_get(:@config)[:database].split("/")[0..-2].join("/") == configuration.database_files_path.gsub(/\/$/, "")
55
+ end
52
56
  end
@@ -1,3 +1,3 @@
1
1
  module MockleyCrew
2
- VERSION = '1.0.0'
2
+ VERSION = '1.1.0'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mockley_crew
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ariel Schvartz
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-07-25 00:00:00.000000000 Z
11
+ date: 2018-07-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails