edge_rider 0.2.2 → 0.2.3
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +0 -2
- data/Rakefile +1 -1
- data/edge_rider.gemspec +1 -1
- data/lib/edge_rider/to_sql.rb +1 -1
- data/lib/edge_rider/util.rb +5 -1
- data/lib/edge_rider/version.rb +1 -1
- data/spec/rails-2.3/Gemfile +1 -1
- data/spec/rails-2.3/Gemfile.lock +66 -0
- data/spec/rails-3.0/Gemfile +1 -1
- data/spec/rails-3.0/Gemfile.lock +120 -0
- data/spec/rails-3.2/Gemfile +1 -1
- data/spec/rails-3.2/Gemfile.lock +135 -0
- metadata +8 -5
data/.gitignore
CHANGED
data/Rakefile
CHANGED
data/edge_rider.gemspec
CHANGED
data/lib/edge_rider/to_sql.rb
CHANGED
data/lib/edge_rider/util.rb
CHANGED
@@ -15,7 +15,7 @@ module EdgeRider
|
|
15
15
|
end
|
16
16
|
|
17
17
|
def exclusive_query(model, conditions)
|
18
|
-
if
|
18
|
+
if activerecord2?
|
19
19
|
model.send(:with_exclusive_scope) do
|
20
20
|
model.scoped(:conditions => conditions)
|
21
21
|
end
|
@@ -28,5 +28,9 @@ module EdgeRider
|
|
28
28
|
object.respond_to?(:scoped)
|
29
29
|
end
|
30
30
|
|
31
|
+
def activerecord2?
|
32
|
+
ActiveRecord::VERSION::MAJOR < 3
|
33
|
+
end
|
34
|
+
|
31
35
|
end
|
32
36
|
end
|
data/lib/edge_rider/version.rb
CHANGED
data/spec/rails-2.3/Gemfile
CHANGED
@@ -7,7 +7,7 @@ gem 'mysql2', '~>0.2.0'
|
|
7
7
|
gem 'ruby-debug', :platforms => :ruby_18
|
8
8
|
gem 'test-unit', '~>1.2', :platforms => :ruby_19
|
9
9
|
gem 'hoe', '=2.8.0', :platforms => :ruby_19
|
10
|
-
gem 'database_cleaner'
|
10
|
+
gem 'database_cleaner', '=1.0.1'
|
11
11
|
gem 'andand'
|
12
12
|
gem 'has_defaults'
|
13
13
|
|
@@ -0,0 +1,66 @@
|
|
1
|
+
PATH
|
2
|
+
remote: ../..
|
3
|
+
specs:
|
4
|
+
edge_rider (0.2.2)
|
5
|
+
activerecord
|
6
|
+
|
7
|
+
GEM
|
8
|
+
remote: http://rubygems.org/
|
9
|
+
specs:
|
10
|
+
actionmailer (2.3.18)
|
11
|
+
actionpack (= 2.3.18)
|
12
|
+
actionpack (2.3.18)
|
13
|
+
activesupport (= 2.3.18)
|
14
|
+
rack (~> 1.1.0)
|
15
|
+
activerecord (2.3.18)
|
16
|
+
activesupport (= 2.3.18)
|
17
|
+
activeresource (2.3.18)
|
18
|
+
activesupport (= 2.3.18)
|
19
|
+
activesupport (2.3.18)
|
20
|
+
andand (1.3.3)
|
21
|
+
columnize (0.3.6)
|
22
|
+
database_cleaner (1.0.1)
|
23
|
+
has_defaults (0.4.1)
|
24
|
+
activerecord
|
25
|
+
hoe (2.8.0)
|
26
|
+
rake (>= 0.8.7)
|
27
|
+
linecache (0.46)
|
28
|
+
rbx-require-relative (> 0.0.4)
|
29
|
+
mysql2 (0.2.20)
|
30
|
+
rack (1.1.6)
|
31
|
+
rails (2.3.18)
|
32
|
+
actionmailer (= 2.3.18)
|
33
|
+
actionpack (= 2.3.18)
|
34
|
+
activerecord (= 2.3.18)
|
35
|
+
activeresource (= 2.3.18)
|
36
|
+
activesupport (= 2.3.18)
|
37
|
+
rake (>= 0.8.3)
|
38
|
+
rake (10.1.0)
|
39
|
+
rbx-require-relative (0.0.9)
|
40
|
+
rspec (1.3.2)
|
41
|
+
rspec-rails (1.3.4)
|
42
|
+
rack (>= 1.0.0)
|
43
|
+
rspec (~> 1.3.1)
|
44
|
+
ruby-debug (0.10.4)
|
45
|
+
columnize (>= 0.1)
|
46
|
+
ruby-debug-base (~> 0.10.4.0)
|
47
|
+
ruby-debug-base (0.10.4)
|
48
|
+
linecache (>= 0.3)
|
49
|
+
test-unit (1.2.3)
|
50
|
+
hoe (>= 1.5.1)
|
51
|
+
|
52
|
+
PLATFORMS
|
53
|
+
ruby
|
54
|
+
|
55
|
+
DEPENDENCIES
|
56
|
+
andand
|
57
|
+
database_cleaner (= 1.0.1)
|
58
|
+
edge_rider!
|
59
|
+
has_defaults
|
60
|
+
hoe (= 2.8.0)
|
61
|
+
mysql2 (~> 0.2.0)
|
62
|
+
rails (~> 2.3)
|
63
|
+
rspec (~> 1.3)
|
64
|
+
rspec-rails (~> 1.3)
|
65
|
+
ruby-debug
|
66
|
+
test-unit (~> 1.2)
|
data/spec/rails-3.0/Gemfile
CHANGED
@@ -0,0 +1,120 @@
|
|
1
|
+
PATH
|
2
|
+
remote: ../..
|
3
|
+
specs:
|
4
|
+
edge_rider (0.2.2)
|
5
|
+
activerecord
|
6
|
+
|
7
|
+
GEM
|
8
|
+
remote: http://rubygems.org/
|
9
|
+
specs:
|
10
|
+
abstract (1.0.0)
|
11
|
+
actionmailer (3.0.20)
|
12
|
+
actionpack (= 3.0.20)
|
13
|
+
mail (~> 2.2.19)
|
14
|
+
actionpack (3.0.20)
|
15
|
+
activemodel (= 3.0.20)
|
16
|
+
activesupport (= 3.0.20)
|
17
|
+
builder (~> 2.1.2)
|
18
|
+
erubis (~> 2.6.6)
|
19
|
+
i18n (~> 0.5.0)
|
20
|
+
rack (~> 1.2.5)
|
21
|
+
rack-mount (~> 0.6.14)
|
22
|
+
rack-test (~> 0.5.7)
|
23
|
+
tzinfo (~> 0.3.23)
|
24
|
+
activemodel (3.0.20)
|
25
|
+
activesupport (= 3.0.20)
|
26
|
+
builder (~> 2.1.2)
|
27
|
+
i18n (~> 0.5.0)
|
28
|
+
activerecord (3.0.20)
|
29
|
+
activemodel (= 3.0.20)
|
30
|
+
activesupport (= 3.0.20)
|
31
|
+
arel (~> 2.0.10)
|
32
|
+
tzinfo (~> 0.3.23)
|
33
|
+
activeresource (3.0.20)
|
34
|
+
activemodel (= 3.0.20)
|
35
|
+
activesupport (= 3.0.20)
|
36
|
+
activesupport (3.0.20)
|
37
|
+
andand (1.3.3)
|
38
|
+
arel (2.0.10)
|
39
|
+
builder (2.1.2)
|
40
|
+
columnize (0.3.6)
|
41
|
+
database_cleaner (1.0.1)
|
42
|
+
diff-lcs (1.2.4)
|
43
|
+
erubis (2.6.6)
|
44
|
+
abstract (>= 1.0.0)
|
45
|
+
has_defaults (0.4.1)
|
46
|
+
activerecord
|
47
|
+
i18n (0.5.0)
|
48
|
+
json (1.8.0)
|
49
|
+
linecache (0.46)
|
50
|
+
rbx-require-relative (> 0.0.4)
|
51
|
+
mail (2.2.20)
|
52
|
+
activesupport (>= 2.3.6)
|
53
|
+
i18n (>= 0.4.0)
|
54
|
+
mime-types (~> 1.16)
|
55
|
+
treetop (~> 1.4.8)
|
56
|
+
mime-types (1.25)
|
57
|
+
mysql2 (0.2.20)
|
58
|
+
polyglot (0.3.3)
|
59
|
+
rack (1.2.8)
|
60
|
+
rack-mount (0.6.14)
|
61
|
+
rack (>= 1.0.0)
|
62
|
+
rack-test (0.5.7)
|
63
|
+
rack (>= 1.0)
|
64
|
+
rails (3.0.20)
|
65
|
+
actionmailer (= 3.0.20)
|
66
|
+
actionpack (= 3.0.20)
|
67
|
+
activerecord (= 3.0.20)
|
68
|
+
activeresource (= 3.0.20)
|
69
|
+
activesupport (= 3.0.20)
|
70
|
+
bundler (~> 1.0)
|
71
|
+
railties (= 3.0.20)
|
72
|
+
railties (3.0.20)
|
73
|
+
actionpack (= 3.0.20)
|
74
|
+
activesupport (= 3.0.20)
|
75
|
+
rake (>= 0.8.7)
|
76
|
+
rdoc (~> 3.4)
|
77
|
+
thor (~> 0.14.4)
|
78
|
+
rake (10.1.0)
|
79
|
+
rbx-require-relative (0.0.9)
|
80
|
+
rdoc (3.12.2)
|
81
|
+
json (~> 1.4)
|
82
|
+
rspec (2.14.1)
|
83
|
+
rspec-core (~> 2.14.0)
|
84
|
+
rspec-expectations (~> 2.14.0)
|
85
|
+
rspec-mocks (~> 2.14.0)
|
86
|
+
rspec-core (2.14.5)
|
87
|
+
rspec-expectations (2.14.2)
|
88
|
+
diff-lcs (>= 1.1.3, < 2.0)
|
89
|
+
rspec-mocks (2.14.3)
|
90
|
+
rspec-rails (2.14.0)
|
91
|
+
actionpack (>= 3.0)
|
92
|
+
activesupport (>= 3.0)
|
93
|
+
railties (>= 3.0)
|
94
|
+
rspec-core (~> 2.14.0)
|
95
|
+
rspec-expectations (~> 2.14.0)
|
96
|
+
rspec-mocks (~> 2.14.0)
|
97
|
+
ruby-debug (0.10.4)
|
98
|
+
columnize (>= 0.1)
|
99
|
+
ruby-debug-base (~> 0.10.4.0)
|
100
|
+
ruby-debug-base (0.10.4)
|
101
|
+
linecache (>= 0.3)
|
102
|
+
thor (0.14.6)
|
103
|
+
treetop (1.4.15)
|
104
|
+
polyglot
|
105
|
+
polyglot (>= 0.3.1)
|
106
|
+
tzinfo (0.3.37)
|
107
|
+
|
108
|
+
PLATFORMS
|
109
|
+
ruby
|
110
|
+
|
111
|
+
DEPENDENCIES
|
112
|
+
andand
|
113
|
+
database_cleaner (= 1.0.1)
|
114
|
+
edge_rider!
|
115
|
+
has_defaults
|
116
|
+
mysql2 (~> 0.2.0)
|
117
|
+
rails (~> 3.0.17)
|
118
|
+
rspec
|
119
|
+
rspec-rails
|
120
|
+
ruby-debug
|
data/spec/rails-3.2/Gemfile
CHANGED
@@ -0,0 +1,135 @@
|
|
1
|
+
PATH
|
2
|
+
remote: ../..
|
3
|
+
specs:
|
4
|
+
edge_rider (0.2.2)
|
5
|
+
activerecord
|
6
|
+
|
7
|
+
GEM
|
8
|
+
remote: http://rubygems.org/
|
9
|
+
specs:
|
10
|
+
actionmailer (3.2.14)
|
11
|
+
actionpack (= 3.2.14)
|
12
|
+
mail (~> 2.5.4)
|
13
|
+
actionpack (3.2.14)
|
14
|
+
activemodel (= 3.2.14)
|
15
|
+
activesupport (= 3.2.14)
|
16
|
+
builder (~> 3.0.0)
|
17
|
+
erubis (~> 2.7.0)
|
18
|
+
journey (~> 1.0.4)
|
19
|
+
rack (~> 1.4.5)
|
20
|
+
rack-cache (~> 1.2)
|
21
|
+
rack-test (~> 0.6.1)
|
22
|
+
sprockets (~> 2.2.1)
|
23
|
+
activemodel (3.2.14)
|
24
|
+
activesupport (= 3.2.14)
|
25
|
+
builder (~> 3.0.0)
|
26
|
+
activerecord (3.2.14)
|
27
|
+
activemodel (= 3.2.14)
|
28
|
+
activesupport (= 3.2.14)
|
29
|
+
arel (~> 3.0.2)
|
30
|
+
tzinfo (~> 0.3.29)
|
31
|
+
activeresource (3.2.14)
|
32
|
+
activemodel (= 3.2.14)
|
33
|
+
activesupport (= 3.2.14)
|
34
|
+
activesupport (3.2.14)
|
35
|
+
i18n (~> 0.6, >= 0.6.4)
|
36
|
+
multi_json (~> 1.0)
|
37
|
+
andand (1.3.3)
|
38
|
+
arel (3.0.2)
|
39
|
+
builder (3.0.4)
|
40
|
+
columnize (0.3.6)
|
41
|
+
database_cleaner (1.0.1)
|
42
|
+
diff-lcs (1.2.4)
|
43
|
+
erubis (2.7.0)
|
44
|
+
has_defaults (0.4.1)
|
45
|
+
activerecord
|
46
|
+
hike (1.2.3)
|
47
|
+
i18n (0.6.5)
|
48
|
+
journey (1.0.4)
|
49
|
+
json (1.8.0)
|
50
|
+
linecache (0.46)
|
51
|
+
rbx-require-relative (> 0.0.4)
|
52
|
+
mail (2.5.4)
|
53
|
+
mime-types (~> 1.16)
|
54
|
+
treetop (~> 1.4.8)
|
55
|
+
mime-types (1.25)
|
56
|
+
multi_json (1.8.0)
|
57
|
+
mysql2 (0.3.13)
|
58
|
+
polyglot (0.3.3)
|
59
|
+
rack (1.4.5)
|
60
|
+
rack-cache (1.2)
|
61
|
+
rack (>= 0.4)
|
62
|
+
rack-ssl (1.3.3)
|
63
|
+
rack
|
64
|
+
rack-test (0.6.2)
|
65
|
+
rack (>= 1.0)
|
66
|
+
rails (3.2.14)
|
67
|
+
actionmailer (= 3.2.14)
|
68
|
+
actionpack (= 3.2.14)
|
69
|
+
activerecord (= 3.2.14)
|
70
|
+
activeresource (= 3.2.14)
|
71
|
+
activesupport (= 3.2.14)
|
72
|
+
bundler (~> 1.0)
|
73
|
+
railties (= 3.2.14)
|
74
|
+
railties (3.2.14)
|
75
|
+
actionpack (= 3.2.14)
|
76
|
+
activesupport (= 3.2.14)
|
77
|
+
rack-ssl (~> 1.3.2)
|
78
|
+
rake (>= 0.8.7)
|
79
|
+
rdoc (~> 3.4)
|
80
|
+
thor (>= 0.14.6, < 2.0)
|
81
|
+
rake (10.1.0)
|
82
|
+
rbx-require-relative (0.0.9)
|
83
|
+
rdoc (3.12.2)
|
84
|
+
json (~> 1.4)
|
85
|
+
rspec (2.14.1)
|
86
|
+
rspec-core (~> 2.14.0)
|
87
|
+
rspec-expectations (~> 2.14.0)
|
88
|
+
rspec-mocks (~> 2.14.0)
|
89
|
+
rspec-core (2.14.5)
|
90
|
+
rspec-expectations (2.14.2)
|
91
|
+
diff-lcs (>= 1.1.3, < 2.0)
|
92
|
+
rspec-mocks (2.14.3)
|
93
|
+
rspec-rails (2.14.0)
|
94
|
+
actionpack (>= 3.0)
|
95
|
+
activesupport (>= 3.0)
|
96
|
+
railties (>= 3.0)
|
97
|
+
rspec-core (~> 2.14.0)
|
98
|
+
rspec-expectations (~> 2.14.0)
|
99
|
+
rspec-mocks (~> 2.14.0)
|
100
|
+
rspec_candy (0.3.0)
|
101
|
+
rspec
|
102
|
+
sneaky-save
|
103
|
+
ruby-debug (0.10.4)
|
104
|
+
columnize (>= 0.1)
|
105
|
+
ruby-debug-base (~> 0.10.4.0)
|
106
|
+
ruby-debug-base (0.10.4)
|
107
|
+
linecache (>= 0.3)
|
108
|
+
sneaky-save (0.0.4)
|
109
|
+
activerecord (>= 3.2.0)
|
110
|
+
sprockets (2.2.2)
|
111
|
+
hike (~> 1.2)
|
112
|
+
multi_json (~> 1.0)
|
113
|
+
rack (~> 1.0)
|
114
|
+
tilt (~> 1.1, != 1.3.0)
|
115
|
+
thor (0.18.1)
|
116
|
+
tilt (1.4.1)
|
117
|
+
treetop (1.4.15)
|
118
|
+
polyglot
|
119
|
+
polyglot (>= 0.3.1)
|
120
|
+
tzinfo (0.3.37)
|
121
|
+
|
122
|
+
PLATFORMS
|
123
|
+
ruby
|
124
|
+
|
125
|
+
DEPENDENCIES
|
126
|
+
andand
|
127
|
+
database_cleaner (= 1.0.1)
|
128
|
+
edge_rider!
|
129
|
+
has_defaults
|
130
|
+
mysql2
|
131
|
+
rails (~> 3.2.0)
|
132
|
+
rspec
|
133
|
+
rspec-rails
|
134
|
+
rspec_candy
|
135
|
+
ruby-debug
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: edge_rider
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 17
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 2
|
9
|
-
-
|
10
|
-
version: 0.2.
|
9
|
+
- 3
|
10
|
+
version: 0.2.3
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Henning Koch
|
@@ -15,11 +15,11 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2013-
|
18
|
+
date: 2013-09-17 00:00:00 +02:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|
22
|
-
name:
|
22
|
+
name: activerecord
|
23
23
|
prerelease: false
|
24
24
|
requirement: &id001 !ruby/object:Gem::Requirement
|
25
25
|
none: false
|
@@ -59,6 +59,7 @@ files:
|
|
59
59
|
- lib/edge_rider/util.rb
|
60
60
|
- lib/edge_rider/version.rb
|
61
61
|
- spec/rails-2.3/Gemfile
|
62
|
+
- spec/rails-2.3/Gemfile.lock
|
62
63
|
- spec/rails-2.3/Rakefile
|
63
64
|
- spec/rails-2.3/app_root/config/boot.rb
|
64
65
|
- spec/rails-2.3/app_root/config/environment.rb
|
@@ -72,6 +73,7 @@ files:
|
|
72
73
|
- spec/rails-2.3/spec/spec_helper.rb
|
73
74
|
- spec/rails-3.0/.rspec
|
74
75
|
- spec/rails-3.0/Gemfile
|
76
|
+
- spec/rails-3.0/Gemfile.lock
|
75
77
|
- spec/rails-3.0/Rakefile
|
76
78
|
- spec/rails-3.0/app_root/.gitignore
|
77
79
|
- spec/rails-3.0/app_root/config/application.rb
|
@@ -91,6 +93,7 @@ files:
|
|
91
93
|
- spec/rails-3.0/spec/spec_helper.rb
|
92
94
|
- spec/rails-3.2/.rspec
|
93
95
|
- spec/rails-3.2/Gemfile
|
96
|
+
- spec/rails-3.2/Gemfile.lock
|
94
97
|
- spec/rails-3.2/Rakefile
|
95
98
|
- spec/rails-3.2/app_root/.gitignore
|
96
99
|
- spec/rails-3.2/app_root/config/application.rb
|