builddir 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 +7 -0
- data/CHANGELOG.md +5 -0
- data/lib/builddir.rb +14 -3
- data/lib/builddir/version.rb +1 -1
- metadata +11 -22
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: df6be8f636e1133b7097d050a8c73d260a382dd2
|
4
|
+
data.tar.gz: e929ac08a4cd490d001bfec6de33e584d44aa8a3
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: bf0f825e0ffdff8bde3c003bfed2dd35da72eebb1e4b2f2658e442ef95dc0223ae54402a1077cace34e0b73cc83ac231f8b46ce3e1716054db5f21f2c189dd37
|
7
|
+
data.tar.gz: 79f463b399bd840c17e37a094c9fb09facd93e89ad1e2d5cc164b2670680dadd766b113667da16b373c38cfef906e0d803fbb5cef56b5d6c212220f5865fe055
|
data/CHANGELOG.md
CHANGED
data/lib/builddir.rb
CHANGED
@@ -1,6 +1,7 @@
|
|
1
1
|
require "builddir/version"
|
2
2
|
require "builddir/utils"
|
3
3
|
|
4
|
+
require 'fileutils'
|
4
5
|
require 'pathname'
|
5
6
|
require 'yaml'
|
6
7
|
|
@@ -24,7 +25,13 @@ module Builddir
|
|
24
25
|
#
|
25
26
|
# @param mapping [Array<Array(String, String)>] the mapping which should be saved
|
26
27
|
# @param file [String] path of the mapping file
|
27
|
-
def saveMapping(mapping, file)
|
28
|
+
def Builddir.saveMapping(mapping, file = nil)
|
29
|
+
file = getMappingsFilePath() if file.nil?
|
30
|
+
|
31
|
+
# create the directory when needed
|
32
|
+
dirname = File.dirname(file)
|
33
|
+
FileUtils.mkdir_p(dirname) unless File.exists?(dirname)
|
34
|
+
|
28
35
|
File.open(file, 'w') do |f|
|
29
36
|
f.write mapping.to_yaml
|
30
37
|
end
|
@@ -63,11 +70,15 @@ module Builddir
|
|
63
70
|
end
|
64
71
|
return nil
|
65
72
|
end
|
66
|
-
|
73
|
+
|
74
|
+
# Determine the build directory base path
|
75
|
+
# @return [String] the base path for the build directories
|
67
76
|
def Builddir.getBuildBasePath()
|
68
77
|
return ENV['DEFAULT_BUILDDIR'] || "/tmp/builddir"
|
69
78
|
end
|
70
|
-
|
79
|
+
|
80
|
+
# Determine path to the mapping file
|
81
|
+
# @return [String] the path to the mapping file
|
71
82
|
def Builddir.getMappingsFilePath()
|
72
83
|
return File.join(getBuildBasePath(),"builddir_mapping.yml")
|
73
84
|
end
|
data/lib/builddir/version.rb
CHANGED
metadata
CHANGED
@@ -1,8 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: builddir
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
5
|
-
prerelease:
|
4
|
+
version: 0.1.1
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- Mario Werner
|
@@ -14,7 +13,6 @@ dependencies:
|
|
14
13
|
- !ruby/object:Gem::Dependency
|
15
14
|
name: bundler
|
16
15
|
requirement: !ruby/object:Gem::Requirement
|
17
|
-
none: false
|
18
16
|
requirements:
|
19
17
|
- - ~>
|
20
18
|
- !ruby/object:Gem::Version
|
@@ -22,7 +20,6 @@ dependencies:
|
|
22
20
|
type: :development
|
23
21
|
prerelease: false
|
24
22
|
version_requirements: !ruby/object:Gem::Requirement
|
25
|
-
none: false
|
26
23
|
requirements:
|
27
24
|
- - ~>
|
28
25
|
- !ruby/object:Gem::Version
|
@@ -30,23 +27,20 @@ dependencies:
|
|
30
27
|
- !ruby/object:Gem::Dependency
|
31
28
|
name: rake
|
32
29
|
requirement: !ruby/object:Gem::Requirement
|
33
|
-
none: false
|
34
30
|
requirements:
|
35
|
-
- -
|
31
|
+
- - '>='
|
36
32
|
- !ruby/object:Gem::Version
|
37
33
|
version: '0'
|
38
34
|
type: :development
|
39
35
|
prerelease: false
|
40
36
|
version_requirements: !ruby/object:Gem::Requirement
|
41
|
-
none: false
|
42
37
|
requirements:
|
43
|
-
- -
|
38
|
+
- - '>='
|
44
39
|
- !ruby/object:Gem::Version
|
45
40
|
version: '0'
|
46
41
|
- !ruby/object:Gem::Dependency
|
47
42
|
name: trollop
|
48
43
|
requirement: !ruby/object:Gem::Requirement
|
49
|
-
none: false
|
50
44
|
requirements:
|
51
45
|
- - ~>
|
52
46
|
- !ruby/object:Gem::Version
|
@@ -54,7 +48,6 @@ dependencies:
|
|
54
48
|
type: :runtime
|
55
49
|
prerelease: false
|
56
50
|
version_requirements: !ruby/object:Gem::Requirement
|
57
|
-
none: false
|
58
51
|
requirements:
|
59
52
|
- - ~>
|
60
53
|
- !ruby/object:Gem::Version
|
@@ -89,34 +82,30 @@ files:
|
|
89
82
|
homepage: https://github.com/niosHD/builddir.git
|
90
83
|
licenses:
|
91
84
|
- MIT
|
92
|
-
|
85
|
+
metadata: {}
|
86
|
+
post_install_message: |+
|
87
|
+
Thank you for installing builddir.
|
93
88
|
|
89
|
+
Please follow the remaining installation steps from the README (https://github.com/niosHD/builddir.git) to finish the installation.
|
94
90
|
|
95
|
-
Please follow the remaining installation steps from the README (https://github.com/niosHD/builddir.git)
|
96
|
-
to finish the installation.
|
97
|
-
|
98
|
-
|
99
|
-
'
|
100
91
|
rdoc_options: []
|
101
92
|
require_paths:
|
102
93
|
- lib
|
103
94
|
required_ruby_version: !ruby/object:Gem::Requirement
|
104
|
-
none: false
|
105
95
|
requirements:
|
106
|
-
- -
|
96
|
+
- - '>='
|
107
97
|
- !ruby/object:Gem::Version
|
108
98
|
version: '0'
|
109
99
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
110
|
-
none: false
|
111
100
|
requirements:
|
112
|
-
- -
|
101
|
+
- - '>='
|
113
102
|
- !ruby/object:Gem::Version
|
114
103
|
version: '0'
|
115
104
|
requirements: []
|
116
105
|
rubyforge_project:
|
117
|
-
rubygems_version:
|
106
|
+
rubygems_version: 2.0.3
|
118
107
|
signing_key:
|
119
|
-
specification_version:
|
108
|
+
specification_version: 4
|
120
109
|
summary: builddir is a little helper tool for C/C++ programmers to manage out-of-source
|
121
110
|
build directories.
|
122
111
|
test_files: []
|