otr-activerecord 2.1.1 → 2.2.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: 618d9bd8f7eefebc0dec7d8edab50f3467d67960f0d45f6af2f6b9269c891326
4
- data.tar.gz: defdc1b651311d6223c93372c12414c8aa959bfe2bff5c6e2f9ccfefb8742b2a
3
+ metadata.gz: 813027ace691548c8f6c14dc025a3fbd2d55fbef0d5d3bbb54882292d4c96ea7
4
+ data.tar.gz: 50e233490ac4b9eec80546280d9761d8d771cf70dc43e92d06aabe2a5ab5db79
5
5
  SHA512:
6
- metadata.gz: ed724376e924c950216a0af6be220026eae7827771f956b823a3a5a87cde337382c417c10959a47e257a6a810f86f43104c1808abdfda26bd4237e0b19ec2ab2
7
- data.tar.gz: 7b139648c7f47ff52dd6888c6bf9027d4c56d1ca8f5a6549eaa42ae48d6b9ed31ec10b2d9e5029f228b8c21824fca8910b38cac7c627bcfa2a21a9b6855c52a4
6
+ metadata.gz: 7947804eaa585a81abb55783b89448026c76ae83b2c199d7680cb6116232b1fe79816c6cafc504b85bc4fecc5972cbd7c29f7c993d3f050273f3858155410434
7
+ data.tar.gz: 6dc69872eab940e8bc0b0bd3ecd918d1a4a3c3da58350c98b0a4cdfc9f6f72fa75ce8ad3144b1c929618c7b603cc1bca297d022f88c212efc5e1fd478ea1a618
data/README.md CHANGED
@@ -1,11 +1,11 @@
1
1
  # otr-activerecord
2
2
 
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:
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
- * ActiveRecord 7.0.0.alpha2 (new AR features, like encryption, not tested)
6
- * ActiveRecord 6
7
- * ActiveRecord 5
8
- * ActiveRecord 4
5
+ * ActiveRecord 7.0 (new AR features, like encryption, not tested)
6
+ * ActiveRecord 6.x
7
+ * ActiveRecord 5.x
8
+ * ActiveRecord 4.2
9
9
 
10
10
  ## How to use
11
11
 
@@ -1,6 +1,6 @@
1
1
  module OTR
2
2
  module ActiveRecord
3
3
  # Gem version
4
- VERSION = '2.1.1'
4
+ VERSION = '2.2.0'
5
5
  end
6
6
  end
@@ -60,7 +60,8 @@ namespace :db do
60
60
  name, version = args[:name], Time.now.utc.strftime("%Y%m%d%H%M%S")
61
61
 
62
62
  OTR::ActiveRecord._normalizer.migrations_paths.each do |directory|
63
- next unless File.exists?(directory)
63
+ next unless File.exist?(directory)
64
+
64
65
  migration_files = Pathname(directory).children
65
66
  if duplicate = migration_files.find { |path| path.basename.to_s.include?(name) }
66
67
  abort "Another migration is already named \"#{name}\": #{duplicate}."
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: otr-activerecord
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.1
4
+ version: 2.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jordan Hollinger
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-01-30 00:00:00.000000000 Z
11
+ date: 2023-10-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord
@@ -19,7 +19,7 @@ dependencies:
19
19
  version: '4.0'
20
20
  - - "<"
21
21
  - !ruby/object:Gem::Version
22
- version: '7.1'
22
+ version: '7.2'
23
23
  type: :runtime
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
@@ -29,7 +29,7 @@ dependencies:
29
29
  version: '4.0'
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
- version: '7.1'
32
+ version: '7.2'
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: hashie-forbidden_attributes
35
35
  requirement: !ruby/object:Gem::Requirement