boom 0.0.3 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
data/boom.gemspec CHANGED
@@ -13,8 +13,8 @@ Gem::Specification.new do |s|
13
13
  ## If your rubyforge_project name is different, then edit it and comment out
14
14
  ## the sub! line in the Rakefile
15
15
  s.name = 'boom'
16
- s.version = '0.0.3'
17
- s.date = '2010-11-28'
16
+ s.version = '0.0.4'
17
+ s.date = '2010-12-20'
18
18
  s.rubyforge_project = 'boom'
19
19
 
20
20
  ## Make sure your summary is short. The description may be as long
@@ -50,7 +50,7 @@ Gem::Specification.new do |s|
50
50
  ## Specify any RDoc options here. You'll want to add your README and
51
51
  ## LICENSE files to the extra_rdoc_files list.
52
52
  s.rdoc_options = ["--charset=UTF-8"]
53
- s.extra_rdoc_files = %w[Readme.markdown License]
53
+ s.extra_rdoc_files = %w[readme.markdown license.markdown]
54
54
 
55
55
  ## List your runtime dependencies here. Runtime dependencies are those
56
56
  ## that are needed for an end user to actually USE your code.
@@ -65,17 +65,18 @@ Gem::Specification.new do |s|
65
65
  ## THE MANIFEST COMMENTS, they are used as delimiters by the task.
66
66
  # = MANIFEST =
67
67
  s.files = %w[
68
- License
69
68
  Rakefile
70
- Readme.markdown
71
69
  bin/boom
72
70
  boom.gemspec
71
+ changelog.markdown
73
72
  lib/boom.rb
74
73
  lib/boom/clipboard.rb
75
74
  lib/boom/command.rb
76
75
  lib/boom/item.rb
77
76
  lib/boom/list.rb
78
77
  lib/boom/storage.rb
78
+ license.markdown
79
+ readme.markdown
79
80
  test/examples/urls.json
80
81
  test/helper.rb
81
82
  test/test_command.rb
@@ -0,0 +1,14 @@
1
+ # boom changes
2
+
3
+ ## 0.0.4
4
+ - Adds `boom help`. You know, for help.
5
+
6
+ ## 0.0.3
7
+ - `boom edit` to edit your stuff in a friendly $EDITOR.
8
+ - Class-level accessors in List for ActiveRecordesque actions.
9
+
10
+ ## 0.0.2
11
+ - Fix for list selection (thanks [bgkittrell](https://github.com/bgkittrell)).
12
+
13
+ ## 0.0.1
14
+ - BOOM!
data/lib/boom/command.rb CHANGED
@@ -69,6 +69,7 @@ module Boom
69
69
  def delegate(command, major, minor)
70
70
  return all if command == 'all'
71
71
  return edit if command == 'edit'
72
+ return help if command == 'help'
72
73
 
73
74
  # if we're operating on a List
74
75
  if storage.list_exists?(command)
@@ -216,6 +217,34 @@ module Boom
216
217
  output "Boom! Make your edits, and do be sure to save."
217
218
  end
218
219
 
220
+ # Public: prints all the commands of boom.
221
+ #
222
+ # Returns nothing.
223
+ def help
224
+ text = %{
225
+ - boom: help ---------------------------------------------------
226
+
227
+ boom display high-level overview
228
+ boom all show all items in all lists
229
+ boom edit edit the boom JSON file in $EDITOR
230
+ boom help this help text
231
+
232
+ boom <list> create a new list
233
+ boom <list> show items for a list
234
+ boom <list> delete deletes a list
235
+
236
+ boom <list> <name> <value> create a new list item
237
+ boom <name> copy item's value to clipboard
238
+ boom <list> <name> copy item's value to clipboard
239
+ boom <list> <name> delete deletes an item
240
+
241
+ all other documentation is located at:
242
+ https://github.com/holman/boom
243
+ }.gsub(/^ {8}/, '') # strip the first eight spaces of every line
244
+
245
+ output text
246
+ end
247
+
219
248
  end
220
249
  end
221
250
  end
data/lib/boom.rb CHANGED
@@ -15,7 +15,7 @@ require 'boom/list'
15
15
  require 'boom/storage'
16
16
 
17
17
  module Boom
18
- VERSION = '0.0.3'
18
+ VERSION = '0.0.4'
19
19
 
20
20
  def self.storage
21
21
  @storage ||= Boom::Storage.new
@@ -81,6 +81,10 @@ can have multiple lists.
81
81
  blog: http://zachholman.com
82
82
  github: https://github.com
83
83
 
84
+ ** Help **
85
+
86
+ $ boom help
87
+
84
88
  ** Manual edit **
85
89
 
86
90
  If you want to edit the underlying JSON directly, make sure your `$EDITOR`
data/test/test_command.rb CHANGED
@@ -85,4 +85,8 @@ class TestCommand < Test::Unit::TestCase
85
85
  Boom::Command.stubs(:system).returns('')
86
86
  assert_match 'Make your edits', command('edit')
87
87
  end
88
+
89
+ def test_edit
90
+ assert_match 'boom help', command('help')
91
+ end
88
92
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: boom
3
3
  version: !ruby/object:Gem::Version
4
- hash: 25
4
+ hash: 23
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 3
10
- version: 0.0.3
9
+ - 4
10
+ version: 0.0.4
11
11
  platform: ruby
12
12
  authors:
13
13
  - Zach Holman
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2010-11-28 00:00:00 -08:00
18
+ date: 2010-12-20 00:00:00 -08:00
19
19
  default_executable: boom
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency
@@ -64,20 +64,21 @@ executables:
64
64
  extensions: []
65
65
 
66
66
  extra_rdoc_files:
67
- - Readme.markdown
68
- - License
67
+ - readme.markdown
68
+ - license.markdown
69
69
  files:
70
- - License
71
70
  - Rakefile
72
- - Readme.markdown
73
71
  - bin/boom
74
72
  - boom.gemspec
73
+ - changelog.markdown
75
74
  - lib/boom.rb
76
75
  - lib/boom/clipboard.rb
77
76
  - lib/boom/command.rb
78
77
  - lib/boom/item.rb
79
78
  - lib/boom/list.rb
80
79
  - lib/boom/storage.rb
80
+ - license.markdown
81
+ - readme.markdown
81
82
  - test/examples/urls.json
82
83
  - test/helper.rb
83
84
  - test/test_command.rb
File without changes