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 +4 -4
- data/lib/haxe/cli/proxy/command.rb +7 -5
- data/lib/haxe/cli/proxy/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5ba02c3b17eb763fc3489b50c8223b00c927d8f7
|
4
|
+
data.tar.gz: afdbfe01ece3b420c5a7add8b37b7686a71478a7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
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.
|
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-
|
11
|
+
date: 2015-08-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|