xsys 0.6.5 → 0.7.0

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: 1adb7175c2e48a5e93f4bf28f8eb14302723730b
4
- data.tar.gz: f607781f08f860df30dd2f523e381e195e6e8a7e
3
+ metadata.gz: 97ad736d57f0b50408389a65e4fce91239f9039a
4
+ data.tar.gz: ba46e64c98665753b61da0a8eeb6a79e43252d85
5
5
  SHA512:
6
- metadata.gz: 5c2286b59b5ea0caf627f0153cc5311b7f819b4c86b9281ef69fc3536588f1ac332374ef9ff2370a18437938d5a93c47ec2009f304ccf4352586b12aad256abb
7
- data.tar.gz: f848082a53680a0dbd7455aed18e9fd7156150bf96fee0e9069b5761019b9a6c1ba02841a7a7d88f9172c7bbbe5c7cfd28742b189251affae119573035acd20b
6
+ metadata.gz: c9eaad58b23b554c968d571cdce6e124a87fca90f9769df304418e268c2f498da2c85938e904fe96c30755d362503128f42da628f3129681466533e4aa9dace1
7
+ data.tar.gz: 5281ee738c01daacc1d6df20024f6b81755966850e8410b62d9df536a30d5fb07fc9714dff1f3840a28b3a75c0551f6e787954ee101f06509e0209f2b4b701e7
data/CHANGELOG.md CHANGED
@@ -233,3 +233,7 @@
233
233
  ## v0.6.5
234
234
 
235
235
  * Fixed default on price list from float to bigdecimal
236
+
237
+ ## v0.7.0
238
+
239
+ * Updated shop attributes
@@ -3,7 +3,9 @@ module Xsys
3
3
  class Shop
4
4
  def self.attr_list
5
5
  [:id, :code, :name, :stock_description, :commercial,
6
- :virtual, :stockable, :has_target, :service, :physical_shop_code]
6
+ :virtual, :stockable, :has_target, :service, :physical_shop_code,
7
+ :position, :has_stock_control, :has_exhibition, :stock_sellable,
8
+ :stock_sellable, :enabled, :physical_shop_id, :last_update]
7
9
  end
8
10
 
9
11
  attr_reader *attr_list
@@ -34,8 +36,20 @@ module Xsys
34
36
  service == true
35
37
  end
36
38
 
37
- def with_target?
38
- with_target == true
39
+ def has_target?
40
+ has_target == true
41
+ end
42
+
43
+ def has_exhibition?
44
+ has_exhibition == true
45
+ end
46
+
47
+ def stock_sellable?
48
+ stock_sellable == true
49
+ end
50
+
51
+ def enabled?
52
+ enabled == true
39
53
  end
40
54
 
41
55
  private
data/lib/xsys/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Xsys
2
- VERSION = "0.6.5"
2
+ VERSION = "0.7.0"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: xsys
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.5
4
+ version: 0.7.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matias Hick
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-03-21 00:00:00.000000000 Z
11
+ date: 2016-05-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler