ian 0.9.0 → 0.9.3
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/bin/ian +7 -5
- data/lib/ian/packager.rb +2 -2
- data/lib/ian/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: 597fb92023415fcb2910c1ff6e900d225eac87cd
|
|
4
|
+
data.tar.gz: 914baad6ce97423c903e138dc1847cac2fd11e57
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: faff8cd618a0f252207169ed1894c20211ac98cd645f6be2ba49fe99b03eb95b699f9f1769765511e3ee52ad23d37b4b5cd0f9bf5e9bbc061dc0cd4da4d9aee3
|
|
7
|
+
data.tar.gz: 5af0b6ccb5d001ca60db74209c5f909a80f9ffcc60fa00053255dd08ef6af632842941dd1cc4716accbb5854e8ae403374008463a6e4bba6a3f931cfd6243149
|
data/bin/ian
CHANGED
|
@@ -15,7 +15,7 @@ def check_initialized!
|
|
|
15
15
|
abort "ERROR: Not initialized" unless initialized?
|
|
16
16
|
end
|
|
17
17
|
|
|
18
|
-
log = Logger.new(
|
|
18
|
+
log = Logger.new(STDERR)
|
|
19
19
|
|
|
20
20
|
Slop.parse help: true do
|
|
21
21
|
|
|
@@ -77,13 +77,15 @@ Slop.parse help: true do
|
|
|
77
77
|
command :pkg do
|
|
78
78
|
description "Build a Debian package"
|
|
79
79
|
|
|
80
|
-
on :b, :build,
|
|
81
|
-
on :p, :path,
|
|
80
|
+
on :b, :build, "Run the build script prior to packaging"
|
|
81
|
+
on :p, :path, "Output only the path to the package (DEPRECATED: use -q)"
|
|
82
|
+
on :q, :quiet, "No log output, just the package path"
|
|
83
|
+
on :qq, :qquiet, "No output at all"
|
|
82
84
|
|
|
83
85
|
run do |opts, args|
|
|
84
86
|
check_initialized!
|
|
85
87
|
|
|
86
|
-
if opts.path?
|
|
88
|
+
if opts.path? || opts.quiet? || opts.qquiet?
|
|
87
89
|
log.level = Logger::FATAL
|
|
88
90
|
end
|
|
89
91
|
|
|
@@ -95,7 +97,7 @@ Slop.parse help: true do
|
|
|
95
97
|
pkg = Ian.build_package(IAN_DIR, log)
|
|
96
98
|
log.info "Package built to #{pkg}"
|
|
97
99
|
|
|
98
|
-
if opts.
|
|
100
|
+
if !opts.qquiet?
|
|
99
101
|
puts pkg
|
|
100
102
|
end
|
|
101
103
|
end
|
data/lib/ian/packager.rb
CHANGED
|
@@ -45,7 +45,7 @@ module Ian
|
|
|
45
45
|
|
|
46
46
|
# move extraneous stuff like README and CHANGELOG to /usr/share/doc
|
|
47
47
|
def move_root_files
|
|
48
|
-
docs = "#{@dir}/usr/share/
|
|
48
|
+
docs = "#{@dir}/usr/share/doc/#{@ctrl[:package]}"
|
|
49
49
|
files = Dir.entries(@dir).select {|f| !File.directory?(f) }
|
|
50
50
|
return unless files.any?
|
|
51
51
|
|
|
@@ -57,7 +57,7 @@ module Ian
|
|
|
57
57
|
next unless File.exist?(file)
|
|
58
58
|
|
|
59
59
|
FileUtils.mv(file, docs)
|
|
60
|
-
@log.info "#{file} => usr/share/
|
|
60
|
+
@log.info "#{file} => usr/share/doc/#{pkgname}"
|
|
61
61
|
end
|
|
62
62
|
end
|
|
63
63
|
|
data/lib/ian/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: ian
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.9.
|
|
4
|
+
version: 0.9.3
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Robert McLeod
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2017-10-
|
|
11
|
+
date: 2017-10-23 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: slop
|