kojn 0.2.4 → 0.2.5
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/kojn.gemspec +2 -2
- data/lib/kojn/model.rb +5 -1
- data/lib/kojn/transaction.rb +1 -1
- metadata +3 -3
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.2.
|
1
|
+
0.2.5
|
data/kojn.gemspec
CHANGED
@@ -5,7 +5,7 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = "kojn"
|
8
|
-
s.version = "0.2.
|
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.
|
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
|
data/lib/kojn/model.rb
CHANGED
@@ -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
|
-
|
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
|
|
data/lib/kojn/transaction.rb
CHANGED
@@ -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
|
+
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: -
|
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.
|
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.
|