codersdojo 1.5.02 → 1.5.03

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.
Files changed (2) hide show
  1. data/lib/scaffold/scaffolder.rb +4 -1
  2. metadata +2 -2
@@ -61,7 +61,10 @@ class Scaffolder
61
61
 
62
62
  def template_path
63
63
  file_path_elements = Scaffolder::current_file.split '/'
64
- file_path_elements[-2..-1] = nil
64
+ while file_path_elements.last != 'lib' do
65
+ file_path_elements.pop
66
+ end
67
+ file_path_elements.pop
65
68
  (file_path_elements << 'templates').join '/'
66
69
  end
67
70
 
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 1
7
7
  - 5
8
- - 2
9
- version: 1.5.02
8
+ - 3
9
+ version: 1.5.03
10
10
  platform: ruby
11
11
  authors:
12
12
  - CodersDojo-Team