potam 0.0.3 → 0.0.4
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.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/bin/potam +9 -3
- data/features/support/env.rb +1 -3
- data/lib/potam/version.rb +1 -1
- data/potam-0.0.3.gem +0 -0
- metadata +3 -3
- data/db/potam.db +0 -0
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: d2b0d662613dbdc174150e701a8795f0fe57b290
|
|
4
|
+
data.tar.gz: 8e038ceb6d3c1785073df6977b67b0843749271f
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: b82e47a8118c7a43bc5e3ea6ba40f26a997363b6e1410fb3a2c2ec5175949a06b70e2a67eca2d1ba6ef4a07a036def9d5b07ac60b7a4ebb24a563ec6c0c741ee
|
|
7
|
+
data.tar.gz: ca6ef3f6dfab13efdef1cb0b4ed410f2e98e2666fa11856b5eea738107da78db45bf68823ac736369c7502d22fb16c833913390ac4662fa478384284e5bb41d5
|
data/Gemfile.lock
CHANGED
data/bin/potam
CHANGED
|
@@ -14,9 +14,15 @@ arguments :strict
|
|
|
14
14
|
|
|
15
15
|
# ENV['GLI_DEBUG'] = 'true'
|
|
16
16
|
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
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)
|
data/features/support/env.rb
CHANGED
|
@@ -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)
|
|
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
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.
|
|
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-
|
|
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
|