radix62 0.1.0 → 1.0.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/.gitignore +2 -0
- data/.travis.yml +8 -0
- data/Gemfile +1 -1
- data/README.md +5 -1
- data/Rakefile +14 -1
- data/lib/radix62/version.rb +1 -1
- data/radix62.gemspec +3 -2
- data/spec/radix62_spec.rb +1 -0
- data/spec/spec_helper.rb +15 -5
- data/spec/support/known_good.rb +8 -2
- metadata +65 -64
- data/Gemfile.lock +0 -25
    
        data/.gitignore
    CHANGED
    
    
    
        data/.travis.yml
    ADDED
    
    
    
        data/Gemfile
    CHANGED
    
    
    
        data/README.md
    CHANGED
    
    | @@ -28,8 +28,12 @@ Radix62 also adds the `decode62` and `encode62` convenience methods to the Strin | |
| 28 28 | 
             
                1000.encode62                                   #=> "g8"
         | 
| 29 29 | 
             
                "Abc123".decode62                               #=> "33146185555"
         | 
| 30 30 |  | 
| 31 | 
            +
            ## Tests and compatibility
         | 
| 32 | 
            +
             | 
| 33 | 
            +
            The tests pass on 1.8.7, 1.9.2, Rubinius 1.0.1, and JRuby 1.5.2/1.6.0.
         | 
| 34 | 
            +
             | 
| 31 35 | 
             
            ## License and copyright
         | 
| 32 36 |  | 
| 33 | 
            -
            Copyright  | 
| 37 | 
            +
            Copyright © 2010-2012 Matias Korhonen
         | 
| 34 38 |  | 
| 35 39 | 
             
            Licensed under the MIT license, see the LICENSE file for details.
         | 
    
        data/Rakefile
    CHANGED
    
    | @@ -1,2 +1,15 @@ | |
| 1 | 
            -
            require  | 
| 1 | 
            +
            require "bundler"
         | 
| 2 2 | 
             
            Bundler::GemHelper.install_tasks
         | 
| 3 | 
            +
             | 
| 4 | 
            +
            require 'rspec/core/rake_task'
         | 
| 5 | 
            +
            RSpec::Core::RakeTask.new(:spec)
         | 
| 6 | 
            +
            task :default => :spec
         | 
| 7 | 
            +
             | 
| 8 | 
            +
            gemspec = eval(File.read("radix62.gemspec"))
         | 
| 9 | 
            +
             | 
| 10 | 
            +
            task :build => "#{gemspec.full_name}.gem"
         | 
| 11 | 
            +
             | 
| 12 | 
            +
            file "#{gemspec.full_name}.gem" => gemspec.files + ["radix62.gemspec"] do
         | 
| 13 | 
            +
              system "gem build radix62.gemspec"
         | 
| 14 | 
            +
              system "gem install radix62-#{Monit::VERSION}.gem"
         | 
| 15 | 
            +
            end
         | 
    
        data/lib/radix62/version.rb
    CHANGED
    
    
    
        data/radix62.gemspec
    CHANGED
    
    | @@ -14,8 +14,9 @@ Gem::Specification.new do |s| | |
| 14 14 | 
             
              s.required_rubygems_version = ">= 1.3.6"
         | 
| 15 15 | 
             
              s.rubyforge_project         = "radix62"
         | 
| 16 16 |  | 
| 17 | 
            -
              s.add_development_dependency "bundler" | 
| 18 | 
            -
              s.add_development_dependency " | 
| 17 | 
            +
              s.add_development_dependency "bundler"
         | 
| 18 | 
            +
              s.add_development_dependency "rake"
         | 
| 19 | 
            +
              s.add_development_dependency "rspec", "~> 2.12"
         | 
| 19 20 |  | 
| 20 21 | 
             
              s.files        = `git ls-files`.split("\n")
         | 
| 21 22 | 
             
              s.executables  = `git ls-files`.split("\n").map{|f| f =~ /^bin\/(.*)/ ? $1 : nil}.compact
         | 
    
        data/spec/radix62_spec.rb
    CHANGED
    
    
    
        data/spec/spec_helper.rb
    CHANGED
    
    | @@ -1,10 +1,20 @@ | |
| 1 | 
            -
            #  | 
| 2 | 
            -
             | 
| 3 | 
            -
             | 
| 1 | 
            +
            # This file was generated by the `rspec --init` command. Conventionally, all
         | 
| 2 | 
            +
            # specs live under a `spec` directory, which RSpec adds to the `$LOAD_PATH`.
         | 
| 3 | 
            +
            # Require this file using `require "spec_helper"` to ensure that it is only
         | 
| 4 | 
            +
            # loaded once.
         | 
