fake_arel 1.3.3 → 1.3.4

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile CHANGED
@@ -11,7 +11,8 @@ group :development do
11
11
  gem "jeweler", "~> 1.6.4"
12
12
  gem "rcov", ">= 0"
13
13
 
14
- gem 'debugger', :platform => :ruby_19
14
+ gem 'ruby-debug', :platform => :ruby_18
15
+ gem 'pry', :platform => :ruby_19
15
16
  gem 'rspec', '1.3.1'
16
17
  gem "sqlite3-ruby"
17
18
  end
@@ -4,22 +4,28 @@ GEM
4
4
  activerecord (2.3.11)
5
5
  activesupport (= 2.3.11)
6
6
  activesupport (2.3.11)
7
+ coderay (1.0.9)
7
8
  columnize (0.3.6)
8
- debugger (1.3.3)
9
- columnize (>= 0.3.1)
10
- debugger-linecache (~> 1.1.1)
11
- debugger-ruby_core_source (~> 1.2.0)
12
- debugger-linecache (1.1.2)
13
- debugger-ruby_core_source (>= 1.1.1)
14
- debugger-ruby_core_source (1.2.0)
15
9
  git (1.2.5)
16
10
  jeweler (1.6.4)
17
11
  bundler (~> 1.0)
18
12
  git (>= 1.2.5)
19
13
  rake
14
+ linecache (0.43)
15
+ method_source (0.8.2)
16
+ pry (0.9.12.2)
17
+ coderay (~> 1.0.5)
18
+ method_source (~> 0.8)
19
+ slop (~> 3.4)
20
20
  rake (0.9.2)
21
21
  rcov (0.9.9)
22
22
  rspec (1.3.1)
23
+ ruby-debug (0.10.4)
24
+ columnize (>= 0.1)
25
+ ruby-debug-base (~> 0.10.4.0)
26
+ ruby-debug-base (0.10.4)
27
+ linecache (>= 0.3)
28
+ slop (3.4.6)
23
29
  sqlite3 (1.3.3)
24
30
  sqlite3-ruby (1.3.3)
25
31
  sqlite3 (>= 1.3.3)
@@ -30,8 +36,9 @@ PLATFORMS
30
36
  DEPENDENCIES
31
37
  activerecord (~> 2.3.11)
32
38
  bundler
33
- debugger
34
39
  jeweler (~> 1.6.4)
40
+ pry
35
41
  rcov
36
42
  rspec (= 1.3.1)
43
+ ruby-debug
37
44
  sqlite3-ruby
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.3.3
1
+ 1.3.4
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{fake_arel}
8
- s.version = "1.3.3"
8
+ s.version = "1.3.4"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Grant Ammons"]
12
- s.date = %q{2013-09-11}
12
+ s.date = %q{2013-09-16}
13
13
  s.description = %q{fake_arel will simulate rails 3 arel syntax for Rails 2.}
14
14
  s.email = %q{grant@pipelinedealsco.com}
