sculd 0.1.3 → 0.2.0

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.
@@ -6,25 +6,25 @@ require "helper"
6
6
  #require "pkg/klass.rb"
7
7
 
8
8
  class TC_Schedule < Test::Unit::TestCase
9
- def setup
10
- date = Date.new(2012, 10, 15)
11
- @s00 = Sculd::Plan::Schedule.new(date, false, 0, "scheduleA")
9
+ def setup
10
+ date = Date.new(2012, 10, 15)
11
+ @s00 = Sculd::Plan::Schedule.new(date, false, 0, "scheduleA")
12
12
 
13
- date = DateTime.new(2012, 10, 15, 23, 45, 0)
14
- @s01 = Sculd::Plan::Schedule.new(date, false, 0, "scheduleA")
15
- end
13
+ date = DateTime.new(2012, 10, 15, 23, 45, 0)
14
+ @s01 = Sculd::Plan::Schedule.new(date, false, 0, "scheduleA")
15
+ end
16
16
 
17
- def test_priority
18
- #it 'should return 0' do
19
- assert_equal(0, @s00.priority)
20
- end
17
+ def test_priority
18
+ #it 'should return 0' do
19
+ assert_equal(0, @s00.priority)
20
+ end
21
21
 
22
- def test_event_dates
23
- #it 'should return Array of 1 item' do
24
- results = @s00.event_dates
25
- assert_equal([Date.new(2012, 10, 15)], results)
22
+ def test_event_dates
23
+ #it 'should return Array of 1 item' do
24
+ results = @s00.event_dates
25
+ assert_equal([Date.new(2012, 10, 15)], results)
26
26
 
27
- results = @s01.event_dates
28
- assert_equal([Date.new(2012, 10, 15)], results)
29
- end
27
+ results = @s01.event_dates
28
+ assert_equal([Date.new(2012, 10, 15)], results)
29
+ end
30
30
  end
data/test/test_todo.rb CHANGED
@@ -6,45 +6,45 @@ require "helper"
6
6
  #require "pkg/klass.rb"
7
7
 
8
8
  class TC_Todo < Test::Unit::TestCase
9
- def setup
10
- today = Date.new(2012, 10, 15)
11
- @t00 = Sculd::Plan::Todo.new(today, false, 10, 'todoA')
12
-
13
- today = DateTime.new(2012, 10, 15, 23, 45, 00)
14
- @t01 = Sculd::Plan::Todo.new(today, false, 10, 'todoA')
15
- end
16
-
17
- def test_priority
18
- #it 'return 0 before the period.' do
19
- today = Date.new(2012, 10, 1)
20
- assert_equal(0, @t00.priority(today))
21
-
22
- #it 'return REMINDER_PRIORITY when the day is today.' do
23
- today = Date.new(2012, 10, 15)
24
- assert_equal(10000, @t00.priority(today))
25
-
26
- #it 'return values between REMINDER_PRIORITY and DEADLINE_PRIORITY during the period.' do
27
- today = Date.new(2012, 10, 20)
28
- assert_equal(15000, @t00.priority(today))
29
-
30
- #it 'return DEADLINE_PRIORITY when the day is past.' do
31
- today = Date.new(2012, 10, 30)
32
- assert_equal(20000, @t00.priority(today))
33
- end
34
-
35
- def test_event_dates
36
- results = @t00.event_dates
37
- assert_equal(2, results.size)
38
- assert_equal(Date.new(2012, 10, 15), results[0])
39
- assert_equal(Date.new(2012, 10, 25), results[1])
40
-
41
-
42
- results = @t01.event_dates
43
- assert_equal(2 , results.size)
44
- assert_equal(Date.new(2012, 10, 15), results[0] )
45
- assert_equal(Date.new(2012, 10, 25), results[1] )
46
- assert_equal(Date , results[0].class )
47
- assert_equal(Date , results[1].class )
48
- end
9
+ def setup
10
+ today = Date.new(2012, 10, 15)
11
+ @t00 = Sculd::Plan::Todo.new(today, false, 10, 'todoA')
12
+
13
+ today = DateTime.new(2012, 10, 15, 23, 45, 00)
14
+ @t01 = Sculd::Plan::Todo.new(today, false, 10, 'todoA')
15
+ end
16
+
17
+ def test_priority
18
+ #it 'return 0 before the period.' do
19
+ today = Date.new(2012, 10, 1)
20
+ assert_equal(0, @t00.priority(today))
21
+
22
+ #it 'return REMINDER_PRIORITY when the day is today.' do
23
+ today = Date.new(2012, 10, 15)
24
+ assert_equal(10000, @t00.priority(today))
25
+
26
+ #it 'return values between REMINDER_PRIORITY and DEADLINE_PRIORITY during the period.' do
27
+ today = Date.new(2012, 10, 20)
28
+ assert_equal(15000, @t00.priority(today))
29
+
30
+ #it 'return DEADLINE_PRIORITY when the day is past.' do
31
+ today = Date.new(2012, 10, 30)
32
+ assert_equal(20000, @t00.priority(today))
33
+ end
34
+
35
+ def test_event_dates
36
+ results = @t00.event_dates
37
+ assert_equal(2, results.size)
38
+ assert_equal(Date.new(2012, 10, 15), results[0])
39
+ assert_equal(Date.new(2012, 10, 25), results[1])
40
+
41
+
42
+ results = @t01.event_dates
43
+ assert_equal(2 , results.size)
44
+ assert_equal(Date.new(2012, 10, 15), results[0] )
45
+ assert_equal(Date.new(2012, 10, 25), results[1] )
46
+ assert_equal(Date , results[0].class )
47
+ assert_equal(Date , results[1].class )
48
+ end
49
49
  end
