bones 3.5.0 → 3.5.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.
@@ -1,3 +1,8 @@
1
+ == 3.5.1 / 2010-10-27
2
+
3
+ 1 bugfix
4
+ - ERB formatting applies to dotfiles now [http://github.com/simplogical]
5
+
1
6
  == 3.5.0 / 2010-10-14
2
7
 
3
8
  2 minor enhancements
data/Rakefile CHANGED
@@ -2,7 +2,7 @@
2
2
  $:.unshift('lib')
3
3
  require 'bones'
4
4
 
5
- task :default => 'spec:specdoc'
5
+ task :default => 'spec:run'
6
6
  task 'gem:release' => 'spec:run'
7
7
 
8
8
  Bones {
@@ -14,7 +14,7 @@ Bones {
14
14
  readme_file 'README.rdoc'
15
15
  ignore_file '.gitignore'
16
16
 
17
- spec.opts << '--color'
17
+ spec.opts.concat %w[--color --format specdoc]
18
18
  notes.exclude %w[^README\.rdoc$ ^data/]
19
19
  gem.extras[:post_install_message] = <<-MSG
20
20
  --------------------------
@@ -107,8 +107,7 @@ class FileManager
107
107
  #
108
108
  def _erb( name )
109
109
  binding = _erb_binding(name)
110
-
111
- Dir.glob(File.join(destination, '**', '*')).each do |fn|
110
+ Dir.glob(File.join(destination, '**', '*'), File::FNM_DOTMATCH).each do |fn|
112
111
  next unless test(?f, fn) and '.bns' == File.extname(fn)
113
112
 
114
113
  txt = ERB.new(File.read(fn), nil, '-').result(binding)
@@ -38,10 +38,11 @@ describe Bones::App::FileManager do
38
38
  @fm.source = Bones.path %w[spec data default]
39
39
 
40
40
  ary = @fm._files_to_copy
41
- ary.length.should == 7
41
+ ary.length.should == 8
42
42
 
43
43
  ary.should == %w[
44
44
  .bnsignore
45
+ .rvmrc.bns
45
46
  History
46
47
  NAME/NAME.rb.bns
47
48
  README.txt.bns
@@ -93,10 +94,12 @@ describe Bones::App::FileManager do
93
94
  test(?e, File.join(dir, 'Rakefile.bns')).should == false
94
95
  test(?e, File.join(dir, 'README.txt.bns')).should == false
95
96
  test(?e, File.join(dir, %w[foo_bar foo_bar.rb.bns])).should == false
97
+ test(?e, File.join(dir, '.rvmrc.bns')).should == false
96
98
 
97
99
  test(?e, File.join(dir, 'Rakefile')).should == true
98
100
  test(?e, File.join(dir, 'README.txt')).should == true
99
101
  test(?e, File.join(dir, %w[foo_bar foo_bar.rb])).should == true
102
+ test(?e, File.join(dir, '.rvmrc')).should == true
100
103
 
101
104
  txt = File.read(File.join(@fm.destination, %w[foo_bar foo_bar.rb]))
102
105
  txt.should == <<-TXT
File without changes
@@ -1 +1 @@
1
- 3.5.0
1
+ 3.5.1
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bones
3
3
  version: !ruby/object:Gem::Version
4
- hash: 19
4
+ hash: 17
5
5
  prerelease: false
6
6
  segments:
7
7
  - 3
8
8
  - 5
9
- - 0
10
- version: 3.5.0
9
+ - 1
10
+ version: 3.5.1
11
11
  platform: ruby
12
12
  authors:
13
13
  - Tim Pease
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2010-10-17 00:00:00 -06:00
18
+ date: 2010-10-27 00:00:00 -06:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency
@@ -106,12 +106,12 @@ dependencies:
106
106
  requirements:
107
107
  - - ">="
108
108
  - !ruby/object:Gem::Version
109
- hash: 21
109
+ hash: 19
110
110
  segments:
111
111
  - 1
112
- - 0
113
112
  - 1
114
- version: 1.0.1
113
+ - 0
114
+ version: 1.1.0
115
115
  type: :development
116
116
  version_requirements: *id006
117
117
  description: |-
@@ -172,6 +172,7 @@ files:
172
172
  - spec/bones/app_spec.rb
173
173
  - spec/bones_spec.rb
174
174
  - spec/data/default/.bnsignore
175
+ - spec/data/default/.rvmrc.bns
175
176
  - spec/data/default/History
176
177
  - spec/data/default/NAME/NAME.rb.bns
177
178
  - spec/data/default/README.txt.bns