bootic_cli 0.4.0 → 0.4.1

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: c74b9f852a960a50c152cef0dc870ecf9e39eb46
4
- data.tar.gz: 8badbddd5640c48465531fc40ab690fe83ebdfb3
3
+ metadata.gz: 2c610888d557df1cea6a07b3e8e11104476c1a7d
4
+ data.tar.gz: e1d8c6f28dd1edef01bbbc8e1fb258f33532ccd0
5
5
  SHA512:
6
- metadata.gz: 4f3a737ceaadbe4a4533fedcfaa90c98ef627aa01d5e4807a271538588608731f5bfeb354df730f242633c50d0bacc00ada01520a6a41f9b0ff274a66d942dd1
7
- data.tar.gz: 1b5f6e3e05545c14365eaaa5c759ea209758bbec3c90e8d880bb97c94ad07eb74c6f29fb3398c362c4ee9fe42e1cfa40e8a4f4f3437356771fda28716310eea1
6
+ metadata.gz: 7f492d23d1c5ae13cdd0a78d33578d2b1e61530d35a20cb796c4d6003dcead8bebf2318db4e8b8acad422c6b774cd7890e68eddc0d6217f75923a6eae2e5a986
7
+ data.tar.gz: cc766798c0ed812aee7aa24e9464c83809cf7836c1974e1fed6dcc473615afa6374522168dc79ec4d7b0646b643e246520d6c7c43c42899684effbbb52d6eda6
@@ -116,7 +116,7 @@ module BooticCli
116
116
 
117
117
  def within_theme(&block)
118
118
  unless is_within_theme?
119
- prompt.say "This directory doesn't look like a Bootic theme! (#{dir})", :magenta
119
+ prompt.say "This directory doesn't look like a Bootic theme! (#{current_expanded_dir})", :magenta
120
120
  abort
121
121
  end
122
122
 
@@ -126,14 +126,17 @@ module BooticCli
126
126
  end
127
127
 
128
128
  def is_within_theme?
129
- dir = File.expand_path(current_dir)
130
- File.exist?(File.join(dir, 'layout.html'))
129
+ File.exist?(File.join(current_expanded_dir, 'layout.html'))
131
130
  end
132
131
 
133
132
  def current_dir
134
133
  '.'
135
134
  end
136
135
 
136
+ def current_expanded_dir
137
+ File.expand_path(current_dir)
138
+ end
139
+
137
140
  def default_subdomain
138
141
  nil
139
142
  end
@@ -1,3 +1,3 @@
1
1
  module BooticCli
2
- VERSION = "0.4.0"
2
+ VERSION = "0.4.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bootic_cli
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ismael Celis