50
50
 
metadata CHANGED
@@ -1,97 +1,100 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sculd
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
5
- prerelease:
4
+ version: 0.2.0
6
5
  platform: ruby
7
6
  authors:
8
7
  - ippei94da
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2014-08-29 00:00:00.000000000 Z
11
+ date: 2017-04-24 00:00:00.000000000 Z
13
12
  dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: test-unit
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '3.2'
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '3.2'
14
27
  - !ruby/object:Gem::Dependency
15
28
  name: rdoc
16
29
  requirement: !ruby/object:Gem::Requirement
17
- none: false
18
30
  requirements:
19
- - - ~>
31
+ - - "~>"
20
32
  - !ruby/object:Gem::Version
21
- version: 4.1.1
33
+ version: '4.2'
22
34
  type: :development
23
35
  prerelease: false
24
36
  version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
37
  requirements:
27
- - - ~>
38
+ - - "~>"
28
39
  - !ruby/object:Gem::Version
29
- version: 4.1.1
40
+ version: '4.2'
30
41
  - !ruby/object:Gem::Dependency
31
42
  name: bundler
32
43
  requirement: !ruby/object:Gem::Requirement
33
- none: false
34
44
  requirements:
35
- - - ~>
45
+ - - "~>"
36
46
  - !ruby/object:Gem::Version
37
- version: 1.7.2
47
+ version: '1.11'
38
48
  type: :development
39
49
  prerelease: false
40
50
  version_requirements: !ruby/object:Gem::Requirement
41
- none: false
42
51
  requirements:
43
- - - ~>
52
+ - - "~>"
44
53
  - !ruby/object:Gem::Version
45
- version: 1.7.2
54
+ version: '1.11'
46
55
  - !ruby/object:Gem::Dependency
47
56
  name: jeweler
48
57
  requirement: !ruby/object:Gem::Requirement
49
- none: false
50
58
  requirements:
51
- - - ~>
59
+ - - "~>"
52
60
  - !ruby/object:Gem::Version
53
- version: 2.0.1
61
+ version: '2.0'
54
62
  type: :development
55
63
  prerelease: false
56
64
  version_requirements: !ruby/object:Gem::Requirement
57
- none: false
58
65
  requirements:
59
- - - ~>
66
+ - - "~>"
60
67
  - !ruby/object:Gem::Version
61
- version: 2.0.1
68
+ version: '2.0'
62
69
  - !ruby/object:Gem::Dependency
63
70
  name: simplecov
64
71
  requirement: !ruby/object:Gem::Requirement
65
- none: false
66
72
  requirements:
67
- - - ! '>='
73
+ - - "~>"
68
74
  - !ruby/object:Gem::Version
69
- version: 0.8.2
75
+ version: '0.11'
70
76
  type: :development
71
77
  prerelease: false
72
78
  version_requirements: !ruby/object:Gem::Requirement
73
- none: false
74
79
  requirements:
75
- - - ! '>='
80
+ - - "~>"
76
81
  - !ruby/object:Gem::Version
77
- version: 0.8.2
82
+ version: '0.11'
78
83
  - !ruby/object:Gem::Dependency
79
84
  name: highline
80
85
  requirement: !ruby/object:Gem::Requirement
81
- none: false
82
86
  requirements:
83
- - - ! '>='
87
+ - - "~>"
84
88
  - !ruby/object:Gem::Version
85
- version: 1.6.21
89
+ version: '1.6'
86
90
  type: :development
87
91
  prerelease: false
88
92
  version_requirements: !ruby/object:Gem::Requirement
89
- none: false
90
93
  requirements:
91
- - - ! '>='
94
+ - - "~>"
92
95
  - !ruby/object:Gem::Version
93
- version: 1.6.21
94
- description: ! 'Schedule management system using ''howm'' like format. Plans, i.e.,
96
+ version: '1.6'
97
+ description: 'Schedule management system using ''howm'' like format. Plans, i.e.,
95
98
  schedule(@), reminder(-), deadline(!), and tood(+), make events and tasks. Command
96
99
  ''sculd'' can output events on each date and tasks with high priority. '
97
100
  email: ippei94da@gmail.com
@@ -103,8 +106,8 @@ extra_rdoc_files:
103
106
  - LICENSE.txt
104
107
  - README.rdoc
105
108
  files:
106
- - .document
107
- - .rspec
109
+ - ".document"
110
+ - ".rspec"
108
111
  - CHANGES
109
112
  - Gemfile
110
113
  - LICENSE.txt
@@ -135,29 +138,25 @@ files:
135
138
  homepage: http://github.com/ippei94da/sculd
136
139
  licenses:
137
140
  - MIT
141
+ metadata: {}
138
142
  post_install_message:
139
143
  rdoc_options: []
140
144
  require_paths:
141
145
  - lib
142
146
  required_ruby_version: !ruby/object:Gem::Requirement
143
- none: false
144
147
  requirements:
145
- - - ! '>='
148
+ - - ">="
146
149
  - !ruby/object:Gem::Version
147
150
  version: '0'
148
- segments:
149
- - 0
150
- hash: -3471432712698996207
151
151
  required_rubygems_version: !ruby/object:Gem::Requirement
152
- none: false
153
152
  requirements:
154
- - - ! '>='
153
+ - - ">="
155
154
  - !ruby/object:Gem::Version
156
155
  version: '0'
157
156
  requirements: []
158
157
  rubyforge_project:
159
- rubygems_version: 1.8.23
158
+ rubygems_version: 2.5.1
160
159
  signing_key:
161
- specification_version: 3
160
+ specification_version: 4
162
161
  summary: Sculd, SChedULe Dealer.
163
162
  test_files: []