otr-activerecord 2.1.1 → 2.1.2

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: 5bba8a2d0b0e6457e6a29edb8e90ca1bc8cfce01300d42426a535a4d9d4f39f9
4
+ data.tar.gz: d913ef80cc6f071e8d791be70135ca2b17e69c25846198fa77df9bd5b13b0c8c
5
5
  SHA512:
6
- metadata.gz: ed724376e924c950216a0af6be220026eae7827771f956b823a3a5a87cde337382c417c10959a47e257a6a810f86f43104c1808abdfda26bd4237e0b19ec2ab2
7
- data.tar.gz: 7b139648c7f47ff52dd6888c6bf9027d4c56d1ca8f5a6549eaa42ae48d6b9ed31ec10b2d9e5029f228b8c21824fca8910b38cac7c627bcfa2a21a9b6855c52a4
6
+ metadata.gz: e68ec984724914545a1ab93ff725aad1419a7885dd6ae6ad6704c368a6a6e23e312e43a3d593dd871c8409af3d05f5ed3172b68a05e7dcd735c8d35f1c135525
7
+ data.tar.gz: c17889acf88ad3bbf0d91669d6f627631d3296a08ce6855ab2435b9120049277b9ee1792e167492643f4945ece6bdde95b97944693790ec0366b6c735611157e
data/README.md CHANGED
@@ -2,10 +2,10 @@
2
2
 
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
- * 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.1.2'
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,7 +1,7 @@
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.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jordan Hollinger
@@ -83,7 +83,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
83
83
  - !ruby/object:Gem::Version
84
84
  version: '0'
85
85
  requirements: []
86
- rubygems_version: 3.1.6
86
+ rubygems_version: 3.4.1
87
87
  signing_key:
88
88
  specification_version: 4
89
89
  summary: 'Off The Rails: Use ActiveRecord with Grape, Sinatra, Rack, or anything else!'