geek_typist 0.0.4 → 0.1.0
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/.document +5 -0
- data/Gemfile +12 -3
- data/Gemfile.lock +20 -0
- data/LICENSE.txt +1 -3
- data/README.rdoc +19 -0
- data/Rakefile +53 -1
- data/VERSION +1 -0
- data/bin/geek_typist +1 -2
- data/lib/geek_typist.rb +0 -5
- data/test/helper.rb +18 -0
- data/test/test_geek_typist.rb +7 -0
- metadata +48 -23
- data/.gitignore +0 -17
- data/README.md +0 -29
- data/geek_typist.gemspec +0 -23
- data/lib/geek_typist/version.rb +0 -3
    
        data/.document
    ADDED
    
    
    
        data/Gemfile
    CHANGED
    
    | @@ -1,4 +1,13 @@ | |
| 1 | 
            -
            source  | 
| 1 | 
            +
            source "http://rubygems.org"
         | 
| 2 | 
            +
            # Add dependencies required to use your gem here.
         | 
| 3 | 
            +
            # Example:
         | 
| 4 | 
            +
            #   gem "activesupport", ">= 2.3.5"
         | 
| 2 5 |  | 
| 3 | 
            -
            #  | 
| 4 | 
            -
             | 
| 6 | 
            +
            # Add dependencies to develop your gem here.
         | 
| 7 | 
            +
            # Include everything needed to run rake, tests, features, etc.
         | 
| 8 | 
            +
            group :development do
         | 
| 9 | 
            +
              gem "shoulda", ">= 0"
         | 
| 10 | 
            +
              gem "bundler", "~> 1.0.0"
         | 
| 11 | 
            +
              gem "jeweler", "~> 1.5.2"
         | 
| 12 | 
            +
              gem "rcov", ">= 0"
         | 
| 13 | 
            +
            end
         | 
    
        data/Gemfile.lock
    ADDED
    
    | @@ -0,0 +1,20 @@ | |
| 1 | 
            +
            GEM
         | 
| 2 | 
            +
              remote: http://rubygems.org/
         | 
| 3 | 
            +
              specs:
         | 
| 4 | 
            +
                git (1.2.5)
         | 
| 5 | 
            +
                jeweler (1.5.2)
         | 
| 6 | 
            +
                  bundler (~> 1.0.0)
         | 
| 7 | 
            +
                  git (>= 1.2.5)
         | 
| 8 | 
            +
                  rake
         | 
| 9 | 
            +
                rake (0.9.2)
         | 
| 10 | 
            +
                rcov (0.9.9)
         | 
| 11 | 
            +
                shoulda (2.11.3)
         | 
| 12 | 
            +
             | 
| 13 | 
            +
            PLATFORMS
         | 
| 14 | 
            +
              ruby
         | 
| 15 | 
            +
             | 
| 16 | 
            +
            DEPENDENCIES
         | 
| 17 | 
            +
              bundler (~> 1.0.0)
         | 
| 18 | 
            +
              jeweler (~> 1.5.2)
         | 
| 19 | 
            +
              rcov
         | 
| 20 | 
            +
              shoulda
         | 
    
        data/LICENSE.txt
    CHANGED
    
    
    
        data/README.rdoc
    ADDED
    
    | @@ -0,0 +1,19 @@ | |
| 1 | 
            +
            = geek_typist
         | 
| 2 | 
            +
             | 
| 3 | 
            +
            Description goes here.
         | 
| 4 | 
            +
             | 
| 5 | 
            +
            == Contributing to geek_typist
         | 
| 6 | 
            +
             
         | 
| 7 | 
            +
            * Check out the latest master to make sure the feature hasn't been implemented or the bug hasn't been fixed yet
         | 
| 8 | 
            +
            * Check out the issue tracker to make sure someone already hasn't requested it and/or contributed it
         | 
| 9 | 
            +
            * Fork the project
         | 
| 10 | 
            +
            * Start a feature/bugfix branch
         | 
| 11 | 
            +
            * Commit and push until you are happy with your contribution
         | 
| 12 | 
            +
            * Make sure to add tests for it. This is important so I don't break it in a future version unintentionally.
         | 
| 13 | 
            +
            * Please try not to mess with the Rakefile, version, or history. If you want to have your own version, or is otherwise necessary, that is fine, but please isolate to its own commit so I can cherry-pick around it.
         | 
| 14 | 
            +
             | 
| 15 | 
            +
            == Copyright
         | 
| 16 | 
            +
             | 
| 17 | 
            +
            Copyright (c) 2011 Caccinolo Benoit. See LICENSE.txt for
         | 
| 18 | 
            +
            further details.
         | 
| 19 | 
            +
             | 
    
        data/Rakefile
    CHANGED
    
    | @@ -1 +1,53 @@ | |
| 1 | 
            -
            require  | 
| 1 | 
            +
            require 'rubygems'
         | 
| 2 | 
            +
            require 'bundler'
         | 
| 3 | 
            +
            begin
         | 
| 4 | 
            +
              Bundler.setup(:default, :development)
         | 
| 5 | 
            +
            rescue Bundler::BundlerError => e
         | 
| 6 | 
            +
              $stderr.puts e.message
         | 
| 7 | 
            +
              $stderr.puts "Run `bundle install` to install missing gems"
         | 
| 8 | 
            +
              exit e.status_code
         | 
| 9 | 
            +
            end
         | 
| 10 | 
            +
            require 'rake'
         | 
| 11 | 
            +
             | 
| 12 | 
            +
            require 'jeweler'
         | 
| 13 | 
            +
            Jeweler::Tasks.new do |gem|
         | 
| 14 | 
            +
              # gem is a Gem::Specification... see http://docs.rubygems.org/read/chapter/20 for more options
         | 
| 15 | 
            +
              gem.name = "geek_typist"
         | 
| 16 | 
            +
              gem.homepage = "http://github.com/bcaccinolo/geek_typist"
         | 
| 17 | 
            +
              gem.license = "MIT"
         | 
| 18 | 
            +
              gem.summary = "a typist tool for geeks"
         | 
| 19 | 
            +
              gem.description = "a typist tool for geeks in the console"
         | 
| 20 | 
            +
              gem.email = "benoit.caccinolo@gmail.com"
         | 
| 21 | 
            +
              gem.authors = ["Caccinolo Benoit"]
         | 
| 22 | 
            +
              # Include your dependencies below. Runtime dependencies are required when using your gem,
         | 
| 23 | 
            +
              # and development dependencies are only needed for development (ie running rake tasks, tests, etc)
         | 
| 24 | 
            +
              gem.add_runtime_dependency 'highline'
         | 
| 25 | 
            +
              #  gem.add_development_dependency 'rspec', '> 1.2.3'
         | 
| 26 | 
            +
            end
         | 
| 27 | 
            +
            Jeweler::RubygemsDotOrgTasks.new
         | 
| 28 | 
            +
             | 
| 29 | 
            +
            require 'rake/testtask'
         | 
| 30 | 
            +
            Rake::TestTask.new(:test) do |test|
         | 
| 31 | 
            +
              test.libs << 'lib' << 'test'
         | 
| 32 | 
            +
              test.pattern = 'test/**/test_*.rb'
         | 
| 33 | 
            +
              test.verbose = true
         | 
| 34 | 
            +
            end
         | 
| 35 | 
            +
             | 
| 36 | 
            +
            require 'rcov/rcovtask'
         | 
| 37 | 
            +
            Rcov::RcovTask.new do |test|
         | 
| 38 | 
            +
              test.libs << 'test'
         | 
| 39 | 
            +
              test.pattern = 'test/**/test_*.rb'
         | 
| 40 | 
            +
              test.verbose = true
         | 
| 41 | 
            +
            end
         | 
| 42 | 
            +
             | 
| 43 | 
            +
            task :default => :test
         | 
| 44 | 
            +
             | 
| 45 | 
            +
            require 'rake/rdoctask'
         | 
| 46 | 
            +
            Rake::RDocTask.new do |rdoc|
         | 
| 47 | 
            +
              version = File.exist?('VERSION') ? File.read('VERSION') : ""
         | 
| 48 | 
            +
             | 
| 49 | 
            +
              rdoc.rdoc_dir = 'rdoc'
         | 
| 50 | 
            +
              rdoc.title = "geek_typist #{version}"
         | 
| 51 | 
            +
              rdoc.rdoc_files.include('README*')
         | 
| 52 | 
            +
              rdoc.rdoc_files.include('lib/**/*.rb')
         | 
| 53 | 
            +
            end
         | 
    
        data/VERSION
    ADDED
    
    | @@ -0,0 +1 @@ | |
| 1 | 
            +
            0.1.0
         | 
    
        data/bin/geek_typist
    CHANGED
    
    | @@ -2,7 +2,6 @@ require "rubygems" | |
| 2 2 | 
             
            require 'optparse'
         | 
| 3 3 | 
             
            require "highline/system_extensions"
         | 
| 4 4 | 
             
            include HighLine::SystemExtensions
         | 
| 5 | 
            -
            require 'io/console'
         | 
| 6 5 |  | 
| 7 6 | 
             
            options = {}
         | 
| 8 7 | 
             
            OptionParser.new do |opts|
         | 
| @@ -59,7 +58,7 @@ chain.each do |s| | |
| 59 58 | 
             
              c = 0
         | 
| 60 59 | 
             
              while (compare_char(c,s[0])) do 
         | 
| 61 60 | 
             
                puts s 
         | 
| 62 | 
            -
                c =  | 
| 61 | 
            +
                c = get_character 
         | 
| 63 62 | 
             
                puts c.chr
         | 
| 64 63 | 
             
                if (compare_char(c,s[0])) 
         | 
| 65 64 | 
             
                puts "not good yet" 
         | 
    
        data/lib/geek_typist.rb
    CHANGED
    
    
    
        data/test/helper.rb
    ADDED
    
    | @@ -0,0 +1,18 @@ | |
| 1 | 
            +
            require 'rubygems'
         | 
| 2 | 
            +
            require 'bundler'
         | 
| 3 | 
            +
            begin
         | 
| 4 | 
            +
              Bundler.setup(:default, :development)
         | 
| 5 | 
            +
            rescue Bundler::BundlerError => e
         | 
| 6 | 
            +
              $stderr.puts e.message
         | 
| 7 | 
            +
              $stderr.puts "Run `bundle install` to install missing gems"
         | 
| 8 | 
            +
              exit e.status_code
         | 
| 9 | 
            +
            end
         | 
| 10 | 
            +
            require 'test/unit'
         | 
| 11 | 
            +
            require 'shoulda'
         | 
| 12 | 
            +
             | 
| 13 | 
            +
            $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
         | 
| 14 | 
            +
            $LOAD_PATH.unshift(File.dirname(__FILE__))
         | 
| 15 | 
            +
            require 'geek_typist'
         | 
| 16 | 
            +
             | 
| 17 | 
            +
            class Test::Unit::TestCase
         | 
| 18 | 
            +
            end
         | 
    
        metadata
    CHANGED
    
    | @@ -1,35 +1,52 @@ | |
| 1 1 | 
             
            --- !ruby/object:Gem::Specification
         | 
| 2 2 | 
             
            name: geek_typist
         | 
| 3 3 | 
             
            version: !ruby/object:Gem::Version
         | 
| 4 | 
            -
              version: 0.0 | 
| 4 | 
            +
              version: 0.1.0
         | 
| 5 5 | 
             
              prerelease: 
         | 
| 6 6 | 
             
            platform: ruby
         | 
| 7 7 | 
             
            authors:
         | 
| 8 | 
            -
            -  | 
| 8 | 
            +
            - Caccinolo Benoit
         | 
| 9 9 | 
             
            autorequire: 
         | 
| 10 10 | 
             
            bindir: bin
         | 
| 11 11 | 
             
            cert_chain: []
         | 
| 12 | 
            -
            date:  | 
| 12 | 
            +
            date: 2011-09-16 00:00:00.000000000Z
         | 
| 13 13 | 
             
            dependencies:
         | 
| 14 | 
            +
            - !ruby/object:Gem::Dependency
         | 
| 15 | 
            +
              name: shoulda
         | 
| 16 | 
            +
              requirement: &2153093440 !ruby/object:Gem::Requirement
         | 
| 17 | 
            +
                none: false
         | 
| 18 | 
            +
                requirements:
         | 
| 19 | 
            +
                - - ! '>='
         | 
| 20 | 
            +
                  - !ruby/object:Gem::Version
         | 
| 21 | 
            +
                    version: '0'
         | 
| 22 | 
            +
              type: :development
         | 
| 23 | 
            +
              prerelease: false
         | 
| 24 | 
            +
              version_requirements: *2153093440
         | 
| 14 25 | 
             
            - !ruby/object:Gem::Dependency
         | 
| 15 26 | 
             
              name: bundler
         | 
| 16 | 
            -
              requirement: !ruby/object:Gem::Requirement
         | 
| 27 | 
            +
              requirement: &2153092220 !ruby/object:Gem::Requirement
         | 
| 17 28 | 
             
                none: false
         | 
| 18 29 | 
             
                requirements:
         | 
| 19 30 | 
             
                - - ~>
         | 
| 20 31 | 
             
                  - !ruby/object:Gem::Version
         | 
| 21 | 
            -
                    version:  | 
| 32 | 
            +
                    version: 1.0.0
         | 
| 22 33 | 
             
              type: :development
         | 
| 23 34 | 
             
              prerelease: false
         | 
| 24 | 
            -
              version_requirements:  | 
| 35 | 
            +
              version_requirements: *2153092220
         | 
| 36 | 
            +
            - !ruby/object:Gem::Dependency
         | 
| 37 | 
            +
              name: jeweler
         | 
| 38 | 
            +
              requirement: &2153091160 !ruby/object:Gem::Requirement
         | 
| 25 39 | 
             
                none: false
         | 
| 26 40 | 
             
                requirements:
         | 
| 27 41 | 
             
                - - ~>
         | 
| 28 42 | 
             
                  - !ruby/object:Gem::Version
         | 
| 29 | 
            -
                    version:  | 
| 43 | 
            +
                    version: 1.5.2
         | 
| 44 | 
            +
              type: :development
         | 
| 45 | 
            +
              prerelease: false
         | 
| 46 | 
            +
              version_requirements: *2153091160
         | 
| 30 47 | 
             
            - !ruby/object:Gem::Dependency
         | 
| 31 | 
            -
              name:  | 
| 32 | 
            -
              requirement: !ruby/object:Gem::Requirement
         | 
| 48 | 
            +
              name: rcov
         | 
| 49 | 
            +
              requirement: &2153090060 !ruby/object:Gem::Requirement
         | 
| 33 50 | 
             
                none: false
         | 
| 34 51 | 
             
                requirements:
         | 
| 35 52 | 
             
                - - ! '>='
         | 
| @@ -37,29 +54,38 @@ dependencies: | |
| 37 54 | 
             
                    version: '0'
         | 
| 38 55 | 
             
              type: :development
         | 
| 39 56 | 
             
              prerelease: false
         | 
| 40 | 
            -
              version_requirements:  | 
| 57 | 
            +
              version_requirements: *2153090060
         | 
| 58 | 
            +
            - !ruby/object:Gem::Dependency
         | 
| 59 | 
            +
              name: highline
         | 
| 60 | 
            +
              requirement: &2153089260 !ruby/object:Gem::Requirement
         | 
| 41 61 | 
             
                none: false
         | 
| 42 62 | 
             
                requirements:
         | 
| 43 63 | 
             
                - - ! '>='
         | 
| 44 64 | 
             
                  - !ruby/object:Gem::Version
         | 
| 45 65 | 
             
                    version: '0'
         | 
| 66 | 
            +
              type: :runtime
         | 
| 67 | 
            +
              prerelease: false
         | 
| 68 | 
            +
              version_requirements: *2153089260
         | 
| 46 69 | 
             
            description: a typist tool for geeks in the console
         | 
| 47 | 
            -
            email:
         | 
| 48 | 
            -
            - benoit.caccinolo@gmail.com
         | 
| 70 | 
            +
            email: benoit.caccinolo@gmail.com
         | 
| 49 71 | 
             
            executables:
         | 
| 50 72 | 
             
            - geek_typist
         | 
| 51 73 | 
             
            extensions: []
         | 
| 52 | 
            -
            extra_rdoc_files: | 
| 74 | 
            +
            extra_rdoc_files:
         | 
| 75 | 
            +
            - LICENSE.txt
         | 
| 76 | 
            +
            - README.rdoc
         | 
| 53 77 | 
             
            files:
         | 
| 54 | 
            -
            - . | 
| 78 | 
            +
            - .document
         | 
| 55 79 | 
             
            - Gemfile
         | 
| 80 | 
            +
            - Gemfile.lock
         | 
| 56 81 | 
             
            - LICENSE.txt
         | 
| 57 | 
            -
            - README. | 
| 82 | 
            +
            - README.rdoc
         | 
| 58 83 | 
             
            - Rakefile
         | 
| 84 | 
            +
            - VERSION
         | 
| 59 85 | 
             
            - bin/geek_typist
         | 
| 60 | 
            -
            - geek_typist.gemspec
         | 
| 61 86 | 
             
            - lib/geek_typist.rb
         | 
| 62 | 
            -
            -  | 
| 87 | 
            +
            - test/helper.rb
         | 
| 88 | 
            +
            - test/test_geek_typist.rb
         | 
| 63 89 | 
             
            homepage: http://github.com/bcaccinolo/geek_typist
         | 
| 64 90 | 
             
            licenses:
         | 
| 65 91 | 
             
            - MIT
         | 
| @@ -75,20 +101,19 @@ required_ruby_version: !ruby/object:Gem::Requirement | |
| 75 101 | 
             
                  version: '0'
         | 
| 76 102 | 
             
                  segments:
         | 
| 77 103 | 
             
                  - 0
         | 
| 78 | 
            -
                  hash: - | 
| 104 | 
            +
                  hash: -2715947214923582534
         | 
| 79 105 | 
             
            required_rubygems_version: !ruby/object:Gem::Requirement
         | 
| 80 106 | 
             
              none: false
         | 
| 81 107 | 
             
              requirements:
         | 
| 82 108 | 
             
              - - ! '>='
         | 
| 83 109 | 
             
                - !ruby/object:Gem::Version
         | 
| 84 110 | 
             
                  version: '0'
         | 
| 85 | 
            -
                  segments:
         | 
| 86 | 
            -
                  - 0
         | 
| 87 | 
            -
                  hash: -2702168070183212303
         | 
| 88 111 | 
             
            requirements: []
         | 
| 89 112 | 
             
            rubyforge_project: 
         | 
| 90 | 
            -
            rubygems_version: 1.8. | 
| 113 | 
            +
            rubygems_version: 1.8.10
         | 
| 91 114 | 
             
            signing_key: 
         | 
| 92 115 | 
             
            specification_version: 3
         | 