| 5 | 
            +
            #
         | 
| 6 | 
            +
            # See http://rubydoc.info/gems/rspec-core/RSpec/Core/Configuration
         | 
| 4 7 |  | 
| 5 | 
            -
            require "rspec"
         | 
| 6 | 
            -
            require "support/known_good"
         | 
| 7 8 | 
             
            require "radix62"
         | 
| 8 9 |  | 
| 9 10 | 
             
            RSpec.configure do |config|
         | 
| 11 | 
            +
              config.treat_symbols_as_metadata_keys_with_true_values = true
         | 
| 12 | 
            +
              config.run_all_when_everything_filtered = true
         | 
| 13 | 
            +
              config.filter_run :focus
         | 
| 14 | 
            +
             | 
| 15 | 
            +
              # Run specs in random order to surface order dependencies. If you find an
         | 
| 16 | 
            +
              # order dependency and want to debug it, you can fix the order by providing
         | 
| 17 | 
            +
              # the seed, which is printed after each run.
         | 
| 18 | 
            +
              #     --seed 1234
         | 
| 19 | 
            +
              config.order = 'random'
         | 
| 10 20 | 
             
            end
         | 
    
        data/spec/support/known_good.rb
    CHANGED
    
    | @@ -1,5 +1,11 @@ | |
| 1 1 | 
             
            # -*- encoding: utf-8 -*-
         | 
| 2 2 | 
             
            module KnownGood
         | 
| 3 | 
            -
             | 
| 4 | 
            -
               | 
| 3 | 
            +
               # Workaround for JRuby bug JRUBY-5064 (http://jira.codehaus.org/browse/JRUBY-5064)
         | 
| 4 | 
            +
              if defined?(JRUBY_VERSION)
         | 
| 5 | 
            +
                ENCODE62 = Marshal.load(File.read("./spec/support/encode62_examples"))
         | 
| 6 | 
            +
                DECODE62 = Marshal.load(File.read("./spec/support/decode62_examples"))
         | 
| 7 | 
            +
              else
         | 
| 8 | 
            +
                ENCODE62 = Marshal.load(File.open("./spec/support/encode62_examples", "r"))
         | 
| 9 | 
            +
                DECODE62 = Marshal.load(File.open("./spec/support/decode62_examples", "r"))
         | 
| 10 | 
            +
              end
         | 
| 5 11 | 
             
            end
         | 
    
        metadata
    CHANGED
    
    | @@ -1,66 +1,75 @@ | |
| 1 | 
            -
            --- !ruby/object:Gem::Specification | 
| 1 | 
            +
            --- !ruby/object:Gem::Specification
         | 
| 2 2 | 
             
            name: radix62
         | 
| 3 | 
            -
            version: !ruby/object:Gem::Version | 
| 4 | 
            -
               | 
| 5 | 
            -
               | 
| 6 | 
            -
              - 0
         | 
| 7 | 
            -
              - 1
         | 
| 8 | 
            -
              - 0
         | 
| 9 | 
            -
              version: 0.1.0
         | 
| 3 | 
            +
            version: !ruby/object:Gem::Version
         | 
| 4 | 
            +
              version: 1.0.0
         | 
| 5 | 
            +
              prerelease: 
         | 
| 10 6 | 
             
            platform: ruby
         | 
| 11 | 
            -
            authors: | 
| 7 | 
            +
            authors:
         | 
| 12 8 | 
             
            - Matias Korhonen
         | 
| 13 9 | 
             
            autorequire: 
         | 
| 14 10 | 
             
            bindir: bin
         | 
| 15 11 | 
             
            cert_chain: []
         | 
| 16 | 
            -
             | 
| 17 | 
            -
             | 
| 18 | 
            -
             | 
| 19 | 
            -
            dependencies: 
         | 
| 20 | 
            -
            - !ruby/object:Gem::Dependency 
         | 
| 12 | 
            +
            date: 2013-02-09 00:00:00.000000000 Z
         | 
| 13 | 
            +
            dependencies:
         | 
| 14 | 
            +
            - !ruby/object:Gem::Dependency
         | 
| 21 15 | 
             
              name: bundler
         | 
| 16 | 
            +
              requirement: !ruby/object:Gem::Requirement
         | 
| 17 | 
            +
                none: false
         | 
| 18 | 
            +
                requirements:
         | 
| 19 | 
            +
                - - '>='
         | 
| 20 | 
            +
                  - !ruby/object:Gem::Version
         | 
| 21 | 
            +
                    version: '0'
         | 
| 22 | 
            +
              type: :development
         | 
| 22 23 | 
             
              prerelease: false
         | 
| 23 | 
            -
               | 
| 24 | 
            +
              version_requirements: !ruby/object:Gem::Requirement
         | 
| 24 25 | 
             
                none: false
         | 
| 25 | 
            -
                requirements: | 
| 26 | 
            -
                - -  | 
| 27 | 
            -
                  - !ruby/object:Gem::Version | 
| 28 | 
            -
                     | 
| 29 | 
            -
             | 
| 30 | 
            -
             | 
| 31 | 
            -
             | 
| 32 | 
            -
             | 
| 26 | 
            +
                requirements:
         | 
| 27 | 
            +
                - - '>='
         | 
| 28 | 
            +
                  - !ruby/object:Gem::Version
         | 
| 29 | 
            +
                    version: '0'
         | 
| 30 | 
            +
            - !ruby/object:Gem::Dependency
         | 
| 31 | 
            +
              name: rake
         | 
| 32 | 
            +
              requirement: !ruby/object:Gem::Requirement
         | 
| 33 | 
            +
                none: false
         | 
| 34 | 
            +
                requirements:
         | 
| 35 | 
            +
                - - '>='
         | 
| 36 | 
            +
                  - !ruby/object:Gem::Version
         | 
| 37 | 
            +
                    version: '0'
         | 
| 33 38 | 
             
              type: :development
         | 
| 34 | 
            -
              version_requirements: *id001
         | 
| 35 | 
            -
            - !ruby/object:Gem::Dependency 
         | 
| 36 | 
            -
              name: rspec
         | 
| 37 39 | 
             
              prerelease: false
         | 
| 38 | 
            -
               | 
| 40 | 
            +
              version_requirements: !ruby/object:Gem::Requirement
         | 
| 39 41 | 
             
                none: false
         | 
| 40 | 
            -
                requirements: | 
| 42 | 
            +
                requirements:
         | 
| 43 | 
            +
                - - '>='
         | 
| 44 | 
            +
                  - !ruby/object:Gem::Version
         | 
| 45 | 
            +
                    version: '0'
         | 
| 46 | 
            +
            - !ruby/object:Gem::Dependency
         | 
| 47 | 
            +
              name: rspec
         | 
| 48 | 
            +
              requirement: !ruby/object:Gem::Requirement
         | 
| 49 | 
            +
                none: false
         | 
| 50 | 
            +
                requirements:
         | 
| 41 51 | 
             
                - - ~>
         | 
| 42 | 
            -
                  - !ruby/object:Gem::Version | 
| 43 | 
            -
                     | 
| 44 | 
            -
                    - 2
         | 
| 45 | 
            -
                    - 0
         | 
| 46 | 
            -
                    - 0
         | 
| 47 | 
            -
                    - beta20
         | 
| 48 | 
            -
                    version: 2.0.0.beta20
         | 
| 52 | 
            +
                  - !ruby/object:Gem::Version
         | 
| 53 | 
            +
                    version: '2.12'
         | 
| 49 54 | 
             
              type: :development
         | 
| 50 | 
            -
               | 
| 51 | 
            -
             | 
| 52 | 
            -
             | 
| 55 | 
            +
              prerelease: false
         | 
| 56 | 
            +
              version_requirements: !ruby/object:Gem::Requirement
         | 
| 57 | 
            +
                none: false
         | 
| 58 | 
            +
                requirements:
         | 
| 59 | 
            +
                - - ~>
         | 
| 60 | 
            +
                  - !ruby/object:Gem::Version
         | 
| 61 | 
            +
                    version: '2.12'
         | 
| 62 | 
            +
            description: Convert base 10 integers to base 62 strings (or base 62 strings to base
         | 
| 63 | 
            +
              10 integers).
         | 
| 64 | 
            +
            email:
         | 
| 53 65 | 
             
            - matias@kiskolabs.com
         | 
| 54 66 | 
             
            executables: []
         | 
| 55 | 
            -
             | 
| 56 67 | 
             
            extensions: []
         | 
| 57 | 
            -
             | 
| 58 68 | 
             
            extra_rdoc_files: []
         | 
| 59 | 
            -
             | 
| 60 | 
            -
            files: 
         | 
| 69 | 
            +
            files:
         | 
| 61 70 | 
             
            - .gitignore
         | 
| 71 | 
            +
            - .travis.yml
         | 
| 62 72 | 
             
            - Gemfile
         | 
| 63 | 
            -
            - Gemfile.lock
         | 
| 64 73 | 
             
            - LICENSE
         | 
| 65 74 | 
             
            - README.md
         | 
| 66 75 | 
             
            - Rakefile
         | 
| @@ -74,39 +83,31 @@ files: | |
| 74 83 | 
             
            - spec/support/decode62_examples
         | 
| 75 84 | 
             
            - spec/support/encode62_examples
         | 
