kojn 0.2.0 → 0.2.1

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile CHANGED
@@ -2,8 +2,9 @@ ruby '1.9.3'
2
2
 
3
3
  source 'https://rubygems.org'
4
4
 
5
- gem "activemodel"
6
- gem "activesupport"
5
+ gem "activemodel", ">= 3.1"
6
+ gem "activesupport", ">= 3.1"
7
+
7
8
  gem 'curb', '> 0.8.1'
8
9
 
9
10
  group :development do
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.2.0
1
+ 0.2.1
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "kojn"
8
- s.version = "0.2.0"
8
+ s.version = "0.2.1"
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"]
12
- s.date = "2013-05-08"
12
+ s.date = "2013-06-11"
13
13
  s.description = "Ruby gem for communicating with the kojn.nl API. Allows you to create and managed invoices."
14
14
  s.email = ["maran.hidskes@gmail.com", "jeff.wilcke@gmail.com"]
15
15
  s.extra_rdoc_files = [
@@ -43,23 +43,23 @@ 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.25"
46
+ s.rubygems_version = "1.8.24"
47
47
  s.summary = "Ruby gem for communicating with the kojn.nl API."
48
48
 
49
49
  if s.respond_to? :specification_version then
50
50
  s.specification_version = 3
51
51
 
52
52
  if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
53
- s.add_runtime_dependency(%q<activemodel>, [">= 0"])
54
- s.add_runtime_dependency(%q<activesupport>, [">= 0"])
53
+ s.add_runtime_dependency(%q<activemodel>, [">= 3.1"])
54
+ s.add_runtime_dependency(%q<activesupport>, [">= 3.1"])
55
55
  s.add_runtime_dependency(%q<curb>, ["> 0.8.1"])
56
56
  s.add_development_dependency(%q<bundler>, ["~> 1.3.5"])
57
57
  s.add_development_dependency(%q<jeweler>, ["~> 1.8.4"])
58
58
  s.add_development_dependency(%q<rspec>, [">= 0"])
59
59
  s.add_development_dependency(%q<rdoc>, ["~> 4.0.0"])
60
60
  else
61
- s.add_dependency(%q<activemodel>, [">= 0"])
62
- s.add_dependency(%q<activesupport>, [">= 0"])
61
+ s.add_dependency(%q<activemodel>, [">= 3.1"])
62
+ s.add_dependency(%q<activesupport>, [">= 3.1"])
63
63
  s.add_dependency(%q<curb>, ["> 0.8.1"])
64
64
  s.add_dependency(%q<bundler>, ["~> 1.3.5"])
65
65
  s.add_dependency(%q<jeweler>, ["~> 1.8.4"])
@@ -67,8 +67,8 @@ Gem::Specification.new do |s|
67
67
  s.add_dependency(%q<rdoc>, ["~> 4.0.0"])
68
68
  end
69
69
  else
70
- s.add_dependency(%q<activemodel>, [">= 0"])
71
- s.add_dependency(%q<activesupport>, [">= 0"])
70
+ s.add_dependency(%q<activemodel>, [">= 3.1"])
71
+ s.add_dependency(%q<activesupport>, [">= 3.1"])
72
72
  s.add_dependency(%q<curb>, ["> 0.8.1"])
73
73
  s.add_dependency(%q<bundler>, ["~> 1.3.5"])
74
74
  s.add_dependency(%q<jeweler>, ["~> 1.8.4"])
@@ -12,13 +12,13 @@ require 'json'
12
12
  require 'net/http'
13
13
  require 'uri'
14
14
 
15
- require './kojn/model'
16
- require './kojn/collection'
15
+ require 'kojn/model'
16
+ require 'kojn/collection'
17
17
 
18
- require './kojn/crypto'
19
- require './kojn/net'
20
- require './kojn/invoice'
21
- require './kojn/ipn'
18
+ require 'kojn/crypto'
19
+ require 'kojn/net'
20
+ require 'kojn/invoice'
21
+ require 'kojn/ipn'
22
22
 
23
23
  module Kojn
24
24
  # Api key
@@ -8,7 +8,7 @@ module Kojn
8
8
  SEEN = 3
9
9
  CANCELLED = 4
10
10
 
11
- attr_accessor :internal_id, :external_id, :address, :currency, :amount, :amount_in_euro, :exchange_rate, :status, :received_amount, :description, :seen, :received_amount_in_euro
11
+ attr_accessor :internal_id, :external_id, :address, :currency, :amount, :amount_in_fiat, :exchange_rate, :status, :received_amount, :description, :seen, :received_amount_in_fiat, :source_currency, :confirmed
12
12
  attr_accessor :paid, :amount_left, :redirect_uri
13
13
  attr_accessor :error, :message, :errors
14
14
 
@@ -56,7 +56,7 @@ module Kojn
56
56
 
57
57
  include Kojn::Model
58
58
 
59
- attr_accessor :internal_id, :external_id, :address, :currency, :amount, :amount_in_euro, :exchange_rate, :status, :received_amount, :description, :seen, :received_amount_in_euro, :confirmed
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
60
  attr_accessor :paid, :amount_left, :redirect_uri
61
61
  attr_accessor :error, :message, :errors
62
62
 
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.0
4
+ version: 0.2.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2013-05-08 00:00:00.000000000 Z
13
+ date: 2013-06-11 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: activemodel
@@ -19,7 +19,7 @@ dependencies:
19
19
  requirements:
20
20
  - - ! '>='
21
21
  - !ruby/object:Gem::Version
22
- version: '0'
22
+ version: '3.1'
23
23
  type: :runtime
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
@@ -27,7 +27,7 @@ dependencies:
27
27
  requirements:
28
28
  - - ! '>='
29
29
  - !ruby/object:Gem::Version
30
- version: '0'
30
+ version: '3.1'
31
31
  - !ruby/object:Gem::Dependency
32
32
  name: activesupport
33
33
  requirement: !ruby/object:Gem::Requirement
@@ -35,7 +35,7 @@ dependencies:
35
35
  requirements:
36
36
  - - ! '>='
37
37
  - !ruby/object:Gem::Version
38
- version: '0'
38
+ version: '3.1'
39
39
  type: :runtime
40
40
  prerelease: false
41
41
  version_requirements: !ruby/object:Gem::Requirement
@@ -43,7 +43,7 @@ dependencies:
43
43
  requirements:
44
44
  - - ! '>='
45
45
  - !ruby/object:Gem::Version
46
- version: '0'
46
+ version: '3.1'
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: curb
49
49
  requirement: !ruby/object:Gem::Requirement
@@ -172,7 +172,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
172
172
  version: '0'
173
173
  segments:
174
174
  - 0
175
- hash: 1274476251690557632
175
+ hash: -3687402931975681055
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.25
184
+ rubygems_version: 1.8.24
185
185
  signing_key:
186
186
  specification_version: 3
187
187
  summary: Ruby gem for communicating with the kojn.nl API.