open_config 1.1.0 → 1.2.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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8e35aba6b0c26bb9ff4c6a4924d0c9b02d8c5023e457ef7a73f81a59cb7253e8
4
- data.tar.gz: c23742a3ff6b37dd0944a9dccd344036461f398fd59a882de8bfac367343c2d4
3
+ metadata.gz: d71d6739c8e500a9bcc4958df2b7d5e81c443fc19901fe9bc6cd674189ce0102
4
+ data.tar.gz: df4528bd3534c6f31cbd860b61b74cd8959aecd5e7752e2ee2d618c302cf5845
5
5
  SHA512:
6
- metadata.gz: c92e186897e401af692ea4948dc158b1f825265bf8e0639a3cd9428fb723fba20eb227c07531d9397663b0b6c894f188e48c6aa10344c437a5944e000095b359
7
- data.tar.gz: 93b06def5a80244ca019a14e66d83f200642b76632f15c2a1de792b3138808f58a21ad2df1e9f3225dba14d6a795c788ee3da2c00c06f8838cff3faeaacdb96e
6
+ metadata.gz: 6d8208dc85d7d864f75a0518d57f0d820023cdecb2c713618f869fcea352f33bc932bb92a590772ec6b22239d5dbfe5f6d19343cafe5ef2bbd72f1200f4fdce1
7
+ data.tar.gz: 5e39057cd68d5310f6efa12739da7c96311bf0cf0e8f73f5a5e3bce9900bb7b071e41a403de6fd6144cc9da515534d2f503e49f2b5b1f7b531f5010ad9147909
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module OpenConfig
4
- VERSION = '1.1.0'
4
+ VERSION = '1.2.0'
5
5
  end
metadata CHANGED
@@ -1,44 +1,22 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: open_config
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Egor Iskrenkov
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-06-28 00:00:00.000000000 Z
12
- dependencies:
13
- - !ruby/object:Gem::Dependency
14
- name: pry
15
- requirement: !ruby/object:Gem::Requirement
16
- requirements:
17
- - - "~>"
18
- - !ruby/object:Gem::Version
19
- version: 0.13.1
20
- type: :development
21
- prerelease: false
22
- version_requirements: !ruby/object:Gem::Requirement
23
- requirements:
24
- - - "~>"
25
- - !ruby/object:Gem::Version
26
- version: 0.13.1
11
+ date: 2022-04-25 00:00:00.000000000 Z
12
+ dependencies: []
27
13
  description:
28
14
  email:
29
- - e.iskrenkov@gmail.com
30
- executables:
31
- - console
15
+ - egor@iskrenkov.me
16
+ executables: []
32
17
  extensions: []
33
18
  extra_rdoc_files: []
34
19
  files:
35
- - ".github/workflows/release.yml"
36
- - ".gitignore"
37
- - Gemfile
38
- - Gemfile.lock
39
- - LICENSE
40
- - README.md
41
- - bin/console
42
20
  - lib/open_config.rb
43
21
  - lib/open_config/errors.rb
44
22
  - lib/open_config/files.rb
@@ -46,7 +24,6 @@ files:
46
24
  - lib/open_config/files/json.rb
47
25
  - lib/open_config/files/yaml.rb
48
26
  - lib/open_config/version.rb
49
- - open_config.gemspec
50
27
  homepage: https://github.com/eiskrenkov/open_config
51
28
  licenses:
52
29
  - MIT
@@ -57,9 +34,9 @@ require_paths:
57
34
  - lib
58
35
  required_ruby_version: !ruby/object:Gem::Requirement
59
36
  requirements:
60
- - - "~>"
37
+ - - ">="
61
38
  - !ruby/object:Gem::Version
62
- version: 3.0.0
39
+ version: '0'
63
40
  required_rubygems_version: !ruby/object:Gem::Requirement
64
41
  requirements:
65
42
  - - ">="
@@ -1,33 +0,0 @@
1
- name: Release Gem
2
- on:
3
- workflow_dispatch:
4
- push:
5
- tags:
6
- - 'v[0-9]+.[0-9]+.*'
7
-
8
- jobs:
9
- release:
10
- name: Build and push to RubyGems
11
- runs-on: ubuntu-20.04
12
-
13
- steps:
14
- - name: Checkout code
15
- uses: actions/checkout@v2
16
-
17
- - name: Set up Ruby
18
- uses: ruby/setup-ruby@v1
19
- with:
20
- ruby-version: 3.0.1
21
-
22
- - name: Set RubyGems credentials
23
- run: |
24
- mkdir -p $HOME/.gem
25
- touch $HOME/.gem/credentials
26
- chmod 0600 $HOME/.gem/credentials
27
- printf -- "---\n:rubygems_api_key: ${{ secrets.RUBYGEMS_AUTH_TOKEN }}\n" > $HOME/.gem/credentials
28
-
29
- - name: Build Gem
30
- run: gem build *.gemspec
31
-
32
- - name: Push Gem to RubyGems
33
- run: gem push *.gem
data/.gitignore DELETED
@@ -1 +0,0 @@
1
- *.gem
data/Gemfile DELETED
@@ -1,5 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- source 'https://rubygems.org'
4
-
5
- gemspec
data/Gemfile.lock DELETED
@@ -1,23 +0,0 @@
1
- PATH
2
- remote: .
3
- specs:
4
- open_config (0.1.0)
5
-
6
- GEM
7
- remote: https://rubygems.org/
8
- specs:
9
- coderay (1.1.3)
10
- method_source (1.0.0)
11
- pry (0.13.1)
12
- coderay (~> 1.1)
13
- method_source (~> 1.0)
14
-
15
- PLATFORMS
16
- x86_64-darwin-20
17
-
18
- DEPENDENCIES
19
- open_config!
20
- pry (~> 0.13.1)
21
-
22
- BUNDLED WITH
23
- 2.2.3
data/LICENSE DELETED
@@ -1,21 +0,0 @@
1
- MIT License
2
-
3
- Copyright (c) 2021 Egor Iskrenkov
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.
data/README.md DELETED
@@ -1,29 +0,0 @@
1
- # OpenConfig
2
- It allows you to build OpenStruct trees from your configuration files
3
-
4
- ## Installation
5
- Install OpenConfig on your machine as any other Ruby gem
6
-
7
- ```sh
8
- $ gem install open_config
9
- ```
10
-
11
- ## Usage
12
- Imagine, you have file, called `configuration.yml` in your project's config folder:
13
-
14
- ```yaml
15
- development:
16
- key: value
17
- another_key: 123
18
- production:
19
- key: production_value
20
- another_key: 321
21
- ```
22
- You can create OpenConfig instance `open_config = OpenConfig::YAML.new(root: 'config', file: 'configuration.yml')`, and access configuration keys on any depth by simple method calls:
23
-
24
- ```ruby
25
- pry(main)> open_config.production.another_key
26
- => 321
27
- ```
28
-
29
- Same thing will work with `configuration.json`, just use `OpenConfig::JSON` instead
data/bin/console DELETED
@@ -1,8 +0,0 @@
1
- #!/usr/bin/env ruby
2
- # frozen_string_literal: true
3
-
4
- require 'bundler/setup'
5
- require 'open_config'
6
- require 'pry'
7
-
8
- Pry.start
data/open_config.gemspec DELETED
@@ -1,25 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require_relative 'lib/open_config/version'
4
-
5
- Gem::Specification.new do |spec|
6
- spec.name = 'open_config'
7
- spec.version = OpenConfig::VERSION
8
- spec.license = 'MIT'
9
-
10
- spec.authors = ['Egor Iskrenkov']
11
- spec.email = ['e.iskrenkov@gmail.com']
12
-
13
- spec.summary = 'Building OpenStruct trees from configuration files'
14
- spec.homepage = 'https://github.com/eiskrenkov/open_config'
15
-
16
- spec.files = `git ls-files`.split($RS).reject { |f| f.match(%r{^spec/}) }
17
- spec.bindir = 'bin'
18
- spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
19
- spec.require_paths = ['lib']
20
-
21
- spec.required_ruby_version = Gem::Requirement.new('~> 3.0.0')
22
-
23
- # OpenConfig dependencies
24
- spec.add_development_dependency 'pry', '~> 0.13.1'
25
- end