potam 0.0.3 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7d69ca159ce24674fd0c3c6dfa75f6923c34d7a9
4
- data.tar.gz: 095f900219a6aad5e6fbcdffd94f81453cdc5d38
3
+ metadata.gz: d2b0d662613dbdc174150e701a8795f0fe57b290
4
+ data.tar.gz: 8e038ceb6d3c1785073df6977b67b0843749271f
5
5
  SHA512:
6
- metadata.gz: d67a320b764af232ce7c641a2c2386fc851dce43492e5c1aa2daa63c0298be8a2d450ac7d39a2ddb440c45de992fd47988d085de0db1352efa20f7f63a94f3e0
7
- data.tar.gz: 682d81db3152a35686d3e4f50ceced61ac750f96be7ffa6a042d16563d87f7ab592f23b37d004c66ae458fcddf2d6edaa035a8d20efe5a48c7fccc828d069717
6
+ metadata.gz: b82e47a8118c7a43bc5e3ea6ba40f26a997363b6e1410fb3a2c2ec5175949a06b70e2a67eca2d1ba6ef4a07a036def9d5b07ac60b7a4ebb24a563ec6c0c741ee
7
+ data.tar.gz: ca6ef3f6dfab13efdef1cb0b4ed410f2e98e2666fa11856b5eea738107da78db45bf68823ac736369c7502d22fb16c833913390ac4662fa478384284e5bb41d5
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- potam (0.0.2)
4
+ potam (0.0.3)
5
5
  gli (= 2.12.2)
6
6
  sequel
7
7
  unicode
data/bin/potam CHANGED
@@ -14,9 +14,15 @@ arguments :strict
14
14
 
15
15
  # ENV['GLI_DEBUG'] = 'true'
16
16
 
17
- db = ENV['POTAM'] == 'test' ?
18
- Sequel.sqlite("#{File.expand_path(File.dirname(__FILE__))}/../test/test.db") :
19
- Sequel.sqlite("#{File.expand_path(File.dirname(__FILE__))}/../db/potam.db")
17
+ test_db = "#{File.expand_path(File.dirname(__FILE__))}/../test/test.db"
18
+ clean_db = "#{File.expand_path(File.dirname(__FILE__))}/../test/clean.db"
19
+ prod_db = "#{Dir.home}/.potam/potam.db"
20
+ if !File.file?(prod_db)
21
+ FileUtils.mkdir_p(File.dirname(prod_db))
22
+ FileUtils.cp(clean_db, prod_db)
23
+ end
24
+
25
+ db = ENV['POTAM'] == 'test' ? Sequel.sqlite(test_db) : Sequel.sqlite(prod_db)
20
26
  tasks = Tasks.new(db)
21
27
  subtasks = Subtasks.new(db)
22
28
  notes = Notes.new(db)
@@ -1,6 +1,5 @@
1
1
  require 'aruba/cucumber'
2
2
  require 'sequel'
3
- # require 'cucumber/timecop'
4
3
 
5
4
  ENV['PATH'] = "#{File.expand_path(File.dirname(__FILE__) + '/../../bin')}#{File::PATH_SEPARATOR}#{ENV['PATH']}"
6
5
  LIB_DIR = File.join(File.expand_path(File.dirname(__FILE__)),'..','..','lib')
@@ -13,12 +12,11 @@ Before do |scenario|
13
12
  @original_rubylib = ENV['RUBYLIB']
14
13
  ENV['RUBYLIB'] = LIB_DIR + File::PATH_SEPARATOR + ENV['RUBYLIB'].to_s
15
14
  ENV['POTAM'] = 'test'
16
- FileUtils.cp(CLEANDB, TESTDB) #if !defined? scenario.scenario_outline
15
+ FileUtils.cp(CLEANDB, TESTDB)
17
16
  end
18
17
 
19
18
  After do
20
19
  ENV['RUBYLIB'] = @original_rubylib
21
- # Timecop.return
22
20
  end
23
21
 
24
22
  at_exit do
data/lib/potam/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Potam
2
- VERSION = '0.0.3'
2
+ VERSION = '0.0.4'
3
3
  end
data/potam-0.0.3.gem ADDED
Binary file
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: potam
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-12-16 00:00:00.000000000 Z
11
+ date: 2014-12-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake
@@ -109,7 +109,6 @@ files:
109
109
  - README.rdoc
110
110
  - Rakefile
111
111
  - bin/potam
112
- - db/potam.db
113
112
  - features/addnote.feature
114
113
  - features/addtask.feature
115
114
  - features/listtasks.feature
@@ -130,6 +129,7 @@ files:
130
129
  - lib/timer.rb
131
130
  - potam-0.0.1.gem
132
131
  - potam-0.0.2.gem
132
+ - potam-0.0.3.gem
133
133
  - potam.gemspec
134
134
  - potam.rdoc
135
135
  - results.html
data/db/potam.db DELETED
Binary file