edge_rider 0.3.3 → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.travis.yml +28 -31
- data/CHANGELOG.md +18 -0
- data/{gemfiles/Gemfile.3.2.mysql2 → Gemfile.3.2.mysql2} +1 -1
- data/{gemfiles/Gemfile.3.2.mysql2.lock → Gemfile.3.2.mysql2.lock} +3 -3
- data/{gemfiles/Gemfile.4.2.mysql2 → Gemfile.4.2.mysql2} +1 -1
- data/{gemfiles/Gemfile.4.2.mysql2.lock → Gemfile.4.2.mysql2.lock} +3 -3
- data/{gemfiles/Gemfile.4.2.pg → Gemfile.4.2.pg} +1 -1
- data/{gemfiles/Gemfile.4.2.pg.lock → Gemfile.4.2.pg.lock} +3 -3
- data/{gemfiles/Gemfile.5.1.mysql2 → Gemfile.5.2.mysql2} +3 -2
- data/{gemfiles/Gemfile.5.1.mysql2.lock → Gemfile.5.2.mysql2.lock} +19 -17
- data/Gemfile.5.2.pg +16 -0
- data/{gemfiles/Gemfile.5.1.pg.lock → Gemfile.5.2.pg.lock} +19 -17
- data/{gemfiles/Gemfile.5.1.pg → Gemfile.6.0.pg} +2 -2
- data/Gemfile.6.0.pg.lock +64 -0
- data/README.md +21 -42
- data/Rakefile +1 -1
- data/lib/edge_rider.rb +0 -1
- data/lib/edge_rider/collect_column.rb +8 -15
- data/lib/edge_rider/origin_class.rb +2 -10
- data/lib/edge_rider/scoped.rb +1 -1
- data/lib/edge_rider/to_id_query.rb +1 -1
- data/lib/edge_rider/traverse_association.rb +2 -2
- data/lib/edge_rider/util.rb +8 -15
- data/lib/edge_rider/version.rb +1 -1
- data/spec/edge_rider/collect_column_spec.rb +21 -21
- data/spec/edge_rider/collect_ids_spec.rb +16 -16
- data/spec/edge_rider/origin_class_spec.rb +9 -9
- data/spec/edge_rider/preload_associations_spec.rb +3 -3
- data/spec/edge_rider/scoped_spec.rb +17 -19
- data/spec/edge_rider/to_id_query_spec.rb +12 -12
- data/spec/edge_rider/traverse_association_spec.rb +47 -53
- data/spec/support/database.rb +1 -1
- data/spec/support/models.rb +14 -18
- metadata +46 -69
- data/gemfiles/Gemfile.2.3.mysql2 +0 -16
- data/gemfiles/Gemfile.2.3.mysql2.lock +0 -37
- data/lib/edge_rider/to_sql.rb +0 -13
- data/spec/edge_rider/to_sql_spec.rb +0 -14
data/gemfiles/Gemfile.2.3.mysql2
DELETED
@@ -1,16 +0,0 @@
|
|
1
|
-
source 'https://rubygems.org'
|
2
|
-
|
3
|
-
# Runtime dependencies
|
4
|
-
gem 'activerecord', '=2.3.18'
|
5
|
-
gem 'mysql2', '= 0.2.20'
|
6
|
-
gem 'i18n', '=0.6.11' # 0.7 no longer builds for Ruby 1.8.7
|
7
|
-
|
8
|
-
# Development dependencies
|
9
|
-
gem 'rake', '=10.0.4'
|
10
|
-
gem 'database_cleaner'
|
11
|
-
gem 'rspec', '~> 1.3.0'
|
12
|
-
gem 'has_defaults' # used by test models
|
13
|
-
gem 'gemika', '>= 0.2.0'
|
14
|
-
|
15
|
-
# Gem under test
|
16
|
-
gem 'edge_rider', :path => '..'
|
@@ -1,37 +0,0 @@
|
|
1
|
-
PATH
|
2
|
-
remote: ..
|
3
|
-
specs:
|
4
|
-
edge_rider (0.3.2)
|
5
|
-
activerecord
|
6
|
-
|
7
|
-
GEM
|
8
|
-
remote: https://rubygems.org/
|
9
|
-
specs:
|
10
|
-
activerecord (2.3.18)
|
11
|
-
activesupport (= 2.3.18)
|
12
|
-
activesupport (2.3.18)
|
13
|
-
database_cleaner (1.0.1)
|
14
|
-
gemika (0.3.2)
|
15
|
-
has_defaults (0.4.4)
|
16
|
-
activerecord
|
17
|
-
i18n (0.6.11)
|
18
|
-
mysql2 (0.2.20)
|
19
|
-
rake (10.0.4)
|
20
|
-
rspec (1.3.2)
|
21
|
-
|
22
|
-
PLATFORMS
|
23
|
-
ruby
|
24
|
-
|
25
|
-
DEPENDENCIES
|
26
|
-
activerecord (= 2.3.18)
|
27
|
-
database_cleaner
|
28
|
-
edge_rider!
|
29
|
-
gemika (>= 0.2.0)
|
30
|
-
has_defaults
|
31
|
-
i18n (= 0.6.11)
|
32
|
-
mysql2 (= 0.2.20)
|
33
|
-
rake (= 10.0.4)
|
34
|
-
rspec (~> 1.3.0)
|
35
|
-
|
36
|
-
BUNDLED WITH
|
37
|
-
1.12.5
|
data/lib/edge_rider/to_sql.rb
DELETED
@@ -1,14 +0,0 @@
|
|
1
|
-
require 'spec_helper'
|
2
|
-
|
3
|
-
describe EdgeRider::ToSql do
|
4
|
-
|
5
|
-
describe '#to_sql' do
|
6
|
-
|
7
|
-
it "should return the SQL the scope would produce" do
|
8
|
-
scope = Forum.scoped(:conditions => { :name => 'Name' })
|
9
|
-
scope.to_sql.should =~ EdgeRider::Development.selects_star_with_conditions_pattern('forums', /["`]?forums["`]?\.["`]?name["`]? = 'Name'/)
|
10
|
-
end
|
11
|
-
|
12
|
-
end
|
13
|
-
|
14
|
-
end
|