howdy 0.2.0 → 0.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/.gitignore CHANGED
@@ -2,4 +2,6 @@
2
2
  .DS_Store
3
3
  coverage
4
4
  rdoc
5
- pkg
5
+ pkg/*
6
+ *.gem
7
+ .bundle
@@ -0,0 +1,4 @@
1
+ == 0.2.1 (20-01-2011)
2
+ * fixed require path
3
+ * got rid of jeweler in favor of bundler
4
+ * added -v/--version to `how` command
data/Gemfile ADDED
@@ -0,0 +1,3 @@
1
+ source "http://rubygems.org"
2
+
3
+ gemspec
@@ -5,6 +5,9 @@ Dead easy command line dictionary.
5
5
  = Installation
6
6
 
7
7
  gem install howdy
8
+ # you'll need to install libxslt-dev and libxml-dev in your system
9
+ # ie. on debian/ubuntu:
10
+ # sudo aptitude install libxslt1-dev libxml2-dev
8
11
 
9
12
  = Description
10
13
 
data/Rakefile CHANGED
@@ -1,50 +1,2 @@
1
- require 'rubygems'
2
- require 'rake'
3
-
4
- begin
5
- require 'jeweler'
6
- Jeweler::Tasks.new do |gem|
7
- gem.name = "howdy"
8
- gem.summary = %Q{Query web dictionaries from command line}
9
- gem.description = %Q{Howdy is a tool that allows querying web dictionaries from a command line.}
10
- gem.email = "michal.lomnicki@gmail.com"
11
- gem.homepage = "http://github.com/mlomnicki/howdy"
12
- gem.authors = ["mlomnicki"]
13
- gem.add_dependency "nokogiri"
14
- gem.add_development_dependency "rspec"
15
- # gem is a Gem::Specification... see http://www.rubygems.org/read/chapter/20 for additional settings
16
- end
17
- rescue LoadError
18
- puts "Jeweler (or a dependency) not available. Install it with: sudo gem install jeweler"
19
- end
20
-
21
- require 'spec/rake/spectask'
22
- Spec::Rake::SpecTask.new(:spec) do |spec|
23
- spec.libs << 'lib' << 'spec'
24
- spec.spec_files = FileList['spec/**/*_spec.rb']
25
- end
26
-
27
- Spec::Rake::SpecTask.new(:rcov) do |spec|
28
- spec.libs << 'lib' << 'spec'
29
- spec.pattern = 'spec/**/*_spec.rb'
30
- spec.rcov = true
31
- end
32
-
33
- task :spec => :check_dependencies
34
-
35
- task :default => :spec
36
-
37
- require 'rake/rdoctask'
38
- Rake::RDocTask.new do |rdoc|
39
- if File.exist?('VERSION')
40
- version = File.read('VERSION')
41
- else
42
- version = ""
43
- end
44
-
45
- rdoc.rdoc_dir = 'rdoc'
46
- rdoc.title = "howdy #{version}"
47
- rdoc.rdoc_files.include('README*')
48
- rdoc.rdoc_files.include('lib/*/*.rb', 'lib/core/**/*.rb')
49
- rdoc.options << "-c UTF-8"
50
- end
1
+ require 'bundler'
2
+ Bundler::GemHelper.install_tasks
data/TODO CHANGED
@@ -2,4 +2,4 @@
2
2
  * wordreference.com support
