ian 0.5.2 → 0.5.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: eef0a9d2b8f8eb7b3d6191ef394330eb726e3f47
4
- data.tar.gz: 5af7d2748dc79cc958d96d2cd326030b198a9759
3
+ metadata.gz: de4bcf5f0a0b4142e5c0bf55307ab8775c07aca2
4
+ data.tar.gz: 1db02e646ad6b8a337bad3d4afd111ea9827705c
5
5
  SHA512:
6
- metadata.gz: 40e6d5176b2ba6e214718ed21e8f600b29d462868b6cee58389a87108822c167d30764a663c9eed54183eaf5b8cbb9a675abe4216490c437081c99dcc3a88b85
7
- data.tar.gz: 094b451d2f8bb9f5ef2999df088bae4636ef85d03f8ed0127b85dd0a58e6a986a976d2f6d9e37201725a681b30f118c07491db7c41a277a41d96ceac60d9d1f2
6
+ metadata.gz: 79051668953ad9be1db7102d1b45c65f9842140ac90998d83698e6deab7081dbbfc156a51a4ca3f1fe1adeafe7066173b9dcbaada253133d87e31355e89f8db0
7
+ data.tar.gz: 0b4f52a7c647e86a530e73beaa3f611a8a319419b58c4b1b2533b980764a2a11d5028f52d90dd0dfa38278238a466778e99f318e6de451a28cd35a0b51c1924f
data/bin/ian CHANGED
@@ -72,10 +72,11 @@ Slop.parse help: true do
72
72
 
73
73
  run do |opts, args|
74
74
  check_initialized!
75
-
75
+
76
76
  c = Ian.control(IAN_DIR)
77
- c.update(opts.to_hash)
78
- c.save
77
+ opts = opts.to_hash.reject! {|k,v| v.nil? }
78
+ c.update(opts)
79
+ Ian::Control.save(c, Ian.ctrlpath(IAN_DIR))
79
80
  puts "Updated control file"
80
81
  end
81
82
  end
@@ -83,11 +84,21 @@ Slop.parse help: true do
83
84
  command :info do
84
85
  description "Print information for this package"
85
86
 
87
+ on :v, :version, "Show just the version of this package"
88
+ on :a, :arch, "Show just the architecture of this package"
89
+
86
90
  run do |opts, args|
87
91
  check_initialized!
88
92
 
89
93
  c = Ian.control(IAN_DIR)
90
- puts c
94
+ case
95
+ when opts.version?
96
+ puts c[:version]
97
+ when opts.arch?
98
+ puts c[:arch]
99
+ else
100
+ puts c
101
+ end
91
102
 
92
103
  unless c.valid?
93
104
  puts "\n"
@@ -52,7 +52,9 @@ module Ian
52
52
 
53
53
  # move all the files from the root of the package
54
54
  files.each do |file|
55
+ file = File.join(@dir, file)
55
56
  next unless File.exist?(file)
57
+
56
58
  FileUtils.mv(file, docs)
57
59
  @log.info "#{file} => usr/share/docs/#{pkgname}"
58
60
  end
@@ -1,3 +1,3 @@
1
1
  module Ian
2
- VERSION = "0.5.2"
2
+ VERSION = "0.5.3"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ian
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.2
4
+ version: 0.5.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Robert McLeod