kojn 0.2.4 → 0.2.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/VERSION CHANGED
@@ -1 +1 @@
1
- 0.2.4
1
+ 0.2.5
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "kojn"
8
- s.version = "0.2.4"
8
+ s.version = "0.2.5"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Jeffrey Wilcke", "Maran Hidskes"]
@@ -43,7 +43,7 @@ Gem::Specification.new do |s|
43
43
  s.homepage = "https://kojn.nl"
44
44
  s.licenses = ["MIT"]
45
45
  s.require_paths = ["lib"]
46
- s.rubygems_version = "1.8.24"
46
+ s.rubygems_version = "1.8.25"
47
47
  s.summary = "Ruby gem for communicating with the kojn.nl API."
48
48
 
49
49
  if s.respond_to? :specification_version then
@@ -15,7 +15,11 @@ module Kojn
15
15
  # Set the attributes based on the given hash
16
16
  def attributes=(attributes = {})
17
17
  attributes.each do |name, value|
18
- send("#{name}=", value)
18
+ begin
19
+ send("#{name}=", value)
20
+ rescue NoMethodError => e
21
+ puts "Unable to assign #{name}. No such method."
22
+ end
19
23
  end
20
24
  end
21
25
 
@@ -57,7 +57,7 @@ module Kojn
57
57
  include Kojn::Model
58
58
 
59
59
  attr_accessor :internal_id, :external_id, :address, :currency, :amount, :amount_in_fiat, :exchange_rate, :status, :received_amount, :description, :seen, :received_amount_in_fiat, :confirmed
60
- attr_accessor :paid, :amount_left, :redirect_uri
60
+ attr_accessor :paid, :amount_left, :redirect_uri, :time_left
61
61
  attr_accessor :error, :message, :errors
62
62
 
63
63
  def save
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kojn
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.4
4
+ version: 0.2.5
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -172,7 +172,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
172
172
  version: '0'
173
173
  segments:
174
174
  - 0
175
- hash: -1362479166561980749
175
+ hash: -2422090600773629943
176
176
  required_rubygems_version: !ruby/object:Gem::Requirement
177
177
  none: false
178
178
  requirements:
@@ -181,7 +181,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
181
181
  version: '0'
182
182
  requirements: []
183
183
  rubyforge_project:
184
- rubygems_version: 1.8.24
184
+ rubygems_version: 1.8.25
185
185
  signing_key:
186
186
  specification_version: 3
187
187
  summary: Ruby gem for communicating with the kojn.nl API.