shog-build 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/path.rb +2 -0
- data/lib/rule/objcopy.rb +7 -1
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7f49d027a321448925e0f892832dccc8b404ca19bc4bc0562c1d8f590e7bcc56
|
4
|
+
data.tar.gz: 3e6e8a0c6735f9f384fbfae3801a7dc9dd308a66741e8cb984b0b1bf666d2905
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 42fe34af7f11eae56ed29ab62143436c9edfdfd6cddfb39e4467081e6ff9be6e8ea025eaab644991eb662d73a2dba3ece969db197c42e54e2c64a4c8e1f7bf06
|
7
|
+
data.tar.gz: a0d658bd2812311da1d7814d928d974cffe871e6e1e0dc2f0139b6329d5a3fd8d0be69bbe7ed3e317affd41d9d6471bedec75ab80314620502f4b679052757e5
|
data/lib/path.rb
CHANGED
data/lib/rule/objcopy.rb
CHANGED
@@ -17,7 +17,13 @@ module Shog
|
|
17
17
|
|
18
18
|
def target(params)
|
19
19
|
input = PathSet.make(params[:input])
|
20
|
-
output =
|
20
|
+
output = if params[:output]
|
21
|
+
PathSet.make(Path.make(params[:output], :outoftree => true))
|
22
|
+
elsif params[:suffix]
|
23
|
+
PathSet.make(Path.make(params[:input], :outoftree => true).with_suffix(params[:suffix]))
|
24
|
+
else
|
25
|
+
raise "Please either provide output name of suffix for output file"
|
26
|
+
end
|
21
27
|
|
22
28
|
variables = {
|
23
29
|
'bin' => params[:bin] || @bin || 'objcopy',
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: shog-build
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Anatol Pomozov
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-03-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|
@@ -74,9 +74,9 @@ require_paths:
|
|
74
74
|
- lib
|
75
75
|
required_ruby_version: !ruby/object:Gem::Requirement
|
76
76
|
requirements:
|
77
|
-
- - "
|
77
|
+
- - ">="
|
78
78
|
- !ruby/object:Gem::Version
|
79
|
-
version: '
|
79
|
+
version: '0'
|
80
80
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
81
81
|
requirements:
|
82
82
|
- - ">="
|
@@ -84,7 +84,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
84
84
|
version: '0'
|
85
85
|
requirements: []
|
86
86
|
rubyforge_project:
|
87
|
-
rubygems_version: 2.7.
|
87
|
+
rubygems_version: 2.7.6
|
88
88
|
signing_key:
|
89
89
|
specification_version: 4
|
90
90
|
summary: Ruby frontend for Ninja build system
|