active_setting 0.1.0 → 0.3.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: 9de5ac4b9f56c6682a011e2319f842708884f4a92b8ad73134610c62b8ee02f3
4
+ data.tar.gz: 8d94f4f7e6e90470450b5a20bb89e3ac8f00e3cf288e7d0cf0cdda5a51043840
5
5
  SHA512:
6
- metadata.gz: ff7d50bdfda6ed4902c7558495afd66a57820cd7a522299c132b70da259f047bff484c30205a1df91eaddd318953e8ae6d3596af3bb02cd2b17bb2797cbd3956
7
- data.tar.gz: 61f7b32df626bc0bb834e26fd0892387aa9f0f8239481f47bb2add5ae55631e0908e6245582e0da15d8e07dd68aa77888d29a5580be92f2c38f242e96f7c28a8
6
+ metadata.gz: 8f83220efaea0eca0ca9867ac212bcfda31dee0cbb38062b7a8bff56a1478fcfc7aae0ae3ef82f97e3b9f15e2cd58b9280695269daeb898146433e835aa5bb6b
7
+ data.tar.gz: 790873a1e26e564be16a50b108508ad12bf4d35905d213f720cf32c06309a22151e65cd62b46bebf8edede5f157752ee55df7975ae4f9977ca612a0ff2056e05
@@ -0,0 +1,12 @@
1
+ # The commits that did automated reformatting. You can ignore them
2
+ # during git-blame with `--ignore-rev` or `--ignore-revs-file`.
3
+ # You can also globally configure GIT with the following command
4
+ #
5
+ # $ git config --add 'blame.ignoreRevsFile' '.git-blame-ignore-revs'
6
+ #
7
+ # Example entries:
8
+ #
9
+ # <full commit hash> # initial black-format
10
+ # <full commit hash> # rename something internal
11
+
12
+ 9896f26d016711d1a044d7584df17815b097b698 # Pretty CHANGELOG.md
@@ -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,21 @@
1
+ name: Build and Test
2
+ on: [push, pull_request]
3
+ jobs:
4
+ test:
5
+ strategy:
6
+ fail-fast: false
7
+ matrix:
8
+ ruby: ["3.0", "3.1", "3.2"]
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
17
+ - name: Coveralls
18
+ uses: coverallsapp/github-action@master
19
+ with:
20
+ github-token: ${{ secrets.GITHUB_TOKEN }}
21
+ path-to-lcov: coverage/lcov.info
data/.ruby-version CHANGED
@@ -1 +1 @@
1
- 2.2.3
1
+ 3.2.0
data/CHANGELOG.md ADDED
@@ -0,0 +1,14 @@
1
+ # Changelog
2
+
3
+ ## 0.3.0
4
+
5
+ - [PLAT-1175] Update to Ruby 3.2
6
+
7
+ ## 0.2.0
8
+
9
+ - [TT-8613] Update to build with github actions / ruby 3.0 / rails 6.1
10
+ - Use coverage kit to enforce maximum coverage
11
+
12
+ ## 0.1.0
13
+
14
+ - Support raw values being non string
data/README.md CHANGED
@@ -1,9 +1,9 @@
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)
6
+ [![Coverage Status](https://coveralls.io/repos/sealink/active_setting/badge.png)](https://coveralls.io/r/sealink/active_setting)
7
7
 
8
8
  # DESCRIPTION
9
9
 
@@ -23,3 +23,14 @@ require 'setting'
23
23
  For examples on most usage see the tests in the spec directory.
24
24
  As these contain many basic examples with expected output.
25
25
 
26
+ # RELEASE
27
+
28
+ To publish a new version of this gem the following steps must be taken.
29
+
30
+ - Update the version in the following files
31
+ ```
32
+ CHANGELOG.md
33
+ lib/active_setting/version.rb
34
+ ```
35
+ - Create a tag using the format v0.1.0
36
+ - Follow build progress in GitHub actions
@@ -18,13 +18,12 @@ 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 = '>= 3.0'
21
22
 
22
23
  spec.add_development_dependency 'bundler'
23
24
  spec.add_development_dependency 'rake'
24
- spec.add_development_dependency 'rspec', '~> 3.4'
25
- spec.add_development_dependency 'simplecov'
26
- spec.add_development_dependency 'simplecov-rcov'
27
- spec.add_development_dependency 'coveralls'
25
+ spec.add_development_dependency 'rspec'
26
+ spec.add_development_dependency 'coverage-kit'
28
27
  spec.add_development_dependency 'rubocop'
29
- spec.add_development_dependency 'travis'
28
+ spec.add_development_dependency 'pry-byebug'
30
29
  end
@@ -1,3 +1,3 @@
1
1
  module ActiveSetting
2
- VERSION = '0.1.0'
2
+ VERSION = '0.3.0'
3
3
  end
@@ -1,27 +1,3 @@
1
- MINIMUM_COVERAGE = 97
1
+ require 'coverage/kit'
2
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
3
+ 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.3.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: 2023-01-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -40,20 +40,6 @@ dependencies:
40
40
  version: '0'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: rspec
43
- requirement: !ruby/object:Gem::Requirement
44
- requirements:
45
- - - "~>"
46
- - !ruby/object:Gem::Version
47
- version: '3.4'
48
- type: :development
49
- prerelease: false
50
- version_requirements: !ruby/object:Gem::Requirement
51
- requirements:
52
- - - "~>"
53
- - !ruby/object:Gem::Version
54
- version: '3.4'
55
- - !ruby/object:Gem::Dependency
56
- name: simplecov
57
43
  requirement: !ruby/object:Gem::Requirement
58
44
  requirements:
59
45
  - - ">="
@@ -67,21 +53,7 @@ dependencies:
67
53
  - !ruby/object:Gem::Version
68
54
  version: '0'
69
55
  - !ruby/object:Gem::Dependency
70
- name: simplecov-rcov
71
- requirement: !ruby/object:Gem::Requirement
72
- requirements:
73
- - - ">="
74
- - !ruby/object:Gem::Version
75
- version: '0'
76
- type: :development
77
- prerelease: false
78
- version_requirements: !ruby/object:Gem::Requirement
79
- requirements:
80
- - - ">="
81
- - !ruby/object:Gem::Version
82
- version: '0'
83
- - !ruby/object:Gem::Dependency
84
- name: coveralls
56
+ name: coverage-kit
85
57
  requirement: !ruby/object:Gem::Requirement
86
58
  requirements:
87
59
  - - ">="
@@ -109,7 +81,7 @@ dependencies:
109
81
  - !ruby/object:Gem::Version
110
82
  version: '0'
111
83
  - !ruby/object:Gem::Dependency
112
- name: travis
84
+ name: pry-byebug
113
85
  requirement: !ruby/object:Gem::Requirement
114
86
  requirements:
115
87
  - - ">="
@@ -128,14 +100,17 @@ executables: []
128
100
  extensions: []
129
101
  extra_rdoc_files: []
130
102
  files:
103
+ - ".git-blame-ignore-revs"
104
+ - ".github/dependabot.yml"
105
+ - ".github/workflows/release.yml"
106
+ - ".github/workflows/ruby.yml"
131
107
  - ".gitignore"
132
108
  - ".hound.yml"
133
109
  - ".rspec"
134
110
  - ".rubocop.yml"
135
111
  - ".ruby-style.yml"
136
112
  - ".ruby-version"
137
- - ".travis.yml"
138
- - CHANGELOG.rb
113
+ - CHANGELOG.md
139
114
  - Gemfile
140
115
  - README.md
141
116
  - Rakefile
@@ -161,15 +136,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
161
136
  requirements:
162
137
  - - ">="
163
138
  - !ruby/object:Gem::Version
164
- version: '0'
139
+ version: '3.0'
165
140
  required_rubygems_version: !ruby/object:Gem::Requirement
166
141
  requirements:
167
142
  - - ">="
168
143
  - !ruby/object:Gem::Version
169
144
  version: '0'
170
145
  requirements: []
171
- rubyforge_project:
172
- rubygems_version: 2.4.8
146
+ rubygems_version: 3.4.1
173
147
  signing_key:
174
148
  specification_version: 4
175
149
  summary: Store active_settings of various data types
data/.travis.yml DELETED
@@ -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
data/CHANGELOG.rb DELETED
@@ -1,5 +0,0 @@
1
- # Changelog
2
-
3
- ## 0.1.0
4
-
5
- * Support raw values being non string