15
15
  s.extra_rdoc_files = [
@@ -62,7 +62,8 @@ Gem::Specification.new do |s|
62
62
  s.add_development_dependency(%q<bundler>, [">= 0"])
63
63
  s.add_development_dependency(%q<jeweler>, ["~> 1.6.4"])
64
64
  s.add_development_dependency(%q<rcov>, [">= 0"])
65
- s.add_development_dependency(%q<debugger>, [">= 0"])
65
+ s.add_development_dependency(%q<ruby-debug>, [">= 0"])
66
+ s.add_development_dependency(%q<pry>, [">= 0"])
66
67
  s.add_development_dependency(%q<rspec>, ["= 1.3.1"])
67
68
  s.add_development_dependency(%q<sqlite3-ruby>, [">= 0"])
68
69
  else
@@ -70,7 +71,8 @@ Gem::Specification.new do |s|
70
71
  s.add_dependency(%q<bundler>, [">= 0"])
71
72
  s.add_dependency(%q<jeweler>, ["~> 1.6.4"])
72
73
  s.add_dependency(%q<rcov>, [">= 0"])
73
- s.add_dependency(%q<debugger>, [">= 0"])
74
+ s.add_dependency(%q<ruby-debug>, [">= 0"])
75
+ s.add_dependency(%q<pry>, [">= 0"])
74
76
  s.add_dependency(%q<rspec>, ["= 1.3.1"])
75
77
  s.add_dependency(%q<sqlite3-ruby>, [">= 0"])
76
78
  end
@@ -79,7 +81,8 @@ Gem::Specification.new do |s|
79
81
  s.add_dependency(%q<bundler>, [">= 0"])
80
82
  s.add_dependency(%q<jeweler>, ["~> 1.6.4"])
81
83
  s.add_dependency(%q<rcov>, [">= 0"])
82
- s.add_dependency(%q<debugger>, [">= 0"])
84
+ s.add_dependency(%q<ruby-debug>, [">= 0"])
85
+ s.add_dependency(%q<pry>, [">= 0"])
83
86
  s.add_dependency(%q<rspec>, ["= 1.3.1"])
84
87
  s.add_dependency(%q<sqlite3-ruby>, [">= 0"])
85
88
  end
@@ -9,7 +9,7 @@ module Rails3Finders
9
9
  named_scope :includes, lambda { |*includes| { :include => includes }}
10
10
  named_scope :order, lambda {|*order| {:order => order.flatten.join(',') }}
11
11
  named_scope :joins, lambda {|*join| {:joins => join } if join[0]}
12
- named_scope :from, lambda {|*from| {:from => from }}
12
+ named_scope :from, lambda {|*from| {:from => from.flatten.join(',') }}
13
13
  named_scope :having, lambda {|*having| {:having => having }}
14
14
  named_scope :group, lambda {|*group| {:group => group.flatten.join(',') }}
15
15
  named_scope :readonly, lambda {|readonly| {:readonly => readonly }}
@@ -299,3 +299,8 @@ describe "#readonly" do
299
299
  end
300
300
  end
301
301
 
302
+ describe "from" do
303
+ it "does the right thing with from" do
304
+ Topic.from("topics").first.should eql(Topic.all.first)
305
+ end
306
+ end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fake_arel
3
3
  version: !ruby/object:Gem::Version
4
- hash: 29
4
+ hash: 19
5
5
  prerelease:
6
6
  segments:
7
7
  - 1
8
8
  - 3
9
- - 3
10
- version: 1.3.3
9
+ - 4
10
+ version: 1.3.4
11
11
  platform: ruby
12
12
  authors:
13
13
  - Grant Ammons
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2013-09-11 00:00:00 -04:00
18
+ date: 2013-09-16 00:00:00 -04:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency
@@ -89,11 +89,25 @@ dependencies:
89
89
  - 0
90
90
  version: "0"
91
91
  type: :development
92
- name: debugger
92
+ name: ruby-debug
93
93
  version_requirements: *id005
94
94
  prerelease: false
95
95
  - !ruby/object:Gem::Dependency
96
96
  requirement: &id006 !ruby/object:Gem::Requirement
97
+ none: false
98
+ requirements:
99
+ - - ">="
100
+ - !ruby/object:Gem::Version
101
+ hash: 3
102
+ segments:
103
+ - 0
104
+ version: "0"
105
+ type: :development
106
+ name: pry
107
+ version_requirements: *id006
108
+ prerelease: false
109
+ - !ruby/object:Gem::Dependency
110
+ requirement: &id007 !ruby/object:Gem::Requirement
97
111
  none: false
98
112
  requirements:
99
113
  - - "="
@@ -106,10 +120,10 @@ dependencies:
106
120
  version: 1.3.1
107
121
  type: :development
108
122
  name: rspec
109
- version_requirements: *id006
123
+ version_requirements: *id007
110
124
  prerelease: false
111
125
  - !ruby/object:Gem::Dependency
112
- requirement: &id007 !ruby/object:Gem::Requirement
126
+ requirement: &id008 !ruby/object:Gem::Requirement
113
127
  none: false
114
128
  requirements:
115
129
  - - ">="
@@ -120,7 +134,7 @@ dependencies:
120
134
  version: "0"
121
135
  type: :development
122
136
  name: sqlite3-ruby
123
- version_requirements: *id007
137
+ version_requirements: *id008
124
138
  prerelease: false
125
139
  description: fake_arel will simulate rails 3 arel syntax for Rails 2.
126
140
  email: grant@pipelinedealsco.com