levene 0.0.2 → 0.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2,11 +2,11 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{levene}
5
- s.version = "0.0.2"
5
+ s.version = "0.0.4"
6
6
 
7
7
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
8
8
  s.authors = ["Robert Rasmussen"]
9
- s.date = %q{2011-01-21}
9
+ s.date = %q{2011-01-24}
10
10
  s.description = %q{A light wrapper around RForce to make working with Salesforce a little
11
11
  easier.}
12
12
  s.email = ["rob.rasmussen@gmail.com"]
@@ -9,7 +9,7 @@ module Levene
9
9
  end
10
10
 
11
11
  def binding
12
- @binding ||= ::RForce::Binding.new 'https://login.salesforce.com/services/Soap/u/20.0'
12
+ @binding ||= ::Levene.enabled? ? ::RForce::Binding.new('https://login.salesforce.com/services/Soap/u/20.0') : DummyBinding.new
13
13
  end
14
14
 
15
15
  def start
@@ -27,4 +27,14 @@ module Levene
27
27
  end
28
28
 
29
29
  end
30
+
31
+ class DummyBinding
32
+ def describe(model)
33
+ []
34
+ end
35
+
36
+ def method_missing(sym, *args)
37
+ #pass
38
+ end
39
+ end
30
40
  end
@@ -1,3 +1,3 @@
1
1
  module Levene
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.4"
3
3
  end
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 0
8
- - 2
9
- version: 0.0.2
8
+ - 4
9
+ version: 0.0.4
10
10
  platform: ruby
11
11
  authors:
12
12
  - Robert Rasmussen
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2011-01-21 00:00:00 -06:00
17
+ date: 2011-01-24 00:00:00 -06:00
18
18
  default_executable:
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency