pacecar 1.5.3 → 2.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (87) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +2 -0
  3. data/.travis.yml +9 -1
  4. data/Appraisals +9 -17
  5. data/Gemfile +1 -1
  6. data/Gemfile.lock +93 -108
  7. data/MIT-LICENSE +1 -1
  8. data/README.md +10 -109
  9. data/Rakefile +9 -5
  10. data/TESTING.md +40 -0
  11. data/gemfiles/rails_4_mysql2_driver.gemfile +8 -0
  12. data/gemfiles/rails_4_pg_driver.gemfile +8 -0
  13. data/gemfiles/rails_4_sqlite3_driver.gemfile +8 -0
  14. data/lib/pacecar.rb +0 -10
  15. data/lib/pacecar/boolean.rb +8 -20
  16. data/lib/pacecar/helpers.rb +7 -16
  17. data/lib/pacecar/limit.rb +9 -9
  18. data/lib/pacecar/order.rb +9 -9
  19. data/lib/pacecar/polymorph.rb +5 -5
  20. data/lib/pacecar/presence.rb +8 -9
  21. data/lib/pacecar/search.rb +8 -32
  22. data/lib/pacecar/state.rb +13 -9
  23. data/lib/pacecar/version.rb +1 -1
  24. data/pacecar.gemspec +18 -16
  25. data/spec/boolean_spec.rb +6 -18
  26. data/spec/dummy/app/models/mammal.rb +1 -1
  27. data/spec/dummy/app/models/post.rb +2 -2
  28. data/spec/dummy/app/models/user.rb +1 -6
  29. data/spec/dummy/bin/bundle +3 -0
  30. data/spec/dummy/bin/rails +4 -0
  31. data/spec/dummy/bin/rake +4 -0
  32. data/spec/dummy/config/application.rb +4 -26
  33. data/spec/dummy/config/boot.rb +3 -9
  34. data/spec/dummy/config/database.yml +1 -7
  35. data/spec/dummy/config/environment.rb +2 -2
  36. data/spec/dummy/config/environments/development.rb +15 -12
  37. data/spec/dummy/config/environments/production.rb +57 -26
  38. data/spec/dummy/config/environments/test.rb +16 -15
  39. data/spec/dummy/config/initializers/filter_parameter_logging.rb +4 -0
  40. data/spec/dummy/config/initializers/inflections.rb +9 -3
  41. data/spec/dummy/config/initializers/secret_token.rb +7 -2
  42. data/spec/dummy/config/initializers/session_store.rb +1 -6
  43. data/spec/dummy/config/initializers/wrap_parameters.rb +14 -0
  44. data/spec/dummy/config/locales/en.yml +20 -2
  45. data/spec/dummy/config/routes.rb +22 -24
  46. data/spec/factories.rb +2 -2
  47. data/spec/helpers_spec.rb +18 -26
  48. data/spec/integration/navigation_spec.rb +4 -5
  49. data/spec/limit_spec.rb +11 -11
  50. data/spec/order_spec.rb +8 -8
  51. data/spec/pacecar_spec.rb +3 -3
  52. data/spec/polymorph_spec.rb +6 -6
  53. data/spec/presence_spec.rb +9 -9
  54. data/spec/search_spec.rb +14 -48
  55. data/spec/spec_helper.rb +11 -17
  56. data/spec/state_spec.rb +29 -29
  57. metadata +76 -70
  58. data/gemfiles/rails-3.0.11-database-mysql.gemfile +0 -8
  59. data/gemfiles/rails-3.0.11-database-mysql.gemfile.lock +0 -134
  60. data/gemfiles/rails-3.0.11-database-mysql2.gemfile +0 -8
  61. data/gemfiles/rails-3.0.11-database-mysql2.gemfile.lock +0 -134
  62. data/gemfiles/rails-3.0.11-database-pg.gemfile +0 -8
  63. data/gemfiles/rails-3.0.11-database-pg.gemfile.lock +0 -134
  64. data/gemfiles/rails-3.0.11-database-sqlite3-ruby.gemfile +0 -8
  65. data/gemfiles/rails-3.0.11-database-sqlite3-ruby.gemfile.lock +0 -136
  66. data/gemfiles/rails-3.0.11-database-sqlite3.gemfile +0 -8
  67. data/gemfiles/rails-3.0.11-database-sqlite3.gemfile.lock +0 -134
  68. data/gemfiles/rails-3.1.3-database-mysql.gemfile +0 -8
  69. data/gemfiles/rails-3.1.3-database-mysql.gemfile.lock +0 -144
  70. data/gemfiles/rails-3.1.3-database-mysql2.gemfile +0 -8
  71. data/gemfiles/rails-3.1.3-database-mysql2.gemfile.lock +0 -144
  72. data/gemfiles/rails-3.1.3-database-pg.gemfile +0 -8
  73. data/gemfiles/rails-3.1.3-database-pg.gemfile.lock +0 -144
  74. data/gemfiles/rails-3.1.3-database-sqlite3-ruby.gemfile +0 -8
  75. data/gemfiles/rails-3.1.3-database-sqlite3-ruby.gemfile.lock +0 -146
  76. data/gemfiles/rails-3.1.3-database-sqlite3.gemfile +0 -8
  77. data/gemfiles/rails-3.1.3-database-sqlite3.gemfile.lock +0 -144
  78. data/lib/pacecar/associations.rb +0 -39
  79. data/lib/pacecar/datetime.rb +0 -91
  80. data/lib/pacecar/duration.rb +0 -51
  81. data/lib/pacecar/numeric.rb +0 -29
  82. data/lib/pacecar/ranking.rb +0 -53
  83. data/spec/associations_spec.rb +0 -32
  84. data/spec/datetime_spec.rb +0 -92
  85. data/spec/duration_spec.rb +0 -22
  86. data/spec/numeric_spec.rb +0 -43
  87. data/spec/ranking_spec.rb +0 -63
