yieldmanager 0.3.4 → 0.3.5

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.rdoc CHANGED
@@ -30,6 +30,18 @@ To use in a Rails project, add this to config/environment.rb:
30
30
  :pass => "secret",
31
31
  :api_version => "1.30"
32
32
  )
33
+
34
+ The default environment is production.
35
+ To access the test environment, use this:
36
+
37
+ @ym = Yieldmanager::Client.new(
38
+ :user => "bob",
39
+ :pass => "secret",
40
+ :api_version => "1.30",
41
+ :env => "test"
42
+ )
43
+
44
+ *NOTE* Changing the environment after creation has no effect!
33
45
 
34
46
  === Finding available services
35
47
 
data/TODO CHANGED
@@ -2,6 +2,7 @@
2
2
  "unknown element: {http://schemas.xmlsoap.org/wsdl/}definitions"
3
3
  * throwing warning when running in autotest, but not spec?: monkeypatch net/http?
4
4
  "warning: peer certificate won't be verified in this SSL session"
5
+ * DONE Using :env => "test" actually hits test environment
5
6
  * DONE add session start/end
6
7
  * DONE add session block
7
8
  * DONE end session even after exception
@@ -9,11 +10,11 @@
9
10
  * DONE add pagination
10
11
  * add error-handling (timeouts, too many connections?)
11
12
  * add reporting
13
+ ** how to handle subtotal/total rows?
14
+ ** cast columns to ruby types based on column[data_type]?
12
15
  ** DONE pull_report(xml) method in Client
13
16
  ** DONE Yieldmanager::Report DTO
14
17
  *** DONE headers array (for proper column ordering)
15
18
  *** DONE data as array of arrays
16
19
  *** DONE data as array of hashes (string or symbol keys)
17
20
  ** DONE hpricot for parsing (http://github.com/hpricot/hpricot/)
18
- ** how to handle subtotal/total rows?
19
- ** cast columns to ruby types based on column[data_type]?
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.3.4
1
+ 0.3.5
@@ -130,7 +130,8 @@ private
130
130
  def load_service name
131
131
  # FIXME Local wsdl hit throws "unknown element: {http://schemas.xmlsoap.org/wsdl/}definitions"
132
132
  # wsdl_path = "file://#{@wsdl_dir}/#{name}.wsdl"
133
- wsdl_path = "#{BASE_URL}#{api_version}/#{name}.php?wsdl"
133
+ base_url = (@env == "prod" ? BASE_URL : BASE_URL_TEST)
134
+ wsdl_path = "#{base_url}#{api_version}/#{name}.php?wsdl"
134
135
  SOAP::WSDLDriverFactory.new(wsdl_path).create_rpc_driver
135
136
  end
136
137
  end
@@ -22,8 +22,10 @@ describe "A new Yieldmanager client" do
22
22
 
23
23
  it "defaults to prod, accepts override to test" do
24
24
  @ym.env.should == "prod"
25
+ @ym.contact.inspect.should match("api.yieldmanager.com")
25
26
  ym_test = Yieldmanager::Client.new(login_args.merge(:env => "test"))
26
27
  ym_test.env.should == "test"
28
+ ym_test.contact.inspect.should match("api-test.yieldmanager.com")
27
29
  end
28
30
 
29
31
  it "displays available services" do
data/yieldmanager.gemspec CHANGED
@@ -5,16 +5,17 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{yieldmanager}
8
- s.version = "0.3.4"
8
+ s.version = "0.3.5"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Bill Gathen"]
12
- s.date = %q{2009-11-24}
12
+ s.date = %q{2009-12-23}
13
13
  s.description = %q{This gem offers full access to YieldManager's API tools (read/write) as well as ad-hoc reporting through the Reportware tool}
14
14
  s.email = %q{bill@billgathen.com}
15
15
  s.extra_rdoc_files = [
16
16
  "LICENSE",
17
- "README.rdoc"
17
+ "README.rdoc",
18
+ "TODO"
18
19
  ]
19
20
  s.files = [
20
21
  ".document",
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: yieldmanager
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.4
4
+ version: 0.3.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Bill Gathen
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-11-24 00:00:00 -05:00
12
+ date: 2009-12-23 00:00:00 -05:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
@@ -41,6 +41,7 @@ extensions: []
41
41
  extra_rdoc_files:
42
42
  - LICENSE
43
43
  - README.rdoc
44
+ - TODO
44
45
  files:
45
46
  - .document
46
47
  - .gitignore