ideapad 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. data/.gitignore +1 -0
  2. data/bin/idea +9 -4
  3. data/lib/ideapad/version.rb +1 -1
  4. metadata +5 -3
data/.gitignore ADDED
@@ -0,0 +1 @@
1
+ pkg
data/bin/idea CHANGED
@@ -1,7 +1,12 @@
1
1
  #!/usr/bin/env ruby
2
2
 
3
3
  CMD = ARGV[0]
4
- require './lib/ideapad'
4
+ begin
5
+ require 'ideapad'
6
+ rescue LoadError
7
+ require File.dirname(__FILE__) + '/../lib/ideapad'
8
+ end
9
+
5
10
  include Ideapad
6
11
 
7
12
  list = IdeaList.load!
@@ -24,9 +29,9 @@ def halp!
24
29
 
25
30
  puts msg.join("\n")
26
31
  end
27
-
28
- case CMD.downcase
29
- when 'help'
32
+ cmd = CMD || ''
33
+ case cmd.downcase
34
+ when 'help', ''
30
35
  halp!
31
36
  when 'list', 'l'
32
37
  list.pretty
@@ -1,3 +1,3 @@
1
1
  module Ideapad
2
- VERSION = '0.1.1'
2
+ VERSION = '0.1.2'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ideapad
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-01-23 00:00:00.000000000 Z
12
+ date: 2013-01-25 00:00:00.000000000 Z
13
13
  dependencies: []
14
14
  description: Tiny utility for keeping track of ideas.
15
15
  email:
@@ -19,6 +19,7 @@ executables:
19
19
  extensions: []
20
20
  extra_rdoc_files: []
21
21
  files:
22
+ - .gitignore
22
23
  - README.md
23
24
  - bin/idea
24
25
  - ideapad.gemspec
@@ -46,8 +47,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
46
47
  version: '0'
47
48
  requirements: []
48
49
  rubyforge_project: ideapad
49
- rubygems_version: 1.8.15
50
+ rubygems_version: 1.8.24
50
51
  signing_key:
51
52
  specification_version: 3
52
53
  summary: Tiny utility for keeping track of ideas.
53
54
  test_files: []
55
+ has_rdoc: