subj_models 0.6.7 → 0.6.8

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: a25b496703d4bd9c1076884f62201c1860a5635f
4
- data.tar.gz: 4298d02afcc7031fc05605df80689adff99a31a4
3
+ metadata.gz: f39961b578a474b25b26ebaff318fe8157c4582a
4
+ data.tar.gz: aedf0e5fe191633f3dd26fd7eb9bd5d7fc1f76ff
5
5
  SHA512:
6
- metadata.gz: da26f5e87e2797f50b72c19fbef8556b7c474a33bac83793371cba4441f619271b902d05a8bf996c4f05d36b3efaa8b137eed9f980af5ee99e9ee718f320592a
7
- data.tar.gz: f357302b77a6e14d4b4967fa6ed40e7a42831e79c60f6b1951d2a56c8900518007f17bd0c930bbfa25c78bf0dadf17190c6cf54ffe9ced95c5b3a65a617cbe21
6
+ metadata.gz: 6278572b6382fd53598c601b5ea258741e6c92060aa3bd46bf0ef2392d11d9fea7bc4b5337f21208eb8114caaf5c65c19e000bae7a5cb37482b59d08e96d35a3
7
+ data.tar.gz: 3dfe80ce5ec23e25906b5182086d937964902e657a922a8e1054366810d175c57771c1f645b2b5f2f9991d8a75503b9fa307af512ee573db9e051419dcec8916
@@ -14,8 +14,8 @@ module SubjModels
14
14
 
15
15
  include SubjModels::ComprisingExternalId
16
16
 
17
- before_destroy :decrease_nomenclature_popularity
18
- after_create :increase_nomenclature_popularity
17
+ # before_destroy :decrease_nomenclature_popularity
18
+ # after_create :increase_nomenclature_popularity
19
19
 
20
20
  enum item_type: ITEM_TYPES
21
21
 
@@ -41,19 +41,19 @@ module SubjModels
41
41
 
42
42
  private
43
43
 
44
- def increase_nomenclature_popularity
45
- if nomenclature
46
- current_popularity = (nomenclature.popularity && nomenclature.popularity > 0) ? nomenclature.popularity : 0
47
- nomenclature.update(popularity: current_popularity + item_count)
48
- end
49
- end
50
-
51
- def decrease_nomenclature_popularity
52
- if nomenclature
53
- current_popularity = (nomenclature.popularity && nomenclature.popularity > item_count) ? nomenclature.popularity : item_count
54
- nomenclature.update(popularity: current_popularity - item_count)
55
- end
56
- end
44
+ # def increase_nomenclature_popularity
45
+ # if nomenclature
46
+ # current_popularity = (nomenclature.popularity && nomenclature.popularity > 0) ? nomenclature.popularity : 0
47
+ # nomenclature.update(popularity: current_popularity + item_count)
48
+ # end
49
+ # end
50
+
51
+ # def decrease_nomenclature_popularity
52
+ # if nomenclature
53
+ # current_popularity = (nomenclature.popularity && nomenclature.popularity > item_count) ? nomenclature.popularity : item_count
54
+ # nomenclature.update(popularity: current_popularity - item_count)
55
+ # end
56
+ # end
57
57
 
58
58
  end
59
59
 
@@ -1,3 +1,3 @@
1
1
  module SubjModels
2
- VERSION = "0.6.7"
2
+ VERSION = "0.6.8"
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.6.7
4
+ version: 0.6.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Denys Dvoriashyn
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-02-13 00:00:00.000000000 Z
11
+ date: 2017-03-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -130,7 +130,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
130
130
  version: '0'
131
131
  requirements: []
132
132
  rubyforge_project:
133
- rubygems_version: 2.5.1
133
+ rubygems_version: 2.6.10
134
134
  signing_key:
135
135
  specification_version: 4
136
136
  summary: Move models from some project to gem.