sinatra-activerecord 2.0.0.rc2 → 2.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +8 -0
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1d2fbc07c0f9935460a455c4d0185a42f4ad58f2
|
4
|
+
data.tar.gz: 3ecba535d8d83ac4bf2abcd4a2c2c30dff1c32a2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a92aaadbcedd03058ae6d7362bf20601ccb3082f73350375fa014aa693bdd762d3207124cc43d35cddba31c423f9e7507036a29e4c6afd8a61d518434f871bee
|
7
|
+
data.tar.gz: 05d38c9ead41262cd6a851688d9b3c0223fdf7c1c73c6d9a5fe481d2c0c6dca0c6afc81902415c9c221fc1da5390c8d065e1dca56c02428a4169f9771b643581
|
data/README.md
CHANGED
@@ -4,6 +4,12 @@ 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
|
+
## ActiveRecord 4.1
|
8
|
+
|
9
|
+
For ActiveRecord 4.1 use sinatra-activerecord `2.0.0.rc2`. I recommend upgrading
|
10
|
+
even if you don't use ActiveRecord 4.1, because it includes *all* the Rake tasks
|
11
|
+
that ActiveRecord has.
|
12
|
+
|
7
13
|
## Setup
|
8
14
|
|
9
15
|
Put it in your `Gemfile`, along with the adapter of your database. For
|
@@ -19,6 +25,7 @@ Now require it in your Sinatra application, and establish the database
|
|
19
25
|
connection:
|
20
26
|
|
21
27
|
```ruby
|
28
|
+
# app.rb
|
22
29
|
require "sinatra/activerecord"
|
23
30
|
|
24
31
|
set :database, "sqlite3:///foo.sqlite3"
|
@@ -39,6 +46,7 @@ end
|
|
39
46
|
Now require the rake tasks and your app in your `Rakefile`:
|
40
47
|
|
41
48
|
```ruby
|
49
|
+
# Rakefile
|
42
50
|
require "sinatra/activerecord/rake"
|
43
51
|
require "./app"
|
44
52
|
```
|
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.0
|
4
|
+
version: 2.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Blake Mizerany
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2014-04-
|
12
|
+
date: 2014-04-23 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: sinatra
|
@@ -123,9 +123,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
123
123
|
version: 1.9.2
|
124
124
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
125
125
|
requirements:
|
126
|
-
- - "
|
126
|
+
- - ">="
|
127
127
|
- !ruby/object:Gem::Version
|
128
|
-
version:
|
128
|
+
version: '0'
|
129
129
|
requirements: []
|
130
130
|
rubyforge_project:
|
131
131
|
rubygems_version: 2.2.2
|