sinatra-activerecord 1.2.3 → 1.2.4

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
  SHA1:
3
- metadata.gz: df482d4502c4ec453c920973b1d320b52bf73004
4
- data.tar.gz: 71444319646733beec15f7870d705f032ed8f8fe
3
+ metadata.gz: fb6bb762052f286de1a24fcddd4e6899e1bcec96
4
+ data.tar.gz: c22579b606e123b71110e89fc948c070922d0039
5
5
  SHA512:
6
- metadata.gz: aaf20aefd61ec304017921ac7b7fc596ee21cfaf8000a2f8d252d0e7301613fa450f59f1c0138f80dc98fdb272dc3e12025b23c1c04e2221e81512413e1c4e1b
7
- data.tar.gz: 60f09420981822a3c263d6c8cd39fd3a60077846266b62ad3897c446d09e4850d5fa1a2c5968cfaec9f96b0499136a3c7b22babb7da13f29e7a1c5eee43f44cd
6
+ metadata.gz: 58a5d30c15d9707bd808bf76e9718f36a002e10a0323ec6ec8e047c07261b0a16ab1785f90cafa84c77dc8b3b4f2e4fe24bf2360ffc9206d117873cc1b39569b
7
+ data.tar.gz: 975a25f661dabc6e0db69d89cc6b123b1eb1ab9407db608d44369b28bae3add4a57b64339c0942a529ac1eaf436c1846fd76462d10f096788cf36ea7de9af189
data/README.md CHANGED
@@ -50,6 +50,8 @@ $ rake -T
50
50
  rake db:create_migration # create an ActiveRecord migration
51
51
  rake db:migrate # migrate the database (use version with VERSION=n)
52
52
  rake db:rollback # roll back the migration (use steps with STEP=n)
53
+ rake db:schema:dump # dump schema into file
54
+ rake db:schema:load # load schema into database
53
55
  ```
54
56
 
55
57
  And that's it, you're all set :)
@@ -47,7 +47,7 @@ module Sinatra
47
47
  def self.registered(app)
48
48
  app.set :activerecord_logger, Logger.new(STDOUT)
49
49
  app.set :database_spec, ENV['DATABASE_URL']
50
- app.set :database_file, "config/database.yml"
50
+ app.set :database_file, "#{Dir.pwd}/config/database.yml"
51
51
  app.database if app.database_spec
52
52
  app.helpers ActiveRecordHelper
53
53
 
@@ -17,10 +17,7 @@ module Sinatra
17
17
  File.open(migration_file, 'w') do |file|
18
18
  file.write <<-MIGRATION.strip_heredoc
19
19
  class #{migration_class} < ActiveRecord::Migration
20
- def up
21
- end
22
-
23
- def down
20
+ def change
24
21
  end
25
22
  end
26
23
  MIGRATION
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: 1.2.3
4
+ version: 1.2.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Blake Mizerany
@@ -9,76 +9,76 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-06-26 00:00:00.000000000 Z
12
+ date: 2014-01-26 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: sinatra
16
16
  requirement: !ruby/object:Gem::Requirement
17
17
  requirements:
18
- - - ~>
18
+ - - "~>"
19
19
  - !ruby/object:Gem::Version
20
20
  version: '1.0'
21
21
  type: :runtime
22
22
  prerelease: false
23
23
  version_requirements: !ruby/object:Gem::Requirement
24
24
  requirements:
25
- - - ~>
25
+ - - "~>"
26
26
  - !ruby/object:Gem::Version
27
27
  version: '1.0'
28
28
  - !ruby/object:Gem::Dependency
29
29
  name: activerecord
30
30
  requirement: !ruby/object:Gem::Requirement
31
31
  requirements:
32
- - - '>='
32
+ - - ">="
33
33
  - !ruby/object:Gem::Version
34
34
  version: '3.0'
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
41
  version: '3.0'
42
42
  - !ruby/object:Gem::Dependency
43
43
  name: rake
44
44
  requirement: !ruby/object:Gem::Requirement
45
45
  requirements:
46
- - - '>='
46
+ - - ">="
47
47
  - !ruby/object:Gem::Version
48
48
  version: '0'
49
49
  type: :development
50
50
  prerelease: false
51
51
  version_requirements: !ruby/object:Gem::Requirement
52
52
  requirements:
53
- - - '>='
53
+ - - ">="
54
54
  - !ruby/object:Gem::Version
55
55
  version: '0'
56
56
  - !ruby/object:Gem::Dependency
57
57
  name: rspec
58
58
  requirement: !ruby/object:Gem::Requirement
59
59
  requirements:
60
- - - '>='
60
+ - - ">="
61
61
  - !ruby/object:Gem::Version
62
62
  version: '2.10'
63
63
  type: :development
64
64
  prerelease: false
65
65
  version_requirements: !ruby/object:Gem::Requirement
66
66
  requirements:
67
- - - '>='
67
+ - - ">="
68
68
  - !ruby/object:Gem::Version
69
69
  version: '2.10'
70
70
  - !ruby/object:Gem::Dependency
71
71
  name: sqlite3
72
72
  requirement: !ruby/object:Gem::Requirement
73
73
  requirements:
74
- - - '>='
74
+ - - ">="
75
75
  - !ruby/object:Gem::Version
76
76
  version: '0'
77
77
  type: :development
78
78
  prerelease: false
79
79
  version_requirements: !ruby/object:Gem::Requirement
80
80
  requirements:
81
- - - '>='
81
+ - - ">="
82
82
  - !ruby/object:Gem::Version
83
83
  version: '0'
84
84
  description: Extends Sinatra with ActiveRecord helpers.
@@ -87,11 +87,11 @@ executables: []
87
87
  extensions: []
88
88
  extra_rdoc_files: []
89
89
  files:
90
+ - LICENSE
91
+ - README.md
92
+ - lib/sinatra/activerecord.rb
90
93
  - lib/sinatra/activerecord/rake.rb
91
94
  - lib/sinatra/activerecord/tasks.rake
92
- - lib/sinatra/activerecord.rb
93
- - README.md
94
- - LICENSE
95
95
  homepage: http://github.com/janko-m/sinatra-activerecord
96
96
  licenses:
97
97
  - MIT
@@ -102,17 +102,17 @@ require_paths:
102
102
  - lib
103
103
  required_ruby_version: !ruby/object:Gem::Requirement
104
104
  requirements:
105
- - - '>='
105
+ - - ">="
106
106
  - !ruby/object:Gem::Version
107
107
  version: 1.9.2
108
108
  required_rubygems_version: !ruby/object:Gem::Requirement
109
109
  requirements:
110
- - - '>='
110
+ - - ">="
111
111
  - !ruby/object:Gem::Version
112
112
  version: '0'
113
113
  requirements: []
114
114
  rubyforge_project:
115
- rubygems_version: 2.0.2
115
+ rubygems_version: 2.2.1
116
116
  signing_key:
117
117
  specification_version: 4
118
118
  summary: Extends Sinatra with ActiveRecord helpers.