rash_alt 0.4.4 → 0.4.9
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.
- checksums.yaml +5 -5
- data/.github/workflows/ruby.yml +28 -0
- data/.gitignore +6 -0
- data/README.rdoc +6 -6
- data/lib/hashie/mash/rash.rb +1 -1
- data/lib/rash/version.rb +1 -1
- data/rash.gemspec +4 -4
- data/spec/rash_spec.rb +12 -0
- metadata +13 -16
- data/.travis.yml +0 -4
    
        checksums.yaml
    CHANGED
    
    | @@ -1,7 +1,7 @@ | |
| 1 1 | 
             
            ---
         | 
| 2 | 
            -
             | 
| 3 | 
            -
              metadata.gz:  | 
| 4 | 
            -
              data.tar.gz:  | 
| 2 | 
            +
            SHA256:
         | 
| 3 | 
            +
              metadata.gz: 3920d80eaaf42c233ab230959255e5f46a923ae1396a6a8fdd568b6153a81f1f
         | 
| 4 | 
            +
              data.tar.gz: bda635dd1d4efd1764cb4f5e45d3a3a8d46c66e36a4517cb48ca18570d0aa300
         | 
| 5 5 | 
             
            SHA512:
         | 
| 6 | 
            -
              metadata.gz:  | 
| 7 | 
            -
              data.tar.gz:  | 
| 6 | 
            +
              metadata.gz: 54ff95712ca7bef94d59a8326e99eff8aa7c1c48d6c243c95c56a95daf1e428306d69ec837e8492233dbd998dc29092f698a953e35bcf51ff14e5374eaa64c70
         | 
| 7 | 
            +
              data.tar.gz: 25e256ef5cd5570920de5585d70fa38daaf93f2da7202a4b9449abe47d5797bcce588495f229226e71da4f9bcbac95f6b6ccefe38e20f5f9a90faec50b0d91f9
         | 
| @@ -0,0 +1,28 @@ | |
| 1 | 
            +
            name: ruby
         | 
| 2 | 
            +
            on:
         | 
| 3 | 
            +
              push:
         | 
| 4 | 
            +
                branches:
         | 
| 5 | 
            +
                  - master
         | 
| 6 | 
            +
              pull_request:
         | 
| 7 | 
            +
                branches:
         | 
| 8 | 
            +
                  - "*"
         | 
| 9 | 
            +
            jobs:
         | 
| 10 | 
            +
              rspec:
         | 
| 11 | 
            +
                runs-on: ${{ matrix.os }}
         | 
| 12 | 
            +
                strategy:
         | 
| 13 | 
            +
                  fail-fast: false
         | 
| 14 | 
            +
                  matrix:
         | 
| 15 | 
            +
                    os: [ubuntu-20.04, ubuntu-18.04]
         | 
| 16 | 
            +
                    ruby: [2.5, 2.6, 2.7, 3.0]
         | 
| 17 | 
            +
                steps:
         | 
| 18 | 
            +
                  - uses: actions/checkout@v2
         | 
| 19 | 
            +
                    with:
         | 
| 20 | 
            +
                      fetch-depth: 1
         | 
| 21 | 
            +
                  - uses: ruby/setup-ruby@v1
         | 
| 22 | 
            +
                    with:
         | 
| 23 | 
            +
                      ruby-version: ${{ matrix.ruby }}
         | 
| 24 | 
            +
                      bundler-cache: true
         | 
| 25 | 
            +
                  - name: install dependency
         | 
| 26 | 
            +
                    run: bundle install
         | 
| 27 | 
            +
                  - name: run spec
         | 
| 28 | 
            +
                    run: bundle exec rake spec
         | 
    
        data/.gitignore
    CHANGED
    
    
    
        data/README.rdoc
    CHANGED
    
    | @@ -1,15 +1,15 @@ | |
| 1 1 | 
             
            = rash
         | 
| 2 2 |  | 
| 3 | 
            -
            {<img src="https:// | 
| 4 | 
            -
            {<img src="https:// | 
| 3 | 
            +
            {<img src="https://img.shields.io/gem/v/rash_alt.svg" alt="Gem Version" />}[https://rubygems.org/gems/rash_alt]
         | 
| 4 | 
            +
            {<img src="https://img.shields.io/travis/shishi/rash_alt.svg" alt="Build Status" />}[https://travis-ci.org/shishi/rash_alt]
         | 
| 5 5 |  | 
| 6 | 
            -
            Rash is an extension to Hashie ( http://github.com/ | 
| 6 | 
            +
            Rash is an extension to Hashie ( http://github.com/hashie/hashie ).
         | 
| 7 7 |  | 
| 8 | 
            -
            Rash subclasses Hashie::Mash to convert all keys in the hash to underscore
         | 
| 8 | 
            +
            Rash subclasses Hashie::Mash to convert all keys in the hash to underscore.
         | 
| 9 9 |  | 
| 10 | 
            -
            The purpose of this is when working w/ Java (or any other apis) that return hashes (including nested) that have camelCased keys
         | 
| 10 | 
            +
            The purpose of this is when working w/ Java (or any other apis) that return hashes (including nested) that have camelCased keys.
         | 
| 11 11 |  | 
| 12 | 
            -
            You will now be able to access those keys through underscored key names (camelCase still available)
         | 
| 12 | 
            +
            You will now be able to access those keys through underscored key names (camelCase still available).
         | 
| 13 13 |  | 
| 14 14 | 
             
            == Installation
         | 
| 15 15 |  | 
    
        data/lib/hashie/mash/rash.rb
    CHANGED
    
    
    
        data/lib/rash/version.rb
    CHANGED
    
    
    
        data/rash.gemspec
    CHANGED
    
    | @@ -13,10 +13,10 @@ Gem::Specification.new do |s| | |
| 13 13 |  | 
| 14 14 | 
             
              s.version = Rash::VERSION
         | 
| 15 15 |  | 
| 16 | 
            -
              s.add_dependency 'hashie', '~>  | 
| 17 | 
            -
              s.add_development_dependency 'rake', '~>  | 
| 18 | 
            -
              s.add_development_dependency 'rdoc', '~>  | 
| 19 | 
            -
              s.add_development_dependency 'rspec', '~> 3. | 
| 16 | 
            +
              s.add_dependency 'hashie', '~> 4.1'
         | 
| 17 | 
            +
              s.add_development_dependency 'rake', '~> 13.0'
         | 
| 18 | 
            +
              s.add_development_dependency 'rdoc', '~> 6.3'
         | 
| 19 | 
            +
              s.add_development_dependency 'rspec', '~> 3.10'
         | 
| 20 20 |  | 
| 21 21 | 
             
              s.require_paths = ['lib']
         | 
| 22 22 | 
             
              s.files = `git ls-files`.split("\n")
         | 
    
        data/spec/rash_spec.rb
    CHANGED
    
    | @@ -17,6 +17,10 @@ describe Hashie::Mash::Rash do | |
| 17 17 | 
             
                    "nested_two" => 22,
         | 
| 18 18 | 
             
                    :nestedThree => 23
         | 
| 19 19 | 
             
                  },
         | 
| 20 | 
            +
                  :nestedThree => [
         | 
| 21 | 
            +
                    { :nestedFour => 4 },
         | 
| 22 | 
            +
                    { "nestedFour" => 4 }
         | 
| 23 | 
            +
                  ],
         | 
| 20 24 | 
             
                  "spaced Key" => "When would this happen?",
         | 
| 21 25 | 
             
                  "trailing spaces " => "better safe than sorry",
         | 
| 22 26 | 
             
                  "extra   spaces" => "hopefully this never happens"
         | 
| @@ -107,6 +111,14 @@ describe Hashie::Mash::Rash do | |
| 107 111 | 
             
                subject[:nested3][:helloWorld].should == "hi"
         | 
| 108 112 | 
             
              end
         | 
| 109 113 |  | 
| 114 | 
            +
              it "should convert an array of Hashes" do
         | 
| 115 | 
            +
                subject.nested_three.should be_a(Array)
         | 
| 116 | 
            +
                subject.nested_three[0].should be_a(Hashie::Mash::Rash)
         | 
| 117 | 
            +
                subject.nested_three[0].nested_four.should == 4
         | 
| 118 | 
            +
                subject.nested_three[1].should be_a(Hashie::Mash::Rash)
         | 
| 119 | 
            +
                subject.nested_three[1].nested_four.should == 4
         | 
| 120 | 
            +
              end
         | 
| 121 | 
            +
             | 
| 110 122 | 
             
              it "should allow initializing reader" do
         | 
| 111 123 | 
             
                subject.nested3!.helloWorld = "hi"
         | 
| 112 124 | 
             
                subject.nested3.hello_world.should == "hi"
         | 
    
        metadata
    CHANGED
    
    | @@ -1,7 +1,7 @@ | |
| 1 1 | 
             
            --- !ruby/object:Gem::Specification
         | 
| 2 2 | 
             
            name: rash_alt
         | 
| 3 3 | 
             
            version: !ruby/object:Gem::Version
         | 
| 4 | 
            -
              version: 0.4. | 
| 4 | 
            +
              version: 0.4.9
         | 
| 5 5 | 
             
            platform: ruby
         | 
| 6 6 | 
             
            authors:
         | 
| 7 7 | 
             
            - tcocca
         | 
| @@ -9,7 +9,7 @@ authors: | |
| 9 9 | 
             
            autorequire: 
         | 
| 10 10 | 
             
            bindir: bin
         | 
| 11 11 | 
             
            cert_chain: []
         | 
| 12 | 
            -
            date:  | 
| 12 | 
            +
            date: 2020-12-29 00:00:00.000000000 Z
         | 
| 13 13 | 
             
            dependencies:
         | 
| 14 14 | 
             
            - !ruby/object:Gem::Dependency
         | 
| 15 15 | 
             
              name: hashie
         | 
| @@ -17,56 +17,56 @@ dependencies: | |
| 17 17 | 
             
                requirements:
         | 
| 18 18 | 
             
                - - "~>"
         | 
| 19 19 | 
             
                  - !ruby/object:Gem::Version
         | 
| 20 | 
            -
                    version: ' | 
| 20 | 
            +
                    version: '4.1'
         | 
| 21 21 | 
             
              type: :runtime
         | 
| 22 22 | 
             
              prerelease: false
         | 
| 23 23 | 
             
              version_requirements: !ruby/object:Gem::Requirement
         | 
| 24 24 | 
             
                requirements:
         | 
| 25 25 | 
             
                - - "~>"
         | 
| 26 26 | 
             
                  - !ruby/object:Gem::Version
         | 
| 27 | 
            -
                    version: ' | 
| 27 | 
            +
                    version: '4.1'
         | 
| 28 28 | 
             
            - !ruby/object:Gem::Dependency
         | 
| 29 29 | 
             
              name: rake
         | 
| 30 30 | 
             
              requirement: !ruby/object:Gem::Requirement
         | 
| 31 31 | 
             
                requirements:
         | 
| 32 32 | 
             
                - - "~>"
         | 
| 33 33 | 
             
                  - !ruby/object:Gem::Version
         | 
| 34 | 
            -
                    version: ' | 
| 34 | 
            +
                    version: '13.0'
         | 
| 35 35 | 
             
              type: :development
         | 
| 36 36 | 
             
              prerelease: false
         | 
| 37 37 | 
             
              version_requirements: !ruby/object:Gem::Requirement
         | 
| 38 38 | 
             
                requirements:
         | 
| 39 39 | 
             
                - - "~>"
         | 
| 40 40 | 
             
                  - !ruby/object:Gem::Version
         | 
| 41 | 
            -
                    version: ' | 
| 41 | 
            +
                    version: '13.0'
         | 
| 42 42 | 
             
            - !ruby/object:Gem::Dependency
         | 
| 43 43 | 
             
              name: rdoc
         | 
| 44 44 | 
             
              requirement: !ruby/object:Gem::Requirement
         | 
| 45 45 | 
             
                requirements:
         | 
| 46 46 | 
             
                - - "~>"
         | 
| 47 47 | 
             
                  - !ruby/object:Gem::Version
         | 
| 48 | 
            -
                    version: ' | 
| 48 | 
            +
                    version: '6.3'
         | 
| 49 49 | 
             
              type: :development
         | 
| 50 50 | 
             
              prerelease: false
         | 
| 51 51 | 
             
              version_requirements: !ruby/object:Gem::Requirement
         | 
| 52 52 | 
             
                requirements:
         | 
| 53 53 | 
             
                - - "~>"
         | 
| 54 54 | 
             
                  - !ruby/object:Gem::Version
         | 
| 55 | 
            -
                    version: ' | 
| 55 | 
            +
                    version: '6.3'
         | 
| 56 56 | 
             
            - !ruby/object:Gem::Dependency
         | 
| 57 57 | 
             
              name: rspec
         | 
| 58 58 | 
             
              requirement: !ruby/object:Gem::Requirement
         | 
| 59 59 | 
             
                requirements:
         | 
| 60 60 | 
             
                - - "~>"
         | 
| 61 61 | 
             
                  - !ruby/object:Gem::Version
         | 
| 62 | 
            -
                    version: '3. | 
| 62 | 
            +
                    version: '3.10'
         | 
| 63 63 | 
             
              type: :development
         | 
| 64 64 | 
             
              prerelease: false
         | 
| 65 65 | 
             
              version_requirements: !ruby/object:Gem::Requirement
         | 
| 66 66 | 
             
                requirements:
         | 
| 67 67 | 
             
                - - "~>"
         | 
| 68 68 | 
             
                  - !ruby/object:Gem::Version
         | 
| 69 | 
            -
                    version: '3. | 
| 69 | 
            +
                    version: '3.10'
         | 
| 70 70 | 
             
            description: simple extension to Hashie::Mash for rubyified keys, all keys are converted
         | 
| 71 71 | 
             
              to underscore to eliminate horrible camelCasing
         | 
| 72 72 | 
             
            email: tom.cocca@gmail.com, shishi.s.n@gmail.com
         | 
| @@ -74,9 +74,9 @@ executables: [] | |
| 74 74 | 
             
            extensions: []
         | 
| 75 75 | 
             
            extra_rdoc_files: []
         | 
| 76 76 | 
             
            files:
         | 
| 77 | 
            +
            - ".github/workflows/ruby.yml"
         | 
| 77 78 | 
             
            - ".gitignore"
         | 
| 78 79 | 
             
            - ".rspec"
         | 
| 79 | 
            -
            - ".travis.yml"
         | 
| 80 80 | 
             
            - Gemfile
         | 
| 81 81 | 
             
            - LICENSE
         | 
| 82 82 | 
             
            - README.rdoc
         | 
| @@ -106,11 +106,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement | |
| 106 106 | 
             
                - !ruby/object:Gem::Version
         | 
| 107 107 | 
             
                  version: '0'
         | 
| 108 108 | 
             
            requirements: []
         | 
| 109 | 
            -
             | 
| 110 | 
            -
            rubygems_version: 2.6.13
         | 
| 109 | 
            +
            rubygems_version: 3.1.2
         | 
| 111 110 | 
             
            signing_key: 
         | 
| 112 111 | 
             
            specification_version: 4
         | 
| 113 112 | 
             
            summary: simple extension to Hashie::Mash for rubyified keys
         | 
| 114 | 
            -
            test_files:
         | 
| 115 | 
            -
            - spec/rash_spec.rb
         | 
| 116 | 
            -
            - spec/spec_helper.rb
         | 
| 113 | 
            +
            test_files: []
         | 
    
        data/.travis.yml
    DELETED