lense 0.1.27 → 0.1.28

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/bin/lense +7 -0
  3. data/lib/lense.rb +6 -1
  4. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 54de025704648557ef47653d51dd11713e0858ff
4
- data.tar.gz: 209f2ab433994e0f0c980e6a46aa100404e0763f
3
+ metadata.gz: 1c51ada6145c206b237c6b9d635aae93395c0d47
4
+ data.tar.gz: a8bd87c757cfd920165acecd30ed67cef791aa37
5
5
  SHA512:
6
- metadata.gz: ecbbd3c9213572404a875a4e468d135709dc862193ae183d88d0808bfd75b9a8bcb919dca9633a91c97f95820d940b7bfd47ea26fa796eaa5b00d38805f00cc1
7
- data.tar.gz: f6bc4e7681f767aea8bf84678f54b693cf9f01d8e6e58cbaa6a51455efc4b9ca5bb10a3f42a318cbe9cd2d2e3f54285f51f20d32e9d788be88c9a89e068163ca
6
+ metadata.gz: 6519b151c146b39c292dde22e85ac28ce7a9bf2f952573c491f4c1ba151aaf433cc36dec993d662c58fb3d73cec63bb74e1cc94c75d02bdb8a57552cb3b8b8ef
7
+ data.tar.gz: 854ec5218be0251eea7c042a6e60713ecfb461d897e2e8a04109f4e7fac082b0c74c1edbc7ffcad17fbd8c43245610396a2ed4192204ef4013de964fdf3e7add
data/bin/lense CHANGED
@@ -95,4 +95,11 @@ command :commit do |c|
95
95
  end
96
96
  end
97
97
 
98
+ command :init do |c|
99
+ c.action do
100
+ puts "Working in #{ENV['PWD']}..."
101
+ LENSE_APP.init
102
+ end
103
+ end
104
+
98
105
  exit run(ARGV)
data/lib/lense.rb CHANGED
@@ -4,7 +4,7 @@ require 'highline/import'
4
4
  class LENSE
5
5
  attr_reader :config, :current_course
6
6
 
7
- VERSION = '0.1.27'
7
+ VERSION = '0.1.28'
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')
@@ -101,4 +101,9 @@ class LENSE
101
101
  end
102
102
  end
103
103
  end
104
+
105
+ def init()
106
+ local_lense_dir = File.join(ENV['PWD'],'.lense')
107
+ Dir.mkdir(local_lense_dir) unless File.directory?(local_lense_dir)
108
+ end
104
109
  end
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.27
4
+ version: 0.1.28
5
5
  platform: ruby
6
6
  authors:
7
7
  - Manuel Zubieta