achiu-clfu 0.0.1 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (7) hide show
  1. data/README.rdoc +20 -0
  2. data/Rakefile +3 -0
  3. data/VERSION +1 -1
  4. data/bin/clfu +5 -2
  5. data/clfu.gemspec +58 -0
  6. data/lib/clfu.rb +3 -3
  7. metadata +36 -5
@@ -2,6 +2,26 @@
2
2
 
3
3
  Description goes here.
4
4
 
5
+ require gems:
6
+
7
+ Mechanize
8
+ sudo gem install mechanize
9
+ Nokogiri
10
+ sudo gem install nokogiri
11
+ problems?
12
+ sudo apt-get install libxml2-dev
13
+ sudo apt-get install libxslt-dev
14
+ ANSI_Color
15
+ if you haven't set your sources, gem sources -a http://gems.github.com
16
+ sudo gem install jcf-ansi_color
17
+
18
+ And:
19
+
20
+ clfu <search term>
21
+
22
+
23
+
24
+
5
25
  == Copyright
6
26
 
7
27
  Copyright (c) 2009 achiu. See LICENSE for details.
data/Rakefile CHANGED
@@ -9,6 +9,9 @@ begin
9
9
  gem.email = "mr.arthur.chiu@gmail.com"
10
10
  gem.homepage = "http://github.com/achiu/clfu"
11
11
  gem.authors = ["achiu"]
12
+ gem.add_dependency 'nokogiri',">=1.3.1"
13
+ gem.add_dependency 'mechanize',">=0.9.2"
14
+ gem.add_dependency 'jcf-ansi_color',">=0.4.2"
12
15
  # gem is a Gem::Specification... see http://www.rubygems.org/read/chapter/20 for additional settings
13
16
  end
14
17
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.1
1
+ 0.0.3
data/bin/clfu CHANGED
@@ -1,8 +1,11 @@
1
- #!/usr/bin/ruby
2
- require 'rubygems'
1
+ #!/usr/bin/env ruby
3
2
  $:.unshift File.join(File.dirname(__FILE__), '..', 'lib')
3
+ require 'rubygems'
4
4
  require 'clfu'
5
5
 
6
+ Clfu.search ARGV
7
+ =begin
6
8
  case ARGV[0]
7
9
  when "search" then Clfu.search ARGV[1]
8
10
  end
11
+ =end
@@ -0,0 +1,58 @@
1
+ # -*- encoding: utf-8 -*-
2
+
3
+ Gem::Specification.new do |s|
4
+ s.name = %q{clfu}
5
+ s.version = "0.0.3"
6
+
7
+ s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
8
+ s.authors = ["achiu"]
9
+ s.date = %q{2009-06-07}
10
+ s.default_executable = %q{clfu}
11
+ s.email = %q{mr.arthur.chiu@gmail.com}
12
+ s.executables = ["clfu"]
13
+ s.extra_rdoc_files = [
14
+ "LICENSE",
15
+ "README.rdoc"
16
+ ]
17
+ s.files = [
18
+ ".document",
19
+ ".gitignore",
20
+ "LICENSE",
21
+ "README.rdoc",
22
+ "Rakefile",
23
+ "VERSION",
24
+ "bin/clfu",
25
+ "clfu.gemspec",
26
+ "lib/clfu.rb",
27
+ "test/clfu_test.rb",
28
+ "test/test_helper.rb"
29
+ ]
30
+ s.homepage = %q{http://github.com/achiu/clfu}
31
+ s.rdoc_options = ["--charset=UTF-8"]
32
+ s.require_paths = ["lib"]
33
+ s.rubygems_version = %q{1.3.4}
34
+ s.summary = %q{rubygem for commandlinefu}
35
+ s.test_files = [
36
+ "test/clfu_test.rb",
37
+ "test/test_helper.rb"
38
+ ]
39
+
40
+ if s.respond_to? :specification_version then
41
+ current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
42
+ s.specification_version = 3
43
+
44
+ if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
45
+ s.add_runtime_dependency(%q<nokogiri>, [">= 1.3.1"])
46
+ s.add_runtime_dependency(%q<mechanize>, [">= 0.9.2"])
47
+ s.add_runtime_dependency(%q<jcf-ansi_color>, [">= 0.4.2"])
48
+ else
49
+ s.add_dependency(%q<nokogiri>, [">= 1.3.1"])
50
+ s.add_dependency(%q<mechanize>, [">= 0.9.2"])
51
+ s.add_dependency(%q<jcf-ansi_color>, [">= 0.4.2"])
52
+ end
53
+ else
54
+ s.add_dependency(%q<nokogiri>, [">= 1.3.1"])
55
+ s.add_dependency(%q<mechanize>, [">= 0.9.2"])
56
+ s.add_dependency(%q<jcf-ansi_color>, [">= 0.4.2"])
57
+ end
58
+ end
@@ -1,10 +1,10 @@
1
+ $:.unshift(File.dirname(__FILE__)) unless
2
+ $:.include?(File.dirname(__FILE__)) || $:.include?(File.expand_path(File.dirname(__FILE__)))
3
+
1
4
  require 'nokogiri'
2
5
  require 'mechanize'
3
6
  require 'ansi_color'
4
7
 
5
- $:.unshift(File.dirname(__FILE__)) unless
6
- $:.include?(File.dirname(__FILE__)) || $:.include?(File.expand_path(File.dirname(__FILE__)))
7
-
8
8
  FU = "http://www.commandlinefu.com"
9
9
  GREEN = { :color => :green,:effects => [:bold] }
10
10
  RED = GREEN.merge :color => :red
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: achiu-clfu
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - achiu
@@ -9,10 +9,39 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-06-05 00:00:00 -07:00
12
+ date: 2009-06-07 00:00:00 -07:00
13
13
  default_executable: clfu
14
- dependencies: []
15
-
14
+ dependencies:
15
+ - !ruby/object:Gem::Dependency
16
+ name: nokogiri
17
+ type: :runtime
18
+ version_requirement:
19
+ version_requirements: !ruby/object:Gem::Requirement
20
+ requirements:
21
+ - - ">="
22
+ - !ruby/object:Gem::Version
23
+ version: 1.3.1
24
+ version:
25
+ - !ruby/object:Gem::Dependency
26
+ name: mechanize
27
+ type: :runtime
28
+ version_requirement:
29
+ version_requirements: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: 0.9.2
34
+ version:
35
+ - !ruby/object:Gem::Dependency
36
+ name: jcf-ansi_color
37
+ type: :runtime
38
+ version_requirement:
39
+ version_requirements: !ruby/object:Gem::Requirement
40
+ requirements:
41
+ - - ">="
42
+ - !ruby/object:Gem::Version
43
+ version: 0.4.2
44
+ version:
16
45
  description:
17
46
  email: mr.arthur.chiu@gmail.com
18
47
  executables:
@@ -29,6 +58,8 @@ files:
29
58
  - README.rdoc
30
59
  - Rakefile
31
60
  - VERSION
61
+ - bin/clfu
62
+ - clfu.gemspec
32
63
  - lib/clfu.rb
33
64
  - test/clfu_test.rb
34
65
  - test/test_helper.rb
@@ -59,5 +90,5 @@ signing_key:
59
90
  specification_version: 3
60
91
  summary: rubygem for commandlinefu
61
92
  test_files:
62
- - test/test_helper.rb
63
93
  - test/clfu_test.rb
94
+ - test/test_helper.rb