ordinalize_full 2.0.0 → 3.0.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: 5db56ba1c97a668a502d971c780523694742eb242e582616d9f982f2fe162126
4
- data.tar.gz: 39f3ffcdf15ec763c63e5fd3c6aefba839964f290b6bfd3bda32525dfb6f18d7
3
+ metadata.gz: 7174b3e018cd6b0f1b7b41a7d30fe3994726c81029d6c197e46184a58ed3e690
4
+ data.tar.gz: d76be4c1a6205e4e5c62e4d32d776281cda48d120bf05d78778ccb3383d78ae8
5
5
  SHA512:
6
- metadata.gz: a54b9e3f9f04d9dea5e881099b8c150a8af7488f8183933551bdde8281c519e340a33724298b1e8da7e91f61d440313b548faddede3aa8f288936d54313ae179
7
- data.tar.gz: e4dbf56069ebbdfa4d08498cf36472baa09727b1182c53d707024a35cf538045f9fe2177d713b8bd44b268dbceba26339744e7270287bac62f6bf63daff9c0ab
6
+ metadata.gz: a39b56d13c8026e98a2e08eec3fdc01152d60becd2942b1cb183bf56cf43524d1b5520e75cc9568948d371fc5e376ab61024c54d0ef903aa0a727b0ba0a184e1
7
+ data.tar.gz: 672aed32b546b3346dd305008493d0665c83595ebb7b22f6ac9f1c20feffff0025928df0103fd8d12283da073e074a3ea8b4274ac60439b34f39add6c1e7222d
@@ -0,0 +1,17 @@
1
+ name: RuboCop
2
+
3
+ on: [push, pull_request]
4
+
5
+ jobs:
6
+ lint:
7
+ runs-on: ubuntu-latest
8
+
9
+ steps:
10
+ - uses: actions/checkout@v3
11
+ - name: Set up Ruby
12
+ uses: ruby/setup-ruby@v1
13
+ with:
14
+ ruby-version: 3.2
15
+ bundler-cache: true # 'bundle install' and cache
16
+ - name: Run RuboCop
17
+ run: bundle exec rubocop --parallel
@@ -0,0 +1,26 @@
1
+ name: Tests
2
+
3
+ on: [push, pull_request]
4
+
5
+ jobs:
6
+ test:
7
+ runs-on: ubuntu-latest
8
+
9
+ strategy:
10
+ fail-fast: false
11
+ matrix:
12
+ ruby-version:
13
+ - head
14
+ - '3.2'
15
+ - '3.1'
16
+ - '3.0'
17
+
18
+ steps:
19
+ - uses: actions/checkout@v3
20
+ - name: Set up Ruby ${{ matrix.ruby-version }}
21
+ uses: ruby/setup-ruby@v1
22
+ with:
23
+ ruby-version: ${{ matrix.ruby-version }}
24
+ bundler-cache: true # 'bundle install' and cache
25
+ - name: Run tests
26
+ run: bundle exec rake
data/.rubocop.yml CHANGED
@@ -1,5 +1,9 @@
1
+ require:
2
+ - rubocop-rake
3
+ - rubocop-rspec
4
+
1
5
  AllCops:
2
- TargetRubyVersion: 2.6
6
+ TargetRubyVersion: 3.0
3
7
  NewCops: enable
4
8
 
5
9
  Metrics:
data/LICENSE.txt CHANGED
@@ -1,4 +1,4 @@
1
- Copyright (c) 2014-2021 Cédric Félizard
1
+ Copyright (c) 2014-2023 Cédric Félizard
2
2
 
3
3
  MIT License
4
4
 
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # OrdinalizeFull
2
2
 
3
- [![Build Status](https://travis-ci.org/infertux/ordinalize_full.svg?branch=master)](https://travis-ci.org/infertux/ordinalize_full)
3
+ [![Build Status](https://github.com/infertux/ordinalize_full/actions/workflows/tests.yml/badge.svg)](https://github.com/infertux/ordinalize_full/actions)
4
4
  [![Gem Version](https://badge.fury.io/rb/ordinalize_full.svg)](https://badge.fury.io/rb/ordinalize_full)
5
5
 
6
6
  Like Rails' [ordinalize](http://api.rubyonrails.org/classes/ActiveSupport/Inflector.html#method-i-ordinalize) method but with the ability to return the ordinal string spelled out in full words such as _"first"_, _"second"_, _"third"_.
@@ -5,7 +5,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
5
5
 
6
6
  Gem::Specification.new do |spec|
7
7
  spec.name = "ordinalize_full"
8
- spec.version = "2.0.0"
8
+ spec.version = "3.0.0"
9
9
  spec.authors = ["Cédric Félizard"]
10
10
  spec.email = ["cedric@felizard.fr"]
11
11
  spec.summary = "Turns a number into an ordinal string such as first, second, third or 1st, 2nd, 3rd."
@@ -15,10 +15,9 @@ Gem::Specification.new do |spec|
15
15
 
16
16
  spec.files = `git ls-files`.split($/)
17
17
  spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
18
- spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
19
18
  spec.require_paths = ["lib"]
20
19
 
21
- spec.required_ruby_version = ">= 2.6.6"
20
+ spec.required_ruby_version = ">= 3.0.0"
22
21
 
23
22
  spec.add_dependency "i18n", "~> 1.8"
24
23
 
@@ -27,4 +26,7 @@ Gem::Specification.new do |spec|
27
26
  spec.add_development_dependency "rake"
28
27
  spec.add_development_dependency "rspec", "~> 3"
29
28
  spec.add_development_dependency "rubocop"
29
+ spec.add_development_dependency "rubocop-rake"
30
+ spec.add_development_dependency "rubocop-rspec"
31
+ spec.metadata["rubygems_mfa_required"] = "true"
30
32
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ordinalize_full
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.0
4
+ version: 3.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Cédric Félizard
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-03-18 00:00:00.000000000 Z
11
+ date: 2023-01-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: i18n
@@ -94,6 +94,34 @@ dependencies:
94
94
  - - ">="
95
95
  - !ruby/object:Gem::Version
96
96
  version: '0'
97
+ - !ruby/object:Gem::Dependency
98
+ name: rubocop-rake
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - ">="
102
+ - !ruby/object:Gem::Version
103
+ version: '0'
104
+ type: :development
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - ">="
109
+ - !ruby/object:Gem::Version
110
+ version: '0'
111
+ - !ruby/object:Gem::Dependency
112
+ name: rubocop-rspec
113
+ requirement: !ruby/object:Gem::Requirement
114
+ requirements:
115
+ - - ">="
116
+ - !ruby/object:Gem::Version
117
+ version: '0'
118
+ type: :development
119
+ prerelease: false
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ requirements:
122
+ - - ">="
123
+ - !ruby/object:Gem::Version
124
+ version: '0'
97
125
  description: Turns a number into an ordinal string such as first, second, third or
98
126
  1st, 2nd, 3rd.
99
127
  email:
@@ -102,9 +130,10 @@ executables: []
102
130
  extensions: []
103
131
  extra_rdoc_files: []
104
132
  files:
133
+ - ".github/workflows/rubocop.yml"
134
+ - ".github/workflows/tests.yml"
105
135
  - ".gitignore"
106
136
  - ".rubocop.yml"
107
- - ".travis.yml"
108
137
  - Gemfile
109
138
  - LICENSE.txt
110
139
  - README.md
@@ -121,7 +150,8 @@ files:
121
150
  homepage: https://github.com/infertux/ordinalize_full
122
151
  licenses:
123
152
  - MIT
124
- metadata: {}
153
+ metadata:
154
+ rubygems_mfa_required: 'true'
125
155
  post_install_message:
126
156
  rdoc_options: []
127
157
  require_paths:
@@ -130,17 +160,16 @@ required_ruby_version: !ruby/object:Gem::Requirement
130
160
  requirements:
131
161
  - - ">="
132
162
  - !ruby/object:Gem::Version
133
- version: 2.6.6
163
+ version: 3.0.0
134
164
  required_rubygems_version: !ruby/object:Gem::Requirement
135
165
  requirements:
136
166
  - - ">="
137
167
  - !ruby/object:Gem::Version
138
168
  version: '0'
139
169
  requirements: []
140
- rubygems_version: 3.1.4
170
+ rubygems_version: 3.3.26
141
171
  signing_key:
142
172
  specification_version: 4
143
173
  summary: Turns a number into an ordinal string such as first, second, third or 1st,
144
174
  2nd, 3rd.
145
- test_files:
146
- - spec/ordinalize_full_spec.rb
175
+ test_files: []
data/.travis.yml DELETED
@@ -1,5 +0,0 @@
1
- language: ruby
2
- rvm:
3
- - 3.0.0
4
- - 2.7.2
5
- - 2.6.6