subj_models 0.5.9 → 0.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2833a9fe18116372f6c9a5357279dbba640ea5f0
4
- data.tar.gz: 8531e2116c03926a39b38a225b940bd8c26db17e
3
+ metadata.gz: 02bad774be0474cc5bb310c6b3689211fabf9ca1
4
+ data.tar.gz: 104642481cfecd6682406e82cf3cd668eba4af7f
5
5
  SHA512:
6
- metadata.gz: 6af2b82b3662550fa85094a891af84ad004f88fe38e95f285c5a315cbb9c4d68bcb30494c5730685be0ad3bd62d421bdab0da5d27a71c7118f840100316845d6
7
- data.tar.gz: 32213500e8bdb7638b2d43f8c20cc17996438c74ce6c4d1ffcfa1415a42811302ac1347c390d70d6f272a55317706effc5dc2a7aa6d56130f06cc4bdb8688db9
6
+ metadata.gz: 4ea8df0fe3c32149da26dc609db42ddb518df8c953191853e654aa29c7fe08ba64de96d908bbe373f1582778cdda336449a6382dbfd9c477ed6ff5403f9f87d8
7
+ data.tar.gz: 482e48bee0eb6b29dccf585a3912d53232c815f4fb4b6dc50cf830b808bcc0289cc43af6b70166c56dbb7f2f30b4cfb609070b107be6ff4797bc7f283171f501
@@ -32,10 +32,6 @@ module SubjModels
32
32
  id.to_s # TODO
33
33
  end
34
34
 
35
- def event_type=(value)
36
- super(check_string_for_int(value))
37
- end
38
-
39
35
  end
40
36
 
41
37
  end
@@ -36,10 +36,6 @@ module SubjModels
36
36
  id.to_s # TODO
37
37
  end
38
38
 
39
- def contact_type=(value)
40
- super(check_string_for_int(value))
41
- end
42
-
43
39
  end
44
40
 
45
41
  end
@@ -74,18 +74,6 @@ module SubjModels
74
74
  id.to_s # TODO
75
75
  end
76
76
 
77
- def order_status=(value)
78
- super(check_string_for_int(value))
79
- end
80
-
81
- def delivery_type=(value)
82
- super(check_string_for_int(value))
83
- end
84
-
85
- def payment_type=(value)
86
- super(check_string_for_int(value))
87
- end
88
-
89
77
  private
90
78
 
91
79
  def generate_number
@@ -37,10 +37,6 @@ module SubjModels
37
37
  id.to_s # TODO
38
38
  end
39
39
 
40
- def item_type=(value)
41
- super(check_string_for_int(value))
42
- end
43
-
44
40
  private
45
41
 
46
42
  def increase_nomenclature_popularity
@@ -57,17 +53,6 @@ module SubjModels
57
53
  end
58
54
  end
59
55
 
60
-
61
-
62
- def update_nomenclature_popularity
63
- if nomenclature
64
- current_popularity = (nomenclature.popularity && nomenclature.popularity > 0) ? nomenclature.popularity : 0
65
- method = transaction_include_any_action?([:create]) ? :+ : :-
66
- new_popularity = current_popularity.send(method, self.item_count)
67
- nomenclature.update(popularity: new_popularity)
68
- end
69
- end
70
-
71
56
  def add_nomenclature_quality
72
57
  founded_quality_id = if nomenclature_variety
73
58
  nomenclature_variety.nomenclature_price.try(:quality_id)
@@ -1,3 +1,3 @@
1
1
  module SubjModels
2
- VERSION = "0.5.9"
2
+ VERSION = "0.6.0"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: subj_models
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.9
4
+ version: 0.6.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Denys Dvoriashyn
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-12-14 00:00:00.000000000 Z
11
+ date: 2016-12-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler