ian 0.5.0 → 0.5.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 275263c7fe3189b9bcf5abcde074c7e6e1ea259e
4
- data.tar.gz: c9874e5c5b93b50ee4712dd1cd20b50cd44d9823
3
+ metadata.gz: 4f1c4418c802dc0e70d42aa29660d7cc5b86f9aa
4
+ data.tar.gz: 3d4ad360116e4f78a37256f6e71f6cea3deec032
5
5
  SHA512:
6
- metadata.gz: 08d1503a29ac3a3ded30c8ebe8d9f37e76e3f4b821e0005a5079e0576c202ee5be82ac87de7a39c1bb6717eb6e755cbbef2acc71b7b9630098b8f51cf4d99ffd
7
- data.tar.gz: af8ab880603887338802c7d3e36fedfd60a554f410ae4b8013148bf4dd1b9a8e286cb8fc5cc34caa644adeabe8708892542c07a47f056309d681c4ad28705064
6
+ metadata.gz: 50103f0480fcf428bdaadc62d82e834b7d7d591f9b17b1ecaf71ef51fbe4f04c605f3bff7881b8d91b1271b6248d27fc99b7e7a454e781c4a5759ac75953b2c9
7
+ data.tar.gz: 1fe06058c8ceebc0b0f1013376227ba8caa989f801a8bd2d72418038ab9d1e5ea94e1a7dfd8eeb2dadc660263eed77cf26399a5aa58a24f5a803573d7d926908
data/lib/ian.rb CHANGED
@@ -30,7 +30,7 @@ module Ian
30
30
  def init(path, log)
31
31
  dpath = debpath(path)
32
32
  cpath = ctrlpath(path)
33
-
33
+
34
34
  FileUtils.mkdir_p(dpath)
35
35
  log.info "Created DEBIAN folder"
36
36
 
@@ -68,7 +68,7 @@ module Ian
68
68
  def build_package(path, log)
69
69
  c = control(path)
70
70
  c[:size] = Utils.determine_installed_size(path)
71
- c.save
71
+ Ian::Control.save(c, path)
72
72
 
73
73
  pkgr = Ian::Packager.new(path, c, log)
74
74
  pkgr.run
data/lib/ian/control.rb CHANGED
@@ -70,8 +70,8 @@ module Ian
70
70
  # save the control file to disk
71
71
  # raises Ian::ValidationError
72
72
  def self.save(ctrl, path)
73
- c.valid!
74
- File.write(path, c.to_s)
73
+ ctrl.valid!
74
+ File.write(File.join(path, 'control'), ctrl.to_s)
75
75
  end
76
76
 
77
77
  # default values for a new control file
@@ -127,6 +127,8 @@ module Ian
127
127
  }
128
128
  end
129
129
 
130
+ def fields; self.class.fields; end
131
+
130
132
  def self.relationship_fields
131
133
  [:replaces, :conflicts, :recommends, :suggests, :enhances, :predepends, :depends, :breaks]
132
134
  end
@@ -181,7 +183,7 @@ module Ian
181
183
  end
182
184
 
183
185
  fields[:long_desc] = text.scan(/^ (.*)$/).flatten
184
-
186
+
185
187
  return fields
186
188
  end
187
189
 
data/lib/ian/packager.rb CHANGED
@@ -108,6 +108,8 @@ module Ian
108
108
 
109
109
  files+= igns
110
110
  end
111
+
112
+ files
111
113
  end
112
114
 
113
115
  end
data/lib/ian/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Ian
2
- VERSION = "0.5.0"
2
+ VERSION = "0.5.1"
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.0
4
+ version: 0.5.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Robert McLeod