humanized_id 0.2.0 → 0.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: ae0f1548e28b86a0eb8ef77c60e2f443ee921d71
4
- data.tar.gz: ed2e71e69d3894663724123b8e6af446da5f1e4c
2
+ SHA256:
3
+ metadata.gz: b6a1fdbb341fc866ba53dcf2b1ea96c1edf46ecf5f3cc5fba9b9230073c81dba
4
+ data.tar.gz: 876e61c83ae3a5155da6a6d3893135670028ea0569f0a5ea160de9a47913d02a
5
5
  SHA512:
6
- metadata.gz: f88c10da3c918d4801648690f132842919523684331668898d6d886fdcaf716f8d64993f707e7c85c357158bd00b396abd759a9c31b6442df90d53c55ac312ed
7
- data.tar.gz: 451492aef369a46fd67cd2b661246e4bfe543ca11fda7cff490b61ab757e6300dfddf92ccf9fd3c69da02c876e2bde1f95f740a29eeea05abac8c3f2c185cbf6
6
+ metadata.gz: c6e1f59b6bd45861d3837b83637191c6628896569896221858c998fccf943bbac5ec43775b0e8ac2cca76987474bae939c5341e8fe970761dc9c8fff8b2403bf
7
+ data.tar.gz: 7929b55917e96555d3e2a94729deacf8168b78eced3e268d3538ac027f851cba189d9411594e8d242b9e67ea9f3a15ffbeaad25f39c064165d5ed1d86a733a3f
@@ -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.3.0
1
+ 3.0.0
@@ -1,13 +1,18 @@
1
+ ## 0.3.0
2
+
3
+ - Use coverage kit to enforce maximum coverage
4
+ - [TT-8610] Build with github actions, add ruby 3 to build matrix
5
+
1
6
  ## 0.2.0 (2016-02-11)
2
7
 
3
8
  Fixed:
4
9
 
5
- - Requires Ruby >= 2.1 (Ruby < 2.1 never worked)
10
+ - Requires Ruby >= 2.1 (Ruby < 2.1 never worked)
6
11
 
7
12
  Changed:
8
13
 
9
- - Refactors internal logic
10
- - Updates tests
14
+ - Refactors internal logic
15
+ - Updates tests
11
16
 
12
17
  ## 0.1.0 (2016-02-11)
13
18
 
@@ -1,14 +1,14 @@
1
1
  # HumanizedId
2
2
 
3
3
  [![Gem Version](https://badge.fury.io/rb/humanized_id.svg)](https://badge.fury.io/rb/humanized_id)
4
- [![Build Status](https://travis-ci.org/sealink/humanized_id.svg?branch=master)](https://travis-ci.org/sealink/humanized_id)
4
+ [![Build Status](https://github.com/sealink/humanized_id/workflows/Build%20and%20Test/badge.svg?branch=master)](https://github.com/sealink/humanized_id/actions)
5
5
  [![Coverage Status](https://coveralls.io/repos/github/sealink/humanized_id/badge.svg?branch=master)](https://coveralls.io/github/sealink/humanized_id?branch=master)
6
- [![Dependency Status](https://gemnasium.com/sealink/humanized_id.svg)](https://gemnasium.com/sealink/humanized_id)
7
6
  [![Code Climate](https://codeclimate.com/github/sealink/humanized_id/badges/gpa.svg)](https://codeclimate.com/github/sealink/humanized_id)
8
7
 
9
8
  HumanizedId is a gem designed to help you either:
10
- - Convert an existing numerical id into a 'human friendly' alphanumerical id
11
- - Generate a random 'human friendly' id that is of a specified or default length
9
+
10
+ - Convert an existing numerical id into a 'human friendly' alphanumerical id
11
+ - Generate a random 'human friendly' id that is of a specified or default length
12
12
 
13
13
  A 'humanized' (or 'human friendly') id is an id that is easy to read and is based
14
14
  off a character set that does not allow vague or vulgar references.
@@ -86,6 +86,18 @@ After checking out the repo, run `bin/setup` to install dependencies. Then, run
86
86
 
87
87
  To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release` to create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
88
88
 
89
+ ## Release
90
+
91
+ To publish a new version of this gem the following steps must be taken.
92
+
93
+ - Update the version in the following files
94
+ ```
95
+ CHANGELOG.md
96
+ lib/humanized_id/version.rb
97
+ ```
98
+ - Create a tag using the format v0.1.0
99
+ - Follow build progress in GitHub actions
100
+
89
101
  ## Contributing
90
102
 
91
103
  1. Fork it ( https://github.com/sealink/humanized_id/fork )
@@ -25,14 +25,14 @@ Gem::Specification.new do |spec|
25
25
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
26
26
  spec.require_paths = ['lib']
27
27
 
28
- spec.required_ruby_version = '>= 2.1'
28
+ spec.required_ruby_version = '>= 2.6'
29
29
 
30
30
  spec.add_development_dependency 'bundler'
31
31
  spec.add_development_dependency 'rake'
32
32
  spec.add_development_dependency 'rspec'
33
- spec.add_development_dependency 'simplecov'
33
+ spec.add_development_dependency 'coverage-kit'
34
34
  spec.add_development_dependency 'simplecov-rcov'
35
35
  spec.add_development_dependency 'coveralls'
36
36
  spec.add_development_dependency 'rubocop'
37
- spec.add_development_dependency 'travis'
37
+ spec.add_development_dependency 'pry'
38
38
  end
@@ -1,4 +1,4 @@
1
1
  # frozen_string_literal: true
2
2
  module HumanizedId
3
- VERSION = '0.2.0'.freeze
3
+ VERSION = '0.3.0'
4
4
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: humanized_id
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
  - Akil Madan
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-02-12 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: '0'
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
113
113
  requirement: !ruby/object:Gem::Requirement
114
114
  requirements:
115
115
  - - ">="
@@ -130,17 +130,18 @@ executables: []
130
130
  extensions: []
131
131
  extra_rdoc_files: []
132
132
  files:
133
+ - ".github/workflows/release.yml"
134
+ - ".github/workflows/ruby.yml"
133
135
  - ".gitignore"
134
136
  - ".rspec"
135
137
  - ".rubocop.yml"
136
138
  - ".ruby-version"
137
- - ".travis.yml"
138
139
  - CHANGELOG.md
139
140
  - CODE_OF_CONDUCT.md
140
141
  - Gemfile
141
142
  - LICENSE.txt
143
+ - README.md
142
144
  - Rakefile
143
- - Readme.md
144
145
  - bin/console
145
146
  - bin/setup
146
147
  - humanized_id.gemspec
@@ -160,15 +161,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
160
161
  requirements:
161
162
  - - ">="
162
163
  - !ruby/object:Gem::Version
163
- version: '2.1'
164
+ version: '2.6'
164
165
  required_rubygems_version: !ruby/object:Gem::Requirement
165
166
  requirements:
166
167
  - - ">="
167
168
  - !ruby/object:Gem::Version
168
169
  version: '0'
169
170
  requirements: []
170
- rubyforge_project:
171
- rubygems_version: 2.5.1
171
+ rubygems_version: 3.2.3
172
172
  signing_key:
173
173
  specification_version: 4
174
174
  summary: Gem to convert an existing id to a human friendly id or generate a new human
@@ -1,13 +0,0 @@
1
- language: ruby
2
- rvm:
3
- - 2.1
4
- - 2.2
5
- - 2.3.0
6
- before_install: gem install bundler -v 1.11.2
7
- notifications:
8
- email:
9
- - support@travellink.com.au
10
- flowdock:
11
- secure: CkLwygzeYX5y3r0eg1bn8wFLYd7qLeOrbrawQb/c/sTehXvU95sE/yZMNdPKD/Mv+IQ+blVVr4NAt8MvbN20Nw/W5EtcsMo2S2msuCsVbwCkvj21Dqm+pTRoD8O2yf3zxX5T7wmZ7PoD7UfE+wIPQ5C7QunODxCPnpPlj/RCaOKejarmdQWXQaT6/lJpzoRDav2oj+bbyPCwQbYGSYWFPFwQ3FylGNp/7eCD3wSPJtmYdunJtx1yVW4wnInTEzqsQ4eJubpwEfQ8vsWq7KbeUf2Z0IaPVtSzwN7gjIncGJ1gS5MGhZkFSsNhY9BvVkWw366qkTcESB3CbF5O9vUrUyWAaiLIHZrqTaqhocZ+4Y6jWJG/gSfLGYTSlVx+qxQ/Pd75bXu6ovlL2HF9lYEL1mbVp4GrOGcQTnw2SLOnLRmsGtf5CEVBE4llQXR0ySzqLCc0Q6XBLgbvG5yg+iKsnDQRZijStUQze/rQVGbtOLxXXyv+mQolaKd475igJYZB29KS0gW3gCJrTQPLRm1D/PPIOHLFysKgPc6kE5UcPWmTrnH8hWKj2K0tiN+u5S4jostoh1riDBr+baLQ5eI9k6KVevM7t1ICiSb9A9WpRfbUtGRHirnte/MgAc0EJ/J/iAT5breaV9urnjzyaYvpH8YzXHMbuw/tlS8jdxlI8qs=
12
- sudo: false
13
- cache: bundler