potam 0.0.4 → 0.0.6

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: d2b0d662613dbdc174150e701a8795f0fe57b290
4
- data.tar.gz: 8e038ceb6d3c1785073df6977b67b0843749271f
3
+ metadata.gz: 52c11a2f6e4b5d5ab2bccd7bfc9ad926576e8141
4
+ data.tar.gz: aded3ffd7253efaf829b5ea845cdb79507979a62
5
5
  SHA512:
6
- metadata.gz: b82e47a8118c7a43bc5e3ea6ba40f26a997363b6e1410fb3a2c2ec5175949a06b70e2a67eca2d1ba6ef4a07a036def9d5b07ac60b7a4ebb24a563ec6c0c741ee
7
- data.tar.gz: ca6ef3f6dfab13efdef1cb0b4ed410f2e98e2666fa11856b5eea738107da78db45bf68823ac736369c7502d22fb16c833913390ac4662fa478384284e5bb41d5
6
+ metadata.gz: 59ac048e5bfe7998c7a48bc2f1f8e8bad8eaae03fddcfd75cb7200d9a113a9a6497f90a895d5d0e721321a8a441c2e572086622e5eb1336613cfc86cdd170ccc
7
+ data.tar.gz: e18c4f60991273a3254fb718f517b2de24060c61b90515ab26a2bd2fbdabcb8cfd1d4293819eff878deafdc4d7fd113d49e8a45bf615c549a346ea999964bc64
data/Gemfile.lock CHANGED
@@ -1,7 +1,11 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
+ <<<<<<< HEAD
4
5
  potam (0.0.3)
6
+ =======
7
+ potam (0.0.5)
8
+ >>>>>>> 039b9202eb3edab24e6e9b2bc863aeb5727eb7c6
5
9
  gli (= 2.12.2)
6
10
  sequel
7
11
  unicode
@@ -9,34 +13,36 @@ PATH
9
13
  GEM
10
14
  remote: https://rubygems.org/
11
15
  specs:
12
- aruba (0.6.1)
16
+ aruba (0.6.2)
13
17
  childprocess (>= 0.3.6)
14
18
  cucumber (>= 1.1.1)
15
19
  rspec-expectations (>= 2.7.0)
16
20
  builder (3.2.2)
17
21
  childprocess (0.5.5)
18
22
  ffi (~> 1.0, >= 1.0.11)
19
- cucumber (1.3.17)
23
+ cucumber (1.3.19)
20
24
  builder (>= 2.1.2)
21
25
  diff-lcs (>= 1.1.3)
22
26
  gherkin (~> 2.12)
23
27
  multi_json (>= 1.7.5, < 2.0)
24
- multi_test (>= 0.1.1)
28
+ multi_test (>= 0.1.2)
25
29
  diff-lcs (1.2.5)
26
30
  ffi (1.9.6)
27
31
  gherkin (2.12.2)
28
32
  multi_json (~> 1.3)
29
33
  gli (2.12.2)
30
34
  highline (1.6.21)
35
+ json (1.8.2)
31
36
  multi_json (1.10.1)
32
- multi_test (0.1.1)
33
- rake (10.1.0)
34
- rdoc (4.1.0)
35
- rspec-expectations (3.1.2)
37
+ multi_test (0.1.2)
38
+ rake (10.4.2)
39
+ rdoc (4.2.0)
40
+ json (~> 1.4)
41
+ rspec-expectations (3.2.0)
36
42
  diff-lcs (>= 1.2.0, < 2.0)
37
- rspec-support (~> 3.1.0)
38
- rspec-support (3.1.2)
39
- sequel (4.16.0)
43
+ rspec-support (~> 3.2.0)
44
+ rspec-support (3.2.1)
45
+ sequel (4.19.0)
40
46
  sqlite3 (1.3.10)
41
47
  unicode (0.4.4.2)
42
48
 
data/bin/potam CHANGED
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env ruby
2
2
  # encoding: utf-8
3
- require 'potam'
3
+ require_relative '../lib/potam.rb'
4
4
 
5
5
  include GLI::App
6
6
  include Dialog
@@ -34,33 +34,34 @@ Feature: Listing tasks
34
34
  When I run command `list`
35
35
  Then I should see
36
36
  """
37
- #3 Тестовая задача 3 2014-11-12
38
- #2 Тестовая задача 2 2014-11-12
39
- #1 Тестовая задача 1 2014-11-12
40
- #13 Тестовая задача 13 2014-11-12
41
- #12 Тестовая задача 12 2014-11-12
42
- #11 Тестовая задача 11 2014-11-12
43
- #10 Тестовая задача 10 2014-11-12
44
- #9 Тестовая задача 9 2014-11-12
45
- #8 Тестовая задача 8 2014-11-12
46
- #7 Тестовая задача 7 2014-11-12
37
+ #3 Тестовая задача 3 2014-11-12
38
+ #2 Тестовая задача 2 2014-11-12
39
+ #1 Тестовая задача 1 2014-11-12
40
+ #13 Тестовая задача 13 2014-11-12
41
+ #12 Тестовая задача 12 2014-11-12
42
+ #11 Тестовая задача 11 2014-11-12
43
+ #10 Тестовая задача 10 2014-11-12
44
+ #9 Тестовая задача 9 2014-11-12
45
+ #8 Тестовая задача 8 2014-11-12
46
+ #7 Тестовая задача 7 2014-11-12
47
47
  """
48
48
 
49
49
  Scenario: list all tasks, ordered by last time changes are made in subtasks or notes
50
50
  When I run command `list -a`
51
51
  Then I should see
52
52
  """
53
- #3 Тестовая задача 3 2014-11-12
54
- #2 Тестовая задача 2 2014-11-12
55
- #1 Тестовая задача 1 2014-11-12
56
- #13 Тестовая задача 13 2014-11-12
57
- #12 Тестовая задача 12 2014-11-12
58
- #11 Тестовая задача 11 2014-11-12
59
- #10 Тестовая задача 10 2014-11-12
60
- #9 Тестовая задача 9 2014-11-12
61
- #8 Тестовая задача 8 2014-11-12
62
- #7 Тестовая задача 7 2014-11-12
63
- #6 Тестовая задача 6 2014-11-12
64
- #5 Тестовая задача 5 2014-11-12
65
- #4 Тестовая задача 4 2014-11-12
66
- """
53
+ #3 Тестовая задача 3 2014-11-12
54
+ #2 Тестовая задача 2 2014-11-12
55
+ #1 Тестовая задача 1 2014-11-12
56
+ #13 Тестовая задача 13 2014-11-12
57
+ #12 Тестовая задача 12 2014-11-12
58
+ #11 Тестовая задача 11 2014-11-12
59
+ #10 Тестовая задача 10 2014-11-12
60
+ #9 Тестовая задача 9 2014-11-12
61
+ #8 Тестовая задача 8 2014-11-12
62
+ #7 Тестовая задача 7 2014-11-12
63
+ #6 Тестовая задача 6 2014-11-12
64
+ #5 Тестовая задача 5 2014-11-12
65
+ #4 Тестовая задача 4 2014-11-12
66
+ """
67
+
@@ -36,8 +36,8 @@ Feature: View report
36
36
  Then I should see
37
37
  """
38
38
  Проведена работа по следующим задачам:
39
- #3 Тестовая задача 3 2014-11-12
40
- #2 Тестовая задача 2 2014-11-05
39
+ #3 Тестовая задача 3 2014-11-12
40
+ #2 Тестовая задача 2 2014-11-05
41
41
  ===========================
42
42
  Тестовая задача 3:
43
43
  2014-11-12 (Ср) 22:16:06
@@ -55,4 +55,5 @@ Feature: View report
55
55
 
56
56
  2014-11-11 (Вт) 14:50:32
57
57
  Создана заметка "Заметка 2"
58
- """
58
+ """
59
+
data/lib/dialog.rb CHANGED
@@ -16,7 +16,7 @@ module Dialog
16
16
  WEEK = [nil, 'Пн', 'Вт', 'Ср', 'Чт', 'Пт', 'Сб', 'Вс']
17
17
 
18
18
  def self.ask_new_task
19
- @new_task_title = ask('Введите имя задачи: ')
19
+ @new_task_title = ask('Введите имя задачи: ') { |q| q.readline }
20
20
  @new_task_description = ask('Введите описание задачи: ')
21
21
  end
22
22
 
@@ -31,7 +31,7 @@ module Dialog
31
31
  def self.say_tasks(tasks, indentation = '')
32
32
  tasks.each do |task|
33
33
  id = spaces("##{task[:id]}", 8)
34
- title = spaces(task[:title], 41)
34
+ title = spaces(task[:title], 70)
35
35
  created_at = ts_to_date(task[:created_at])
36
36
  say("#{indentation}#{id}#{title}#{created_at}")
37
37
  end
data/lib/potam/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Potam
2
- VERSION = '0.0.4'
2
+ VERSION = '0.0.6'
3
3
  end
data/potam-0.0.4.gem ADDED
Binary file
data/potam-0.0.5.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
4
+ version: 0.0.6
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-26 00:00:00.000000000 Z
11
+ date: 2015-03-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake
@@ -127,9 +127,8 @@ files:
127
127
  - lib/subtasks.rb
128
128
  - lib/tasks.rb
129
129
  - lib/timer.rb
130
- - potam-0.0.1.gem
131
- - potam-0.0.2.gem
132
- - potam-0.0.3.gem
130
+ - potam-0.0.4.gem
131
+ - potam-0.0.5.gem
133
132
  - potam.gemspec
134
133
  - potam.rdoc
135
134
  - results.html
data/potam-0.0.1.gem DELETED
Binary file
data/potam-0.0.2.gem DELETED
Binary file
data/potam-0.0.3.gem DELETED
Binary file