dotcfg 0.2.0.1 → 0.2.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.
- checksums.yaml +7 -0
- data/Rakefile +8 -0
- data/lib/dotcfg.rb +3 -4
- metadata +24 -14
- data/rakefile.rb +0 -15
    
        checksums.yaml
    ADDED
    
    | @@ -0,0 +1,7 @@ | |
| 1 | 
            +
            ---
         | 
| 2 | 
            +
            SHA1:
         | 
| 3 | 
            +
              metadata.gz: 79c06e46ff116bcffb49039fd744e60a3eff7a9d
         | 
| 4 | 
            +
              data.tar.gz: 4256ffcdc131801388e55080b2c6b6745af4922b
         | 
| 5 | 
            +
            SHA512:
         | 
| 6 | 
            +
              metadata.gz: 3bf62f76bce323997e1967167f6abbc5483255d50f6c060d503cd81918cc238cf9cfe19ef3bb33666ef1567fe5adc1049b49c13a66f8fe41f90d009fd67509a6
         | 
| 7 | 
            +
              data.tar.gz: 8efb629375b0237236c60b5ca720d06dfcd9eb01bd3457ba3891b8c9769e080b317d0ea3656f73275a8cd3303b66ebb90cf6bef9f8c00e9670e2d9ae37cdd104
         | 
    
        data/Rakefile
    ADDED
    
    
    
        data/lib/dotcfg.rb
    CHANGED
    
    | @@ -7,13 +7,12 @@ require 'yaml' | |
| 7 7 | 
             
            # e.g.
         | 
| 8 8 | 
             
            # d = DotCfg.new('~/.dotcfg')
         | 
| 9 9 | 
             
            # d['hello'] = 'world'
         | 
| 10 | 
            -
            # d[ | 
| 11 | 
            -
            # =>  | 
| 10 | 
            +
            # d['hello'] # => "world"
         | 
| 11 | 
            +
            # d[:hello]  # => nil
         | 
| 12 12 | 
             
            # d.save
         | 
| 13 13 | 
             
            # d['get'] = "bent"
         | 
| 14 14 | 
             
            # d.load
         | 
| 15 | 
            -
            # d['get']
         | 
| 16 | 
            -
            # => nil
         | 
| 15 | 
            +
            # d['get'] # => nil
         | 
| 17 16 | 
             
            #
         | 
| 18 17 | 
             
            class DotCfg
         | 
| 19 18 | 
             
              PROCS = {
         | 
    
        metadata
    CHANGED
    
    | @@ -1,63 +1,73 @@ | |
| 1 1 | 
             
            --- !ruby/object:Gem::Specification
         | 
| 2 2 | 
             
            name: dotcfg
         | 
| 3 3 | 
             
            version: !ruby/object:Gem::Version
         | 
| 4 | 
            -
              version: 0.2. | 
| 5 | 
            -
              prerelease: 
         | 
| 4 | 
            +
              version: 0.2.2.1
         | 
| 6 5 | 
             
            platform: ruby
         | 
| 7 6 | 
             
            authors:
         | 
| 8 7 | 
             
            - Rick Hull
         | 
| 9 8 | 
             
            autorequire: 
         | 
| 10 9 | 
             
            bindir: bin
         | 
| 11 10 | 
             
            cert_chain: []
         | 
| 12 | 
            -
            date:  | 
| 11 | 
            +
            date: 2014-11-30 00:00:00.000000000 Z
         | 
| 13 12 | 
             
            dependencies:
         | 
| 14 13 | 
             
            - !ruby/object:Gem::Dependency
         | 
| 15 14 | 
             
              name: json
         | 
| 16 15 | 
             
              requirement: !ruby/object:Gem::Requirement
         | 
| 17 | 
            -
                none: false
         | 
| 18 16 | 
             
                requirements:
         | 
| 19 | 
            -
                - - ~>
         | 
| 17 | 
            +
                - - "~>"
         | 
| 20 18 | 
             
                  - !ruby/object:Gem::Version
         | 
| 21 19 | 
             
                    version: '1'
         | 
| 22 20 | 
             
              type: :runtime
         | 
| 23 21 | 
             
              prerelease: false
         | 
| 24 22 | 
             
              version_requirements: !ruby/object:Gem::Requirement
         | 
| 25 | 
            -
                none: false
         | 
| 26 23 | 
             
                requirements:
         | 
| 27 | 
            -
                - - ~>
         | 
| 24 | 
            +
                - - "~>"
         | 
| 28 25 | 
             
                  - !ruby/object:Gem::Version
         | 
| 29 26 | 
             
                    version: '1'
         | 
| 27 | 
            +
            - !ruby/object:Gem::Dependency
         | 
| 28 | 
            +
              name: buildar
         | 
| 29 | 
            +
              requirement: !ruby/object:Gem::Requirement
         | 
| 30 | 
            +
                requirements:
         | 
| 31 | 
            +
                - - "~>"
         | 
| 32 | 
            +
                  - !ruby/object:Gem::Version
         | 
| 33 | 
            +
                    version: '2'
         | 
| 34 | 
            +
              type: :development
         | 
| 35 | 
            +
              prerelease: false
         | 
| 36 | 
            +
              version_requirements: !ruby/object:Gem::Requirement
         | 
| 37 | 
            +
                requirements:
         | 
| 38 | 
            +
                - - "~>"
         | 
| 39 | 
            +
                  - !ruby/object:Gem::Version
         | 
| 40 | 
            +
                    version: '2'
         | 
| 30 41 | 
             
            description: JSON and YAML config serialization and persistence
         | 
| 31 42 | 
             
            email: 
         | 
| 32 43 | 
             
            executables: []
         | 
| 33 44 | 
             
            extensions: []
         | 
| 34 45 | 
             
            extra_rdoc_files: []
         | 
| 35 46 | 
             
            files:
         | 
| 36 | 
            -
            -  | 
| 47 | 
            +
            - Rakefile
         | 
| 37 48 | 
             
            - lib/dotcfg.rb
         | 
| 38 49 | 
             
            homepage: https://github.com/rickhull/dotcfg
         | 
| 39 50 | 
             
            licenses:
         | 
| 40 51 | 
             
            - MIT
         | 
| 52 | 
            +
            metadata: {}
         | 
| 41 53 | 
             
            post_install_message: 
         | 
| 42 54 | 
             
            rdoc_options: []
         | 
| 43 55 | 
             
            require_paths:
         | 
| 44 56 | 
             
            - lib
         | 
| 45 57 | 
             
            required_ruby_version: !ruby/object:Gem::Requirement
         | 
| 46 | 
            -
              none: false
         | 
| 47 58 | 
             
              requirements:
         | 
| 48 | 
            -
              - -  | 
| 59 | 
            +
              - - ">="
         | 
| 49 60 | 
             
                - !ruby/object:Gem::Version
         | 
| 50 61 | 
             
                  version: '0'
         | 
| 51 62 | 
             
            required_rubygems_version: !ruby/object:Gem::Requirement
         | 
| 52 | 
            -
              none: false
         | 
| 53 63 | 
             
              requirements:
         | 
| 54 | 
            -
              - -  | 
| 64 | 
            +
              - - ">="
         | 
| 55 65 | 
             
                - !ruby/object:Gem::Version
         | 
| 56 66 | 
             
                  version: '0'
         | 
| 57 67 | 
             
            requirements: []
         | 
| 58 68 | 
             
            rubyforge_project: 
         | 
| 59 | 
            -
            rubygems_version:  | 
| 69 | 
            +
            rubygems_version: 2.2.2
         | 
| 60 70 | 
             
            signing_key: 
         | 
| 61 | 
            -
            specification_version:  | 
| 71 | 
            +
            specification_version: 4
         | 
| 62 72 | 
             
            summary: simple filesystem de/serialization for app configs
         | 
| 63 73 | 
             
            test_files: []
         | 
    
        data/rakefile.rb
    DELETED
    
    | @@ -1,15 +0,0 @@ | |
| 1 | 
            -
            require 'buildar'
         | 
| 2 | 
            -
            require 'rake/testtask'
         | 
| 3 | 
            -
             | 
| 4 | 
            -
            Buildar.new do |b|
         | 
| 5 | 
            -
              b.use_git = true
         | 
| 6 | 
            -
              b.version_file = 'VERSION'
         | 
| 7 | 
            -
              b.gemspec.name = 'dotcfg'
         | 
| 8 | 
            -
              b.gemspec.summary = 'simple filesystem de/serialization for app configs'
         | 
| 9 | 
            -
              b.gemspec.homepage = 'https://github.com/rickhull/dotcfg'
         | 
| 10 | 
            -
              b.gemspec.author = 'Rick Hull'
         | 
| 11 | 
            -
              b.gemspec.license = 'MIT'
         | 
| 12 | 
            -
              b.gemspec.description = 'JSON and YAML config serialization and persistence'
         | 
| 13 | 
            -
              b.gemspec.files = %w{rakefile.rb lib/dotcfg.rb}
         | 
| 14 | 
            -
              b.gemspec.add_runtime_dependency 'json', '~> 1'
         | 
| 15 | 
            -
            end
         |