treebis 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (5) hide show
  1. data/NEWS.md +3 -0
  2. data/Rakefile +12 -5
  3. data/VERSION +1 -1
  4. data/lib/treebis.rb +4 -4
  5. metadata +18 -6
data/NEWS.md CHANGED
@@ -1,5 +1,8 @@
1
1
  # treebis news
2
2
 
3
+ ### 0.0.3 (2010-06-22)
4
+ * fix: stupid circular dependency on nandoc to build!!!
5
+
3
6
  ### 0.0.2 (2010-05-13)
4
7
  * search for persistent dotfiles in more than one location (if PWD might be one of several locations)
5
8
 
data/Rakefile CHANGED
@@ -30,19 +30,26 @@ end
30
30
 
31
31
 
32
32
  require 'jeweler'
33
- require 'nandoc'
34
- require 'nandoc/parse-readme'
33
+ # require 'nandoc'
34
+ # require 'nandoc/parse-readme'
35
35
 
36
36
  Jeweler::Tasks.new do |s|
37
37
  s.authors = ['Chip Malice']
38
- s.description = NanDoc::ParseReadme.description('README')
38
+ # s.description = NanDoc::ParseReadme.description('README')
39
+ s.description = <<-HERE.gsub(/^ +/,'')
40
+ Treebis is a minimal, general scripting/task utility written in ruby
41
+ that wraps common actions for moving, copying and altering filetrees.
42
+ It is geared towards things like generators. It is comparable to a shell script
43
+ that does a lot of mkdir, mv, cp commands etc.
44
+ HERE
39
45
  s.files = FileList['[A-Z]*', '{bin,doc,generators,lib,test}/**/*']
40
46
  s.email = 'chip.malice@gmail.com'
41
47
  s.homepage = 'http://treebis.hipeland.org'
42
48
  s.name = 'treebis'
43
49
  s.rubyforge_project = 'treebis'
44
- s.summary = NanDoc::ParseReadme.summary('README')
45
-
50
+ # s.summary = NanDoc::ParseReadme.summary('README')
51
+ s.summary = "minimal single-file rake-like task DSL for wrapping "<<
52
+ "common filesystem tasks like copying files"
46
53
  s.add_dependency 'json', '~> 1.2.3'
47
54
  end
48
55
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.2
1
+ 0.0.3
@@ -661,12 +661,12 @@ module Treebis
661
661
  out = tmpl.result(bnd)
662
662
  write out_local, out
663
663
  end
664
- def copy path
664
+ def copy path, tgt=nil
665
665
  if path.index('*')
666
666
  copy_glob(path)
667
667
  else
668
668
  full, local = normalize_from path
669
- copy_go full, local, path
669
+ copy_go full, local, path, tgt
670
670
  end
671
671
  end
672
672
  def copy_glob path
@@ -682,8 +682,8 @@ module Treebis
682
682
  opts.each {|a| copy_go(*a) }
683
683
  end
684
684
  end
685
- def copy_go full, local, path
686
- tgt = File.join(@on_path, local)
685
+ def copy_go full, local, path, tgt=nil
686
+ tgt ||= File.join(@on_path, local)
687
687
  skip = false
688
688
  if File.exist?(tgt) && File.read(full) == File.read(tgt)
689
689
  report_action :identical, path
metadata CHANGED
@@ -1,12 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: treebis
3
3
  version: !ruby/object:Gem::Version
4
+ hash: 25
4
5
  prerelease: false
5
6
  segments:
6
7
  - 0
7
8
  - 0
8
- - 2
9
- version: 0.0.2
9
+ - 3
10
+ version: 0.0.3
10
11
  platform: ruby
11
12
  authors:
12
13
  - Chip Malice
@@ -14,16 +15,18 @@ autorequire:
14
15
  bindir: bin
15
16
  cert_chain: []
16
17
 
17
- date: 2010-05-17 00:00:00 -04:00
18
+ date: 2010-06-22 00:00:00 -04:00
18
19
  default_executable:
19
20
  dependencies:
20
21
  - !ruby/object:Gem::Dependency
21
22
  name: json
22
23
  prerelease: false
23
24
  requirement: &id001 !ruby/object:Gem::Requirement
25
+ none: false
24
26
  requirements:
25
27
  - - ~>
26
28
  - !ruby/object:Gem::Version
29
+ hash: 25
27
30
  segments:
28
31
  - 1
29
32
  - 2
@@ -31,7 +34,12 @@ dependencies:
31
34
  version: 1.2.3
32
35
  type: :runtime
33
36
  version_requirements: *id001
34
- description: Treebis is a minimal, general scripting/task utility written in ruby that wraps common actions for moving, copying and altering filetrees. It is geared towards things like generators. It is comparable to a shell script that does a lot of mkdir, mv, cp commands etc.
37
+ description: |
38
+ Treebis is a minimal, general scripting/task utility written in ruby
39
+ that wraps common actions for moving, copying and altering filetrees.
40
+ It is geared towards things like generators. It is comparable to a shell script
41
+ that does a lot of mkdir, mv, cp commands etc.
42
+
35
43
  email: chip.malice@gmail.com
36
44
  executables: []
37
45
 
@@ -59,25 +67,29 @@ rdoc_options:
59
67
  require_paths:
60
68
  - lib
61
69
  required_ruby_version: !ruby/object:Gem::Requirement
70
+ none: false
62
71
  requirements:
63
72
  - - ">="
64
73
  - !ruby/object:Gem::Version
74
+ hash: 3
65
75
  segments:
66
76
  - 0
67
77
  version: "0"
68
78
  required_rubygems_version: !ruby/object:Gem::Requirement
79
+ none: false
69
80
  requirements:
70
81
  - - ">="
71
82
  - !ruby/object:Gem::Version
83
+ hash: 3
72
84
  segments:
73
85
  - 0
74
86
  version: "0"
75
87
  requirements: []
76
88
 
77
89
  rubyforge_project: treebis
78
- rubygems_version: 1.3.6
90
+ rubygems_version: 1.3.7
79
91
  signing_key:
80
92
  specification_version: 3
81
- summary: minimal single-file rake-like task DSL for wrapping common filesystem tasks like copying files.
93
+ summary: minimal single-file rake-like task DSL for wrapping common filesystem tasks like copying files
82
94
  test_files:
83
95
  - test/test-for-doc.rb