otr-activerecord 1.2.0 → 1.2.1

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: d21068ea4d5b57521b6a58b5e82fead4459af52d
4
- data.tar.gz: af88049e9de1eb7a674f037692b6d054595296df
3
+ metadata.gz: 1d5c0bd4d40d0ae0f8255b5acf83f8fb5d410034
4
+ data.tar.gz: 50689209fb2ebc5feade74a3782becff16346b51
5
5
  SHA512:
6
- metadata.gz: 9720b38bc16c62ef4c42505546ceb22e66dc52f279deda50822c0a3fd150fed096d70bf71a16b51c4674271af7bd08e4ceb3796af8cbe6c54e046de7ebe0a16f
7
- data.tar.gz: b8ee5520931b32f65021fb490e57a15d9e339185a1e8a53c9a4695aa6f1da09a21e8026017ec02edcf7bc62ad44c98de404ac654dc4b0d4f94a9c4dc473fdb12
6
+ metadata.gz: 6cc9621583c89e1ef4512c7f07c06890ec8647965fab7816698c3bacf6c2b89ab6d1f8fec99f36b61e306af3db2218e42c9020b5d631f6ba4d2c0c13655cc216
7
+ data.tar.gz: 7430024ed6875b846f6990be38fb4da84782bce3cc2e78a8f98aefa2bb99993edfee9ac50701e003725daa3c2ef67e2f1137e5270a0a4f374787d155a41bb675
@@ -25,6 +25,11 @@ module OTR
25
25
  def migration_base_class_name
26
26
  'ActiveRecord::Migration'
27
27
  end
28
+
29
+ # Force RACK_ENV/RAILS_ENV to be 'test' when running any db:test:* tasks
30
+ def force_db_test_env?
31
+ true
32
+ end
28
33
  end
29
34
  end
30
35
  end
@@ -25,6 +25,11 @@ module OTR
25
25
  def migration_base_class_name
26
26
  'ActiveRecord::Migration[5.0]'
27
27
  end
28
+
29
+ # Force RACK_ENV/RAILS_ENV to be 'test' when running any db:test:* tasks
30
+ def force_db_test_env?
31
+ false
32
+ end
28
33
  end
29
34
  end
30
35
  end
@@ -1,6 +1,6 @@
1
1
  module OTR
2
2
  module ActiveRecord
3
3
  # Gem version
4
- VERSION = '1.2.0'
4
+ VERSION = '1.2.1'
5
5
  end
6
6
  end
@@ -53,7 +53,7 @@ namespace :db do
53
53
  task :environment do
54
54
  ENV['RACK_ENV'] = 'test'
55
55
  end
56
- end
56
+ end if OTR::ActiveRecord._normalizer.force_db_test_env?
57
57
 
58
58
  desc "Create a migration"
59
59
  task :create_migration, [:name] do |_, args|
metadata CHANGED
@@ -1,47 +1,47 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: otr-activerecord
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.0
4
+ version: 1.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jordan Hollinger
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-08-24 00:00:00.000000000 Z
11
+ date: 2017-02-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ">="
17
+ - - '>='
18
18
  - !ruby/object:Gem::Version
19
19
  version: '4.0'
20
- - - "<"
20
+ - - <
21
21
  - !ruby/object:Gem::Version
22
22
  version: '5.1'
23
23
  type: :runtime
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
26
26
  requirements:
27
- - - ">="
27
+ - - '>='
28
28
  - !ruby/object:Gem::Version
29
29
  version: '4.0'
30
- - - "<"
30
+ - - <
31
31
  - !ruby/object:Gem::Version
32
32
  version: '5.1'
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: hashie-forbidden_attributes
35
35
  requirement: !ruby/object:Gem::Requirement
36
36
  requirements:
37
- - - "~>"
37
+ - - ~>
38
38
  - !ruby/object:Gem::Version
39
39
  version: '0.1'
40
40
  type: :runtime
41
41
  prerelease: false
42
42
  version_requirements: !ruby/object:Gem::Requirement
43
43
  requirements:
44
- - - "~>"
44
+ - - ~>
45
45
  - !ruby/object:Gem::Version
46
46
  version: '0.1'
47
47
  description: 'Off The Rails ActiveRecord: Use ActiveRecord with Grape, Sinatra, Rack,
@@ -51,16 +51,16 @@ executables: []
51
51
  extensions: []
52
52
  extra_rdoc_files: []
53
53
  files:
54
- - LICENSE
55
- - README.md
56
- - lib/otr-activerecord.rb
57
54
  - lib/otr-activerecord/activerecord.rb
58
55
  - lib/otr-activerecord/compatibility_4.rb
59
56
  - lib/otr-activerecord/compatibility_5.rb
60
57
  - lib/otr-activerecord/defaults.rb
61
58
  - lib/otr-activerecord/middleware/connection_management.rb
62
59
  - lib/otr-activerecord/version.rb
60
+ - lib/otr-activerecord.rb
63
61
  - lib/tasks/otr-activerecord.rake
62
+ - README.md
63
+ - LICENSE
64
64
  homepage: https://github.com/jhollinger/otr-activerecord
65
65
  licenses:
66
66
  - MIT
@@ -71,19 +71,18 @@ require_paths:
71
71
  - lib
72
72
  required_ruby_version: !ruby/object:Gem::Requirement
73
73
  requirements:
74
- - - ">="
74
+ - - '>='
75
75
  - !ruby/object:Gem::Version
76
76
  version: 2.1.0
77
77
  required_rubygems_version: !ruby/object:Gem::Requirement
78
78
  requirements:
79
- - - ">="
79
+ - - '>='
80
80
  - !ruby/object:Gem::Version
81
81
  version: '0'
82
82
  requirements: []
83
83
  rubyforge_project:
84
- rubygems_version: 2.4.5.1
84
+ rubygems_version: 2.0.14.1
85
85
  signing_key:
86
86
  specification_version: 4
87
87
  summary: 'Off The Rails: Use ActiveRecord with Grape, Sinatra, Rack, or anything else!'
88
88
  test_files: []
89
- has_rdoc: