active_setting 0.1.0 → 0.2.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
- SHA1:
3
- metadata.gz: 36b602a83a7757e51d0a71e2aae6b673f5725db0
4
- data.tar.gz: 6d5334e081cc113f666f52a351f7cde871dc2bbc
2
+ SHA256:
3
+ metadata.gz: 9cd7476277764a81ef84d546955a4fb1085b978e2cfba210091956263594b55b
4
+ data.tar.gz: 92751bbf414c310caa67d3d8064e68463b8d82c92fa87552cbc63bd0bafce698
5
5
  SHA512:
6
- metadata.gz: ff7d50bdfda6ed4902c7558495afd66a57820cd7a522299c132b70da259f047bff484c30205a1df91eaddd318953e8ae6d3596af3bb02cd2b17bb2797cbd3956
7
- data.tar.gz: 61f7b32df626bc0bb834e26fd0892387aa9f0f8239481f47bb2add5ae55631e0908e6245582e0da15d8e07dd68aa77888d29a5580be92f2c38f242e96f7c28a8
6
+ metadata.gz: 162ff5c09378c6f572e2d1eb48d111f4ced09ffe4ec89d236360e836dfc5fcffa1d3a397bf9396fa5d73f9792fe9e9a156ec0430ce77874d6b2c1124194b8381
7
+ data.tar.gz: a93ed53e4357433e6efa9ad5ce9c89adf3a4b877aea62e6cd622005b069bab76ae7ebfd79c46399a7e5e01be230388e103f6de8c7c24bd4e67a73decd96cb6ca
@@ -0,0 +1,6 @@
1
+ version: 2
2
+ updates:
3
+ - package-ecosystem: "bundler"
4
+ directory: "/"
5
+ schedule:
6
+ interval: "daily"
@@ -0,0 +1,59 @@
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
+ steps:
13
+ - name: Checkout
14
+ uses: actions/checkout@v2
15
+ - uses: ruby/setup-ruby@v1
16
+ with:
17
+ bundler-cache: true
18
+ - run: bundle exec rake
19
+
20
+ release:
21
+ needs: build
22
+ name: Release
23
+ runs-on: ubuntu-latest
24
+ steps:
25
+ - name: Checkout
26
+ uses: actions/checkout@v2
27
+
28
+ - name: Generate Changelog
29
+ run: |
30
+ # Get version from github ref (remove 'refs/tags/' and prefix 'v')
31
+ version="${GITHUB_REF#refs/tags/v}"
32
+ npx changelog-parser CHANGELOG.md | jq -cr ".versions | .[] | select(.version == \"$version\") | .body" > ${{ github.workflow }}-CHANGELOG.txt
33
+
34
+ - name: Release
35
+ uses: softprops/action-gh-release@v1
36
+ with:
37
+ body_path: ${{ github.workflow }}-CHANGELOG.txt
38
+ env:
39
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
40
+
41
+ publish:
42
+ needs: [build, release]
43
+ name: Publish
44
+ runs-on: ubuntu-latest
45
+
46
+ steps:
47
+ - uses: actions/checkout@v2
48
+ - uses: ruby/setup-ruby@v1
49
+
50
+ - name: Publish to RubyGems
51
+ run: |
52
+ mkdir -p $HOME/.gem
53
+ touch $HOME/.gem/credentials
54
+ chmod 0600 $HOME/.gem/credentials
55
+ printf -- "---\n:rubygems_api_key: ${GEM_HOST_API_KEY}\n" > $HOME/.gem/credentials
56
+ gem build *.gemspec
57
+ gem push *.gem
58
+ env:
59
+ GEM_HOST_API_KEY: "${{secrets.RUBYGEMS_AUTH_TOKEN}}"
@@ -0,0 +1,16 @@
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
+ steps:
11
+ - uses: actions/checkout@v2
12
+ - uses: ruby/setup-ruby@v1
13
+ with:
14
+ ruby-version: ${{ matrix.ruby }}
15
+ bundler-cache: true
16
+ - run: bundle exec rake
@@ -1 +1 @@
1
- 2.2.3
1
+ 3.0.0
@@ -0,0 +1,10 @@
1
+ # Changelog
2
+
3
+ ## 0.2.0
4
+
5
+ * [TT-8613] Update to build with github actions / ruby 3.0 / rails 6.1
6
+ * Use coverage kit to enforce maximum coverage
7
+
8
+ ## 0.1.0
9
+
10
+ * Support raw values being non string
data/README.md CHANGED
@@ -1,8 +1,7 @@
1
- Setting
2
- =======
1
+ # Setting
3
2
 
4
- [![Build Status](https://travis-ci.org/sealink/active_setting.png?branch=master)](https://travis-ci.org/sealink/active_setting)
5
- [![Build Status](https://gemnasium.com/sealink/active_setting.png?travis)](https://gemnasium.com/sealink/active_setting)
3
+ [![Gem Version](https://badge.fury.io/rb/active_setting.svg)](http://badge.fury.io/rb/active_setting)
4
+ [![Build Status](https://github.com/sealink/active_setting/workflows/Build%20and%20Test/badge.svg?branch=master)](https://github.com/sealink/active_setting/actions)
6
5
  [![Build Status](https://codeclimate.com/github/sealink/active_setting.png)](https://codeclimate.com/github/sealink/active_setting)
7
6
 
8
7
  # DESCRIPTION
@@ -23,3 +22,14 @@ require 'setting'
23
22
  For examples on most usage see the tests in the spec directory.
24
23
  As these contain many basic examples with expected output.
25
24
 
25
+ # RELEASE
26
+
27
+ To publish a new version of this gem the following steps must be taken.
28
+
29
+ - Update the version in the following files
30
+ ```
31
+ CHANGELOG.md
32
+ lib/active_setting/version.rb
33
+ ```
34
+ - Create a tag using the format v0.1.0
35
+ - Follow build progress in GitHub actions
@@ -18,13 +18,14 @@ Gem::Specification.new do |spec|
18
18
  spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
19
19
  spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
20
20
  spec.require_paths = ["lib"]
21
+ spec.required_ruby_version = '>= 2.6'
21
22
 
22
23
  spec.add_development_dependency 'bundler'
23
24
  spec.add_development_dependency 'rake'
24
25
  spec.add_development_dependency 'rspec', '~> 3.4'
25
- spec.add_development_dependency 'simplecov'
26
+ spec.add_development_dependency 'coverage-kit'
26
27
  spec.add_development_dependency 'simplecov-rcov'
27
28
  spec.add_development_dependency 'coveralls'
28
29
  spec.add_development_dependency 'rubocop'
29
- spec.add_development_dependency 'travis'
30
+ spec.add_development_dependency 'pry-byebug'
30
31
  end
@@ -1,3 +1,3 @@
1
1
  module ActiveSetting
2
- VERSION = '0.1.0'
2
+ VERSION = '0.2.0'
3
3
  end
@@ -1,27 +1,4 @@
1
- MINIMUM_COVERAGE = 97
2
-
3
- unless ENV['COVERAGE'] == 'off'
4
- require 'simplecov'
5
- require 'simplecov-rcov'
6
- require 'coveralls'
7
- Coveralls.wear!
8
-
9
- SimpleCov.formatters = [
10
- SimpleCov::Formatter::RcovFormatter,
11
- Coveralls::SimpleCov::Formatter
12
- ]
13
- SimpleCov.start do
14
- add_filter '/vendor/'
15
- add_filter '/spec/'
16
- add_group 'lib', 'lib'
17
- end
18
- SimpleCov.at_exit do
19
- SimpleCov.result.format!
20
- percent = SimpleCov.result.covered_percent
21
- puts "Coverage is #{"%.2f" % percent}%"
22
- unless percent >= MINIMUM_COVERAGE
23
- puts "Coverage must be above #{MINIMUM_COVERAGE}%"
24
- Kernel.exit(1)
25
- end
26
- end
27
- end
1
+ require 'simplecov-rcov'
2
+ require 'coveralls'
3
+ require 'coverage/kit'
4
+ Coverage::Kit.setup(minimum_coverage: 97.3)
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: active_setting
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael Noack
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-09-20 00:00:00.000000000 Z
11
+ date: 2021-01-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -53,7 +53,7 @@ dependencies:
53
53
  - !ruby/object:Gem::Version
54
54
  version: '3.4'
55
55
  - !ruby/object:Gem::Dependency
56
- name: simplecov
56
+ name: coverage-kit
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
59
  - - ">="
@@ -109,7 +109,7 @@ dependencies:
109
109
  - !ruby/object:Gem::Version
110
110
  version: '0'
111
111
  - !ruby/object:Gem::Dependency
112
- name: travis
112
+ name: pry-byebug
113
113
  requirement: !ruby/object:Gem::Requirement
114
114
  requirements:
115
115
  - - ">="
@@ -128,14 +128,16 @@ executables: []
128
128
  extensions: []
129
129
  extra_rdoc_files: []
130
130
  files:
131
+ - ".github/dependabot.yml"
132
+ - ".github/workflows/release.yml"
133
+ - ".github/workflows/ruby.yml"
131
134
  - ".gitignore"
132
135
  - ".hound.yml"
133
136
  - ".rspec"
134
137
  - ".rubocop.yml"
135
138
  - ".ruby-style.yml"
136
139
  - ".ruby-version"
137
- - ".travis.yml"
138
- - CHANGELOG.rb
140
+ - CHANGELOG.md
139
141
  - Gemfile
140
142
  - README.md
141
143
  - Rakefile
@@ -161,15 +163,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
161
163
  requirements:
162
164
  - - ">="
163
165
  - !ruby/object:Gem::Version
164
- version: '0'
166
+ version: '2.6'
165
167
  required_rubygems_version: !ruby/object:Gem::Requirement
166
168
  requirements:
167
169
  - - ">="
168
170
  - !ruby/object:Gem::Version
169
171
  version: '0'
170
172
  requirements: []
171
- rubyforge_project:
172
- rubygems_version: 2.4.8
173
+ rubygems_version: 3.2.3
173
174
  signing_key:
174
175
  specification_version: 4
175
176
  summary: Store active_settings of various data types
@@ -1,11 +0,0 @@
1
- language: ruby
2
- rvm:
3
- - 2.3.0
4
- script: bundle exec rake spec
5
- notifications:
6
- email:
7
- - support@travellink.com.au
8
- flowdock:
9
- secure: me2eIi9fkTSgFFMffEr7uOIkrArm//5I00W8l/Raea30jI+BgTy/yC9gs8Bn/fyxQTjEWMkAQokSvFYia7TCyHuTd5ogz+rYzCUI5dxo9kw7Q+EzBNTGUBsVsL69sLHhVOkIt1IlOeiuwY3KeGn+vo5ICK9MNM1ggTIY1+NB+ic=
10
- sudo: false
11
- cache: bundler
@@ -1,5 +0,0 @@
1
- # Changelog
2
-
3
- ## 0.1.0
4
-
5
- * Support raw values being non string