input_reader 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: d098ae0ddf4e3d2f9db106f0be0bf882bf94e2a4
4
- data.tar.gz: b4de31045b953ed310ac4a536bd493de042296db
2
+ SHA256:
3
+ metadata.gz: b7466d8b8fb97fa528dbcd18e2ea0fc330d074943eb95574843679bd9250174e
4
+ data.tar.gz: a9c2f9298c7d3128baca47e645e80fa82c2ef365104cb6c6f7e6c3d5fc57d630
5
5
  SHA512:
6
- metadata.gz: 2672ce79bb63b0c0f0205ee1fb5248ea5fd3d4b454caca26490dea17d2ead7befbd139a43da732dea4630a152e103e5e555d39a0f333ea80d88946868276e2f1
7
- data.tar.gz: 1eb8bda20b4c47fb2a3e5bf63e2ddebd83c6352b96ad5397b1ead08bec3551de27adec6edb366586330054ac3bbbc3b89fe35a71b3a72f6c058756f91d59af19
6
+ metadata.gz: a158a14bd7b589293ea3045db8d2cdbdc7c24ee1665fef4c2d75cc0194db1493e9f06514c86cc86ca517ea333bc7cc72165a5618f0aab8882368da3ec0f3fe56
7
+ data.tar.gz: bf9a098947f4d470b0f71706b7edaae727288e7d1b7b0f129dc16cca32bec7897d35f97379498b34d14d893a2ee270cb2827d93bd65d6a1ca10ab5fcd75148af
@@ -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
data/.gitignore CHANGED
@@ -15,3 +15,4 @@ spec/reports
15
15
  test/tmp
16
16
  test/version_tmp
17
17
  tmp
18
+ vendor/
@@ -0,0 +1 @@
1
+ 3.0.0
@@ -0,0 +1,9 @@
1
+ # Change Log
2
+ All notable changes to this project will be documented in this file.
3
+ This project adheres to [Semantic Versioning](http://semver.org/).
4
+ This changelog adheres to [Keep a CHANGELOG](http://keepachangelog.com/).
5
+
6
+ ## 0.2.0
7
+
8
+ - [TT-8631] Update to build with github actions / ruby 3.0 / rails 6.1
9
+ - [TT-1392] Changelog file
data/README.md CHANGED
@@ -1,8 +1,7 @@
1
- InputReader
2
- ===========
1
+ # InputReader
3
2
 
3
+ [![Gem Version](https://badge.fury.io/rb/input_reader.svg)](http://badge.fury.io/rb/input_reader)
4
4
  [![Build Status](https://travis-ci.org/sealink/input_reader.png?branch=master)](https://travis-ci.org/sealink/input_reader)
5
- [![Build Status](https://gemnasium.com/sealink/input_reader.png?travis)](https://gemnasium.com/sealink/input_reader)
6
5
  [![Build Status](https://codeclimate.com/github/sealink/input_reader.png)](https://codeclimate.com/github/sealink/input_reader)
7
6
 
8
7
  Reads and parses input and helps build input menus, etc.
@@ -25,6 +24,19 @@ Or install it yourself as:
25
24
 
26
25
  TODO: Write usage instructions here
27
26
 
27
+ ## Release
28
+
29
+ To publish a new version of this gem the following steps must be taken.
30
+
31
+ - Update the version in the following files
32
+ ```
33
+ CHANGELOG.md
34
+ lib/input_reader/version.rb
35
+ ```
36
+ - Create a tag using the format v0.1.0
37
+ - Follow build progress in GitHub actions
38
+
39
+
28
40
  ## Contributing
29
41
 
30
42
  1. Fork it
@@ -14,12 +14,13 @@ Gem::Specification.new do |gem|
14
14
  gem.name = "input_reader"
15
15
  gem.require_paths = ["lib"]
16
16
  gem.version = InputReader::VERSION
17
+ gem.required_ruby_version = '>= 2.6'
17
18
 
18
19
  gem.add_development_dependency 'rake'
19
20
  gem.add_development_dependency 'rspec'
20
- gem.add_development_dependency 'simplecov'
21
+ gem.add_development_dependency 'coverage-kit'
21
22
  gem.add_development_dependency 'simplecov-rcov'
22
23
  gem.add_development_dependency 'guard-rspec'
23
24
  gem.add_development_dependency 'coveralls'
24
- gem.add_development_dependency 'travis'
25
+ gem.add_development_dependency 'pry-byebug'
25
26
  end
@@ -1,3 +1,3 @@
1
1
  module InputReader
2
- VERSION = "0.1.0"
2
+ VERSION = "0.2.0"
3
3
  end
@@ -1,26 +1,4 @@
1
- MINIMUM_COVERAGE = 94
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
- unless percent >= MINIMUM_COVERAGE
22
- puts "Coverage must be above #{MINIMUM_COVERAGE}%. It is #{"%.2f" % percent}%"
23
- Kernel.exit(1)
24
- end
25
- end
26
- end
1
+ require 'simplecov-rcov'
2
+ require 'coveralls'
3
+ require 'coverage/kit'
4
+ Coverage::Kit.setup(minimum_coverage: 94.65)
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: input_reader
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
  - Alessandro Berardi, Michael Noack
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-06-17 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: rake
@@ -39,7 +39,7 @@ dependencies:
39
39
  - !ruby/object:Gem::Version
40
40
  version: '0'
41
41
  - !ruby/object:Gem::Dependency
42
- name: simplecov
42
+ name: coverage-kit
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
45
  - - ">="
@@ -95,7 +95,7 @@ dependencies:
95
95
  - !ruby/object:Gem::Version
96
96
  version: '0'
97
97
  - !ruby/object:Gem::Dependency
98
- name: travis
98
+ name: pry-byebug
99
99
  requirement: !ruby/object:Gem::Requirement
100
100
  requirements:
101
101
  - - ">="
@@ -115,9 +115,13 @@ executables: []
115
115
  extensions: []
116
116
  extra_rdoc_files: []
117
117
  files:
118
+ - ".github/dependabot.yml"
119
+ - ".github/workflows/release.yml"
120
+ - ".github/workflows/ruby.yml"
118
121
  - ".gitignore"
119
122
  - ".rspec"
120
- - ".travis.yml"
123
+ - ".ruby-version"
124
+ - CHANGELOG.md
121
125
  - Gemfile
122
126
  - Guardfile
123
127
  - LICENSE
@@ -141,15 +145,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
141
145
  requirements:
142
146
  - - ">="
143
147
  - !ruby/object:Gem::Version
144
- version: '0'
148
+ version: '2.6'
145
149
  required_rubygems_version: !ruby/object:Gem::Requirement
146
150
  requirements:
147
151
  - - ">="
148
152
  - !ruby/object:Gem::Version
149
153
  version: '0'
150
154
  requirements: []
151
- rubyforge_project:
152
- rubygems_version: 2.4.8
155
+ rubygems_version: 3.2.3
153
156
  signing_key:
154
157
  specification_version: 4
155
158
  summary: Command line helpers to read input, etc.
@@ -1,12 +0,0 @@
1
- language: ruby
2
- rvm:
3
- - 2.2
4
- - 2.3.0
5
- script: "bundle exec rake spec"
6
- notifications:
7
- email:
8
- - support@travellink.com.au
9
- flowdock:
10
- secure: PGMmGX4ppcqe1JlyJH4A51zAPX23okFNqu5KKcpYYTrZQ5KsCctzmGshiXX0PUOqFRPXiOc9+qhR0A6UmW7Hd5toocm9XjysODE6aho1FJMh/VNLK5sK8JSGlideoP8RYadgfJjZjDaLwcgj4da46kfLugA9VqdsfAM1LroWA+E=
11
- sudo: false
12
- cache: bundler