humanized_id 0.3.0 → 0.4.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: b6a1fdbb341fc866ba53dcf2b1ea96c1edf46ecf5f3cc5fba9b9230073c81dba
4
- data.tar.gz: 876e61c83ae3a5155da6a6d3893135670028ea0569f0a5ea160de9a47913d02a
3
+ metadata.gz: 2114e86408727b2f8e25bb0659b03ce1cf9bc6f85b04c896766f0087364c1510
4
+ data.tar.gz: d652c7df4d502f3b32a6e3d1da09a17a2d798de0a86c49c7d84d72d04376e9ef
5
5
  SHA512:
6
- metadata.gz: c6e1f59b6bd45861d3837b83637191c6628896569896221858c998fccf943bbac5ec43775b0e8ac2cca76987474bae939c5341e8fe970761dc9c8fff8b2403bf
7
- data.tar.gz: 7929b55917e96555d3e2a94729deacf8168b78eced3e268d3538ac027f851cba189d9411594e8d242b9e67ea9f3a15ffbeaad25f39c064165d5ed1d86a733a3f
6
+ metadata.gz: d343977b1824c7b03b87ad4f4f7809af635b2f3aeafe91174e38ca3e18705fdc6d5b1ae99332c9e844f0c864fc17179643c5c3540e867b33f910803f405fb4ca
7
+ data.tar.gz: 883fcc4c45c306bcdd2c24fd37593fc95093a98da1901f9f77a8ebd2c9dfd522bd691599bb108a1efead81ae3b1f93adead1cd0bcb5b271db03f62d8cf044ea0
@@ -5,7 +5,7 @@ jobs:
5
5
  strategy:
6
6
  fail-fast: false
7
7
  matrix:
8
- ruby: ["2.6", "2.7", "3.0"]
8
+ ruby: ["3.0", "3.1", "3.2"]
9
9
  runs-on: ubuntu-latest
10
10
  steps:
11
11
  - uses: actions/checkout@v2
@@ -14,3 +14,8 @@ jobs:
14
14
  ruby-version: ${{ matrix.ruby }}
15
15
  bundler-cache: true
16
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/.rubocop.yml CHANGED
@@ -1,5 +1,5 @@
1
1
  AllCops:
2
- TargetRubyVersion: 2.1
2
+ TargetRubyVersion: 3.2
3
3
 
4
4
  Metrics/LineLength:
5
5
  Max: 100
data/.ruby-version CHANGED
@@ -1 +1 @@
1
- 3.0.0
1
+ 3.2.0
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ ## 0.4.0
2
+
3
+ - [PLAT-1175] Update to Ruby 3.2
4
+
1
5
  ## 0.3.0
2
6
 
3
7
  - Use coverage kit to enforce maximum coverage
data/humanized_id.gemspec CHANGED
@@ -25,14 +25,13 @@ 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.6'
28
+ spec.required_ruby_version = '>= 3.0'
29
+ spec.add_runtime_dependency 'securerandom'
29
30
 
30
31
  spec.add_development_dependency 'bundler'
31
32
  spec.add_development_dependency 'rake'
32
33
  spec.add_development_dependency 'rspec'
33
34
  spec.add_development_dependency 'coverage-kit'
34
- spec.add_development_dependency 'simplecov-rcov'
35
- spec.add_development_dependency 'coveralls'
36
35
  spec.add_development_dependency 'rubocop'
37
36
  spec.add_development_dependency 'pry'
38
37
  end
@@ -1,4 +1,4 @@
1
1
  # frozen_string_literal: true
2
2
  module HumanizedId
3
- VERSION = '0.3.0'
3
+ VERSION = '0.4.0'
4
4
  end
data/lib/humanized_id.rb CHANGED
@@ -1,4 +1,6 @@
1
1
  # frozen_string_literal: true
2
+ require 'securerandom'
3
+
2
4
  module HumanizedId
3
5
  DEFAULT_GENERATION_LENGTH = 24
4
6
  SIMILAR_NUMBERS_LETTERS = %w(0 O 1 I L 5 S 8 B).freeze
metadata CHANGED
@@ -1,37 +1,23 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: humanized_id
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.4.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: 2021-01-06 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
- name: bundler
15
- requirement: !ruby/object:Gem::Requirement
16
- requirements:
17
- - - ">="
18
- - !ruby/object:Gem::Version
19
- version: '0'
20
- type: :development
21
- prerelease: false
22
- version_requirements: !ruby/object:Gem::Requirement
23
- requirements:
24
- - - ">="
25
- - !ruby/object:Gem::Version
26
- version: '0'
27
- - !ruby/object:Gem::Dependency
28
- name: rake
14
+ name: securerandom
29
15
  requirement: !ruby/object:Gem::Requirement
30
16
  requirements:
31
17
  - - ">="
32
18
  - !ruby/object:Gem::Version
33
19
  version: '0'
34
- type: :development
20
+ type: :runtime
35
21
  prerelease: false
36
22
  version_requirements: !ruby/object:Gem::Requirement
37
23
  requirements:
@@ -39,7 +25,7 @@ dependencies:
39
25
  - !ruby/object:Gem::Version
40
26
  version: '0'
41
27
  - !ruby/object:Gem::Dependency
42
- name: rspec
28
+ name: bundler
43
29
  requirement: !ruby/object:Gem::Requirement
44
30
  requirements:
45
31
  - - ">="
@@ -53,7 +39,7 @@ dependencies:
53
39
  - !ruby/object:Gem::Version
54
40
  version: '0'
55
41
  - !ruby/object:Gem::Dependency
56
- name: coverage-kit
42
+ name: rake
57
43
  requirement: !ruby/object:Gem::Requirement
58
44
  requirements:
59
45
  - - ">="
@@ -67,7 +53,7 @@ dependencies:
67
53
  - !ruby/object:Gem::Version
68
54
  version: '0'
69
55
  - !ruby/object:Gem::Dependency
70
- name: simplecov-rcov
56
+ name: rspec
71
57
  requirement: !ruby/object:Gem::Requirement
72
58
  requirements:
73
59
  - - ">="
@@ -81,7 +67,7 @@ dependencies:
81
67
  - !ruby/object:Gem::Version
82
68
  version: '0'
83
69
  - !ruby/object:Gem::Dependency
84
- name: coveralls
70
+ name: coverage-kit
85
71
  requirement: !ruby/object:Gem::Requirement
86
72
  requirements:
87
73
  - - ">="
@@ -161,14 +147,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
161
147
  requirements:
162
148
  - - ">="
163
149
  - !ruby/object:Gem::Version
164
- version: '2.6'
150
+ version: '3.0'
165
151
  required_rubygems_version: !ruby/object:Gem::Requirement
166
152
  requirements:
167
153
  - - ">="
168
154
  - !ruby/object:Gem::Version
169
155
  version: '0'
170
156
  requirements: []
171
- rubygems_version: 3.2.3
157
+ rubygems_version: 3.4.1
172
158
  signing_key:
173
159
  specification_version: 4
174
160
  summary: Gem to convert an existing id to a human friendly id or generate a new human