3
3
  * play pronunciation mp3 files (http://howjsay.com)
4
4
  * support for coloring output
5
- * http://highline.rubyforge.org
5
+ * http://highline.rubyforge.org or termios
data/bin/how CHANGED
@@ -45,6 +45,11 @@ opts = OptionParser.new do |opts|
45
45
  exit 1
46
46
  end
47
47
 
48
+ opts.on_tail("-v", "--version", "Show version") do |v|
49
+ puts "Howdy #{Howdy::VERSION}"
50
+ exit 0
51
+ end
52
+
48
53
  end
49
54
  opts.parse!
50
55
 
@@ -1,72 +1,24 @@
1
- # Generated by jeweler
2
- # DO NOT EDIT THIS FILE DIRECTLY
3
- # Instead, edit Jeweler::Tasks in Rakefile, and run the gemspec command
4
1
  # -*- encoding: utf-8 -*-
2
+ $:.push File.expand_path("../lib", __FILE__)
3
+ require "howdy/version"
5
4
 
6
5
  Gem::Specification.new do |s|
7
- s.name = %q{howdy}
8
- s.version = "0.2.0"
9
-
10
- s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
- s.authors = ["mlomnicki"]
12
- s.date = %q{2010-03-12}
13
- s.default_executable = %q{how}
14
- s.description = %q{Howdy is a tool that allows querying web dictionaries from a command line.}
15
- s.email = %q{michal.lomnicki@gmail.com}
16
- s.executables = ["how"]
17
- s.extra_rdoc_files = [
18
- "LICENSE",
19
- "README.rdoc",
20
- "TODO"
21
- ]
22
- s.files = [
23
- ".document",
24
- ".gitignore",
25
- "LICENSE",
26
- "README.rdoc",
27
- "Rakefile",
28
- "TODO",
29
- "VERSION",
30
- "bin/how",
31
- "howdy.gemspec",
32
- "lib/howdy.rb",
33
- "lib/howdy/base.rb",
34
- "lib/howdy/config.rb",
35
- "lib/howdy/core_ext/ruby/string/integer.rb",
36
- "lib/howdy/core_ext/ruby/string/underscore.rb",
37
- "lib/howdy/dictionaries/dict_pl.rb",
38
- "lib/howdy/dictionaries/dictionary_com.rb",
39
- "lib/howdy/dictionaries/ling_pl.rb",
40
- "lib/howdy/dictionaries/urban_dictionary_com.rb",
41
- "lib/howdy/templates/howdy",
42
- "lib/howdy/ui.rb",
43
- "spec/howdy_spec.rb",
44
- "spec/spec_helper.rb"
45
- ]
46
- s.homepage = %q{http://github.com/mlomnicki/howdy}
47
- s.rdoc_options = ["--charset=UTF-8"]
48
- s.require_paths = ["lib"]
49
- s.rubygems_version = %q{1.3.5}
6
+ s.name = "howdy"
7
+ s.version = Howdy::VERSION
8
+ s.platform = Gem::Platform::RUBY
9
+ s.authors = ["Michał Łomnicki"]
10
+ s.email = ["michal.lomnicki@gmail.com"]
11
+ s.homepage = "https://github.com/mlomnicki/howdy"
50
12
  s.summary = %q{Query web dictionaries from command line}
51
- s.test_files = [
52
- "spec/howdy_spec.rb",
53
- "spec/spec_helper.rb"
54
- ]
13
+ s.description = %q{Howdy is a tool that allows querying web dictionaries from a command line. It fetches HTML, parses it and prints results to standard output.}
55
14
 
56
- if s.respond_to? :specification_version then
57
- current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
58
- s.specification_version = 3
15
+ s.rubyforge_project = "howdy"
16
+
17
+ s.files = `git ls-files`.split("\n")
18
+ s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
19
+ s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
20
+ s.require_paths = ["lib"]
59
21
 
60
- if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
61
- s.add_runtime_dependency(%q<nokogiri>, [">= 0"])
62
- s.add_development_dependency(%q<rspec>, [">= 0"])
63
- else
64
- s.add_dependency(%q<nokogiri>, [">= 0"])
65
- s.add_dependency(%q<rspec>, [">= 0"])
66
- end
67
- else
68
- s.add_dependency(%q<nokogiri>, [">= 0"])
69
- s.add_dependency(%q<rspec>, [">= 0"])
70
- end
22
+ s.add_dependency("nokogiri")
71
23
  end
72
24
 
@@ -1,7 +1,8 @@
1
- $: << File.join(File.dirname(__FILE__), 'howdy')
1
+ $:.unshift File.join(File.dirname(__FILE__), 'howdy')
2
2
 
3
3
  require 'core_ext/ruby/string/underscore'
4
4
  require 'core_ext/ruby/string/integer'
5
+ require 'version'
5
6
  require 'config'
6
7
  require 'base'
7
8
  require 'ui'
@@ -0,0 +1,3 @@
1
+ module Howdy
2
+ VERSION = "0.2.1"
3
+ end
metadata CHANGED
@@ -1,55 +1,52 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: howdy
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ prerelease: false
5
+ segments:
6
+ - 0
7
+ - 2
8
+ - 1
9
+ version: 0.2.1
5
10
  platform: ruby
6
11
  authors:
7
- - mlomnicki
12
+ - "Micha\xC5\x82 \xC5\x81omnicki"
8
13
  autorequire:
9
14
  bindir: bin
10
15
  cert_chain: []
11
16
 
12
- date: 2010-03-12 00:00:00 +01:00
13
- default_executable: how
17
+ date: 2011-01-20 00:00:00 +01:00
18
+ default_executable:
14
19
  dependencies:
15
20
  - !ruby/object:Gem::Dependency
16
21
  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: "0"
24
- version:
25
- - !ruby/object:Gem::Dependency
26
- name: rspec
27
- type: :development
28
- version_requirement:
29
- version_requirements: !ruby/object:Gem::Requirement
22
+ prerelease: false
23
+ requirement: &id001 !ruby/object:Gem::Requirement
30
24
  requirements:
31
25
  - - ">="
32
26
  - !ruby/object:Gem::Version
27
+ segments:
28
+ - 0
33
29
  version: "0"
34
- version:
35
- description: Howdy is a tool that allows querying web dictionaries from a command line.
36
- email: michal.lomnicki@gmail.com
30
+ type: :runtime
31
+ version_requirements: *id001
32
+ description: Howdy is a tool that allows querying web dictionaries from a command line. It fetches HTML, parses it and prints results to standard output.
33
+ email:
34
+ - michal.lomnicki@gmail.com
37
35
  executables:
38
36
  - how
39
37
  extensions: []
40
38
 
41
- extra_rdoc_files:
42
- - LICENSE
43
- - README.rdoc
44
- - TODO
39
+ extra_rdoc_files: []
40
+
45
41
  files:
46
42
  - .document
47
43
  - .gitignore
44
+ - CHANGELOG.rdoc
45
+ - Gemfile
48
46
  - LICENSE
49
47
  - README.rdoc
50
48
  - Rakefile
51
49
  - TODO
52
- - VERSION
53
50
  - bin/how
54
51
  - howdy.gemspec
55
52
  - lib/howdy.rb
@@ -63,36 +60,38 @@ files:
63
60
  - lib/howdy/dictionaries/urban_dictionary_com.rb
64
61
  - lib/howdy/templates/howdy
65
62
  - lib/howdy/ui.rb
63
+ - lib/howdy/version.rb
66
64
  - spec/howdy_spec.rb
67
65
  - spec/spec_helper.rb
68
66
  has_rdoc: true
69
- homepage: http://github.com/mlomnicki/howdy
67
+ homepage: https://github.com/mlomnicki/howdy
70
68
  licenses: []
71
69
 
72
70
  post_install_message:
73
- rdoc_options:
74
- - --charset=UTF-8
71
+ rdoc_options: []
72
+
75
73
  require_paths:
76
74
  - lib
77
75
  required_ruby_version: !ruby/object:Gem::Requirement
78
76
  requirements:
79
77
  - - ">="
80
78
  - !ruby/object:Gem::Version
79
+ segments:
80
+ - 0
81
81
  version: "0"
82
- version:
83
82
  required_rubygems_version: !ruby/object:Gem::Requirement
84
83
  requirements:
85
84
  - - ">="
86
85
  - !ruby/object:Gem::Version
86
+ segments:
87
+ - 0
87
88
  version: "0"
88
- version:
89
89
  requirements: []
90
90
 
91
- rubyforge_project:
92
- rubygems_version: 1.3.5
91
+ rubyforge_project: howdy
92
+ rubygems_version: 1.3.6
93
93
  signing_key:
94
94
  specification_version: 3
95
95
  summary: Query web dictionaries from command line
96
- test_files:
97
- - spec/howdy_spec.rb
98
- - spec/spec_helper.rb
96
+ test_files: []
97
+
data/VERSION DELETED
@@ -1 +0,0 @@
1
- 0.2.0