cany 0.4.0 → 0.5.0

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: bb28ebd8992f0b5c01534840500584da6ad36a65
4
- data.tar.gz: c1afaa9591e78de6d04e9e6b9fd409bc764ee9fc
3
+ metadata.gz: 44528a6664d67c431e7adc47411600ae499c19b1
4
+ data.tar.gz: a8622aa0c1a6c223673786c492f84278601eb612
5
5
  SHA512:
6
- metadata.gz: 8d86b1242fb186b139f1e0d38128d2d4b3a74b32e3ec6ef30329bc72c579cadb41aa073cb1542794a7841a823f88f4fcf10e770ed1eb7e6d50b51490ae4d3f9e
7
- data.tar.gz: 143e0ece665c4e6adfc86a8f80487f53634f8f545f763329a3620a6f472ccf4073740f1d038beb245afdb78e4eeb7b5c2c54d7b18f2b74eea133790e289da141
6
+ metadata.gz: 2155e98a3eaac71bb4b3d87137f71e66d216ecd23780f946d8800c8da56a6a84b280c6e0381b34cf52bf984ff2542c9220b76f36d748773d976ca673790eac08
7
+ data.tar.gz: 9bc822d394c901109359a91dda1b9447046411559c14c3c91477b4e1ab52f5572161e37674c03bfc08a3a373da0a0aab8461ff0ca7c3bbed17f78956cf56a433
@@ -1,3 +1,11 @@
1
+ 0.5.0 / 2013-10-25
2
+ ==================
3
+
4
+ Feature:
5
+
6
+ * Support custom prepare and clean actions in specification
7
+
8
+
1
9
  0.4.0 / 2013-10-24
2
10
  ==================
3
11
 
@@ -21,7 +21,12 @@ module Cany::Dpkg
21
21
  depend creator.ruby_deb + '-dev', situation: :build
22
22
  end
23
23
 
24
+ def prepare
25
+ instance_eval &spec.prepare if spec.prepare
26
+ end
27
+
24
28
  def clean
29
+ instance_eval &spec.clean if spec.clean
25
30
  exec %w(dh clean)
26
31
  end
27
32
 
@@ -7,7 +7,7 @@ module Cany
7
7
 
8
8
  attr_accessor :name, :description, :maintainer_name, :maintainer_email, :website, :licence, :version
9
9
  attr_accessor :base_dir, :recipes, :dependencies, :cany_version_constraint
10
- attr_accessor :build, :binary
10
+ attr_accessor :prepare, :clean, :build, :binary
11
11
 
12
12
  def initialize(dsl=Cany::Specification::DSL, &block)
13
13
  @recipes = []
@@ -38,6 +38,14 @@ module Cany
38
38
  @specification.recipes << Cany::Recipe.from_name(name).new(@specification, &block)
39
39
  end
40
40
 
41
+ def prepare(&block)
42
+ @specification.prepare = block
43
+ end
44
+
45
+ def clean(&block)
46
+ @specification.clean = block
47
+ end
48
+
41
49
  def build(&block)
42
50
  @specification.build = block
43
51
  end
@@ -1,7 +1,7 @@
1
1
  module Cany
2
2
  module VERSION
3
3
  MAJOR = 0
4
- MINOR = 4
4
+ MINOR = 5
5
5
  PATCH = 0
6
6
  STAGE = nil
7
7
  STRING = [MAJOR, MINOR, PATCH, STAGE].reject(&:nil?).join('.')
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cany
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Malte Swart
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-10-24 00:00:00.000000000 Z
11
+ date: 2013-10-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler