ian 0.8.1 → 0.9.0

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: 579431386039645ba3a472d503579d2402333487
4
- data.tar.gz: 822044c570e6980953f24d70e4e47399fe406c75
3
+ metadata.gz: 7dd6490bc6c3efdd00be89135b717894fec2300e
4
+ data.tar.gz: 292bf35c50e2323ec3ecfcfa2c25648d6616fe95
5
5
  SHA512:
6
- metadata.gz: ea521d97eb6ec59c6faef1970b2c872249364c2d6765d147aa96b532db947aba6b69c0b329ebad974e373eaa76ed6262f21259b7f8f8fbd59b14dd06dbc041ae
7
- data.tar.gz: 194e81dd2581e4fb3741bd67413992af1136b1710d9b159af2c0e47eeb27c0b59358b5ddf2f2663d218d104918e1d2f8cab95ac9488ecfe4e2a83efab875b21c
6
+ metadata.gz: c528e51838e48492aed00199fb5464d5176ad2c8b183170d97aa908f88092961a083246ad8f4ac0a803840e90941af6d1a7e7edda51fb53e247843ad8668770e
7
+ data.tar.gz: 5b42c916417bc603ebb8d15494ef3b267750ce16b09916fc38e041e18d5b9c9788da914640e8851384c71e28359da58be66b590900632264800f0a6b51b84db7
@@ -23,6 +23,7 @@ module Ian
23
23
  end
24
24
 
25
25
  move_root_files
26
+ generate_md5sums
26
27
  success, pkg, output = *build
27
28
 
28
29
  raise RuntimeError, "Failed to build package: #{output}" unless success
@@ -44,7 +45,7 @@ module Ian
44
45
 
45
46
  # move extraneous stuff like README and CHANGELOG to /usr/share/doc
46
47
  def move_root_files
47
- docs = "#{@dir}/usr/share/docs/#{pkgname}"
48
+ docs = "#{@dir}/usr/share/docs/#{@ctrl[:package]}"
48
49
  files = Dir.entries(@dir).select {|f| !File.directory?(f) }
49
50
  return unless files.any?
50
51
 
@@ -62,6 +63,7 @@ module Ian
62
63
 
63
64
  # build the package out of the temp dir
64
65
  def build
66
+ @log.info "Packaging files"
65
67
  pkgdir = File.join(@path, "pkg")
66
68
  FileUtils.mkdir_p pkgdir
67
69
 
@@ -92,6 +94,14 @@ module Ian
92
94
  cmd
93
95
  end
94
96
 
97
+ def generate_md5sums
98
+ @log.debug "Generating md5sums"
99
+ sums = `find #{@dir} -type f|sort|xargs md5sum|grep -v DEBIAN`
100
+ sums.gsub!(/#{@dir}\//, "")
101
+ File.write(File.join(@dir, "DEBIAN", "md5sums"), sums)
102
+ File.write(File.join(@path, "DEBIAN", "md5sums"), sums)
103
+ end
104
+
95
105
  def excludes
96
106
  files = %w[.git .gitignore .ianignore]
97
107
  ignorefile = File.join(@path, ".ianignore")
@@ -1,3 +1,3 @@
1
1
  module Ian
2
- VERSION = "0.8.1"
2
+ VERSION = "0.9.0"
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.8.1
4
+ version: 0.9.0
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-08-28 00:00:00.000000000 Z
11
+ date: 2017-10-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: slop
@@ -111,7 +111,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
111
111
  version: '0'
112
112
  requirements: []
113
113
  rubyforge_project:
114
- rubygems_version: 2.6.10
114
+ rubygems_version: 2.5.1
115
115
  signing_key:
116
116
  specification_version: 4
117
117
  summary: Gem for manipulating Debian source packages from CLI