list-tool 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (61) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +17 -0
  3. data/.rspec +2 -0
  4. data/Gemfile +4 -0
  5. data/Guardfile +8 -0
  6. data/LICENSE.txt +22 -0
  7. data/README.md +29 -0
  8. data/Rakefile +1 -0
  9. data/bin/clt +12 -0
  10. data/lib/list_tool/app/commands/add_item_command.rb +39 -0
  11. data/lib/list_tool/app/commands/add_list_command.rb +30 -0
  12. data/lib/list_tool/app/commands/delete_item_command.rb +39 -0
  13. data/lib/list_tool/app/commands/delete_list_command.rb +32 -0
  14. data/lib/list_tool/app/commands/help_command.rb +24 -0
  15. data/lib/list_tool/app/commands/rename_list_command.rb +34 -0
  16. data/lib/list_tool/app/commands/replace_item_command.rb +34 -0
  17. data/lib/list_tool/app/commands/show_items_command.rb +35 -0
  18. data/lib/list_tool/app/commands/show_lists_command.rb +26 -0
  19. data/lib/list_tool/app/commands/unknown_command.rb +26 -0
  20. data/lib/list_tool/app/commands/use_command.rb +31 -0
  21. data/lib/list_tool/app/commands/version_command.rb +24 -0
  22. data/lib/list_tool/app/commands.rb +43 -0
  23. data/lib/list_tool/app/printer.rb +41 -0
  24. data/lib/list_tool/app/runner.rb +54 -0
  25. data/lib/list_tool/app/string.rb +9 -0
  26. data/lib/list_tool/app.rb +9 -0
  27. data/lib/list_tool/data.rb +75 -0
  28. data/lib/list_tool/file_manager.rb +27 -0
  29. data/lib/list_tool/item.rb +23 -0
  30. data/lib/list_tool/json_parser.rb +11 -0
  31. data/lib/list_tool/list.rb +88 -0
  32. data/lib/list_tool/lister.rb +81 -0
  33. data/lib/list_tool/version.rb +3 -0
  34. data/lib/list_tool.rb +19 -0
  35. data/list_tool.gemspec +31 -0
  36. data/spec/fixtures/data.json +18 -0
  37. data/spec/list_tool/app/commands/add_item_command_spec.rb +108 -0
  38. data/spec/list_tool/app/commands/add_list_command_spec.rb +74 -0
  39. data/spec/list_tool/app/commands/delete_item_command_spec.rb +116 -0
  40. data/spec/list_tool/app/commands/delete_list_command_spec.rb +89 -0
  41. data/spec/list_tool/app/commands/help_command_spec.rb +41 -0
  42. data/spec/list_tool/app/commands/rename_list_command_spec.rb +95 -0
  43. data/spec/list_tool/app/commands/replace_item_command_spec.rb +97 -0
  44. data/spec/list_tool/app/commands/show_items_command_spec.rb +111 -0
  45. data/spec/list_tool/app/commands/show_lists_command_spec.rb +48 -0
  46. data/spec/list_tool/app/commands/unknown_command_spec.rb +31 -0
  47. data/spec/list_tool/app/commands/use_command_spec.rb +79 -0
  48. data/spec/list_tool/app/commands/version_comand_spec.rb +41 -0
  49. data/spec/list_tool/app/commands_spec.rb +80 -0
  50. data/spec/list_tool/app/printer_spec.rb +54 -0
  51. data/spec/list_tool/app/runner_spec.rb +166 -0
  52. data/spec/list_tool/app/string_spec.rb +32 -0
  53. data/spec/list_tool/data_spec.rb +257 -0
  54. data/spec/list_tool/file_manager_spec.rb +84 -0
  55. data/spec/list_tool/item_spec.rb +42 -0
  56. data/spec/list_tool/json_parser_spec.rb +14 -0
  57. data/spec/list_tool/list_spec.rb +221 -0
  58. data/spec/list_tool/lister_spec.rb +186 -0
  59. data/spec/spec_helper.rb +18 -0
  60. data/spec/support/factory.rb +33 -0
  61. metadata +213 -0
metadata ADDED
@@ -0,0 +1,213 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: list-tool
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.0.0
5
+ platform: ruby
6
+ authors:
7
+ - Dmitrii Krasnov
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2014-06-08 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: bundler
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '1.5'
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '1.5'
27
+ - !ruby/object:Gem::Dependency
28
+ name: rake
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '10.3'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '10.3'
41
+ - !ruby/object:Gem::Dependency
42
+ name: rspec
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '3.0'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '3.0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: guard
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - "~>"
60
+ - !ruby/object:Gem::Version
61
+ version: '2.6'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - "~>"
67
+ - !ruby/object:Gem::Version
68
+ version: '2.6'
69
+ - !ruby/object:Gem::Dependency
70
+ name: guard-rspec
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - "~>"
74
+ - !ruby/object:Gem::Version
75
+ version: '4.2'
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - "~>"
81
+ - !ruby/object:Gem::Version
82
+ version: '4.2'
83
+ - !ruby/object:Gem::Dependency
84
+ name: rb-readline
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - "~>"
88
+ - !ruby/object:Gem::Version
89
+ version: '0.5'
90
+ type: :development
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - "~>"
95
+ - !ruby/object:Gem::Version
96
+ version: '0.5'
97
+ description: A tool to manage lists of strings (like todos) in your app or terminal
98
+ email:
99
+ - vizvamitra@gmail.com
100
+ executables:
101
+ - clt
102
+ extensions: []
103
+ extra_rdoc_files: []
104
+ files:
105
+ - ".gitignore"
106
+ - ".rspec"
107
+ - Gemfile
108
+ - Guardfile
109
+ - LICENSE.txt
110
+ - README.md
111
+ - Rakefile
112
+ - bin/clt
113
+ - lib/list_tool.rb
114
+ - lib/list_tool/app.rb
115
+ - lib/list_tool/app/commands.rb
116
+ - lib/list_tool/app/commands/add_item_command.rb
117
+ - lib/list_tool/app/commands/add_list_command.rb
118
+ - lib/list_tool/app/commands/delete_item_command.rb
119
+ - lib/list_tool/app/commands/delete_list_command.rb
120
+ - lib/list_tool/app/commands/help_command.rb
121
+ - lib/list_tool/app/commands/rename_list_command.rb
122
+ - lib/list_tool/app/commands/replace_item_command.rb
123
+ - lib/list_tool/app/commands/show_items_command.rb
124
+ - lib/list_tool/app/commands/show_lists_command.rb
125
+ - lib/list_tool/app/commands/unknown_command.rb
126
+ - lib/list_tool/app/commands/use_command.rb
127
+ - lib/list_tool/app/commands/version_command.rb
128
+ - lib/list_tool/app/printer.rb
129
+ - lib/list_tool/app/runner.rb
130
+ - lib/list_tool/app/string.rb
131
+ - lib/list_tool/data.rb
132
+ - lib/list_tool/file_manager.rb
133
+ - lib/list_tool/item.rb
134
+ - lib/list_tool/json_parser.rb
135
+ - lib/list_tool/list.rb
136
+ - lib/list_tool/lister.rb
137
+ - lib/list_tool/version.rb
138
+ - list_tool.gemspec
139
+ - spec/fixtures/data.json
140
+ - spec/list_tool/app/commands/add_item_command_spec.rb
141
+ - spec/list_tool/app/commands/add_list_command_spec.rb
142
+ - spec/list_tool/app/commands/delete_item_command_spec.rb
143
+ - spec/list_tool/app/commands/delete_list_command_spec.rb
144
+ - spec/list_tool/app/commands/help_command_spec.rb
145
+ - spec/list_tool/app/commands/rename_list_command_spec.rb
146
+ - spec/list_tool/app/commands/replace_item_command_spec.rb
147
+ - spec/list_tool/app/commands/show_items_command_spec.rb
148
+ - spec/list_tool/app/commands/show_lists_command_spec.rb
149
+ - spec/list_tool/app/commands/unknown_command_spec.rb
150
+ - spec/list_tool/app/commands/use_command_spec.rb
151
+ - spec/list_tool/app/commands/version_comand_spec.rb
152
+ - spec/list_tool/app/commands_spec.rb
153
+ - spec/list_tool/app/printer_spec.rb
154
+ - spec/list_tool/app/runner_spec.rb
155
+ - spec/list_tool/app/string_spec.rb
156
+ - spec/list_tool/data_spec.rb
157
+ - spec/list_tool/file_manager_spec.rb
158
+ - spec/list_tool/item_spec.rb
159
+ - spec/list_tool/json_parser_spec.rb
160
+ - spec/list_tool/list_spec.rb
161
+ - spec/list_tool/lister_spec.rb
162
+ - spec/spec_helper.rb
163
+ - spec/support/factory.rb
164
+ homepage: http://github.com/vizvamitra/list-tool
165
+ licenses:
166
+ - MIT
167
+ metadata: {}
168
+ post_install_message:
169
+ rdoc_options: []
170
+ require_paths:
171
+ - lib
172
+ required_ruby_version: !ruby/object:Gem::Requirement
173
+ requirements:
174
+ - - ">="
175
+ - !ruby/object:Gem::Version
176
+ version: 1.9.3
177
+ required_rubygems_version: !ruby/object:Gem::Requirement
178
+ requirements:
179
+ - - ">="
180
+ - !ruby/object:Gem::Version
181
+ version: '0'
182
+ requirements: []
183
+ rubyforge_project:
184
+ rubygems_version: 2.2.2
185
+ signing_key:
186
+ specification_version: 4
187
+ summary: list-tool-1.0.0
188
+ test_files:
189
+ - spec/fixtures/data.json
190
+ - spec/list_tool/app/commands/add_item_command_spec.rb
191
+ - spec/list_tool/app/commands/add_list_command_spec.rb
192
+ - spec/list_tool/app/commands/delete_item_command_spec.rb
193
+ - spec/list_tool/app/commands/delete_list_command_spec.rb
194
+ - spec/list_tool/app/commands/help_command_spec.rb
195
+ - spec/list_tool/app/commands/rename_list_command_spec.rb
196
+ - spec/list_tool/app/commands/replace_item_command_spec.rb
197
+ - spec/list_tool/app/commands/show_items_command_spec.rb
198
+ - spec/list_tool/app/commands/show_lists_command_spec.rb
199
+ - spec/list_tool/app/commands/unknown_command_spec.rb
200
+ - spec/list_tool/app/commands/use_command_spec.rb
201
+ - spec/list_tool/app/commands/version_comand_spec.rb
202
+ - spec/list_tool/app/commands_spec.rb
203
+ - spec/list_tool/app/printer_spec.rb
204
+ - spec/list_tool/app/runner_spec.rb
205
+ - spec/list_tool/app/string_spec.rb
206
+ - spec/list_tool/data_spec.rb
207
+ - spec/list_tool/file_manager_spec.rb
208
+ - spec/list_tool/item_spec.rb
209
+ - spec/list_tool/json_parser_spec.rb
210
+ - spec/list_tool/list_spec.rb
211
+ - spec/list_tool/lister_spec.rb
212
+ - spec/spec_helper.rb
213
+ - spec/support/factory.rb