xsys 0.0.25 → 0.0.26

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 80fba2f4070ebe8bb0fe93448e2f955035591ce2
4
- data.tar.gz: 462dcde22d74e58f469ce25ec031ac79193c994a
3
+ metadata.gz: 6392758c78a73b5c467942fd49265794c8037f86
4
+ data.tar.gz: 5f2b0293a33643ab9d7511e1e4a4e4c3679a3680
5
5
  SHA512:
6
- metadata.gz: c1d51cb491a3518591fc0430f5acd2ec895775a0f04ae782f12a4f81f5bf532844385639ee172f8e2a1400a4cb82d64f5770603093e9dbbddf8e4be9e74f4dc7
7
- data.tar.gz: e50e5eae08c1b2c72ac1e1ba0a775c8c4fc9dfa5cafb76c877e28cb06039f25c153a884a2f01cb8d6795fdf83d68a307aec5dba5ba99e36773bb242dc2e139e4
6
+ metadata.gz: a1ccf18b792a7bc9248d7053e320a8ac53516a7c016b1c5ed2a0ccc0fcf269dcf69d27902aae53abec4bc810e159062c1be6439734e2fe623cb6abfe0b72e34f
7
+ data.tar.gz: 805c025d031fe52c028182f058a37686b7989fe30a34e2f6a322debd96bef2bd8427ae5ae38df0d748eb056c535ea1074bed3e00ad2693a05fbc6ae4953ffe84
data/CHANGELOG.md CHANGED
@@ -96,4 +96,8 @@
96
96
 
97
97
  ## v0.0.25
98
98
 
99
- * Added transaction methods
99
+ * Bugfixes
100
+
101
+ ## v0.0.26
102
+
103
+ * Bugfixes
@@ -12,7 +12,7 @@ module Xsys
12
12
  if k.to_s == 'transaction_date'
13
13
  self.transaction_date = Date.parse(v) unless v.nil?
14
14
  elsif k.to_s == 'user'
15
- self.user = User.new(v)
15
+ self.user = User.new(v) unless v.nil?
16
16
  elsif k.to_s == 'items'
17
17
  self.items = v.map { |x| TransactionItem.new(x) }
18
18
  else
@@ -7,15 +7,7 @@ module Xsys
7
7
 
8
8
  def initialize(attributes={})
9
9
  attributes.each do |k,v|
10
- if k.to_s == 'transaction_date'
11
- self.transaction_date = Date.parse(v) unless v.nil?
12
- elsif k.to_s == 'user'
13
- self.user = User.new(v)
14
- elsif k.to_s == 'items'
15
- self.items = v.map { |x| TransactionItem.new(x) }
16
- else
17
- self.send("#{k}=", v) if self.respond_to?(k)
18
- end
10
+ self.send("#{k}=", v) if self.respond_to?(k)
19
11
  end
20
12
  end
21
13
  end
data/lib/xsys/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Xsys
2
- VERSION = "0.0.25"
2
+ VERSION = "0.0.26"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: xsys
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.25
4
+ version: 0.0.26
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matias Hick