| 76 85 | 
             
            - spec/support/known_good.rb
         | 
| 77 | 
            -
            has_rdoc: true
         | 
| 78 86 | 
             
            homepage: http://github.com/k33l0r/radix62
         | 
| 79 87 | 
             
            licenses: []
         | 
| 80 | 
            -
             | 
| 81 88 | 
             
            post_install_message: 
         | 
| 82 89 | 
             
            rdoc_options: []
         | 
| 83 | 
            -
             | 
| 84 | 
            -
            require_paths: 
         | 
| 90 | 
            +
            require_paths:
         | 
| 85 91 | 
             
            - lib
         | 
| 86 | 
            -
            required_ruby_version: !ruby/object:Gem::Requirement | 
| 92 | 
            +
            required_ruby_version: !ruby/object:Gem::Requirement
         | 
| 87 93 | 
             
              none: false
         | 
| 88 | 
            -
              requirements: | 
| 89 | 
            -
              - -  | 
| 90 | 
            -
                - !ruby/object:Gem::Version | 
| 91 | 
            -
                   | 
| 94 | 
            +
              requirements:
         | 
| 95 | 
            +
              - - '>='
         | 
| 96 | 
            +
                - !ruby/object:Gem::Version
         | 
| 97 | 
            +
                  version: '0'
         | 
| 98 | 
            +
                  segments:
         | 
| 92 99 | 
             
                  - 0
         | 
| 93 | 
            -
                   | 
| 94 | 
            -
            required_rubygems_version: !ruby/object:Gem::Requirement | 
| 100 | 
            +
                  hash: -3220946439689542333
         | 
| 101 | 
            +
            required_rubygems_version: !ruby/object:Gem::Requirement
         | 
| 95 102 | 
             
              none: false
         | 
| 96 | 
            -
              requirements: | 
| 97 | 
            -
              - -  | 
| 98 | 
            -
                - !ruby/object:Gem::Version | 
| 99 | 
            -
                  segments: 
         | 
| 100 | 
            -
                  - 1
         | 
| 101 | 
            -
                  - 3
         | 
| 102 | 
            -
                  - 6
         | 
| 103 | 
            +
              requirements:
         | 
| 104 | 
            +
              - - '>='
         | 
| 105 | 
            +
                - !ruby/object:Gem::Version
         | 
| 103 106 | 
             
                  version: 1.3.6
         | 
| 104 107 | 
             
            requirements: []
         | 
| 105 | 
            -
             | 
| 106 108 | 
             
            rubyforge_project: radix62
         | 
| 107 | 
            -
            rubygems_version: 1. | 
| 109 | 
            +
            rubygems_version: 1.8.25
         | 
| 108 110 | 
             
            signing_key: 
         | 
| 109 111 | 
             
            specification_version: 3
         | 
| 110 112 | 
             
            summary: Convert integers to base 62 strings and back.
         | 
| 111 113 | 
             
            test_files: []
         | 
| 112 | 
            -
             | 
    
        data/Gemfile.lock
    DELETED
    
    | @@ -1,25 +0,0 @@ | |
| 1 | 
            -
            PATH
         | 
| 2 | 
            -
              remote: .
         | 
| 3 | 
            -
              specs:
         | 
| 4 | 
            -
                radix62 (0.1.0)
         | 
| 5 | 
            -
             | 
| 6 | 
            -
            GEM
         | 
| 7 | 
            -
              remote: http://rubygems.org/
         | 
| 8 | 
            -
              specs:
         | 
| 9 | 
            -
                diff-lcs (1.1.2)
         | 
| 10 | 
            -
                rspec (2.0.0.beta.20)
         | 
| 11 | 
            -
                  rspec-core (= 2.0.0.beta.20)
         | 
| 12 | 
            -
                  rspec-expectations (= 2.0.0.beta.20)
         | 
| 13 | 
            -
                  rspec-mocks (= 2.0.0.beta.20)
         | 
| 14 | 
            -
                rspec-core (2.0.0.beta.20)
         | 
| 15 | 
            -
                rspec-expectations (2.0.0.beta.20)
         | 
| 16 | 
            -
                  diff-lcs (>= 1.1.2)
         | 
| 17 | 
            -
                rspec-mocks (2.0.0.beta.20)
         | 
| 18 | 
            -
             | 
| 19 | 
            -
            PLATFORMS
         | 
| 20 | 
            -
              ruby
         | 
| 21 | 
            -
             | 
| 22 | 
            -
            DEPENDENCIES
         | 
| 23 | 
            -
              bundler (~> 1.0.0)
         | 
| 24 | 
            -
              radix62!
         | 
| 25 | 
            -
              rspec (~> 2.0.0.beta20)
         |