iqvoc_skosxl 2.3.0 → 2.3.1

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: 71c4e174716271a11722d0ed4095fe90dd98fabc
4
- data.tar.gz: 4db8d50bde562f2f519cc7020f779728b5a02b2c
3
+ metadata.gz: ed2db390e04dda6c725b4e58b5c90f686fb78fa9
4
+ data.tar.gz: 69e13bb707a06bb84e721cf8baa889894bb62f22
5
5
  SHA512:
6
- metadata.gz: 1cb8a521a55337791146f08706ced52e783bc5bb2b3e26594f08d3f4db650fea5132cf489193993fe7583945c83cf31e23f3eaf50e4bcd6e98c3309967555817
7
- data.tar.gz: 051099db1772d5c835bb77a9d82961e7f754be5daa06e3a961b4e1bcacce8a34a3387fd05e40b9983b7640ced2f85a9527a013c96e7f81456866abb3c41970ee
6
+ metadata.gz: 836361d009f36aab2e2b65b9e04be0e0cff5d11b289974bfb93271021da99054cc94165969ca7dbd12dbeaa700ab301deb96652360b60674209876dac24e095c
7
+ data.tar.gz: 6af3d178304a74f033b60c33c318caee025b37f12cbdbacc2b2d0559e038b6e3080a0136102eff64eee33c7b54085628298436725f6a5d47c3431eb096f828cd
@@ -7,12 +7,16 @@ module Concept
7
7
  included do
8
8
  validate :valid_label_language
9
9
 
10
- after_save do |concept|
10
+ before_validation do |concept|
11
11
  # Labelings
12
12
  (@labelings_by_id ||= {}).each do |labeling_relation_name, origin_mappings|
13
13
  # Remove all associated labelings of the given type
14
14
  concept.send(labeling_relation_name).destroy_all
15
+ end
16
+ end
15
17
 
18
+ after_save do |concept|
19
+ (@labelings_by_id ||= {}).each do |labeling_relation_name, origin_mappings|
16
20
  # (Re)create labelings reflecting a widget's parameters
17
21
  origin_mappings.each do |language, new_origins|
18
22
  new_origins = new_origins.
@@ -1,5 +1,5 @@
1
1
  module Iqvoc
2
2
  module SKOSXL
3
- VERSION = "2.3.0"
3
+ VERSION = "2.3.1"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: iqvoc_skosxl
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.3.0
4
+ version: 2.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Robert Glaser
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2014-02-11 00:00:00.000000000 Z
13
+ date: 2014-04-02 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: iqvoc
@@ -144,7 +144,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
144
144
  version: '0'
145
145
  requirements: []
146
146
  rubyforge_project:
147
- rubygems_version: 2.2.0
147
+ rubygems_version: 2.2.2
148
148
  signing_key:
149
149
  specification_version: 4
150
150
  summary: iQvoc SKOS-XL extension