pdi 1.0.0.pre.alpha.1 → 1.0.0

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
  SHA256:
3
- metadata.gz: e653f6aed9fd26cce60e4f84cfdf662e0be847f40828142dd28fcc6118150cc7
4
- data.tar.gz: 6ab7d8da5c628dc867d0607bcb3a3db6a5b4c030f07d91adc3f47516a2b3350f
3
+ metadata.gz: dc210f1ffd8bc1229082e29d8f2a54caea3d8e037d0b8e0e641265e171628b15
4
+ data.tar.gz: aae44f8e89bd3ebee8ca03164cef6b1b0ddb07af2fafa2e412e481123451bc10
5
5
  SHA512:
6
- metadata.gz: 2e2688a153fea7a256e80a9e682b6488e71923d2752e32f37c23a39c7899f33faf2ffd99c91b5770e4e4279dd0af0ea9f3bdd6d52057b9780d6f798f7a44fedc
7
- data.tar.gz: 66f618cc1203d313091cd849403501c127907a719f2b6503792cffe606f02062d0f2f31e179a45395e4460c47245de5461c1b78496208ad5ddf68437f7889558
6
+ metadata.gz: 99c07ce29149acef3b7dae5528a777d7e0172124fe0d987383157f3deeacfc6d3ccdb9ee2d66a20fb778b91729a083946502ffc9c4d1c2ca9e4d7c54daf591bc
7
+ data.tar.gz: bb1724a9dfa3999a4a66ede97246b20b6945f231b087e132b55135c299637ca79fac556f80dee0e7782e73a1485f4bc24690000e7498a5bde854edb11955d032
data/CHANGELOG.md CHANGED
@@ -0,0 +1,3 @@
1
+ # 1.0.0 (February 19th, 2020)
2
+
3
+ Initial release.
data/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # Pdi
1
+ # PDI
2
2
 
3
3
  ---
4
4
 
@@ -36,14 +36,14 @@ Pull Requests are welcome for:
36
36
 
37
37
  ## Examples
38
38
 
39
- All examples assume Pdi has been installed to your home directory: `~/data-integration`.
39
+ All examples assume PDI has been installed to your home directory: `~/data-integration`.
40
40
 
41
41
  ### Creating a Spoon Instance
42
42
 
43
- `Pdi::Spoon` is the common interface you will use when interacting with Pdi. It will use Pan and Kitchen for executing Spoon commands.
43
+ `Pdi::Spoon` is the common interface you will use when interacting with PDI. It will use Pan and Kitchen for executing Spoon commands.
44
44
 
45
45
  ```ruby
46
- spoon = Pdi::Spoon.new(dir: `~/data-integration`)
46
+ spoon = Pdi::Spoon.new(dir: '~/data-integration')
47
47
  ```
48
48
 
49
49
  Note: You can also override the names of the scripts using the `kitchen` and `pan` constructor keyword arguments. The defaults are `kitchen.sh` and `pan.sh`, respectively.
@@ -71,7 +71,7 @@ result = spoon.run(options)
71
71
 
72
72
  You can access the raw command line results by tapping into the execution attribute of the result or error object.
73
73
 
74
- Note: Not all options are currently supported. See Pdi's official references for [Pan](https://help.pentaho.com/Documentation/6.1/0L0/0Y0/070/000) and [Kitchen](https://help.pentaho.com/Documentation/6.1/0L0/0Y0/070/010) to see all options.
74
+ Note: Not all options are currently supported. See PDI's official references for [Pan](https://help.pentaho.com/Documentation/6.1/0L0/0Y0/070/000) and [Kitchen](https://help.pentaho.com/Documentation/6.1/0L0/0Y0/070/010) to see all options.
75
75
 
76
76
  ## Contributing
77
77
 
@@ -11,6 +11,8 @@ module Pdi
11
11
  class Spoon
12
12
  # This class subclasses Ruby's StandardError and provides a mapping to custom Kitchen
13
13
  # specific error codes to messages.
14
+ # You can find the list of errors in Pentaho's documentation site, for example:
15
+ # https://help.pentaho.com/Documentation/8.0/Products/Data_Integration/Command_Line_Tools
14
16
  class KitchenError < StandardError
15
17
  MESSAGES = {
16
18
  '1' => 'Errors occurred during processing',
@@ -11,6 +11,8 @@ module Pdi
11
11
  class Spoon
12
12
  # This class subclasses Ruby's StandardError and provides a mapping to custom Pan
13
13
  # specific error codes to messages.
14
+ # You can find the list of errors in Pentaho's documentation site, for example:
15
+ # https://help.pentaho.com/Documentation/8.0/Products/Data_Integration/Command_Line_Tools
14
16
  class PanError < StandardError
15
17
  MESSAGES = {
16
18
  '1' => 'Errors occurred during processing',
data/lib/pdi/spoon.rb CHANGED
@@ -12,7 +12,7 @@ require_relative 'spoon/parser'
12
12
  require_relative 'spoon/result'
13
13
 
14
14
  module Pdi
15
- # This class is the main wrapper for Pdi's pan and kitchen scripts.
15
+ # This class is the main wrapper for PDI's pan and kitchen scripts.
16
16
  class Spoon
17
17
  DEFAULT_KITCHEN = 'kitchen.sh'
18
18
  DEFAULT_PAN = 'pan.sh'
@@ -30,7 +30,7 @@ module Pdi
30
30
  assert_required(:pan, pan)
31
31
 
32
32
  @args = Array(args)
33
- @dir = dir.to_s
33
+ @dir = File.expand_path(dir.to_s)
34
34
  @kitchen = kitchen.to_s
35
35
  @pan = pan.to_s
36
36
  @executor = Executor.new
data/lib/pdi/version.rb CHANGED
@@ -8,5 +8,5 @@
8
8
  #
9
9
 
10
10
  module Pdi
11
- VERSION = '1.0.0-alpha.1'
11
+ VERSION = '1.0.0'
12
12
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pdi
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0.pre.alpha.1
4
+ version: 1.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matthew Ruggio
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-02-18 00:00:00.000000000 Z
11
+ date: 2020-02-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: acts_as_hashable
@@ -182,9 +182,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
182
182
  version: 2.3.8
183
183
  required_rubygems_version: !ruby/object:Gem::Requirement
184
184
  requirements:
185
- - - ">"
185
+ - - ">="
186
186
  - !ruby/object:Gem::Version
187
- version: 1.3.1
187
+ version: '0'
188
188
  requirements: []
189
189
  rubygems_version: 3.0.3
190
190
  signing_key: