fat_core 6.0.0 → 7.0.1

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
2
  SHA256:
3
- metadata.gz: 771688ad5fad07ba4d5bc75d160a73176832478a745b47627322aa69551b70a8
4
- data.tar.gz: 22fe86a39c44b1e1745c92738c5b30ff691d32bfb151c9e85e7c7aa311c07bc1
3
+ metadata.gz: 2e8f4f5a7755b961eefa799f5450586a9e3f008110c6dc179fd90e56a12557f3
4
+ data.tar.gz: fe9a35502b6f1453f5d0f2afdf8b83f91b3a43b4bf0f19b00baae2e38eac37e0
5
5
  SHA512:
6
- metadata.gz: 462a89d63a05b8a6157d3ac28851aae0429e870a9bb348bf966a4e506baf9b98b8237a5e4b03e82577a128bcd3a736d4a32f138c1f16dda3af1fec8d116f05a0
7
- data.tar.gz: d8ce29fc89c5a20cc730cd28f43cf2f5b359bb65f2bc9949fd41a7adaef4d56be84542008e339be5314d2181a9227b3f1597a65e6da9df47854912442db5c1bb
6
+ metadata.gz: 9ae1381cbb8d46700dc0258dd6eabcc68f50949d7ca7f878bb4013939ca43c88d365bebbb9c32f232f030c2baf7a962a69b7df1579836425ad748c07e9617dab
7
+ data.tar.gz: c76f9b88fb4f5d705091c8f0d5aeb206ef89efafebaabff067b6421cf957f58695c6c8d3a670f6fdaad0aaa5a2260683fcb7b7bc509810c62f3269326d3e5aa7
@@ -0,0 +1,54 @@
1
+ # This workflow uses actions that are not certified by GitHub.
2
+ # They are provided by a third-party and are governed by
3
+ # separate terms of service, privacy policy, and support
4
+ # documentation.
5
+ # This workflow will download a prebuilt Ruby version, install dependencies and run tests with Rake
6
+ # For more information see: https://github.com/marketplace/actions/setup-ruby-jruby-and-truffleruby
7
+
8
+ name: Ruby CI (setup-ruby)
9
+
10
+ on:
11
+ push:
12
+ pull_request:
13
+
14
+ jobs:
15
+ test:
16
+ runs-on: ubuntu-24.04
17
+ strategy:
18
+ matrix:
19
+ ruby: [3.2.2, 3.3.0, 3.4.0]
20
+ steps:
21
+ - name: Check out code
22
+ uses: actions/checkout@v4
23
+
24
+ - name: Install build dependencies (needed if Ruby must be compiled)
25
+ run: |
26
+ sudo apt-get update
27
+ sudo apt-get install -y --no-install-recommends \
28
+ build-essential autoconf bison libssl-dev libreadline-dev \
29
+ zlib1g-dev libyaml-dev libffi-dev libgdbm-dev libncurses5-dev \
30
+ libgmp-dev pkg-config
31
+
32
+ - name: Set up Ruby
33
+ uses: ruby/setup-ruby@v1
34
+ with:
35
+ ruby-version: ${{ matrix.ruby }}
36
+ bundler-cache: true
37
+
38
+ - name: Verify Ruby
39
+ run: |
40
+ ruby -v
41
+ gem -v
42
+ shell: bash
43
+
44
+ - name: Install gems
45
+ run: |
46
+ gem install bundler --conservative
47
+ # optional: use vendor/bundle to keep gems within repo workspace
48
+ bundle config set --local path 'vendor/bundle' || true
49
+ bundle install --jobs 4 --retry 3
50
+ shell: bash
51
+
52
+ - name: Run tests
53
+ run: bundle exec rake
54
+ shell: bash
data/.rubocop.yml CHANGED
@@ -1,5 +1,7 @@
1
- inherit_from:
2
- - ~/.rubocop.yml
1
+ # Inherit the shared config from the rubocop-ddoherty gem (git-hosted on GitHub)
2
+ inherit_gem:
3
+ rubocop-ddoherty: 'config/default.yml'
3
4
 
5
+ # Project-specific adjustments:
4
6
  Style/BitwisePredicate:
5
7
  Enabled: false
data/.simplecov CHANGED
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  # -*- mode: ruby -*-
2
4
 
3
5
  SimpleCov.start do
data/CHANGELOG.org ADDED
@@ -0,0 +1,49 @@
1
+ * Version 7.0.0 from Version 6.0.0
2
+ ** Enumerable
3
+ - Remove =#groups_of= as duplicative of =each_slice=
4
+ ** Hash
5
+ - Rename =delete_with_value= to =delete_with_values!= to make it clear that
6
+ the Hash is modified in place,
7
+ - Add =delete_with_value= as a non-mutating variant
8
+ - Change arg to =keys_with_value(vals)= to allow variable arguments for
9
+ multiple values instead of requiring an Array,
10
+ - Allow =<<= operator to merge any =Enumerable= as well as a =Hash=
11
+ ** Numeric
12
+ - Enhance =#tex_quote= to put special numbers such as =Math::PI=, =Math::E=,
13
+ and =Float::INFINITY= in TeX notation, so, e.g., Complex(Math::E,
14
+ Math:PI).tex_quote will render to "$\\pi+e i$", Rationals will be rendered
15
+ as fractions, etc.
16
+ ** Range
17
+ - =Range#gaps= now better handles Ranges with countable endpoints that need
18
+ =:succ= and =:pred= methods,
19
+ - =tex_quote= applies =#tex_quote= to endpoints if they respond to a =#tex_quote=
20
+ method,
21
+ - Check argument Ranges to =#gaps=, =#spanned_by?=, and =#overlaps= for
22
+ compatibility with the subject Range,
23
+ ** String
24
+ - =String#fuzzy_match= changes the semantics of the string matcher argument:
25
+ 1. an internal ':' preceded and followed by non-whitespace now only applies
26
+ to the word following it to indicate that the word must be a word
27
+ boundary, so 'hel:wor' matches 'Shell worms' as well as 'Hello, world'.
28
+ 2. an internal ':' preceded by whitespace but followed by non-whitespace is
29
+ also treated as requiring a word boundary for the following word but not
30
+ the preceding word, as in 1, so 'hel :wor'
31
+ 3. but an internal ':' preceded by non-whitespace but followed by whitespace
32
+ requires a word boundary after the preceding word, so 'hel: wor'
33
+ 4. a lone matcher now allows a match anywhere in the subject text regardless
34
+ of boundaries; the prior version added a word boundary restriction to the
35
+ bare matcher, so before 'zz' would not match "Pizza" since 'zz' did not
36
+ occur at the end of word, but now 'zz' will match "Pizza". Rule 3 above
37
+ allows putting a boundary restriction on the matcher with 'zz: ' as
38
+ before.
39
+ 5. Leading and trailing ':' continue to require the text to occur at the
40
+ beginning or end, respectively, of the subject string, so ':hel' and
41
+ 'ld:' match "Hello, world" but ':wor' and 'wor:' do not.
42
+ - =String#number= no longer considers a hex number with a decimal point to be
43
+ in the form of a number
44
+ - provide a :pred method in a refinement accesses with 'using StringPred
45
+ - =String#entitle= no longer tries to detect general acronyms for upper case
46
+ handling since it was unreliable. Thus, ="ibm corporation".enetitle=
47
+ becomers "Ibm Corporation" rather than "IBM corporation."
48
+ ** Kernel
49
+ - removed the =Kernel.time_it= method since Benchmark already does this better.
data/Gemfile CHANGED
@@ -1,13 +1,14 @@
1
+ # frozen_string_literal: true
2
+
1
3
  source 'https://rubygems.org'
2
4
 
3
5
  # Specify your gem's dependencies in fat_core.gemspec
4
6
  gemspec
5
7
 
6
8
  group :development do
7
- gem 'rubocop-shopify', require: false
8
- gem 'rubocop-rspec', require: false
9
- gem 'rubocop-performance', require: false
10
- gem 'rubocop-rake', require: false
9
+ # rubocop and the shared config gem:
10
+ gem 'rubocop', require: false
11
+ gem 'rubocop-ddoherty', git: 'https://github.com/ddoherty03/rubocop-ddoherty.git', branch: 'master', require: false
11
12
  gem 'bundler'
12
13
  gem 'debug', '>= 1.0.0'
13
14
  gem 'pry'