lense 0.1.29 → 0.1.30

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 (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/lense.rb +17 -1
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: bed2ac9dd98f2eb6280ab8eef4689dbe14fb4504
4
- data.tar.gz: 7a0989d4c5093bac8096d6da73dbf8e56bf65ce2
3
+ metadata.gz: 7c1c255e67aca842a9f42eec6c56c2f30e5b52bf
4
+ data.tar.gz: 16ca5fb148c64ebc0595beca638a3a7d58fd38e0
5
5
  SHA512:
6
- metadata.gz: 70fabf5d567a2837c8a6f8c5612f38d1cbca658ee74710c98d5bb4cbd3657e8ee8d7cedf4e9905a32bcb4dd5fc77bd879ac1def75e7cce50967e4d1d2dfea864
7
- data.tar.gz: d21f958ea64ee1d5a17791fd06783ecffabee2066fd5a76d29d6b76bc931fd57be481760fd09bfc6dbb19975322f372214d5740426cc444be87b28e716a7b6d7
6
+ metadata.gz: fef97de3bb0f9a70585ccc65284cca5234e2596908133043ae639132109fc0591a5d9494634cce68c02a0f5e3281878f77b762643cbbf9c7654184bd6eb0c9ed
7
+ data.tar.gz: 37cac146a3d01728efbe1a8d158ec76532b9aec777cf989b25b7016640e7a0a6e83e56e00baf40089c4505a506223c2ebee7a1807c6414ace7f8c6e184ce83fb
data/lib/lense.rb CHANGED
@@ -4,12 +4,13 @@ require 'highline/import'
4
4
  class LENSE
5
5
  attr_reader :config, :current_course
6
6
 
7
- VERSION = '0.1.29'
7
+ VERSION = '0.1.30'
8
8
  LENSE_DIR = File.join(ENV['HOME'],'.lense')
9
9
  COURSES_DIR = File.join(LENSE_DIR,'courses')
10
10
  CURRENT_COURSE_FILE = File.join(LENSE_DIR,'current_course')
11
11
  LOCAL_LENSE_DIR = File.join(ENV['PWD'],'.lense')
12
12
  DEPS_DIR = File.join(LOCAL_LENSE_DIR,'deps')
13
+ LENSE_FILE = File.join(ENV['PWD'],'LENSEfile')
13
14
 
14
15
  def initialize()
15
16
  Dir.mkdir(LENSE_DIR) unless File.directory?(LENSE_DIR)
@@ -107,6 +108,21 @@ class LENSE
107
108
  def init()
108
109
  Dir.mkdir(LOCAL_LENSE_DIR) unless File.directory?(LOCAL_LENSE_DIR)
109
110
  Dir.mkdir(DEPS_DIR) unless File.directory?(DEPS_DIR)
111
+ unless File.file?(LENSE_FILE)
112
+ File.open(LENSE_FILE,'w') do |file|
113
+ file.puts "---"
114
+ file.puts "title: Uninitialized Project"
115
+ file.puts "difficulty:"
116
+ file.puts "authors: []"
117
+ file.puts "depenencies: []"
118
+ file.puts "up:"
119
+ file.puts " - echo 'Hello'"
120
+ file.puts "down:"
121
+ file.puts " - echo 'Goodbye!'"
122
+ file.puts "lesson_plan: []"
123
+ end
124
+ say "Created template LENSEfile"
125
+ end
110
126
  end
111
127
 
112
128
  def status()
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lense
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.29
4
+ version: 0.1.30
5
5
  platform: ruby
6
6
  authors:
7
7
  - Manuel Zubieta