rake-distribute 1.3.0 → 1.3.1

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: 51bbe13ed2c5a7cf7b1644d39a6f6839379d27ff
4
- data.tar.gz: b41b72c0f2deaa53e750095adbc33860f6d14253
3
+ metadata.gz: 5ad55f1fcf46a6d784d06697be4334c5b138b6d6
4
+ data.tar.gz: d0fd67f7d86a9e4c9cf356e0c35d1e1d4757db43
5
5
  SHA512:
6
- metadata.gz: 6a9e559cbde59f0b77ed6e6ac1524df35cffc0fe9c0fe7800b1c7a36372fbe70e398e733ab286202ef8a099887c8af82d77a945b308dd8854007322cb23c1a1f
7
- data.tar.gz: 6ef36a489cc07deab521a450572e18f4819598a5b7b6de60ce45786fa607fcfe980b232a2c46aa9cc6403f2bc0084356efe1b39ea000f19cc396f74e7e4cb508
6
+ metadata.gz: f5c5b8a286c99de4e76e58e185fa8e98960a0dbb0a05b15c80fcac8d741ef6bcaf9370c4f7b2734b41ebb7a58501c1f6c590acdd9e84826f6ba9d3e506cc2751
7
+ data.tar.gz: 6bfa372042b03c7fba83e9356b55ffc2f79700436367720bd76c1a81673cc15141616a611ac65c4579ef0cbc41d26d56ed6fa838f902081f7bfbb89e6ec5c76b
checksums.yaml.gz.sig CHANGED
Binary file
data.tar.gz.sig CHANGED
@@ -1,2 +1,2 @@
1
- S5�hF[�ǐ�k<��Y��iň�6�kG� ϥo?�ͭ�DZ7���t_��
2
- ה����bo7P�y�C�q1.XP��A�,�S1wŢ����~��E~;�]
1
+ ;&XXvM6eF����m��.��/���ԧգ����p�m����O?�+���,���`�J̇�t�c;R�e�����͞����ʍE�.iMK��!��\I�3~�n��X[[T����%N�-��� 'UI�~1y'A�A"C�E�O�-TIX?R��
2
+ ����}F����E67�.hu�:#�<�mA��/�ݜ-�d�A���s�7r ��@WA?ػ_+bI/�eH��� ��"�P$���g,C��[�
data/History.md CHANGED
@@ -1,5 +1,16 @@
1
1
  # RELEASE HISTORY
2
2
 
3
+ ## v1.3.0 / 2013-04-18
4
+
5
+ Add tilt item (Zhao Cai <caizhaoff@gmail.com>)
6
+
7
+ Changes:
8
+
9
+ * 1 Minor Enhancements
10
+
11
+ * add TiltFile item
12
+
13
+
3
14
  ## V1.2.0 / 2013-04-18
4
15
 
5
16
  remove extra :distribute namespace (Zhao Cai <caizhaoff@gmail.com>)
@@ -9,7 +20,7 @@ Changes:
9
20
  * 1 Major Enhancements
10
21
 
11
22
  * remove extra :distribute namespace
12
-
23
+
13
24
  add monkey patch to fix duplicated task desc
14
25
 
15
26
 
@@ -40,9 +51,3 @@ Changes:
40
51
 
41
52
  Current Development (Zhao Cai)
42
53
 
43
- Changes:
44
-
45
- * 1 Minor Enhancements
46
-
47
- * add TiltFile item
48
-
data/README.md CHANGED
@@ -25,6 +25,14 @@ distribute :FileItem do
25
25
  end
26
26
 
27
27
  distribute :ErbFile do
28
+ build_dir "build/distribute"
29
+ from "/path/from"
30
+ to "/path/to"
31
+ with_context {:a => 1, :b => 2}
32
+ end
33
+
34
+ distribute :TiltFile do
35
+ prefer Tilt::BlueClothTemplate
28
36
  from "/path/from"
29
37
  to "/path/to"
30
38
  with_context {:a => 1, :b => 2}
@@ -8,7 +8,6 @@ module Rake::Distribute
8
8
  include Singleton
9
9
  include Rake::DSL
10
10
 
11
- attr_accessor :build_dir
12
11
  attr_accessor :distribute_config_file
13
12
  attr_accessor :items
14
13
 
@@ -33,10 +33,7 @@ module Rake::Distribute
33
33
  @context = context
34
34
  end
35
35
 
36
- def define_tasks(options={})
37
-
38
- dest_dir = @dest.pathmap("%d")
39
- directory dest_dir
36
+ def define_build_task(options={})
40
37
  directory @build_dir
41
38
 
42
39
  build_file = File.join(@build_dir,
@@ -48,6 +45,16 @@ module Rake::Distribute
48
45
  f.flush
49
46
  end
50
47
  end
48
+ build_file
49
+ end
50
+
51
+ def define_tasks(options={})
52
+
53
+ dest_dir = @dest.pathmap("%d")
54
+ directory dest_dir
55
+
56
+ build_file = define_build_task(options)
57
+
51
58
 
52
59
  file @dest => build_file do
53
60
  install build_file, @dest, @dest_options
@@ -12,11 +12,16 @@ module Rake::Distribute
12
12
  super
13
13
  end
14
14
 
15
+ def prefer(tilt_template)
16
+ begin
17
+ Tilt.prefer tilt_template
18
+ rescue NameError => e
19
+ raise "rake/distribute: #{e.message}"
20
+ end
15
21
 
16
- def define_tasks(options={})
22
+ end
17
23
 
18
- dest_dir = @dest.pathmap("%d")
19
- directory dest_dir
24
+ def define_build_task(options={})
20
25
  directory @build_dir
21
26
 
22
27
  build_file = File.join(@build_dir,
@@ -28,40 +33,7 @@ module Rake::Distribute
28
33
  f.flush
29
34
  end
30
35
  end
31
-
32
- file @dest => build_file do
33
- install build_file, @dest, @dest_options
34
- end
35
-
36
- desc "distribute: build"
37
- task :build => [@build_dir, build_file]
38
-
39
- desc "distribute: install"
40
- task :install => [@build_dir, build_file, dest_dir, @dest]
41
-
42
- desc "distribute: uninstall"
43
- task :uninstall do
44
- safe_unlink @dest if File.exists?(@dest)
45
- end
46
-
47
- desc "distribute: clean"
48
- task :clean do
49
- safe_unlink build_file if File.exists?(build_file)
50
- end
51
-
52
- desc "distribute: clobber"
53
- task :clobber => [:clean] do
54
- rmdir @build_dir
55
- end
56
-
57
- desc "distribute: diff"
58
- task :diff => [@build_dir, build_file] do
59
- diff = Diffy::Diff.new(
60
- @dest, build_file, :source => 'files', :allow_empty_diff => true
61
- ).to_s(:text)
62
-
63
- @diff_proc.call(@dest, build_file) unless diff.empty?
64
- end
36
+ build_file
65
37
  end
66
38
 
67
39
  end
@@ -1,3 +1,3 @@
1
1
  module Rake::Distribute
2
- VERSION = '1.3.0'
2
+ VERSION = '1.3.1'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rake-distribute
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.0
4
+ version: 1.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Zhao Cai
metadata.gz.sig CHANGED
Binary file