finger 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile.lock ADDED
@@ -0,0 +1,57 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ finger (0.0.2)
5
+
6
+ GEM
7
+ remote: http://rubygems.org/
8
+ specs:
9
+ archive-tar-minitar (0.5.2)
10
+ aruba (0.2.6)
11
+ background_process
12
+ cucumber (~> 0.9.4)
13
+ background_process (1.2)
14
+ builder (2.1.2)
15
+ columnize (0.3.1)
16
+ cucumber (0.9.4)
17
+ builder (~> 2.1.2)
18
+ diff-lcs (~> 1.1.2)
19
+ gherkin (~> 2.2.9)
20
+ json (~> 1.4.6)
21
+ term-ansicolor (~> 1.0.5)
22
+ diff-lcs (1.1.2)
23
+ gherkin (2.2.9)
24
+ json (~> 1.4.6)
25
+ term-ansicolor (~> 1.0.5)
26
+ json (1.4.6)
27
+ linecache19 (0.5.11)
28
+ ruby_core_source (>= 0.1.4)
29
+ rspec (2.1.0)
30
+ rspec-core (~> 2.1.0)
31
+ rspec-expectations (~> 2.1.0)
32
+ rspec-mocks (~> 2.1.0)
33
+ rspec-core (2.1.0)
34
+ rspec-expectations (2.1.0)
35
+ diff-lcs (~> 1.1.2)
36
+ rspec-mocks (2.1.0)
37
+ ruby-debug-base19 (0.11.23)
38
+ columnize (>= 0.3.1)
39
+ linecache19 (>= 0.5.11)
40
+ ruby_core_source (>= 0.1.4)
41
+ ruby-debug19 (0.11.6)
42
+ columnize (>= 0.3.1)
43
+ linecache19 (>= 0.5.11)
44
+ ruby-debug-base19 (>= 0.11.19)
45
+ ruby_core_source (0.1.4)
46
+ archive-tar-minitar (>= 0.5.2)
47
+ term-ansicolor (1.0.5)
48
+
49
+ PLATFORMS
50
+ ruby
51
+
52
+ DEPENDENCIES
53
+ aruba
54
+ cucumber
55
+ finger!
56
+ rspec
57
+ ruby-debug19
data/bin/finger ADDED
@@ -0,0 +1,3 @@
1
+ #!/usr/bin/env ruby
2
+ require 'finger/cli'
3
+ puts Finger::CLI.run
@@ -0,0 +1,9 @@
1
+ Feature: Finger
2
+ In order to find out more about people
3
+ As a CLI
4
+ I want to be able to look up their user information
5
+
6
+ Scenario: Delegates to original finger
7
+ When I run "finger `whoami`"
8
+ Then the output should contain "Login"
9
+ And the output should contain "Name"
@@ -0,0 +1,5 @@
1
+ require 'rubygems'
2
+ require 'bundler'
3
+ Bundler.setup
4
+
5
+ require 'aruba'
data/finger.gemspec CHANGED
@@ -9,8 +9,8 @@ Gem::Specification.new do |s|
9
9
  s.authors = ["Hakan Ensari"]
10
10
  s.email = ["hakan.ensari@papercavalier.com"]
11
11
  s.homepage = "http://github.com/papercavalier/finger"
12
- s.summary = %q{Write a gem summary}
13
- s.description = %q{Write a gem description}
12
+ s.summary = %q{User information lookup program}
13
+ s.description = %q{Finger is a user information lookup program.}
14
14
 
15
15
  s.rubyforge_project = "finger"
16
16
 
@@ -18,4 +18,13 @@ Gem::Specification.new do |s|
18
18
  s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
19
19
  s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
20
20
  s.require_paths = ["lib"]
21
+
22
+ s.add_development_dependency "cucumber"
23
+ s.add_development_dependency "aruba"
24
+ s.add_development_dependency "rspec"
25
+ if RUBY_VERSION.include?("1.9")
26
+ s.add_development_dependency "ruby-debug19"
27
+ else
28
+ s.add_development_dependency "ruby-debug"
29
+ end
21
30
  end
data/lib/finger.rb CHANGED
@@ -1,3 +1,2 @@
1
1
  module Finger
2
- # Your code goes here...
3
2
  end
data/lib/finger/cli.rb ADDED
@@ -0,0 +1,13 @@
1
+ module Finger
2
+ class CLI
3
+ class << self
4
+ def run
5
+ case ARGV[0]
6
+ when 'foo'
7
+ else
8
+ exec "`whereis finger` #{ARGV.join(" ")}"
9
+ end
10
+ end
11
+ end
12
+ end
13
+ end
@@ -1,3 +1,3 @@
1
1
  module Finger
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
@@ -0,0 +1,4 @@
1
+ require 'spec_helper'
2
+
3
+ describe Finger::CLI do
4
+ end
@@ -0,0 +1,8 @@
1
+ require "rubygems"
2
+ require "bundler/setup"
3
+ require "rspec"
4
+ require "ruby-debug"
5
+
6
+ require File.expand_path("../../lib/finger/cli", __FILE__)
7
+
8
+ Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f }
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 0
8
- - 1
9
- version: 0.0.1
8
+ - 2
9
+ version: 0.0.2
10
10
  platform: ruby
11
11
  authors:
12
12
  - Hakan Ensari
@@ -14,15 +14,66 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2010-11-18 00:00:00 +00:00
17
+ date: 2010-11-23 00:00:00 +00:00
18
18
  default_executable:
19
- dependencies: []
20
-
21
- description: Write a gem description
19
+ dependencies:
20
+ - !ruby/object:Gem::Dependency
21
+ name: cucumber
22
+ prerelease: false
23
+ requirement: &id001 !ruby/object:Gem::Requirement
24
+ none: false
25
+ requirements:
26
+ - - ">="
27
+ - !ruby/object:Gem::Version
28
+ segments:
29
+ - 0
30
+ version: "0"
31
+ type: :development
32
+ version_requirements: *id001
33
+ - !ruby/object:Gem::Dependency
34
+ name: aruba
35
+ prerelease: false
36
+ requirement: &id002 !ruby/object:Gem::Requirement
37
+ none: false
38
+ requirements:
39
+ - - ">="
40
+ - !ruby/object:Gem::Version
41
+ segments:
42
+ - 0
43
+ version: "0"
44
+ type: :development
45
+ version_requirements: *id002
46
+ - !ruby/object:Gem::Dependency
47
+ name: rspec
48
+ prerelease: false
49
+ requirement: &id003 !ruby/object:Gem::Requirement
50
+ none: false
51
+ requirements:
52
+ - - ">="
53
+ - !ruby/object:Gem::Version
54
+ segments:
55
+ - 0
56
+ version: "0"
57
+ type: :development
58
+ version_requirements: *id003
59
+ - !ruby/object:Gem::Dependency
60
+ name: ruby-debug19
61
+ prerelease: false
62
+ requirement: &id004 !ruby/object:Gem::Requirement
63
+ none: false
64
+ requirements:
65
+ - - ">="
66
+ - !ruby/object:Gem::Version
67
+ segments:
68
+ - 0
69
+ version: "0"
70
+ type: :development
71
+ version_requirements: *id004
72
+ description: Finger is a user information lookup program.
22
73
  email:
23
74
  - hakan.ensari@papercavalier.com
24
- executables: []
25
-
75
+ executables:
76
+ - finger
26
77
  extensions: []
27
78
 
28
79
  extra_rdoc_files: []
@@ -30,10 +81,17 @@ extra_rdoc_files: []
30
81
  files:
31
82
  - .gitignore
32
83
  - Gemfile
84
+ - Gemfile.lock
33
85
  - Rakefile
86
+ - bin/finger
87
+ - features/finger.feature
88
+ - features/support/env.rb
34
89
  - finger.gemspec
35
90
  - lib/finger.rb
91
+ - lib/finger/cli.rb
36
92
  - lib/finger/version.rb
93
+ - spec/finger/cli_spec.rb
94
+ - spec/spec_helper.rb
37
95
  has_rdoc: true
38
96
  homepage: http://github.com/papercavalier/finger
39
97
  licenses: []
@@ -65,6 +123,9 @@ rubyforge_project: finger
65
123
  rubygems_version: 1.3.7
66
124
  signing_key:
67
125
  specification_version: 3
68
- summary: Write a gem summary
69
- test_files: []
70
-
126
+ summary: User information lookup program
127
+ test_files:
128
+ - features/finger.feature
129
+ - features/support/env.rb
130
+ - spec/finger/cli_spec.rb
131
+ - spec/spec_helper.rb