yamload 0.5.0 → 0.6.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4fdcbfb71834348eec7d1a41a9083dcfb84918b564702b6ebc32ac3f69a81dbd
4
- data.tar.gz: 9c5859db3d1e10209540447671fa67f7fac5551bd0c0352216df5afd6597029b
3
+ metadata.gz: e3cf322ef0fa55679eca55cf9937cd0b9c3b310a40646f42389c66ebe4969810
4
+ data.tar.gz: f7e354d8873308cb068bea2c212018bf10d5cdff6dc6a517feb3442f15cce6b7
5
5
  SHA512:
6
- metadata.gz: 17cbf7b431ef2820ff545507bda639713ba2173af7286637be94b7a8820862353b50264933abef8e9d81970dda432b8823dd24292d1b2a1b67f1417fd92de4df
7
- data.tar.gz: 36f0e38afbf4817d6a3437bcabbfa9cf73c8f6d6f929dba548371ab13427e1c3aaef7e7fc703555b0f81e4cfd97ba9113118b3cd31fd0ee53ad5bd307ce56d18
6
+ metadata.gz: 9952ff4a1d5b3c43662ed6e541ba7871af7742f470ef22e60ea2bf3c825cd84da56abec00681f64c60cc55e400d18ed25566d6a11cdd0848f5d4f7d0f11e6777
7
+ data.tar.gz: 87b81d3b1d8401a4ac27a236eb31a945c9c62de6bab4e9931d5f5bfd6ce61ebd784da9388f88e76e9c0541010f89d985a623e297ef4382e96d1103578f162929
@@ -0,0 +1,6 @@
1
+ version: 2
2
+ updates:
3
+ - package-ecosystem: "bundler"
4
+ directory: "/"
5
+ schedule:
6
+ interval: "daily"
@@ -0,0 +1,61 @@
1
+ name: Release
2
+
3
+ on:
4
+ push:
5
+ tags:
6
+ - "v*"
7
+
8
+ jobs:
9
+ build:
10
+ name: Build
11
+ runs-on: ubuntu-latest
12
+ env:
13
+ AWS_REGION: us-east-1
14
+ steps:
15
+ - name: Checkout
16
+ uses: actions/checkout@v2
17
+ - uses: ruby/setup-ruby@v1
18
+ with:
19
+ bundler-cache: true
20
+ - run: bundle exec rake
21
+
22
+ release:
23
+ needs: build
24
+ name: Release
25
+ runs-on: ubuntu-latest
26
+ steps:
27
+ - name: Checkout
28
+ uses: actions/checkout@v2
29
+
30
+ - name: Generate Changelog
31
+ run: |
32
+ # Get version from github ref (remove 'refs/tags/' and prefix 'v')
33
+ version="${GITHUB_REF#refs/tags/v}"
34
+ npx changelog-parser CHANGELOG.md | jq -cr ".versions | .[] | select(.version == \"$version\") | .body" > ${{ github.workflow }}-CHANGELOG.txt
35
+
36
+ - name: Release
37
+ uses: softprops/action-gh-release@v1
38
+ with:
39
+ body_path: ${{ github.workflow }}-CHANGELOG.txt
40
+ env:
41
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
42
+
43
+ publish:
44
+ needs: [build, release]
45
+ name: Publish
46
+ runs-on: ubuntu-latest
47
+
48
+ steps:
49
+ - uses: actions/checkout@v2
50
+ - uses: ruby/setup-ruby@v1
51
+
52
+ - name: Publish to RubyGems
53
+ run: |
54
+ mkdir -p $HOME/.gem
55
+ touch $HOME/.gem/credentials
56
+ chmod 0600 $HOME/.gem/credentials
57
+ printf -- "---\n:rubygems_api_key: ${GEM_HOST_API_KEY}\n" > $HOME/.gem/credentials
58
+ gem build *.gemspec
59
+ gem push *.gem
60
+ env:
61
+ GEM_HOST_API_KEY: "${{secrets.RUBYGEMS_AUTH_TOKEN}}"
@@ -0,0 +1,18 @@
1
+ name: Build and Test
2
+ on: [push, pull_request]
3
+ jobs:
4
+ test:
5
+ strategy:
6
+ fail-fast: false
7
+ matrix:
8
+ ruby: ["2.6", "2.7", "3.0"]
9
+ runs-on: ubuntu-latest
10
+ env:
11
+ AWS_REGION: us-east-1
12
+ steps:
13
+ - uses: actions/checkout@v2
14
+ - uses: ruby/setup-ruby@v1
15
+ with:
16
+ ruby-version: ${{ matrix.ruby }}
17
+ bundler-cache: true
18
+ - run: bundle exec rake
@@ -1 +1 @@
1
- 2.7.1
1
+ 3.0.0
@@ -1,3 +1,7 @@
1
+ ## 0.6.0
2
+
3
+ - [TT-8616] Update to build with github actions / ruby 3.0 / rails 6.1
4
+
1
5
  ## 0.5.0 (2020-07-02)
2
6
 
3
7
  - [TT-7683] Add support for AWS SSM and AWS Secrets Manager
data/README.md CHANGED
@@ -1,14 +1,13 @@
1
1
  # Yamload
2
2
 
3
3
  [![Gem Version](https://badge.fury.io/rb/yamload.svg)](http://badge.fury.io/rb/yamload)
4
- [![Build Status](https://travis-ci.org/sealink/yamload.svg?branch=master)](https://travis-ci.org/sealink/yamload)
4
+ [![Build Status](https://github.com/sealink/yamload/workflows/Build%20and%20Test/badge.svg?branch=master)](https://github.com/sealink/yamload/actions)
5
5
  [![Coverage Status](https://coveralls.io/repos/sealink/yamload/badge.svg)](https://coveralls.io/r/sealink/yamload)
6
- [![Dependency Status](https://gemnasium.com/sealink/yamload.svg)](https://gemnasium.com/sealink/yamload)
7
6
  [![Code Climate](https://codeclimate.com/github/sealink/yamload/badges/gpa.svg)](https://codeclimate.com/github/sealink/yamload)
8
7
 
9
- * YAML files loading
10
- * Recursive conversion to immutable objects
11
- * Default values
8
+ - YAML files loading
9
+ - Recursive conversion to immutable objects
10
+ - Default values
12
11
 
13
12
  ## Installation
14
13
 
@@ -29,17 +28,20 @@ Or install it yourself as:
29
28
  ## Usage
30
29
 
31
30
  Set up the YAML files directory
31
+
32
32
  ```ruby
33
33
  Yamload.dir = File.join(File.dirname(File.expand_path(__FILE__)),'config')
34
34
  ```
35
35
 
36
36
  e.g. config/test.yml
37
+
37
38
  ```yaml
38
39
  ---
39
40
  test: true
40
41
  ```
41
42
 
42
43
  Load YAML files from the directory and access keys
44
+
43
45
  ```ruby
44
46
  # Load config/test.yml
45
47
  loader = Yamload::Loader.new(:test)
@@ -50,10 +52,24 @@ loader.obj.attribute
50
52
  ```
51
53
 
52
54
  Define defaults
55
+
53
56
  ```ruby
54
57
  loader.defaults = { 'test' => true , 'coverage' => { 'minimum' => 0.95 } }
55
58
  ```
56
59
 
60
+ ## Release
61
+
62
+ To publish a new version of this gem the following steps must be taken.
63
+
64
+ * Update the version in the following files
65
+ ```
66
+ CHANGELOG.md
67
+ lib/yamload/version.rb
68
+ ````
69
+ * Create a tag using the format v0.1.0
70
+ * Follow build progress in GitHub actions
71
+
72
+
57
73
  ## Contributing
58
74
 
59
75
  1. Fork it ( https://github.com/sealink/yamload/fork )
@@ -1,3 +1,3 @@
1
1
  module Yamload
2
- VERSION = '0.5.0'
2
+ VERSION = '0.6.0'
3
3
  end
@@ -18,7 +18,7 @@ Gem::Specification.new do |spec|
18
18
  spec.test_files = spec.files.grep(/^(test|spec|features)\//)
19
19
  spec.require_paths = ['lib']
20
20
 
21
- spec.required_ruby_version = '>= 2.5.0'
21
+ spec.required_ruby_version = '>= 2.6.0'
22
22
 
23
23
  spec.add_dependency 'anima', '>= 0.2'
24
24
  spec.add_dependency 'facets', '>= 3.0'
@@ -32,5 +32,5 @@ Gem::Specification.new do |spec|
32
32
  spec.add_development_dependency 'simplecov-rcov', '>= 0.2'
33
33
  spec.add_development_dependency 'coveralls'
34
34
  spec.add_development_dependency 'rubocop'
35
- spec.add_development_dependency 'travis'
35
+ spec.add_development_dependency 'pry-byebug'
36
36
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: yamload
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
4
+ version: 0.6.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alessandro Berardi
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2020-08-02 00:00:00.000000000 Z
12
+ date: 2021-01-06 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: anima
@@ -166,7 +166,7 @@ dependencies:
166
166
  - !ruby/object:Gem::Version
167
167
  version: '0'
168
168
  - !ruby/object:Gem::Dependency
169
- name: travis
169
+ name: pry-byebug
170
170
  requirement: !ruby/object:Gem::Requirement
171
171
  requirements:
172
172
  - - ">="
@@ -187,11 +187,13 @@ executables: []
187
187
  extensions: []
188
188
  extra_rdoc_files: []
189
189
  files:
190
+ - ".github/dependabot.yml"
191
+ - ".github/workflows/release.yml"
192
+ - ".github/workflows/ruby.yml"
190
193
  - ".gitignore"
191
194
  - ".rspec"
192
195
  - ".rubocop.yml"
193
196
  - ".ruby-version"
194
- - ".travis.yml"
195
197
  - CHANGELOG.md
196
198
  - Gemfile
197
199
  - LICENSE.txt
@@ -231,14 +233,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
231
233
  requirements:
232
234
  - - ">="
233
235
  - !ruby/object:Gem::Version
234
- version: 2.5.0
236
+ version: 2.6.0
235
237
  required_rubygems_version: !ruby/object:Gem::Requirement
236
238
  requirements:
237
239
  - - ">="
238
240
  - !ruby/object:Gem::Version
239
241
  version: '0'
240
242
  requirements: []
241
- rubygems_version: 3.1.2
243
+ rubygems_version: 3.2.3
242
244
  signing_key:
243
245
  specification_version: 4
244
246
  summary: YAML files loader
@@ -1,15 +0,0 @@
1
- language: ruby
2
- rvm:
3
- - 2.5
4
- - 2.6
5
- - 2.7
6
- script: "bundle exec rake spec"
7
- notifications:
8
- email:
9
- - support@travellink.com.au
10
- flowdock:
11
- secure: UInYCeoRfF7FEnNgW38nZDk3SXWfWN5rm+tKDWX/eWGIIUuynspe6A8776w+wG+9jSuzGt9J3WEIxxognkYiWmud96NYiKZIQDLx/6ql15A9jEvWwqnWbnaL4F368ujhwLo6V42Z6wRfTUqNeRQKki2WCw0NVmT6Y1bdTeNNy70=
12
- sudo: false
13
- cache: bundler
14
- env:
15
- - AWS_REGION: us-east-1