caviidae 0.0.3 → 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.
data/README.md CHANGED
@@ -40,8 +40,6 @@ Caviidae.configure do |config|
40
40
  config.password = ENV['SFDC_PASSWORD']
41
41
  config.security_token = ENV['SFDC_SECURITY_TOKEN']
42
42
  end
43
-
44
- Caviidae.connect
45
43
  ```
46
44
 
47
45
  Then create your request specs:
@@ -7,13 +7,12 @@ module Caviidae
7
7
  class << self
8
8
 
9
9
  def db
10
- @client
11
- end
10
+ unless @client
11
+ @client = Databasedotcom::Client.new :client_id => configuration.client_id, :client_secret => configuration.client_secret, :host => configuration.host
12
+ @client.authenticate :username => configuration.username, :password => "#{CGI::escape(configuration.password)}#{configuration.security_token}"
13
+ end
12
14
 
13
- def connect
14
- client = Databasedotcom::Client.new :client_id => configuration.client_id, :client_secret => configuration.client_secret, :host => configuration.host
15
- client.authenticate :username => configuration.username, :password => "#{CGI::escape(configuration.password)}#{configuration.security_token}"
16
- @client = client
15
+ @client
17
16
  end
18
17
 
19
18
  end
@@ -1,3 +1,3 @@
1
1
  module Caviidae
2
- VERSION = "0.0.3"
2
+ VERSION = "0.0.4"
3
3
  end
@@ -24,5 +24,3 @@ Caviidae.configure do |config|
24
24
  config.password = ENV['SFDC_PASSWORD']
25
25
  config.security_token = ENV['SFDC_SECURITY_TOKEN']
26
26
  end
27
-
28
- Caviidae.connect
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: caviidae
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -13,7 +13,7 @@ date: 2012-03-13 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: capybara
16
- requirement: &2154806440 !ruby/object:Gem::Requirement
16
+ requirement: &2162057500 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: '0'
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *2154806440
24
+ version_requirements: *2162057500
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: databasedotcom
27
- requirement: &2154805680 !ruby/object:Gem::Requirement
27
+ requirement: &2162056600 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - =
@@ -32,10 +32,10 @@ dependencies:
32
32
  version: 1.3.0
33
33
  type: :runtime
34
34
  prerelease: false
35
- version_requirements: *2154805680
35
+ version_requirements: *2162056600
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: rspec
38
- requirement: &2154804820 !ruby/object:Gem::Requirement
38
+ requirement: &2162055340 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
41
  - - ! '>='
@@ -43,7 +43,7 @@ dependencies:
43
43
  version: '0'
44
44
  type: :development
45
45
  prerelease: false
46
- version_requirements: *2154804820
46
+ version_requirements: *2162055340
47
47
  description: Gem to help with integration testing of visualforce apps with capybara
48
48
  email:
49
49
  - eric@ejholmes.net