| 93 116 | 
             
            summary: a typist tool for geeks
         | 
| 94 | 
            -
            test_files: | 
| 117 | 
            +
            test_files:
         | 
| 118 | 
            +
            - test/helper.rb
         | 
| 119 | 
            +
            - test/test_geek_typist.rb
         | 
    
        data/.gitignore
    DELETED
    
    
    
        data/README.md
    DELETED
    
    | @@ -1,29 +0,0 @@ | |
| 1 | 
            -
            # GeekTypist
         | 
| 2 | 
            -
             | 
| 3 | 
            -
            TODO: Write a gem description
         | 
| 4 | 
            -
             | 
| 5 | 
            -
            ## Installation
         | 
| 6 | 
            -
             | 
| 7 | 
            -
            Add this line to your application's Gemfile:
         | 
| 8 | 
            -
             | 
| 9 | 
            -
                gem 'geek_typist'
         | 
| 10 | 
            -
             | 
| 11 | 
            -
            And then execute:
         | 
| 12 | 
            -
             | 
| 13 | 
            -
                $ bundle
         | 
| 14 | 
            -
             | 
| 15 | 
            -
            Or install it yourself as:
         | 
| 16 | 
            -
             | 
| 17 | 
            -
                $ gem install geek_typist
         | 
| 18 | 
            -
             | 
| 19 | 
            -
            ## Usage
         | 
| 20 | 
            -
             | 
| 21 | 
            -
            TODO: Write usage instructions here
         | 
| 22 | 
            -
             | 
| 23 | 
            -
            ## Contributing
         | 
| 24 | 
            -
             | 
| 25 | 
            -
            1. Fork it
         | 
| 26 | 
            -
            2. Create your feature branch (`git checkout -b my-new-feature`)
         | 
| 27 | 
            -
            3. Commit your changes (`git commit -am 'Add some feature'`)
         | 
| 28 | 
            -
            4. Push to the branch (`git push origin my-new-feature`)
         | 
| 29 | 
            -
            5. Create new Pull Request
         | 
    
        data/geek_typist.gemspec
    DELETED
    
    | @@ -1,23 +0,0 @@ | |
| 1 | 
            -
            # coding: utf-8
         | 
| 2 | 
            -
            lib = File.expand_path('../lib', __FILE__)
         | 
| 3 | 
            -
            $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
         | 
| 4 | 
            -
            require 'geek_typist/version'
         | 
| 5 | 
            -
             | 
| 6 | 
            -
            Gem::Specification.new do |spec|
         | 
| 7 | 
            -
              spec.name          = "geek_typist"
         | 
| 8 | 
            -
              spec.version       = GeekTypist::VERSION
         | 
| 9 | 
            -
              spec.authors       = ["bcaccinolo"]
         | 
| 10 | 
            -
              spec.email         = ["benoit.caccinolo@gmail.com"]
         | 
| 11 | 
            -
              spec.summary       = "a typist tool for geeks"
         | 
| 12 | 
            -
              spec.description   = "a typist tool for geeks in the console"
         | 
| 13 | 
            -
              spec.homepage      = "http://github.com/bcaccinolo/geek_typist"
         | 
| 14 | 
            -
              spec.license       = "MIT"
         | 
| 15 | 
            -
             | 
| 16 | 
            -
              spec.files         = `git ls-files`.split($/)
         | 
| 17 | 
            -
              spec.executables   = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
         | 
| 18 | 
            -
              spec.test_files    = spec.files.grep(%r{^(test|spec|features)/})
         | 
| 19 | 
            -
              spec.require_paths = ["lib"]
         | 
| 20 | 
            -
             | 
| 21 | 
            -
              spec.add_development_dependency "bundler", "~> 1.3"
         | 
| 22 | 
            -
              spec.add_development_dependency "rake"
         | 
| 23 | 
            -
            end
         | 
    
        data/lib/geek_typist/version.rb
    DELETED