medo 0.1.1 → 0.1.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -10,7 +10,7 @@ module TaskStubsSpecHelper
10
10
  "created_at" => Time.parse("2012-01-05 12:04:00"),
11
11
  "completed_at" => nil,
12
12
  "done" => false,
13
- "notes" => []
13
+ "notes" => ""
14
14
  }
15
15
  end
16
16
 
@@ -20,18 +20,23 @@ module TaskStubsSpecHelper
20
20
  "created_at" => Time.parse("2012-01-05 15:30:00"),
21
21
  "completed_at" => Time.parse("2012-01-05 16:30:00"),
22
22
  "done" => true,
23
- "notes" => ["Note 1", "Note 2"]
23
+ "notes" => "Note 1\nNote 2"
24
24
  }
25
25
  end
26
26
 
27
- let(:pending_task) do
28
- attrs = pending_task_attributes
29
- stub(:Task, attrs.merge("done?" => attrs["done"]))
30
- end
27
+ let(:pending_task) { stub_task_from_attributes(pending_task_attributes) }
28
+
29
+ let(:completed_task) { stub_task_from_attributes(completed_task_attributes) }
31
30
 
32
- let(:completed_task) do
33
- attrs = completed_task_attributes
34
- stub(:Task, attrs.merge("done?" => attrs["done"]))
31
+ def stub_task_from_attributes(attributes)
32
+ attrs = attributes.dup
33
+ stub(:Task, attrs.merge("done?" => attrs["done"])).tap do |t|
34
+ t.notes.instance_eval do
35
+ def map(&block)
36
+ each_line.map(&:chomp).map(&block)
37
+ end
38
+ end
39
+ end
35
40
  end
36
41
 
37
42
  let(:fake_output) { fake_output = StringIO.new }
metadata CHANGED
@@ -1,153 +1,155 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: medo
3
- version: !ruby/object:Gem::Version
4
- hash: 25
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.3
5
5
  prerelease:
6
- segments:
7
- - 0
8
- - 1
9
- - 1
10
- version: 0.1.1
11
6
  platform: ruby
12
- authors:
7
+ authors:
13
8
  - Vladimir Yarotsky
14
9
  autorequire:
15
10
  bindir: bin
16
11
  cert_chain: []
17
-
18
- date: 2012-06-15 00:00:00 Z
19
- dependencies:
20
- - !ruby/object:Gem::Dependency
12
+ date: 2012-06-28 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
21
15
  name: gli
22
- prerelease: false
23
- requirement: &id001 !ruby/object:Gem::Requirement
16
+ requirement: !ruby/object:Gem::Requirement
24
17
  none: false
25
- requirements:
26
- - - ">="
27
- - !ruby/object:Gem::Version
28
- hash: 2975447611
29
- segments:
30
- - 2
31
- - 0
32
- - 0
33
- - rc
34
- - 4
18
+ requirements:
19
+ - - ! '>='
20
+ - !ruby/object:Gem::Version
35
21
  version: 2.0.0.rc4
36
22
  type: :runtime
37
- version_requirements: *id001
38
- - !ruby/object:Gem::Dependency
39
- name: rainbow
40
23
  prerelease: false
41
- requirement: &id002 !ruby/object:Gem::Requirement
24
+ version_requirements: !ruby/object:Gem::Requirement
42
25
  none: false
43
- requirements:
26
+ requirements:
27
+ - - ! '>='
28
+ - !ruby/object:Gem::Version
29
+ version: 2.0.0.rc4
30
+ - !ruby/object:Gem::Dependency
31
+ name: rainbow
32
+ requirement: !ruby/object:Gem::Requirement
33
+ none: false
34
+ requirements:
44
35
  - - ~>
45
- - !ruby/object:Gem::Version
46
- hash: 13
47
- segments:
48
- - 1
49
- - 1
50
- version: "1.1"
36
+ - !ruby/object:Gem::Version
37
+ version: '1.1'
51
38
  type: :runtime
52
- version_requirements: *id002
53
- - !ruby/object:Gem::Dependency
54
- name: json
55
39
  prerelease: false
56
- requirement: &id003 !ruby/object:Gem::Requirement
40
+ version_requirements: !ruby/object:Gem::Requirement
41
+ none: false
42
+ requirements:
43
+ - - ~>
44
+ - !ruby/object:Gem::Version
45
+ version: '1.1'
46
+ - !ruby/object:Gem::Dependency
47
+ name: json
48
+ requirement: !ruby/object:Gem::Requirement
57
49
  none: false
58
- requirements:
50
+ requirements:
59
51
  - - ~>
60
- - !ruby/object:Gem::Version
61
- hash: 1
62
- segments:
63
- - 1
64
- - 7
65
- version: "1.7"
52
+ - !ruby/object:Gem::Version
53
+ version: '1.7'
66
54
  type: :runtime
67
- version_requirements: *id003
68
- - !ruby/object:Gem::Dependency
69
- name: rspec
70
55
  prerelease: false
71
- requirement: &id004 !ruby/object:Gem::Requirement
56
+ version_requirements: !ruby/object:Gem::Requirement
57
+ none: false
58
+ requirements:
59
+ - - ~>
60
+ - !ruby/object:Gem::Version
61
+ version: '1.7'
62
+ - !ruby/object:Gem::Dependency
63
+ name: rspec
64
+ requirement: !ruby/object:Gem::Requirement
72
65
  none: false
73
- requirements:
66
+ requirements:
74
67
  - - ~>
75
- - !ruby/object:Gem::Version
76
- hash: 23
77
- segments:
78
- - 2
79
- - 10
80
- version: "2.10"
68
+ - !ruby/object:Gem::Version
69
+ version: '2.10'
81
70
  type: :development
82
- version_requirements: *id004
83
- - !ruby/object:Gem::Dependency
84
- name: rake
85
71
  prerelease: false
86
- requirement: &id005 !ruby/object:Gem::Requirement
72
+ version_requirements: !ruby/object:Gem::Requirement
73
+ none: false
74
+ requirements:
75
+ - - ~>
76
+ - !ruby/object:Gem::Version
77
+ version: '2.10'
78
+ - !ruby/object:Gem::Dependency
79
+ name: rake
80
+ requirement: !ruby/object:Gem::Requirement
87
81
  none: false
88
- requirements:
82
+ requirements:
89
83
  - - ~>
90
- - !ruby/object:Gem::Version
91
- hash: 25
92
- segments:
93
- - 0
94
- - 9
95
- version: "0.9"
84
+ - !ruby/object:Gem::Version
85
+ version: '0.9'
96
86
  type: :development
97
- version_requirements: *id005
98
- - !ruby/object:Gem::Dependency
99
- name: aruba
100
87
  prerelease: false
101
- requirement: &id006 !ruby/object:Gem::Requirement
88
+ version_requirements: !ruby/object:Gem::Requirement
102
89
  none: false
103
- requirements:
90
+ requirements:
104
91
  - - ~>
105
- - !ruby/object:Gem::Version
106
- hash: 3
107
- segments:
108
- - 0
109
- - 4
110
- version: "0.4"
92
+ - !ruby/object:Gem::Version
93
+ version: '0.9'
94
+ - !ruby/object:Gem::Dependency
95
+ name: aruba
96
+ requirement: !ruby/object:Gem::Requirement
97
+ none: false
98
+ requirements:
99
+ - - ~>
100
+ - !ruby/object:Gem::Version
101
+ version: '0.4'
111
102
  type: :development
112
- version_requirements: *id006
113
- - !ruby/object:Gem::Dependency
114
- name: simplecov
115
103
  prerelease: false
116
- requirement: &id007 !ruby/object:Gem::Requirement
104
+ version_requirements: !ruby/object:Gem::Requirement
117
105
  none: false
118
- requirements:
106
+ requirements:
119
107
  - - ~>
120
- - !ruby/object:Gem::Version
121
- hash: 7
122
- segments:
123
- - 0
124
- - 6
125
- version: "0.6"
108
+ - !ruby/object:Gem::Version
109
+ version: '0.4'
110
+ - !ruby/object:Gem::Dependency
111
+ name: simplecov
112
+ requirement: !ruby/object:Gem::Requirement
113
+ none: false
114
+ requirements:
115
+ - - ~>
116
+ - !ruby/object:Gem::Version
117
+ version: '0.6'
126
118
  type: :development
127
- version_requirements: *id007
128
- description: |
129
- The 'medo' application allows you to keep track of your
119
+ prerelease: false
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ none: false
122
+ requirements:
123
+ - - ~>
124
+ - !ruby/object:Gem::Version
125
+ version: '0.6'
126
+ description: ! 'The ''medo'' application allows you to keep track of your
127
+
130
128
  tasks (basically a to-do app) through command line interface
131
129
 
130
+ '
132
131
  email: vladimir.yarotksy@gmail.com
133
- executables:
132
+ executables:
134
133
  - medo
135
134
  extensions: []
136
-
137
135
  extra_rdoc_files: []
138
-
139
- files:
136
+ files:
140
137
  - bin/medo
138
+ - lib/medo/cli.rb
139
+ - lib/medo/cli_support.rb
141
140
  - lib/medo/commands/clear.rb
142
141
  - lib/medo/commands/delete.rb
143
142
  - lib/medo/commands/done.rb
143
+ - lib/medo/commands/edit.rb
144
144
  - lib/medo/commands/list.rb
145
145
  - lib/medo/commands/new.rb
146
146
  - lib/medo/commands/note.rb
147
+ - lib/medo/commands/reset.rb
147
148
  - lib/medo/commands/show.rb
148
149
  - lib/medo/file_task_storage.rb
149
150
  - lib/medo/json_task_reader.rb
150
151
  - lib/medo/json_task_writer.rb
152
+ - lib/medo/notes.rb
151
153
  - lib/medo/support/decorator.rb
152
154
  - lib/medo/support.rb
153
155
  - lib/medo/task.rb
@@ -158,19 +160,24 @@ files:
158
160
  - lib/medo/text_task_writer/decorators/numbers_decorator.rb
159
161
  - lib/medo/text_task_writer.rb
160
162
  - lib/medo.rb
163
+ - spec/lib/cli_spec.rb
164
+ - spec/lib/cli_support_spec.rb
161
165
  - spec/lib/file_task_storage_spec.rb
162
166
  - spec/lib/json_task_reader_spec.rb
163
167
  - spec/lib/json_task_writer_spec.rb
168
+ - spec/lib/notes_spec.rb
164
169
  - spec/lib/task_reader_spec.rb
165
170
  - spec/lib/task_spec.rb
166
171
  - spec/lib/task_writer_spec.rb
167
172
  - spec/lib/text_task_writer_spec.rb
168
173
  - spec/spec_helper.rb
169
174
  - spec/support/task_stubs_spec_helper.rb
170
- - features/add_notes.feature
171
175
  - features/add_task.feature
176
+ - features/edit_task.feature
172
177
  - features/list_tasks.feature
178
+ - features/notes.feature
173
179
  - features/step_definitions/add_task_steps.rb
180
+ - features/step_definitions/generic_steps.rb
174
181
  - features/step_definitions/list_tasks_steps.rb
175
182
  - features/support/env.rb
176
183
  - Gemfile
@@ -180,39 +187,29 @@ files:
180
187
  - README.md
181
188
  - VERSION
182
189
  homepage: http://github.com/v-yarotsky/medo
183
- licenses:
190
+ licenses:
184
191
  - MIT
185
192
  post_install_message:
186
193
  rdoc_options: []
187
-
188
- require_paths:
194
+ require_paths:
189
195
  - lib
190
- required_ruby_version: !ruby/object:Gem::Requirement
196
+ required_ruby_version: !ruby/object:Gem::Requirement
191
197
  none: false
192
- requirements:
193
- - - ">="
194
- - !ruby/object:Gem::Version
195
- hash: 3
196
- segments:
197
- - 0
198
- version: "0"
199
- required_rubygems_version: !ruby/object:Gem::Requirement
198
+ requirements:
199
+ - - ! '>='
200
+ - !ruby/object:Gem::Version
201
+ version: '0'
202
+ required_rubygems_version: !ruby/object:Gem::Requirement
200
203
  none: false
201
- requirements:
202
- - - ">="
203
- - !ruby/object:Gem::Version
204
- hash: 23
205
- segments:
206
- - 1
207
- - 3
208
- - 6
204
+ requirements:
205
+ - - ! '>='
206
+ - !ruby/object:Gem::Version
209
207
  version: 1.3.6
210
208
  requirements: []
211
-
212
209
  rubyforge_project:
213
- rubygems_version: 1.8.15
210
+ rubygems_version: 1.8.24
214
211
  signing_key:
215
212
  specification_version: 3
216
213
  summary: Simple CLI todo manager app
217
214
  test_files: []
218
-
215
+ has_rdoc: