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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7dd6490bc6c3efdd00be89135b717894fec2300e
4
- data.tar.gz: 292bf35c50e2323ec3ecfcfa2c25648d6616fe95
3
+ metadata.gz: 597fb92023415fcb2910c1ff6e900d225eac87cd
4
+ data.tar.gz: 914baad6ce97423c903e138dc1847cac2fd11e57
5
5
  SHA512:
6
- metadata.gz: c528e51838e48492aed00199fb5464d5176ad2c8b183170d97aa908f88092961a083246ad8f4ac0a803840e90941af6d1a7e7edda51fb53e247843ad8668770e
7
- data.tar.gz: 5b42c916417bc603ebb8d15494ef3b267750ce16b09916fc38e041e18d5b9c9788da914640e8851384c71e28359da58be66b590900632264800f0a6b51b84db7
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(STDOUT)
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, "Run the build script prior to packaging"
81
- on :p, :path, "Output only the path to the package"
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.path?
100
+ if !opts.qquiet?
99
101
  puts pkg
100
102
  end
101
103
  end
@@ -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/docs/#{@ctrl[:package]}"
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/docs/#{pkgname}"
60
+ @log.info "#{file} => usr/share/doc/#{pkgname}"
61
61
  end
62
62
  end
63
63
 
@@ -1,3 +1,3 @@
1
1
  module Ian
2
- VERSION = "0.9.0"
2
+ VERSION = "0.9.3"
3
3
  end
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.0
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-13 00:00:00.000000000 Z
11
+ date: 2017-10-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: slop