flowcation 0.2.19 → 0.3.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: c2b5f6400fc880f4774beb7b2cfd623f257cd6a3
4
- data.tar.gz: d9174f5b83e5385b78e387eb841139327926f354
3
+ metadata.gz: f1c6ffb71ae7ab9ef70537e9dd8c743ff65e1c6c
4
+ data.tar.gz: 23c5835ec164d350961249f35083bf1c6d61931e
5
5
  SHA512:
6
- metadata.gz: '078ccdfb5abd001c67da8e954cef22e18ff1c22705cd3dd5f967c5836860be2085daffb337a6109488c8d196aba4a47acd3d47ad67878f13cefcafee5bd6c0e1'
7
- data.tar.gz: 94ccc5d2abf988099eba38a99c0bb5a32304c86546f50d29b7336cf8122d665a4c5026c45240a7e5e0bbfae441d50b73ebb64818ad13905aad36073bf9508f23
6
+ metadata.gz: 783f19226c645fa6df7977d2b2074c6796bb2021b958f9e5668dbd6c25de32ec9102dad42315b15cfbb2a10ad83b4750bb94d4c776725b0a1d4824576f853862
7
+ data.tar.gz: 62bafed781b7b4b1afc7000995dbac46c1a91d4d1fd463fc3a7fb46df62dff41df8db4fbb900f2b32cd5f118a9dca062bc8405ac19734f84932c2e4d814948c4
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- flowcation (0.2.19)
4
+ flowcation (0.3.0)
5
5
  activesupport (~> 5.1.5)
6
6
  nokogiri (~> 1.8.2)
7
7
 
@@ -19,6 +19,7 @@ module Flowcation
19
19
 
20
20
  element = doc.at_xpath(@xpath)
21
21
  raise SubstitutionNotFoundException.build(xpath: @xpath, name: @name) unless element
22
+ #self.class.build_substitution_type(@type).substitute(doc)
22
23
  case @type
23
24
  when 'content'
24
25
  doc.at_xpath(@xpath).content = value(doc.at_xpath(@xpath))
@@ -27,10 +28,10 @@ module Flowcation
27
28
  node.content = value(node)
28
29
  end
29
30
  when 'attribute'
30
- doc.at_xpath(@xpath).attributes[@key].value = value(doc.at_xpath(@xpath))
31
+ doc.at_xpath(@xpath)[@key] = value(doc.at_xpath(@xpath))
31
32
  when 'attribute_collection'
32
33
  doc.xpath(@xpath).each do |node|
33
- node.attributes[@key].value = value(node)
34
+ node[@key] = value(node)
34
35
  end
35
36
  when 'replace'
36
37
  doc.at_xpath(@xpath).replace Nokogiri::XML::Text.new(value(doc.at_xpath(@xpath)), doc.document)
@@ -1,3 +1,3 @@
1
1
  module Flowcation
2
- VERSION = "0.2.19"
2
+ VERSION = "0.3.0"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: flowcation
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.19
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matthias Hennemeyer
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-04-16 00:00:00.000000000 Z
11
+ date: 2018-04-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport