otr-activerecord 1.2.1 → 1.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1d5c0bd4d40d0ae0f8255b5acf83f8fb5d410034
4
- data.tar.gz: 50689209fb2ebc5feade74a3782becff16346b51
3
+ metadata.gz: 9edab34fb24651bc3c7bd322d72bbf6adf11ac30
4
+ data.tar.gz: 7a6e22c799380ff2adc4f3427f8257821f1de1c4
5
5
  SHA512:
6
- metadata.gz: 6cc9621583c89e1ef4512c7f07c06890ec8647965fab7816698c3bacf6c2b89ab6d1f8fec99f36b61e306af3db2218e42c9020b5d631f6ba4d2c0c13655cc216
7
- data.tar.gz: 7430024ed6875b846f6990be38fb4da84782bce3cc2e78a8f98aefa2bb99993edfee9ac50701e003725daa3c2ef67e2f1137e5270a0a4f374787d155a41bb675
6
+ metadata.gz: ef3a30b005c29e4f0c85041d111dfa9d9eb76296c14a044d9ad03406f381b199197981ae512bdf17f3ba3990c212ff2d6d97fd72d7003317bf1d372cf677bfab
7
+ data.tar.gz: 681f758818747691229080e0824097bb232e283036e3accb268191617767eea0ecc6192a2870884c773898f8a3c967317bff940e57a64db5fb3809dbf616ddff
data/README.md CHANGED
@@ -3,7 +3,7 @@
3
3
  An easy way to use ActiveRecord "off the rails." Works with Grape, Sinatra, plain old Rack, or even in a boring little script!. The defaults are all very Railsy (`config/database.yml`, `db/seeds.rb`, `db/migrate`, etc.), but you can easily change them. (Formerly known as `grape-activerecord`.) Supports:
4
4
 
5
5
  * ActiveRecord 4
6
- * ActiveRecord 5 (new, possibly buggy; PRs and Issues welcome!)
6
+ * ActiveRecord 5
7
7
 
8
8
  ## How to use
9
9
 
@@ -23,7 +23,8 @@ module OTR
23
23
 
24
24
  # Basename of migration classes
25
25
  def migration_base_class_name
26
- 'ActiveRecord::Migration[5.0]'
26
+ version = "5.#{ActiveRecord::VERSION::MINOR}"
27
+ "ActiveRecord::Migration[#{version}]"
27
28
  end
28
29
 
29
30
  # Force RACK_ENV/RAILS_ENV to be 'test' when running any db:test:* tasks
@@ -1,6 +1,6 @@
1
1
  module OTR
2
2
  module ActiveRecord
3
3
  # Gem version
4
- VERSION = '1.2.1'
4
+ VERSION = '1.2.2'
5
5
  end
6
6
  end
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.1
4
+ version: 1.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jordan Hollinger
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-02-11 00:00:00.000000000 Z
11
+ date: 2017-08-17 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
- version: '5.1'
22
+ version: '5.2'
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
- version: '5.1'
32
+ version: '5.2'
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
54
57
  - lib/otr-activerecord/activerecord.rb
55
58
  - lib/otr-activerecord/compatibility_4.rb
56
59
  - lib/otr-activerecord/compatibility_5.rb
57
60
  - lib/otr-activerecord/defaults.rb
58
61
  - lib/otr-activerecord/middleware/connection_management.rb
59
62
  - lib/otr-activerecord/version.rb
60
- - lib/otr-activerecord.rb
61
63
  - 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,17 +71,17 @@ 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.0.14.1
84
+ rubygems_version: 2.5.2
85
85
  signing_key:
86
86
  specification_version: 4
87
87
  summary: 'Off The Rails: Use ActiveRecord with Grape, Sinatra, Rack, or anything else!'