mixml 0.9.4 → 0.9.5

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,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- N2ZmMjE2Y2Q1OWE4NjA3YmM1ZjcwYWU2YTRmYzg1MDNlNjI5ZTk3MA==
4
+ ZGY3Yzg4NTM3ODBjNjFkOTU1YWVkMjk4MTU5MzNlNGFkMzk3NGY5Mw==
5
5
  data.tar.gz: !binary |-
6
- Y2M0NTNhOWJlYWRlN2JjNTRiNTc2MjcyMDQzMDlkM2M1YTFkZTBlNA==
6
+ MTdhODEyZTUxMmQ4YTc5ZmUyMDUyNWM3OGU1NmI4YjI3NDBmM2RhMQ==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- ZGU2MzhhMzNlZTA3NDMwMmU3MzJkYWExNDI3MzFjMWZkYjM0Njg4MmI0YmVm
10
- ZGYyM2EwNThhMGY1MWRiODk2NGI4MmVhNjNkN2Q1ZWQxNTVmYzdjN2QwNTE0
11
- NWFlMjZjMjY2MWZmYWZlZWI4YTg1Mzc4ZDZiNDAxMWEwOTcxZWQ=
9
+ NGUzMDI1ZGNiNWY1MjNmNTQwMWFlZDk2ZjI5NzUwYzRhZTZiNGE1YmYyMmQ2
10
+ OTRmMGNiMmRjODU3OTRiZmEwMzRjMGI0Y2U1MWM3ZjA5NmViZTE3YWRmOWVj
11
+ YzA2YWJkNWZhZDUwZmM0Y2JjNjM4NjI4MGYxZjU4YzBjOWNmOTA=
12
12
  data.tar.gz: !binary |-
13
- YjBiMjQzMDYyMDdhOTEyYzEyMDg0MjBjOTBlMmQwM2JmYjZkMmU2N2JjZTdi
14
- NGM4ZjhkMDc1MjhiMWViYzc3NDYzZWYzY2IzN2ZhN2M2ODY5NDBkOGFlNTlh
15
- MTRlN2Y1YTZlOGU0ZWExZjE5MTdmMTJlOTE0MTJhYjQ5M2NmODA=
13
+ Njc1ZGJlNzc1OGYyYjNjODA2YjYxMGEzZTkxNDQ3ZDIxODU3Y2U3NDUyYjI1
14
+ NjM1ZTk5ZGE0ZDZlNTZiNjkxYWJlM2U5ZDYzMzM0YWNlOGNmY2ViZjdjOGI0
15
+ YzIwZjAwNjMwODViZTNmMzZiMzI1ZDViMzE4ZTZhOTI4YWI5NWU=
data/bin/mixml CHANGED
@@ -3,5 +3,5 @@ require 'rubygems'
3
3
  require 'bundler/setup'
4
4
  require 'mixml/application'
5
5
 
6
- # Run application if we're the main file
7
- Mixml::Application.new.run if $0 == __FILE__
6
+ # Run application
7
+ Mixml::Application.new.run
@@ -93,9 +93,13 @@ Just create a tool object, and let it execute a mixml script.
93
93
  tool = Mixml::Tool.new
94
94
  tool.pretty = true
95
95
 
96
- tool.work('test.xml') do
97
- xpath '//philosopher[@name="Hobbes"]' do
98
- rename 'tiger'
96
+ # Redirect stdout
97
+ redirect do
98
+ # Here comes the actual example
99
+ tool.work('test.xml') do
100
+ xpath '//philosopher[@name="Hobbes"]' do
101
+ rename 'tiger'
102
+ end
99
103
  end
100
104
  end
101
105
 
@@ -1,4 +1,4 @@
1
1
  module Mixml
2
2
  # Current version
3
- VERSION = '0.9.4'
3
+ VERSION = '0.9.5'
4
4
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mixml
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.4
4
+ version: 0.9.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jochen Seeber
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-08-22 00:00:00.000000000 Z
11
+ date: 2014-08-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: commander
@@ -72,14 +72,14 @@ dependencies:
72
72
  requirements:
73
73
  - - ~>
74
74
  - !ruby/object:Gem::Version
75
- version: '1.6'
75
+ version: '1.7'
76
76
  type: :development
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
80
  - - ~>
81
81
  - !ruby/object:Gem::Version
82
- version: '1.6'
82
+ version: '1.7'
83
83
  - !ruby/object:Gem::Dependency
84
84
  name: rake
85
85
  requirement: !ruby/object:Gem::Requirement
@@ -210,7 +210,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
210
210
  requirements:
211
211
  - - ! '>='
212
212
  - !ruby/object:Gem::Version
213
- version: '1.9'
213
+ version: 1.9.3
214
214
  required_rubygems_version: !ruby/object:Gem::Requirement
215
215
  requirements:
216
216
  - - ! '>='
@@ -222,5 +222,12 @@ rubygems_version: 2.2.2
222
222
  signing_key:
223
223
  specification_version: 4
224
224
  summary: Easily manipulate multiple XML files at once
225
- test_files: []
225
+ test_files:
226
+ - demo/application_checks.md
227
+ - demo/application_commands.md
228
+ - demo/application_invocation.md
229
+ - demo/application_output.md
230
+ - demo/application_selection.md
231
+ - demo/application_values.md
232
+ - demo/applique/test.rb
226
233
  has_rdoc: