pacecar 1.4.5 → 1.5.0
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile +11 -0
- data/README.md +2 -1
- data/Rakefile +31 -0
- data/lib/pacecar/helpers.rb +2 -2
- metadata +29 -42
data/Gemfile
ADDED
data/README.md
CHANGED
@@ -17,7 +17,7 @@ To get some subset (for example, only the state functionality), you can do somet
|
|
17
17
|
include Pacecar::State
|
18
18
|
end
|
19
19
|
|
20
|
-
Pacecar supports mysql, postgres and sqlite database drivers.
|
20
|
+
Pacecar supports mysql, postgres and sqlite database drivers, and is compatible with Rails 3.0.x and 3.1.x versions.
|
21
21
|
|
22
22
|
Installation
|
23
23
|
------------
|
@@ -259,6 +259,7 @@ Supported Databases
|
|
259
259
|
|
260
260
|
* MySQL
|
261
261
|
* SQLite
|
262
|
+
* Postgres
|
262
263
|
|
263
264
|
Credits
|
264
265
|
-------
|
data/Rakefile
ADDED
@@ -0,0 +1,31 @@
|
|
1
|
+
# encoding: UTF-8
|
2
|
+
require 'rubygems'
|
3
|
+
begin
|
4
|
+
require 'bundler/setup'
|
5
|
+
rescue LoadError
|
6
|
+
puts 'You must `gem install bundler` and `bundle install` to run rake tasks'
|
7
|
+
end
|
8
|
+
|
9
|
+
require 'rake'
|
10
|
+
require 'rdoc/task'
|
11
|
+
require 'appraisal'
|
12
|
+
|
13
|
+
require 'rspec/core'
|
14
|
+
require 'rspec/core/rake_task'
|
15
|
+
RSpec::Core::RakeTask.new(:spec)
|
16
|
+
|
17
|
+
desc "Default: run the unit tests."
|
18
|
+
task :default => [:all]
|
19
|
+
|
20
|
+
desc 'Test the plugin under all supported Rails versions.'
|
21
|
+
task :all => ["appraisal:install"] do |t|
|
22
|
+
exec('rake appraisal spec')
|
23
|
+
end
|
24
|
+
|
25
|
+
Rake::RDocTask.new(:rdoc) do |rdoc|
|
26
|
+
rdoc.rdoc_dir = 'rdoc'
|
27
|
+
rdoc.title = 'Pacecar'
|
28
|
+
rdoc.options << '--line-numbers' << '--inline-source'
|
29
|
+
rdoc.rdoc_files.include('README.rdoc')
|
30
|
+
rdoc.rdoc_files.include('lib/**/*.rb')
|
31
|
+
end
|
data/lib/pacecar/helpers.rb
CHANGED
@@ -48,13 +48,13 @@ module Pacecar
|
|
48
48
|
when 'MySQL'
|
49
49
|
begin
|
50
50
|
columns
|
51
|
-
rescue Mysql::Error
|
51
|
+
rescue Mysql::Error, ActiveRecord::StatementInvalid
|
52
52
|
Array.new
|
53
53
|
end
|
54
54
|
when 'Mysql2'
|
55
55
|
begin
|
56
56
|
columns
|
57
|
-
rescue Mysql2::Error
|
57
|
+
rescue Mysql2::Error, ActiveRecord::StatementInvalid
|
58
58
|
Array.new
|
59
59
|
end
|
60
60
|
when 'SQLite', 'PostgreSQL'
|
metadata
CHANGED
@@ -1,35 +1,26 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: pacecar
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
5
|
-
|
6
|
-
- 1
|
7
|
-
- 4
|
8
|
-
- 5
|
9
|
-
version: 1.4.5
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 1.5.0
|
5
|
+
prerelease:
|
10
6
|
platform: ruby
|
11
|
-
authors:
|
7
|
+
authors:
|
12
8
|
- Matt Jankowski
|
9
|
+
- Chad Pytel
|
10
|
+
- Ryan McGeary
|
11
|
+
- Mike Burns
|
12
|
+
- Tristan Dunn
|
13
13
|
autorequire:
|
14
14
|
bindir: bin
|
15
15
|
cert_chain: []
|
16
|
-
|
17
|
-
date: 2011-01-20 00:00:00 -05:00
|
18
|
-
default_executable:
|
16
|
+
date: 2011-09-04 00:00:00.000000000Z
|
19
17
|
dependencies: []
|
20
|
-
|
21
18
|
description: Generated scopes for ActiveRecord classes.
|
22
|
-
email:
|
19
|
+
email: support@thoughtbot.com
|
23
20
|
executables: []
|
24
|
-
|
25
21
|
extensions: []
|
26
|
-
|
27
22
|
extra_rdoc_files: []
|
28
|
-
|
29
|
-
files:
|
30
|
-
- init.rb
|
31
|
-
- README.md
|
32
|
-
- MIT-LICENSE
|
23
|
+
files:
|
33
24
|
- lib/pacecar/associations.rb
|
34
25
|
- lib/pacecar/boolean.rb
|
35
26
|
- lib/pacecar/datetime.rb
|
@@ -44,37 +35,33 @@ files:
|
|
44
35
|
- lib/pacecar/search.rb
|
45
36
|
- lib/pacecar/state.rb
|
46
37
|
- lib/pacecar.rb
|
47
|
-
|
38
|
+
- init.rb
|
39
|
+
- MIT-LICENSE
|
40
|
+
- Rakefile
|
41
|
+
- Gemfile
|
42
|
+
- README.md
|
48
43
|
homepage: http://github.com/thoughtbot/pacecar
|
49
44
|
licenses: []
|
50
|
-
|
51
45
|
post_install_message:
|
52
46
|
rdoc_options: []
|
53
|
-
|
54
|
-
require_paths:
|
47
|
+
require_paths:
|
55
48
|
- lib
|
56
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
49
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
57
50
|
none: false
|
58
|
-
requirements:
|
59
|
-
- -
|
60
|
-
- !ruby/object:Gem::Version
|
61
|
-
|
62
|
-
|
63
|
-
version: "0"
|
64
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - ! '>='
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0'
|
55
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
65
56
|
none: false
|
66
|
-
requirements:
|
67
|
-
- -
|
68
|
-
- !ruby/object:Gem::Version
|
69
|
-
|
70
|
-
- 0
|
71
|
-
version: "0"
|
57
|
+
requirements:
|
58
|
+
- - ! '>='
|
59
|
+
- !ruby/object:Gem::Version
|
60
|
+
version: '0'
|
72
61
|
requirements: []
|
73
|
-
|
74
62
|
rubyforge_project:
|
75
|
-
rubygems_version: 1.
|
63
|
+
rubygems_version: 1.8.10
|
76
64
|
signing_key:
|
77
65
|
specification_version: 3
|
78
66
|
summary: Pacecar adds scope methods to ActiveRecord classes via database column introspection.
|
79
67
|
test_files: []
|
80
|
-
|