lense 0.1.36 → 0.1.37

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/lense.rb +3 -1
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7696033816f95fd7cb4fcfcbfb21499bb9e16f28
4
- data.tar.gz: 4b6f43019e361b303eea94418d59e7b51b92d09c
3
+ metadata.gz: 73cd4859f158fb6aeacff62c40d64484d59cd186
4
+ data.tar.gz: 06271b3b5e07ca73045dd7d1f711f53eb8a00981
5
5
  SHA512:
6
- metadata.gz: 45135fbf39e5134035144cf7ee4966407ad8befc82b59f33e292f465f3b36a31d1ebd7c192f770a07d4c2e4ae2d8fac4fc8b943492633eee59ad5d7866930c0c
7
- data.tar.gz: 301edc0568412c2c68ba5619e66d39d09c224be93f3384571b24331c03f07821f37c57f919148c55f1d641a2e9fd4f7fb07df636fc47e119d6ad830448e3a7f9
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.36'
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)
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.36
4
+ version: 0.1.37
5
5
  platform: ruby
6
6
  authors:
7
7
  - Manuel Zubieta