unidom-price 1.7.1 → 1.7.2

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: 80f08aba734732628b60dfee9e03da9b6f51978c
4
- data.tar.gz: 56c1144de8bd96d61780a249f48fc72b3ce2e651
3
+ metadata.gz: 8d8e07cb197dec510fdda3a27bd6464d2f547b4e
4
+ data.tar.gz: 900df89838b0b385301f292061baf37948a2fcd7
5
5
  SHA512:
6
- metadata.gz: a354fc2e4e57d4097c97e5c5d6fe480b2f6036f86fd56b58c318d42b326dd77e367cd44602481c4b7cfbe6d4dbe1c6e2bc1503dcae1b2c073f1d7b94ad25ccd9
7
- data.tar.gz: ac31478f3b3e7a750e2d6e0cb1444ad252a09acbbfc5f36d7dfc5153f1b235259ef3054a753fed1c471b72194abbf0a912c037e86f446577e8fc9f0141f2021c
6
+ metadata.gz: 7193bf76fec2a1de5394695d312fbc2c4621d63a2c0035ec91f07271e082efad4c197e8a60a46cfe6b527167e0b25c94eb42e173ba7571d0d0a1408729db832c
7
+ data.tar.gz: 61a7bf28d4a74b35a780a1ccb42b0c16bdf6ada132818d7b0b68265daeb730d7a20d8416d0942f7f73fe68a5be5c34c4d00d889aebcfe2d59fdaa5edde2bd56a
@@ -19,6 +19,7 @@ class Unidom::Price::Price < Unidom::Price::ApplicationRecord
19
19
 
20
20
  code :calculation, Unidom::Price::Calculation
21
21
  code :charging, Unidom::Price::Charging
22
+ code :pricing, Unidom::Price::Pricing
22
23
 
23
24
  ##
24
25
  # 将物品 priced 定价为 amount , 定价者是 pricer。
@@ -44,6 +44,10 @@ describe Unidom::Price::Price, type: :model do
44
44
  { amount: '1_000_000_000.01' } => 1,
45
45
  { amount: 1_000_000_000.01 } => 1
46
46
 
47
+ it_behaves_like 'ProgneTapera::EnumCode', described_class.new(model_attributes), :calculation, Unidom::Price::Calculation
48
+ it_behaves_like 'ProgneTapera::EnumCode', described_class.new(model_attributes), :charging, Unidom::Price::Charging
49
+ it_behaves_like 'ProgneTapera::EnumCode', described_class.new(model_attributes), :pricing, Unidom::Price::Pricing
50
+
47
51
  end
48
52
 
49
53
  end
@@ -1,5 +1,5 @@
1
1
  module Unidom
2
2
  module Price
3
- VERSION = '1.7.1'.freeze
3
+ VERSION = '1.7.2'.freeze
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: unidom-price
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.7.1
4
+ version: 1.7.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Topbit Du
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-02-24 00:00:00.000000000 Z
11
+ date: 2017-03-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: unidom-common