haxe-cli-proxy 0.2.0 → 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: 271fa9c268f8c9efa545b80629b66f5d41f3888a
4
- data.tar.gz: 04ef5267e6527d7cdffcda3b86819bba17e50c43
3
+ metadata.gz: 5ba02c3b17eb763fc3489b50c8223b00c927d8f7
4
+ data.tar.gz: afdbfe01ece3b420c5a7add8b37b7686a71478a7
5
5
  SHA512:
6
- metadata.gz: 244e385f1764b1c508891f29ebd6fd4ec89c442b8466d71dfce3384f7f19a19694122e493cd65930ca4b1b60d2cfbb065c8168b9f8fd5ac3145b7ee2291e8b89
7
- data.tar.gz: 05bb7397acb0031c23f1544e6e3ebbaed434119497cb996ef16ea7d59df2a2a9f424701d0836feb846c8a554b43aa30ef8fc903f3a6be3651cccd46578f024ce
6
+ metadata.gz: 2e2a05bd5c3edfef7b10037262be8c610688688fce784a976eb4b987122fb713ad0f1ab5303a52cb2476dcdb16ed50db558d82948fd4f69612ea2bf8ea4f69c6
7
+ data.tar.gz: 32572084dffc496d886e796d20eb60b422b8dce76bb36b99857c9da02a8f47b308023c5f41f7c45742db0690227bcfbccfcbc3d61b81ab5b4719899fccd9ddcc
@@ -57,6 +57,7 @@ module Haxe
57
57
  ##
58
58
  # Execute haxe compile command.
59
59
  #
60
+ # @param [String] project_dir compile target project directory.
60
61
  # @param [Hash] options compile options.
61
62
  # if uses hxml, give option parameter such as...
62
63
  # {
@@ -75,22 +76,23 @@ module Haxe
75
76
  # }
76
77
  # @return [::Haxe::Cli::Command::Result] haxe compile command results.
77
78
  ##
78
- def compile(options)
79
+ def compile(project_dir, options)
79
80
  builder = ::Haxe::Cli::Proxy::CompileOption::Builder.new(options)
80
- execute "#{HAXE} #{builder}"
81
+ execute "cd #{project_dir} && #{HAXE} #{builder}"
81
82
  end
82
83
 
83
84
  private
84
85
 
85
86
  def execute(command)
86
- Result.new Open3.capture3(command)
87
+ Result.new command, Open3.capture3(command)
87
88
  end
88
89
  end
89
90
 
90
91
  class Result
91
- attr_reader :stdout, :stderr, :status
92
+ attr_reader :exec_command, :stdout, :stderr, :status
92
93
 
93
- def initialize(open3_captured)
94
+ def initialize(exec_command, open3_captured)
95
+ @exec_command = exec_command
94
96
  @stdout, @stderr, @status = open3_captured
95
97
  end
96
98
  end
@@ -1,7 +1,7 @@
1
1
  module Haxe
2
2
  module Cli
3
3
  module Proxy
4
- VERSION = '0.2.0'
4
+ VERSION = '0.3.0'
5
5
  end
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: haxe-cli-proxy
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - k-motoyan
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-08-12 00:00:00.000000000 Z
11
+ date: 2015-08-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler