sinatra-activerecord 2.0.15 → 2.0.16
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 +4 -4
- data/README.md +5 -0
- data/lib/sinatra/activerecord/tasks.rake +3 -3
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 88ba7fc804c9d45c3761d20076e29736c09a7c052cdfbb511307b237e5219036
|
4
|
+
data.tar.gz: 3efec8a225c7fe78778e1765f4d7c2a122553c86e1de6dd2440e6a5984e10276
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f568c2dbf32e4b654ac95f1c045fe7db6ffd841e14377d29f12e3f461da857621e8417e1be7c6b88cefcfc78c1a04c463bceaeb0cccb4931b31ce048ef9878f9
|
7
|
+
data.tar.gz: dd0016fe5c627cbfdf9fddce90b387d9be9738731ee197d8e05e6ad8514faf78f2b61911e3c18d25564389cff89915a400a3a4fb9ea0bf129d7bc24d263f3dd6
|
data/README.md
CHANGED
@@ -4,6 +4,11 @@ Extends [Sinatra](http://www.sinatrarb.com/) with extension methods and Rake
|
|
4
4
|
tasks for dealing with an SQL database using the
|
5
5
|
[ActiveRecord ORM](https://github.com/rails/rails/tree/master/activerecord).
|
6
6
|
|
7
|
+

|
8
|
+
|
9
|
+
## Requirement
|
10
|
+
ActiveRecord >= 4.1
|
11
|
+
|
7
12
|
## Setup
|
8
13
|
|
9
14
|
Put it in your `Gemfile`, along with the adapter of your database. For
|
@@ -5,13 +5,13 @@ require "fileutils"
|
|
5
5
|
namespace :db do
|
6
6
|
desc "Create a migration (parameters: NAME, VERSION)"
|
7
7
|
task :create_migration do
|
8
|
-
unless ENV["NAME"]
|
8
|
+
unless ENV["NAME"] || ARGV[1]
|
9
9
|
puts "No NAME specified. Example usage: `rake db:create_migration NAME=create_users`"
|
10
10
|
exit
|
11
11
|
end
|
12
12
|
|
13
|
-
name = ENV["NAME"]
|
14
|
-
version = ENV["VERSION"] || Time.now.utc.strftime("%Y%m%d%H%M%S")
|
13
|
+
name = ENV["NAME"] || ARGV[1]
|
14
|
+
version = ENV["VERSION"] || ARGV[2] || Time.now.utc.strftime("%Y%m%d%H%M%S")
|
15
15
|
|
16
16
|
ActiveRecord::Migrator.migrations_paths.each do |directory|
|
17
17
|
next unless File.exist?(directory)
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sinatra-activerecord
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.
|
4
|
+
version: 2.0.16
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Blake Mizerany
|
@@ -31,14 +31,14 @@ dependencies:
|
|
31
31
|
requirements:
|
32
32
|
- - ">="
|
33
33
|
- !ruby/object:Gem::Version
|
34
|
-
version: '
|
34
|
+
version: '4.1'
|
35
35
|
type: :runtime
|
36
36
|
prerelease: false
|
37
37
|
version_requirements: !ruby/object:Gem::Requirement
|
38
38
|
requirements:
|
39
39
|
- - ">="
|
40
40
|
- !ruby/object:Gem::Version
|
41
|
-
version: '
|
41
|
+
version: '4.1'
|
42
42
|
- !ruby/object:Gem::Dependency
|
43
43
|
name: rake
|
44
44
|
requirement: !ruby/object:Gem::Requirement
|