Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 14 additions & 14 deletions .github/workflows/ruby.yml
Original file line number Diff line number Diff line change
@@ -1,31 +1,31 @@
# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.
# This workflow will download a prebuilt Ruby version, install dependencies and run tests with Rake
# For more information see: https://github.com/marketplace/actions/setup-ruby-jruby-and-truffleruby

name: Ruby

on:
push:
branches: [ main ]
branches: [main]
pull_request:
branches: [ main ]
branches: [main]

permissions:
contents: read

jobs:
test:

runs-on: ubuntu-latest
strategy:
matrix:
ruby-version: ['2.6', '2.7', '3.0', '3.1', '3.2']
ruby-version: ['3.1', '3.2', '3.3', '3.4', 'jruby-9.4', 'jruby-10.0']

steps:
- uses: actions/checkout@v2
- name: Set up Java for JRuby 10.0
if: matrix.ruby-version == 'jruby-10.0'
uses: actions/setup-java@v5
with:
distribution: 'temurin'
java-version: '21'
- name: Checkout repository
uses: actions/checkout@v6
- name: Set up Ruby
# To automatically get bug fixes and new Ruby versions for ruby/setup-ruby,
# change this to (see https://github.com/ruby/setup-ruby#versioning):
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby-version }}
Expand Down
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# Changelog

## Unreleased

## 1.0.0

- **Breaking change:** Update Money gem dependency to ~> 7.0. See the [Money 7.0 upgrading guide](https://github.com/RubyMoney/money/blob/main/UPGRADING-7.0.md)
- **Breaking change:** Drop support for Ruby < 3.1
- Update tests for Money 7.0 currency symbol changes (AMD, BHD, GEL)
Comment thread
yukideluxe marked this conversation as resolved.
Outdated

## 0.1.1

- Bumped money dependency to >= 6.9.0
Expand Down
16 changes: 14 additions & 2 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,17 @@
source 'https://rubygems.org'
# frozen_string_literal: true

gem 'pry', :require => false
source "https://rubygems.org"

# Debugger
gem "pry", require: false

# Specs
gem "rspec", "~> 3.4"

# Tasks
gem "rake"

# Documentation
gem "yard", "~> 0.9"

gemspec
22 changes: 2 additions & 20 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,29 +1,11 @@
⚠️ **Maintainer(s) Wanted — RubyMoney Needs New Stewardship**
Comment thread
sunny marked this conversation as resolved.

Hi! I’m the current (and only) active maintainer, and I no longer have the capacity to look after this project—or any other gems under the **RubyMoney** GitHub organization.

**What we’re looking for:** An individual or team willing to take ownership of *the entire organization* (all gems, docs, CI, and Rubygems ownership).

**Timeline**

| Date | Action |
|------|--------|
| **Now → 30 Sep 2025** | Open an issue titled “Maintainer application” (or email `shane@emmons.io`) and tell us who you are, why you care, and your plan for the libraries. |
| **1 Oct 2025** | If no successor is confirmed, every repository in RubyMoney will be **archived (read-only)**. No new issues, PRs, or releases will be possible after that point. |

Security-critical patches will still be merged during the transition window, but no new features will be accepted.

— Shane Emmons (current steward) • June 23 2025


# RubyMoney - Money Heuristics

This is a module for heuristic analysis of the string input for the
[money gem](https://github.com/RubyMoney/money). It was formerly part of the gem.

[![Gem Version](https://badge.fury.io/rb/money-heuristics.svg)](https://rubygems.org/gems/money-heuristics)
[![Build Status](https://travis-ci.org/RubyMoney/money-heuristics.svg?branch=master)](https://travis-ci.org/RubyMoney/money-heuristics)
[![License](https://img.shields.io/github/license/RubyMoney/money-heuristics.svg)](https://opensource.org/licenses/MIT)
[![Ruby](https://github.com/RubyMoney/money-heuristics/actions/workflows/ruby.yml/badge.svg)](https://github.com/RubyMoney/money-heuristics/actions/workflows/ruby.yml)
[![License](https://img.shields.io/github/license/RubyMoney/money-heuristics.svg)](https://opensource.org/license/MIT)

## Installation

Expand Down
2 changes: 2 additions & 0 deletions lib/money-heuristics.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require 'money/currency'

require 'money-heuristics/string'
Expand Down
4 changes: 3 additions & 1 deletion lib/money-heuristics/version.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

module MoneyHeuristics
VERSION = '0.2.0'
VERSION = '1.0.0'
end
28 changes: 16 additions & 12 deletions money-heuristics.gemspec
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
lib = File.expand_path('../lib', __FILE__)
# frozen_string_literal: true

lib = File.expand_path("lib", __dir__)
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)

require "money-heuristics/version"
Expand All @@ -8,22 +10,24 @@ Gem::Specification.new do |s|
s.version = MoneyHeuristics::VERSION
s.platform = Gem::Platform::RUBY
s.authors = ['Shane Emmons', 'Anthony Dmitriyev']
s.email = ['shane@emmons.io']
s.email = ['shane@emmons.io', 'anthony.dmitriyev@gmail.com']
s.homepage = 'https://rubymoney.github.io/money-heuristics'
s.summary = 'Heuristic module for for the money gem'
s.description = 'This is a module for heuristic analysis of the string input for the money gem. It was formerly part of the gem.'
s.summary = 'Heuristic module for the money gem'
s.description = 'Heuristic module for analyzing currency information from strings for the money gem. It was formerly part of the money gem.'
s.license = 'MIT'

s.add_dependency 'money', '>= 6.9.0'
s.add_dependency 'sixarm_ruby_unaccent', ['>= 1.1.1', '< 2']
s.add_dependency 'money', '~> 7.0'

s.add_development_dependency "bundler"
s.add_development_dependency "rake"
s.add_development_dependency "rspec", "~> 3.4.0"
s.add_development_dependency "yard", "~> 0.9.11"
s.required_ruby_version = ">= 3.1"

s.files = `git ls-files`.split($/)
s.executables = s.files.grep(%r{^bin/}) { |f| File.basename(f) }
s.test_files = s.files.grep(%r{^(test|spec|features)/})
s.files = `git ls-files -z -- lib/* CHANGELOG.md LICENSE money-heuristics.gemspec README.md`.split("\x0")
s.require_paths = ["lib"]

if s.respond_to?(:metadata)
s.metadata["changelog_uri"] = "https://github.com/RubyMoney/money-heuristics/blob/main/CHANGELOG.md"
s.metadata["source_code_uri"] = "https://github.com/RubyMoney/money-heuristics/"
s.metadata["bug_tracker_uri"] = "https://github.com/RubyMoney/money-heuristics/issues"
s.metadata["rubygems_mfa_required"] = "true"
end
end
Loading