ruby_core_extensions 0.2.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
2
  SHA256:
3
- metadata.gz: fe51cbe0690ad8ae1a0a62820bf571b5d3d617a93ba7187807fc904f99c44867
4
- data.tar.gz: a1298753e9148cb80f3454a534217c899435dfa03e25d1ee10dd234085eaf39a
3
+ metadata.gz: 2d22c6d7af959d5198856e30a88c2568e8b90272590626542ae22249078af165
4
+ data.tar.gz: f9ed478c6bf664466f78691ad093c33d43d6db637a60a61e9976b41982c5f8c1
5
5
  SHA512:
6
- metadata.gz: 0e23c149d5b40d8448ada9185501f74e750cc2c035790c0f0f8e0043f11d6a31a4511d8f593a6c5f8126f6d347faa570a0402ce65281fa20c17927480b654681
7
- data.tar.gz: daaf2bc62fff5a8e18c4089194af2d0e9e1773d6845b5400fc8d4d0b71dc7aa5dcc5ffa6afcec2860d7f46c58e983249112320ae7a3178dcac985b2af8871fbc
6
+ metadata.gz: 836b079a00c2511a940611b57dccc163468a5f5e657b4182add8b38933e9fe8ba68d2c00559f22f44b7b32315d076dae22e1ec7e3748254da51f0476c09c648f
7
+ data.tar.gz: '022112683800f51ac5695eadd45a3e10d1c2f056f0d1561e064465d3bbac4658e6ff78ece3aa52e9ef73828d1604f3b9d8754016ae7b545de35a4860374912b4'
@@ -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,19 @@
1
+ name: Build and Test
2
+ on: [push, pull_request]
3
+ jobs:
4
+ test:
5
+ strategy:
6
+ fail-fast: false
7
+ matrix:
8
+ gemfile: [rails60, rails61]
9
+ ruby: ["2.6", "2.7", "3.0"]
10
+ runs-on: ubuntu-latest
11
+ env:
12
+ BUNDLE_GEMFILE: gemfiles/${{ matrix.gemfile }}.gemfile
13
+ steps:
14
+ - uses: actions/checkout@v2
15
+ - uses: ruby/setup-ruby@v1
16
+ with:
17
+ ruby-version: ${{ matrix.ruby }}
18
+ bundler-cache: true
19
+ - run: bundle exec rake
@@ -1 +1 @@
1
- 2.6.3
1
+ 3.0.0
@@ -3,6 +3,10 @@ All notable changes to this project will be documented in this file.
3
3
  This project adheres to [Semantic Versioning](http://semver.org/).
4
4
  This changelog adheres to [Keep a CHANGELOG](http://keepachangelog.com/).
5
5
 
6
+ ## 0.3.0
7
+
8
+ - [TT-8627] Update to build with github actions / ruby 3.0 / rails 6.1
9
+
6
10
  ## 0.2.0
7
11
 
8
12
  - [TT-5814] Update to Rails5+ and Ruby2.4+
data/README.md CHANGED
@@ -1,37 +1,50 @@
1
- Ruby Core Extensions
2
- ====================
1
+ # Ruby Core Extensions
3
2
 
4
- [![Build Status](https://travis-ci.org/sealink/ruby_core_extensions.png?branch=master)](https://travis-ci.org/sealink/ruby_core_extensions)
3
+ [![Gem Version](https://badge.fury.io/rb/ruby_core_extensions.svg)](http://badge.fury.io/rb/ruby_core_extensions)
4
+ [![Build Status](https://github.com/sealink/ruby_core_extensions/workflows/Build%20and%20Test/badge.svg?branch=master)](https://github.com/sealink/ruby_core_extensions/actions)
5
5
  [![Coverage Status](https://coveralls.io/repos/sealink/ruby_core_extensions/badge.png)](https://coveralls.io/r/sealink/ruby_core_extensions)
6
- [![Dependency Status](https://gemnasium.com/sealink/ruby_core_extensions.png?travis)](https://gemnasium.com/sealink/ruby_core_extensions)
7
6
  [![Code Climate](https://codeclimate.com/github/sealink/ruby_core_extensions.png)](https://codeclimate.com/github/sealink/ruby_core_extensions)
8
7
 
9
- # DESCRIPTION
8
+ # Description
10
9
 
11
10
  Extends the core ruby classes with helpful functions
12
11
 
13
- # INSTALLATION
12
+ # Installation
14
13
 
15
14
  Add to your Gemfile:
15
+
16
+ ```ruby
16
17
  gem 'ruby_core_extensions'
18
+ ```
17
19
 
18
20
  # Extensions
19
21
 
20
22
  The following classes are extend in this gem:
21
23
 
22
- * Array
23
- * BigDecimal
24
- * Class
25
- * Date
26
- * DateTime
27
- * Enumerable
28
- * File
29
- * Fixnum
30
- * Hash
31
- * Kernel
32
- * Numeric
33
- * Object
34
- * Range
35
- * String
36
- * Time
37
-
24
+ - Array
25
+ - BigDecimal
26
+ - Class
27
+ - Date
28
+ - DateTime
29
+ - Enumerable
30
+ - File
31
+ - Fixnum
32
+ - Hash
33
+ - Kernel
34
+ - Numeric
35
+ - Object
36
+ - Range
37
+ - String
38
+ - Time
39
+
40
+ ## Release
41
+
42
+ To publish a new version of this gem the following steps must be taken.
43
+
44
+ * Update the version in the following files
45
+ ```
46
+ CHANGELOG.md
47
+ lib/ruby_core_extensions/version.rb
48
+ ````
49
+ * Create a tag using the format v0.1.0
50
+ * Follow build progress in GitHub actions
@@ -2,5 +2,5 @@ source 'https://rubygems.org'
2
2
  gemspec :path => '../'
3
3
 
4
4
  group :development, :test do
5
- gem 'activerecord', '~> 6.0.0.rc2'
5
+ gem 'activerecord', '~> 6.0'
6
6
  end
@@ -1,6 +1,6 @@
1
1
  source 'https://rubygems.org'
2
- gemspec path: '../'
2
+ gemspec :path => '../'
3
3
 
4
4
  group :development, :test do
5
- gem 'activerecord', '~> 5.0'
5
+ gem 'activerecord', '~> 6.1'
6
6
  end
@@ -1,3 +1,3 @@
1
1
  module RubyCoreExtensions
2
- VERSION = '0.2.0'
2
+ VERSION = '0.3.0'
3
3
  end
@@ -20,15 +20,15 @@ Gem::Specification.new do |spec|
20
20
  spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
21
21
  spec.require_paths = ["lib"]
22
22
 
23
- spec.add_dependency 'activesupport', '>= 5.0'
23
+ spec.add_dependency 'activesupport', '>= 6.0'
24
24
  spec.add_dependency 'tzinfo'
25
25
 
26
- spec.add_development_dependency "bundler", "~> 2.0.1"
26
+ spec.add_development_dependency "bundler", "~> 2"
27
27
  spec.add_development_dependency "rake"
28
28
  spec.add_development_dependency 'rspec'
29
29
  spec.add_development_dependency 'coverage-kit'
30
30
  spec.add_development_dependency 'simplecov-rcov'
31
31
  spec.add_development_dependency 'coveralls'
32
- spec.add_development_dependency 'travis'
32
+ spec.add_development_dependency 'pry-byebug'
33
33
  spec.add_development_dependency 'rubocop-rails'
34
34
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ruby_core_extensions
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael Noack
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2019-08-06 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: activesupport
@@ -17,14 +17,14 @@ dependencies:
17
17
  requirements:
18
18
  - - ">="
19
19
  - !ruby/object:Gem::Version
20
- version: '5.0'
20
+ version: '6.0'
21
21
  type: :runtime
22
22
  prerelease: false
23
23
  version_requirements: !ruby/object:Gem::Requirement
24
24
  requirements:
25
25
  - - ">="
26
26
  - !ruby/object:Gem::Version
27
- version: '5.0'
27
+ version: '6.0'
28
28
  - !ruby/object:Gem::Dependency
29
29
  name: tzinfo
30
30
  requirement: !ruby/object:Gem::Requirement
@@ -45,14 +45,14 @@ dependencies:
45
45
  requirements:
46
46
  - - "~>"
47
47
  - !ruby/object:Gem::Version
48
- version: 2.0.1
48
+ version: '2'
49
49
  type: :development
50
50
  prerelease: false
51
51
  version_requirements: !ruby/object:Gem::Requirement
52
52
  requirements:
53
53
  - - "~>"
54
54
  - !ruby/object:Gem::Version
55
- version: 2.0.1
55
+ version: '2'
56
56
  - !ruby/object:Gem::Dependency
57
57
  name: rake
58
58
  requirement: !ruby/object:Gem::Requirement
@@ -124,7 +124,7 @@ dependencies:
124
124
  - !ruby/object:Gem::Version
125
125
  version: '0'
126
126
  - !ruby/object:Gem::Dependency
127
- name: travis
127
+ name: pry-byebug
128
128
  requirement: !ruby/object:Gem::Requirement
129
129
  requirements:
130
130
  - - ">="
@@ -157,18 +157,20 @@ executables: []
157
157
  extensions: []
158
158
  extra_rdoc_files: []
159
159
  files:
160
+ - ".github/dependabot.yml"
161
+ - ".github/workflows/release.yml"
162
+ - ".github/workflows/ruby.yml"
160
163
  - ".gitignore"
161
164
  - ".rspec"
162
165
  - ".rubocop.yml"
163
166
  - ".ruby-version"
164
- - ".travis.yml"
165
167
  - CHANGELOG.md
166
168
  - Gemfile
167
169
  - LICENSE
168
170
  - README.md
169
171
  - Rakefile
170
- - gemfiles/rails5.gemfile
171
- - gemfiles/rails6.gemfile
172
+ - gemfiles/rails60.gemfile
173
+ - gemfiles/rails61.gemfile
172
174
  - lib/ruby_core_extensions.rb
173
175
  - lib/ruby_core_extensions/array.rb
174
176
  - lib/ruby_core_extensions/class.rb
@@ -218,7 +220,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
218
220
  - !ruby/object:Gem::Version
219
221
  version: '0'
220
222
  requirements: []
221
- rubygems_version: 3.0.3
223
+ rubygems_version: 3.2.3
222
224
  signing_key:
223
225
  specification_version: 4
224
226
  summary: Set of extensions to core ruby libraries used by TravelLink Technology.
@@ -1,20 +0,0 @@
1
- language: ruby
2
- rvm:
3
- - 2.4
4
- - 2.5
5
- - 2.6
6
- matrix:
7
- exclude:
8
- - rvm: 2.4
9
- gemfile: gemfiles/rails6.gemfile
10
- before_install:
11
- - gem install bundler
12
- script: bundle exec rake spec
13
- gemfile:
14
- - gemfiles/rails5.gemfile
15
- - gemfiles/rails6.gemfile
16
- notifications:
17
- email:
18
- - support@travellink.com.au
19
- sudo: false
20
- cache: bundler