chargebee 1.2.8 → 1.2.9

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/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
- (The MIT License)
1
+ The MIT License
2
2
 
3
- Copyright (c) 2011-2012 Bubblepath Inc
3
+ Copyright (c) 2011-2013 ChargeBee, Inc.
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person
6
6
  obtaining a copy of this software and associated documentation
@@ -4,8 +4,8 @@ Gem::Specification.new do |s|
4
4
  s.rubygems_version = '1.3.5'
5
5
 
6
6
  s.name = 'chargebee'
7
- s.version = '1.2.8'
8
- s.date = '2013-10-26'
7
+ s.version = '1.2.9'
8
+ s.date = '2013-12-22'
9
9
 
10
10
  s.summary = "Ruby client for Chargebee API."
11
11
  s.description = "Subscription Billing - Simple. Secure. Affordable. More details at www.chargebee.com."
@@ -47,7 +47,6 @@ Gem::Specification.new do |s|
47
47
  lib/chargebee/models/hosted_page.rb
48
48
  lib/chargebee/models/invoice.rb
49
49
  lib/chargebee/models/model.rb
50
- lib/chargebee/models/offline_checkout.rb
51
50
  lib/chargebee/models/plan.rb
52
51
  lib/chargebee/models/subscription.rb
53
52
  lib/chargebee/models/transaction.rb
@@ -24,7 +24,7 @@ require File.dirname(__FILE__) + '/chargebee/models/coupon_code'
24
24
 
25
25
  module ChargeBee
26
26
 
27
- VERSION = '1.2.8'
27
+ VERSION = '1.2.9'
28
28
 
29
29
  @@default_env = nil
30
30
  @@verify_ca_certs = true
@@ -8,7 +8,11 @@ module ChargeBee
8
8
  end
9
9
 
10
10
  def content
11
- Content.new(@values[:content])
11
+ if @values[:content].nil?
12
+ nil
13
+ else
14
+ Content.new(@values[:content])
15
+ end
12
16
  end
13
17
 
14
18
  # OPERATIONS
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: chargebee
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 1.2.8
5
+ version: 1.2.9
6
6
  platform: ruby
7
7
  authors:
8
8
  - Rajaraman S
@@ -11,7 +11,7 @@ autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
13
 
14
- date: 2013-10-26 00:00:00 Z
14
+ date: 2013-12-22 00:00:00 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: json_pure
@@ -88,7 +88,6 @@ files:
88
88
  - lib/chargebee/models/hosted_page.rb
89
89
  - lib/chargebee/models/invoice.rb
90
90
  - lib/chargebee/models/model.rb
91
- - lib/chargebee/models/offline_checkout.rb
92
91
  - lib/chargebee/models/plan.rb
93
92
  - lib/chargebee/models/subscription.rb
94
93
  - lib/chargebee/models/transaction.rb
@@ -124,7 +123,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
124
123
  requirements: []
125
124
 
126
125
  rubyforge_project:
127
- rubygems_version: 1.8.6
126
+ rubygems_version: 1.8.15
128
127
  signing_key:
129
128
  specification_version: 2
130
129
  summary: Ruby client for Chargebee API.
@@ -1,22 +0,0 @@
1
- module ChargeBee
2
- class OfflineCheckout < Model
3
-
4
- attr_accessor :id, :type, :amount, :status, :created_at, :updated_at
5
-
6
- # OPERATIONS
7
- #-----------
8
-
9
- def self.retrieve(id, env=nil)
10
- Request.send('get', "/offline_checkouts/#{id.to_s}", {}, env)
11
- end
12
-
13
- def self.pre_register(params, env=nil)
14
- Request.send('post', "/offline_checkouts/pre_register", params, env)
15
- end
16
-
17
- def self.post_register(id, params, env=nil)
18
- Request.send('post', "/offline_checkouts/#{id.to_s}/post_register", params, env)
19
- end
20
-
21
- end # ~OfflineCheckout
22
- end # ~ChargeBee