otr-activerecord 2.1.0 → 2.1.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
  SHA256:
3
- metadata.gz: c5fb7d9741794ab39e2b6299431eea662dbb04990bc914d473c24f06a7f14473
4
- data.tar.gz: aa581f0798203212de9646c84cdbfc4f166edbb77e2cb44dc70093739c0686ab
3
+ metadata.gz: 5bba8a2d0b0e6457e6a29edb8e90ca1bc8cfce01300d42426a535a4d9d4f39f9
4
+ data.tar.gz: d913ef80cc6f071e8d791be70135ca2b17e69c25846198fa77df9bd5b13b0c8c
5
5
  SHA512:
6
- metadata.gz: 110b90321b69aaafb9bd1198801bf546ce9635a7ebb83d9a7b383c9b357a8c86277110ccf0195923c375b25daf054e58275a9abb4a17d0e760dac1995015724f
7
- data.tar.gz: a5b05b93b9205974f911cab1023330fd7b05603e46c033a171f5aaf3e7adc124327c401e699ed2daa535e815d21ab6c938c34d87140a5357f77d594bbd2d0173
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
 
@@ -7,7 +7,7 @@ module OTR
7
7
  def initialize(app)
8
8
  @handler = case ::ActiveRecord::VERSION::MAJOR
9
9
  when 4 then ::ActiveRecord::QueryCache.new(app)
10
- when 5, 6 then ActionDispatchHandler.new(app)
10
+ when 5, 6, 7 then ActionDispatchHandler.new(app)
11
11
  end
12
12
  end
13
13
 
@@ -1,6 +1,6 @@
1
1
  module OTR
2
2
  module ActiveRecord
3
3
  # Gem version
4
- VERSION = '2.1.0'
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.0
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!'