zuora4r 1.0.0 → 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
data/README.rdoc CHANGED
@@ -2,8 +2,10 @@
2
2
 
3
3
  Client for Zuora API
4
4
 
5
- This is a wrapper for sample code provided by Zuora - http://developer.zuora.com/samplecode.html
5
+ This is a wrapper for sample code provided by {Zuora}[http://developer.zuora.com/samplecode.html]
6
+
6
7
  It contains minor changes as well as added support for 'generate' API call
8
+
7
9
  It also provides scripts to run arbitrary Zuora Object queries and make payment & bill runs.
8
10
 
9
11
  == Installing the Gem
data/Rakefile CHANGED
@@ -5,7 +5,7 @@ begin
5
5
  require 'jeweler'
6
6
  Jeweler::Tasks.new do |gem|
7
7
  gem.name = "zuora4r"
8
- gem.version = "1.0.0"
8
+ gem.version = "1.0.1"
9
9
  gem.summary = "Zuora4r"
10
10
  gem.description = "A client for Zuora API"
11
11
  gem.email = "gene@ning.com"
data/lib/zuora_client.rb CHANGED
@@ -115,7 +115,6 @@ class ZuoraClient
115
115
 
116
116
  def save_results_to_hash(save_results)
117
117
  result = []
118
- puts save_results.inspect
119
118
  save_results.each do |record|
120
119
  row = {:success => record.success}
121
120
  if record.success
data/test/helper.rb ADDED
@@ -0,0 +1,6 @@
1
+ require 'rubygems'
2
+ require 'test/unit'
3
+
4
+ $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
5
+ $LOAD_PATH.unshift(File.dirname(__FILE__))
6
+ require 'zuora_client'
@@ -0,0 +1,11 @@
1
+ require 'helper'
2
+
3
+ class TestZuoraClient < Test::Unit::TestCase
4
+ def test_query
5
+ z = ZuoraClient.new('tester', 'qaqa')
6
+ result = z.query('select Id, Name, SKU, CreatedDate from Product')
7
+ assert_not_nil(result)
8
+ assert(result.size > 0)
9
+ end
10
+
11
+ end
data/zuora4r.gemspec CHANGED
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{zuora4r}
8
- s.version = "1.0.0"
8
+ s.version = "1.0.1"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Cloocher"]
12
- s.date = %q{2010-08-30}
12
+ s.date = %q{2010-08-31}
13
13
  s.description = %q{A client for Zuora API}
14
14
  s.email = %q{gene@ning.com}
15
15
  s.executables = ["zuora-query", "zuora-bill-run", "zuora-payment-run", "zq"]
@@ -38,6 +38,10 @@ Gem::Specification.new do |s|
38
38
  s.requirements = ["none"]
39
39
  s.rubygems_version = %q{1.3.7}
40
40
  s.summary = %q{Zuora4r}
41
+ s.test_files = [
42
+ "test/helper.rb",
43
+ "test/test_zuora_client.rb"
44
+ ]
41
45
 
42
46
  if s.respond_to? :specification_version then
43
47
  current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: zuora4r
3
3
  version: !ruby/object:Gem::Version
4
- hash: 23
4
+ hash: 21
5
5
  prerelease: false
6
6
  segments:
7
7
  - 1
8
8
  - 0
9
- - 0
10
- version: 1.0.0
9
+ - 1
10
+ version: 1.0.1
11
11
  platform: ruby
12
12
  authors:
13
13
  - Cloocher
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2010-08-30 00:00:00 -07:00
18
+ date: 2010-08-31 00:00:00 -07:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency
@@ -78,6 +78,8 @@ files:
78
78
  - zuora4r.gemspec
79
79
  - LICENSE
80
80
  - README.rdoc
81
+ - test/helper.rb
82
+ - test/test_zuora_client.rb
81
83
  has_rdoc: true
82
84
  homepage: http://github.com/cloocher/zuora4r
83
85
  licenses: []
@@ -112,5 +114,6 @@ rubygems_version: 1.3.7
112
114
  signing_key:
113
115
  specification_version: 3
114
116
  summary: Zuora4r
115
- test_files: []
116
-
117
+ test_files:
118
+ - test/helper.rb
119
+ - test/test_zuora_client.rb