lense 0.1.36 → 0.1.37
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/lense.rb +3 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 73cd4859f158fb6aeacff62c40d64484d59cd186
|
4
|
+
data.tar.gz: 06271b3b5e07ca73045dd7d1f711f53eb8a00981
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dac32da39e0a726a3dbb7d33e9b982e20a3d88f3d2339ba17edfeeef5f288d95f026ae9942016636d19e89565428d007929c751789478094cf99e1703a232388
|
7
|
+
data.tar.gz: 93f3624ad056e67049fe34519addb601e89ae0956baa2281b489bae8f0f534a6a685de748ac828e082d87b46385b95e9daf4af62e69217e52e91387be64d6df3
|
data/lib/lense.rb
CHANGED
@@ -6,7 +6,7 @@ require 'sqlite3'
|
|
6
6
|
class LENSE
|
7
7
|
attr_reader :config, :current_course, :lense_file_hash
|
8
8
|
|
9
|
-
VERSION = '0.1.
|
9
|
+
VERSION = '0.1.37'
|
10
10
|
LENSE_DIR = File.join(ENV['HOME'],'.lense')
|
11
11
|
COURSES_DIR = File.join(LENSE_DIR,'courses')
|
12
12
|
CURRENT_COURSE_FILE = File.join(LENSE_DIR,'current_course')
|
@@ -153,7 +153,9 @@ class LENSE
|
|
153
153
|
end
|
154
154
|
|
155
155
|
def stage(file)
|
156
|
+
@DB.transaction
|
156
157
|
@DB.execute "insert into staging (path) values (?);", file if File.file?(file)
|
158
|
+
@DB.commit
|
157
159
|
end
|
158
160
|
|
159
161
|
def unstage(file)
|