otr-activerecord 2.1.0 → 2.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +4 -4
- data/lib/otr-activerecord/middleware/query_cache.rb +1 -1
- data/lib/otr-activerecord/version.rb +1 -1
- data/lib/tasks/otr-activerecord.rake +2 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5bba8a2d0b0e6457e6a29edb8e90ca1bc8cfce01300d42426a535a4d9d4f39f9
|
4
|
+
data.tar.gz: d913ef80cc6f071e8d791be70135ca2b17e69c25846198fa77df9bd5b13b0c8c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
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
|
|
@@ -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.
|
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.
|
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
|
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!'
|