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.
Files changed (39) hide show
  1. checksums.yaml +7 -0
  2. data/.travis.yml +28 -31
  3. data/CHANGELOG.md +18 -0
  4. data/{gemfiles/Gemfile.3.2.mysql2 → Gemfile.3.2.mysql2} +1 -1
  5. data/{gemfiles/Gemfile.3.2.mysql2.lock → Gemfile.3.2.mysql2.lock} +3 -3
  6. data/{gemfiles/Gemfile.4.2.mysql2 → Gemfile.4.2.mysql2} +1 -1
  7. data/{gemfiles/Gemfile.4.2.mysql2.lock → Gemfile.4.2.mysql2.lock} +3 -3
  8. data/{gemfiles/Gemfile.4.2.pg → Gemfile.4.2.pg} +1 -1
  9. data/{gemfiles/Gemfile.4.2.pg.lock → Gemfile.4.2.pg.lock} +3 -3
  10. data/{gemfiles/Gemfile.5.1.mysql2 → Gemfile.5.2.mysql2} +3 -2
  11. data/{gemfiles/Gemfile.5.1.mysql2.lock → Gemfile.5.2.mysql2.lock} +19 -17
  12. data/Gemfile.5.2.pg +16 -0
  13. data/{gemfiles/Gemfile.5.1.pg.lock → Gemfile.5.2.pg.lock} +19 -17
  14. data/{gemfiles/Gemfile.5.1.pg → Gemfile.6.0.pg} +2 -2
  15. data/Gemfile.6.0.pg.lock +64 -0
  16. data/README.md +21 -42
  17. data/Rakefile +1 -1
  18. data/lib/edge_rider.rb +0 -1
  19. data/lib/edge_rider/collect_column.rb +8 -15
  20. data/lib/edge_rider/origin_class.rb +2 -10
  21. data/lib/edge_rider/scoped.rb +1 -1
  22. data/lib/edge_rider/to_id_query.rb +1 -1
  23. data/lib/edge_rider/traverse_association.rb +2 -2
  24. data/lib/edge_rider/util.rb +8 -15
  25. data/lib/edge_rider/version.rb +1 -1
  26. data/spec/edge_rider/collect_column_spec.rb +21 -21
  27. data/spec/edge_rider/collect_ids_spec.rb +16 -16
  28. data/spec/edge_rider/origin_class_spec.rb +9 -9
  29. data/spec/edge_rider/preload_associations_spec.rb +3 -3
  30. data/spec/edge_rider/scoped_spec.rb +17 -19
  31. data/spec/edge_rider/to_id_query_spec.rb +12 -12
  32. data/spec/edge_rider/traverse_association_spec.rb +47 -53
  33. data/spec/support/database.rb +1 -1
  34. data/spec/support/models.rb +14 -18
  35. metadata +46 -69
  36. data/gemfiles/Gemfile.2.3.mysql2 +0 -16
  37. data/gemfiles/Gemfile.2.3.mysql2.lock +0 -37
  38. data/lib/edge_rider/to_sql.rb +0 -13
  39. data/spec/edge_rider/to_sql_spec.rb +0 -14
@@ -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
@@ -1,13 +0,0 @@
1
- module EdgeRider
2
- module ToSql
3
-
4
- def to_sql
5
- construct_finder_sql({})
6
- end
7
-
8
- if Util.activerecord2?
9
- ActiveRecord::Base.extend(self)
10
- end
11
-
12
- end
13
- end
@@ -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