kelredd-activerecord-sinatra 0.2.0 → 0.2.2

Sign up to get free protection for your applications and to get access to all the features.
data/README.rdoc CHANGED
@@ -6,15 +6,15 @@ A gem with some useful extensions for using Active Record with a sinatra app.
6
6
 
7
7
  == Installation
8
8
 
9
- sudo gem install activerecord-sinatra --source http://gems.github.com
9
+ sudo gem install kelredd-activerecord-sinatra --source http://gems.github.com
10
10
 
11
11
  == Usage
12
12
 
13
13
  (in main app file)
14
+ require 'rubygems'
14
15
  require 'activerecord_sinatra'
15
16
 
16
17
  (create a file config/database.yml, and put some typical active record configs in there)
17
- (if you create a file, models.rb, this gem will auto require it, so put some model defs in there)
18
18
 
19
19
  == License
20
20
 
@@ -1,6 +1,5 @@
1
1
  require 'sinatra/base'
2
2
  require 'activerecord'
3
- require File.join(Sinatra::Application.root,'models') if File.exists?(File.join(Sinatra::Application.root,'models'))
4
3
 
5
4
  module Sinatra
6
5
 
@@ -3,11 +3,11 @@ module ActiverecordSinatra
3
3
 
4
4
  MAJOR = 0
5
5
  MINOR = 2
6
- TINY = 0
6
+ TINY = 2
7
7
 
8
8
  def self.to_s # :nodoc:
9
9
  [MAJOR, MINOR, TINY].join('.')
10
10
  end
11
11
 
12
12
  end
13
- end
13
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kelredd-activerecord-sinatra
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kelredd