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 +3 -1
- data/CHANGELOG.rdoc +4 -0
- data/Gemfile +3 -0
- data/README.rdoc +3 -0
- data/Rakefile +2 -50
- data/TODO +1 -1
- data/bin/how +5 -0
- data/howdy.gemspec +16 -64
- data/lib/howdy.rb +2 -1
- data/lib/howdy/version.rb +3 -0
- metadata +34 -35
- data/VERSION +0 -1
    
        data/.gitignore
    CHANGED
    
    
    
        data/CHANGELOG.rdoc
    ADDED
    
    
    
        data/Gemfile
    ADDED
    
    
    
        data/README.rdoc
    CHANGED
    
    
    
        data/Rakefile
    CHANGED
    
    | @@ -1,50 +1,2 @@ | |
| 1 | 
            -
            require ' | 
| 2 | 
            -
             | 
| 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
    
    
    
        data/bin/how
    CHANGED
    
    
    
        data/howdy.gemspec
    CHANGED
    
    | @@ -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 | 
| 8 | 
            -
              s.version | 
| 9 | 
            -
             | 
| 10 | 
            -
              s. | 
| 11 | 
            -
              s. | 
| 12 | 
            -
              s. | 
| 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. | 
| 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 | 
            -
               | 
| 57 | 
            -
             | 
| 58 | 
            -
             | 
| 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 | 
            -
             | 
| 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 |  | 
    
        data/lib/howdy.rb
    CHANGED
    
    
    
        metadata
    CHANGED
    
    | @@ -1,55 +1,52 @@ | |
| 1 1 | 
             
            --- !ruby/object:Gem::Specification 
         | 
| 2 2 | 
             
            name: howdy
         | 
| 3 3 | 
             
            version: !ruby/object:Gem::Version 
         | 
| 4 | 
            -
               | 
| 4 | 
            +
              prerelease: false
         | 
| 5 | 
            +
              segments: 
         | 
| 6 | 
            +
              - 0
         | 
| 7 | 
            +
              - 2
         | 
| 8 | 
            +
              - 1
         | 
| 9 | 
            +
              version: 0.2.1
         | 
| 5 10 | 
             
            platform: ruby
         | 
| 6 11 | 
             
            authors: 
         | 
| 7 | 
            -
            -  | 
| 12 | 
            +
            - "Micha\xC5\x82 \xC5\x81omnicki"
         | 
| 8 13 | 
             
            autorequire: 
         | 
| 9 14 | 
             
            bindir: bin
         | 
| 10 15 | 
             
            cert_chain: []
         | 
| 11 16 |  | 
| 12 | 
            -
            date:  | 
| 13 | 
            -
            default_executable:  | 
| 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 | 
            -
               | 
| 18 | 
            -
               | 
| 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 | 
            -
             | 
| 35 | 
            -
             | 
| 36 | 
            -
             | 
| 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 | 
            -
             | 
| 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:  | 
| 67 | 
            +
            homepage: https://github.com/mlomnicki/howdy
         | 
| 70 68 | 
             
            licenses: []
         | 
| 71 69 |  | 
| 72 70 | 
             
            post_install_message: 
         | 
| 73 | 
            -
            rdoc_options: 
         | 
| 74 | 
            -
             | 
| 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. | 
| 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 | 
            -
             | 
| 98 | 
            -
            - spec/spec_helper.rb
         | 
| 96 | 
            +
            test_files: []
         | 
| 97 | 
            +
             | 
    
        data/VERSION
    DELETED
    
    | @@ -1 +0,0 @@ | |
| 1 | 
            -
            0.2.0
         |