nanoc-oo 0.0.5 → 0.0.6

Sign up to get free protection for your applications and to get access to all the features.
data/features/cli.feature CHANGED
@@ -30,4 +30,8 @@ Feature: command line interface
30
30
  Scenario: it describes actions
31
31
  When $ nanoc-oo thesite
32
32
  Then the output should contain "force"
33
- Then the output should contain "classes"
33
+ Then the output should contain "classes"
34
+
35
+ Scenario: it hides site name in paths
36
+ When $ nanoc-oo MySite123
37
+ Then the output should not contain "MySite123/"
data/lib/nanoc-oo.rb CHANGED
@@ -35,7 +35,9 @@ module NanocOO
35
35
  end
36
36
 
37
37
  def wrap dir
38
- copier = ForcedDataCopier.new.copy 'wrapper', dir
38
+ Dir.chdir dir do
39
+ ForcedDataCopier.new.copy 'wrapper', '.'
40
+ end
39
41
 
40
42
  #prepend_file join(dir,'Rules'), File.read(join(wrapper,'Rules'))
41
43
  #directory 'lib', dir
@@ -53,8 +55,10 @@ module NanocOO
53
55
  end
54
56
 
55
57
  def delete_content dir
56
- Dir.glob(join(dir,'content','*')).each do |supposedly_file|
57
- Force.remove_file supposedly_file
58
+ Dir.chdir dir do
59
+ Dir['content/*'].each do |supposedly_file|
60
+ Force.remove_file supposedly_file
61
+ end
58
62
  end
59
63
  end
60
64
 
@@ -1,3 +1,3 @@
1
1
  module NanocOO
2
- VERSION = "0.0.5"
2
+ VERSION = "0.0.6"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: nanoc-oo
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.0.6
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: