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.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/lib/path.rb +2 -0
  3. data/lib/rule/objcopy.rb +7 -1
  4. metadata +5 -5
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5054b9f6f86bbdef798bcba4906245c4112bd59bdeb7865d904f07c15b04c7c3
4
- data.tar.gz: 244eb986186f443c54a123adb30a3b5e79aa73b38189600ad744a38867bc4c2c
3
+ metadata.gz: 7f49d027a321448925e0f892832dccc8b404ca19bc4bc0562c1d8f590e7bcc56
4
+ data.tar.gz: 3e6e8a0c6735f9f384fbfae3801a7dc9dd308a66741e8cb984b0b1bf666d2905
5
5
  SHA512:
6
- metadata.gz: 537d73019d1952b24f1b05c2cae0b03d30dde67584e0fc670189a94aa8e4aa673b13d214cf5c3e291d38aeaa9ca83b71a66f9aa996513992adc314ca4918f964
7
- data.tar.gz: efd5400d63f73c8a11d01f92a5ef12fe25db21452690a6b67d05bad4d0134f366b0704111aadba475229cd2c158bb297032d5b6c2c359816cf8e62e1dcbce658
6
+ metadata.gz: 42fe34af7f11eae56ed29ab62143436c9edfdfd6cddfb39e4467081e6ff9be6e8ea025eaab644991eb662d73a2dba3ece969db197c42e54e2c64a4c8e1f7bf06
7
+ data.tar.gz: a0d658bd2812311da1d7814d928d974cffe871e6e1e0dc2f0139b6329d5a3fd8d0be69bbe7ed3e317affd41d9d6471bedec75ab80314620502f4b679052757e5
data/lib/path.rb CHANGED
@@ -44,6 +44,8 @@ module Shog
44
44
  else
45
45
  return path
46
46
  end
47
+ elsif path.is_a?(PathSet)
48
+ return self.make(path.single_path, params)
47
49
  else
48
50
  raise "Cannot make path from #{path}"
49
51
  end
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 = PathSet.make(Path.make(params[:output], :outoftree => true))
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.0
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-01-08 00:00:00.000000000 Z
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: '2.4'
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.3
87
+ rubygems_version: 2.7.6
88
88
  signing_key:
89
89
  specification_version: 4
90
90
  summary: Ruby frontend for Ninja build system