@@ -1,8 +0,0 @@
1
- # This file was generated by Appraisal
2
-
3
- source "http://rubygems.org"
4
-
5
- gem "rails", "3.1.3"
6
- gem "mysql"
7
-
8
- gemspec :path=>"../"
@@ -1,144 +0,0 @@
1
- PATH
2
- remote: /Users/mjankowski/Development/opensource/pacecar
3
- specs:
4
- pacecar (1.5.2)
5
-
6
- GEM
7
- remote: http://rubygems.org/
8
- specs:
9
- actionmailer (3.1.3)
10
- actionpack (= 3.1.3)
11
- mail (~> 2.3.0)
12
- actionpack (3.1.3)
13
- activemodel (= 3.1.3)
14
- activesupport (= 3.1.3)
15
- builder (~> 3.0.0)
16
- erubis (~> 2.7.0)
17
- i18n (~> 0.6)
18
- rack (~> 1.3.5)
19
- rack-cache (~> 1.1)
20
- rack-mount (~> 0.8.2)
21
- rack-test (~> 0.6.1)
22
- sprockets (~> 2.0.3)
23
- activemodel (3.1.3)
24
- activesupport (= 3.1.3)
25
- builder (~> 3.0.0)
26
- i18n (~> 0.6)
27
- activerecord (3.1.3)
28
- activemodel (= 3.1.3)
29
- activesupport (= 3.1.3)
30
- arel (~> 2.2.1)
31
- tzinfo (~> 0.3.29)
32
- activeresource (3.1.3)
33
- activemodel (= 3.1.3)
34
- activesupport (= 3.1.3)
35
- activesupport (3.1.3)
36
- multi_json (~> 1.0)
37
- appraisal (0.4.0)
38
- bundler
39
- rake
40
- arel (2.2.1)
41
- builder (3.0.0)
42
- capybara (1.1.2)
43
- mime-types (>= 1.16)
44
- nokogiri (>= 1.3.3)
45
- rack (>= 1.0.0)
46
- rack-test (>= 0.5.4)
47
- selenium-webdriver (~> 2.0)
48
- xpath (~> 0.1.4)
49
- childprocess (0.2.6)
50
- ffi (~> 1.0.6)
51
- diff-lcs (1.1.3)
52
- erubis (2.7.0)
53
- factory_girl (2.3.2)
54
- activesupport
55
- factory_girl_rails (1.4.0)
56
- factory_girl (~> 2.3.0)
57
- railties (>= 3.0.0)
58
- ffi (1.0.11)
59
- hike (1.2.1)
60
- i18n (0.6.0)
61
- json (1.6.4)
62
- mail (2.3.0)
63
- i18n (>= 0.4.0)
64
- mime-types (~> 1.16)
65
- treetop (~> 1.4.8)
66
- metaclass (0.0.1)
67
- mime-types (1.17.2)
68
- mocha (0.10.0)
69
- metaclass (~> 0.0.1)
70
- multi_json (1.0.4)
71
- mysql (2.8.1)
72
- nokogiri (1.5.0)
73
- polyglot (0.3.3)
74
- rack (1.3.6)
75
- rack-cache (1.1)
76
- rack (>= 0.4)
77
- rack-mount (0.8.3)
78
- rack (>= 1.0.0)
79
- rack-ssl (1.3.2)
80
- rack
81
- rack-test (0.6.1)
82
- rack (>= 1.0)
83
- rails (3.1.3)
84
- actionmailer (= 3.1.3)
85
- actionpack (= 3.1.3)
86
- activerecord (= 3.1.3)
87
- activeresource (= 3.1.3)
88
- activesupport (= 3.1.3)
89
- bundler (~> 1.0)
90
- railties (= 3.1.3)
91
- railties (3.1.3)
92
- actionpack (= 3.1.3)
93
- activesupport (= 3.1.3)
94
- rack-ssl (~> 1.3.2)
95
- rake (>= 0.8.7)
96
- rdoc (~> 3.4)
97
- thor (~> 0.14.6)
98
- rake (0.9.2.2)
99
- rdoc (3.12)
100
- json (~> 1.4)
101
- rspec (2.8.0)
102
- rspec-core (~> 2.8.0)
103
- rspec-expectations (~> 2.8.0)
104
- rspec-mocks (~> 2.8.0)
105
- rspec-core (2.8.0)
106
- rspec-expectations (2.8.0)
107
- diff-lcs (~> 1.1.2)
108
- rspec-mocks (2.8.0)
109
- rspec-rails (2.8.1)
110
- actionpack (>= 3.0)
111
- activesupport (>= 3.0)
112
- railties (>= 3.0)
113
- rspec (~> 2.8.0)
114
- rubyzip (0.9.5)
115
- selenium-webdriver (2.16.0)
116
- childprocess (>= 0.2.5)
117
- ffi (~> 1.0.9)
118
- multi_json (~> 1.0.4)
119
- rubyzip
120
- sprockets (2.0.3)
121
- hike (~> 1.2)
122
- rack (~> 1.0)
123
- tilt (~> 1.1, != 1.3.0)
124
- thor (0.14.6)
125
- tilt (1.3.3)
126
- treetop (1.4.10)
127
- polyglot
128
- polyglot (>= 0.3.1)
129
- tzinfo (0.3.31)
130
- xpath (0.1.4)
131
- nokogiri (~> 1.3)
132
-
133
- PLATFORMS
134
- ruby
135
-
136
- DEPENDENCIES
137
- appraisal (~> 0.4)
138
- capybara (>= 0.4.0)
139
- factory_girl_rails
140
- mocha
141
- mysql
142
- pacecar!
143
- rails (= 3.1.3)
144
- rspec-rails (>= 2.4.0)
@@ -1,8 +0,0 @@
1
- # This file was generated by Appraisal
2
-
3
- source "http://rubygems.org"
4
-
5
- gem "rails", "3.1.3"
6
- gem "mysql2", "0.3.7"
7
-
8
- gemspec :path=>"../"
@@ -1,144 +0,0 @@
1
- PATH
2
- remote: /Users/mjankowski/Development/opensource/pacecar
3
- specs:
4
- pacecar (1.5.2)
5
-
6
- GEM
7
- remote: http://rubygems.org/
8
- specs:
9
- actionmailer (3.1.3)
10
- actionpack (= 3.1.3)
11
- mail (~> 2.3.0)
12
- actionpack (3.1.3)
13
- activemodel (= 3.1.3)
14
- activesupport (= 3.1.3)
15
- builder (~> 3.0.0)
16
- erubis (~> 2.7.0)
17
- i18n (~> 0.6)
18
- rack (~> 1.3.5)
19
- rack-cache (~> 1.1)
20
- rack-mount (~> 0.8.2)
21
- rack-test (~> 0.6.1)
22
- sprockets (~> 2.0.3)
23
- activemodel (3.1.3)
24
- activesupport (= 3.1.3)
25
- builder (~> 3.0.0)
26
- i18n (~> 0.6)
27
- activerecord (3.1.3)
28
- activemodel (= 3.1.3)
29
- activesupport (= 3.1.3)
30
- arel (~> 2.2.1)
31
- tzinfo (~> 0.3.29)
32
- activeresource (3.1.3)
33
- activemodel (= 3.1.3)
34
- activesupport (= 3.1.3)
35
- activesupport (3.1.3)
36
- multi_json (~> 1.0)
37
- appraisal (0.4.0)
38
- bundler
39
- rake
40
- arel (2.2.1)
41
- builder (3.0.0)
42
- capybara (1.1.2)
43
- mime-types (>= 1.16)
44
- nokogiri (>= 1.3.3)
45
- rack (>= 1.0.0)
46
- rack-test (>= 0.5.4)
47
- selenium-webdriver (~> 2.0)
48
- xpath (~> 0.1.4)
49
- childprocess (0.2.6)
50
- ffi (~> 1.0.6)
51
- diff-lcs (1.1.3)
52
- erubis (2.7.0)
53
- factory_girl (2.3.2)
54
- activesupport
55
- factory_girl_rails (1.4.0)
56
- factory_girl (~> 2.3.0)
57
- railties (>= 3.0.0)
58
- ffi (1.0.11)
59
- hike (1.2.1)
60
- i18n (0.6.0)
61
- json (1.6.4)
62
- mail (2.3.0)
63
- i18n (>= 0.4.0)
64
- mime-types (~> 1.16)
65
- treetop (~> 1.4.8)
66
- metaclass (0.0.1)
67
- mime-types (1.17.2)
68
- mocha (0.10.0)
69
- metaclass (~> 0.0.1)
70
- multi_json (1.0.4)
71
- mysql2 (0.3.7)
72
- nokogiri (1.5.0)
73
- polyglot (0.3.3)
74
- rack (1.3.6)
75
- rack-cache (1.1)
76
- rack (>= 0.4)
77
- rack-mount (0.8.3)
78
- rack (>= 1.0.0)
79
- rack-ssl (1.3.2)
80
- rack
81
- rack-test (0.6.1)
82
- rack (>= 1.0)
83
- rails (3.1.3)
84
- actionmailer (= 3.1.3)
85
- actionpack (= 3.1.3)
86
- activerecord (= 3.1.3)
87
- activeresource (= 3.1.3)
88
- activesupport (= 3.1.3)
89
- bundler (~> 1.0)
90
- railties (= 3.1.3)
91
- railties (3.1.3)
92
- actionpack (= 3.1.3)
93
- activesupport (= 3.1.3)
94
- rack-ssl (~> 1.3.2)
95
- rake (>= 0.8.7)
96
- rdoc (~> 3.4)
97
- thor (~> 0.14.6)
98
- rake (0.9.2.2)
99
- rdoc (3.12)
100
- json (~> 1.4)
101
- rspec (2.8.0)
102
- rspec-core (~> 2.8.0)
103
- rspec-expectations (~> 2.8.0)
104
- rspec-mocks (~> 2.8.0)
105
- rspec-core (2.8.0)
106
- rspec-expectations (2.8.0)
107
- diff-lcs (~> 1.1.2)
108
- rspec-mocks (2.8.0)
109
- rspec-rails (2.8.1)
110
- actionpack (>= 3.0)
111
- activesupport (>= 3.0)
112
- railties (>= 3.0)
113
- rspec (~> 2.8.0)
114
- rubyzip (0.9.5)
115
- selenium-webdriver (2.16.0)
116
- childprocess (>= 0.2.5)
117
- ffi (~> 1.0.9)
118
- multi_json (~> 1.0.4)
119
- rubyzip
120
- sprockets (2.0.3)
121
- hike (~> 1.2)
122
- rack (~> 1.0)
123
- tilt (~> 1.1, != 1.3.0)
124
- thor (0.14.6)
125
- tilt (1.3.3)
126
- treetop (1.4.10)
127
- polyglot
128
- polyglot (>= 0.3.1)
129
- tzinfo (0.3.31)
130
- xpath (0.1.4)
131
- nokogiri (~> 1.3)
132
-
133
- PLATFORMS
134
- ruby
135
-
136
- DEPENDENCIES
137
- appraisal (~> 0.4)
138
- capybara (>= 0.4.0)
139
- factory_girl_rails
140
- mocha
141
- mysql2 (= 0.3.7)
142
- pacecar!
143
- rails (= 3.1.3)
144
- rspec-rails (>= 2.4.0)
@@ -1,8 +0,0 @@
1
- # This file was generated by Appraisal
2
-
3
- source "http://rubygems.org"
4
-
5
- gem "rails", "3.1.3"
6
- gem "pg"
7
-
8
- gemspec :path=>"../"
@@ -1,144 +0,0 @@
1
- PATH
2
- remote: /Users/mjankowski/Development/opensource/pacecar
3
- specs:
4
- pacecar (1.5.2)
5
-
6
- GEM
7
- remote: http://rubygems.org/
8
- specs:
9
- actionmailer (3.1.3)
10
- actionpack (= 3.1.3)
11
- mail (~> 2.3.0)
12
- actionpack (3.1.3)
13
- activemodel (= 3.1.3)
14
- activesupport (= 3.1.3)
15
- builder (~> 3.0.0)
16
- erubis (~> 2.7.0)
17
- i18n (~> 0.6)
18
- rack (~> 1.3.5)
19
- rack-cache (~> 1.1)
20
- rack-mount (~> 0.8.2)
21
- rack-test (~> 0.6.1)
22
- sprockets (~> 2.0.3)
23
- activemodel (3.1.3)
24
- activesupport (= 3.1.3)
25
- builder (~> 3.0.0)
26
- i18n (~> 0.6)
27
- activerecord (3.1.3)
28
- activemodel (= 3.1.3)
29
- activesupport (= 3.1.3)
30
- arel (~> 2.2.1)
31
- tzinfo (~> 0.3.29)
32
- activeresource (3.1.3)
33
- activemodel (= 3.1.3)
34
- activesupport (= 3.1.3)
35
- activesupport (3.1.3)
36
- multi_json (~> 1.0)
37
- appraisal (0.4.0)
38
- bundler
39
- rake
40
- arel (2.2.1)
41
- builder (3.0.0)
42
- capybara (1.1.2)
43
- mime-types (>= 1.16)
44
- nokogiri (>= 1.3.3)
45
- rack (>= 1.0.0)
46
- rack-test (>= 0.5.4)
47
- selenium-webdriver (~> 2.0)
48
- xpath (~> 0.1.4)
49
- childprocess (0.2.6)
50
- ffi (~> 1.0.6)
51
- diff-lcs (1.1.3)
52
- erubis (2.7.0)
53
- factory_girl (2.3.2)
54
- activesupport
55
- factory_girl_rails (1.4.0)
56
- factory_girl (~> 2.3.0)
57
- railties (>= 3.0.0)
58
- ffi (1.0.11)
59
- hike (1.2.1)
60
- i18n (0.6.0)
61
- json (1.6.4)
62
- mail (2.3.0)
63
- i18n (>= 0.4.0)
64
- mime-types (~> 1.16)
65
- treetop (~> 1.4.8)
66
- metaclass (0.0.1)
67
- mime-types (1.17.2)
68
- mocha (0.10.0)
69
- metaclass (~> 0.0.1)
70
- multi_json (1.0.4)
71
- nokogiri (1.5.0)
72
- pg (0.12.2)
73
- polyglot (0.3.3)
74
- rack (1.3.6)
75
- rack-cache (1.1)
76
- rack (>= 0.4)
77
- rack-mount (0.8.3)
78
- rack (>= 1.0.0)
79
- rack-ssl (1.3.2)
80
- rack
81
- rack-test (0.6.1)
82
- rack (>= 1.0)
83
- rails (3.1.3)
84
- actionmailer (= 3.1.3)
85
- actionpack (= 3.1.3)
86
- activerecord (= 3.1.3)
87
- activeresource (= 3.1.3)
88
- activesupport (= 3.1.3)
89
- bundler (~> 1.0)
90
- railties (= 3.1.3)
91
- railties (3.1.3)
92
- actionpack (= 3.1.3)
93
- activesupport (= 3.1.3)
94
- rack-ssl (~> 1.3.2)
95
- rake (>= 0.8.7)
96
- rdoc (~> 3.4)
97
- thor (~> 0.14.6)
98
- rake (0.9.2.2)
99
- rdoc (3.12)
100
- json (~> 1.4)
101
- rspec (2.8.0)
102
- rspec-core (~> 2.8.0)
103
- rspec-expectations (~> 2.8.0)
104
- rspec-mocks (~> 2.8.0)
105
- rspec-core (2.8.0)
106
- rspec-expectations (2.8.0)
107
- diff-lcs (~> 1.1.2)
108
- rspec-mocks (2.8.0)
109
- rspec-rails (2.8.1)
110
- actionpack (>= 3.0)
111
- activesupport (>= 3.0)
112
- railties (>= 3.0)
113
- rspec (~> 2.8.0)
114
- rubyzip (0.9.5)
115
- selenium-webdriver (2.16.0)
116
- childprocess (>= 0.2.5)
117
- ffi (~> 1.0.9)
118
- multi_json (~> 1.0.4)
119
- rubyzip
120
- sprockets (2.0.3)
121
- hike (~> 1.2)
122
- rack (~> 1.0)
123
- tilt (~> 1.1, != 1.3.0)
124
- thor (0.14.6)
125
- tilt (1.3.3)
126
- treetop (1.4.10)
127
- polyglot
128
- polyglot (>= 0.3.1)
129
- tzinfo (0.3.31)
130
- xpath (0.1.4)
131
- nokogiri (~> 1.3)
132
-
133
- PLATFORMS
134
- ruby
135
-
136
- DEPENDENCIES
137
- appraisal (~> 0.4)
138
- capybara (>= 0.4.0)
139
- factory_girl_rails
140
- mocha
141
- pacecar!
142
- pg
143
- rails (= 3.1.3)
144
- rspec-rails (>= 2.4.0)