Permalink
Browse files

Updated gem, fixed small error.

  • Loading branch information...
1 parent c3ad0e7 commit d11e8e78a958ba9e4c99c4a16096c3c9690734a9 Daniel Parker committed Jul 29, 2008
Showing with 2 additions and 2 deletions.
  1. +1 −1 lib/quickbooks/base.rb
  2. +1 −1 quickbooks.gemspec
View
@@ -213,7 +213,7 @@ def instantiate(obj_or_attrs={},attrs={})
attrs.each do |key,value|
if obj.respond_to?(key.to_s.underscore+'=')
obj.send(key.to_s.underscore+'=', value)
- obj.original_values[key.to_s.underscore] = obj.instance_variable_get('@' + key.to_s.underscore).dup
+ if orig = obj.instance_variable_get('@' + key.to_s.underscore) then obj.original_values[key.to_s.underscore] = orig.dup
end
end if attrs
obj # Will be either a nice object, or a Qbxml::Error object.
View
@@ -1,6 +1,6 @@
Gem::Specification.new do |s|
s.name = 'quickbooks'
- s.version = "0.4.1"
+ s.version = "0.4.3"
s.required_rubygems_version = Gem::Requirement.new(">= 1.2.0") if s.respond_to? :required_rubygems_version=
s.authors = ["Daniel Parker"]

0 comments on commit d11e8e7

Please sign in to comment.