abbrev 0.1.1 → 0.1.2

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: 562eabd9587bd1c758c1efaad5166ba69d4c5dc700d7bd45e54edc49cf07fcad
4
- data.tar.gz: dfb4cf2a3918558468ace44d5db65ec74df22d6b9366b8eb6298da12b44f3abf
3
+ metadata.gz: e5a8f3a9bd5684a193b45c77f1120d28088d9b0fd0bfe750326de395d9f93a9b
4
+ data.tar.gz: b4a9e47c146a95e6d17e6c5450373f3f383704dd8113b435a7b9572162c36654
5
5
  SHA512:
6
- metadata.gz: 8767ebcfca08187c48f0f76821310f564dee6d63443fc42e437ae191f6983636431d839ce3a3adab2b1f1557b4b2abd68c8413da53f7b4cf9ec108d28099ecb5
7
- data.tar.gz: '01695c0328a25d8b9e4f4bf6f20803288418d272fe1ac446e105f212b5d3ecbaf0fbfd98210999cd6061b8854ed5031abc8383c87fc3081e090b97f699a1a3b2'
6
+ metadata.gz: 8f52850c6cc2dbda0b8def03c9af52be320ba0324facbdbc6331d38c2d54560a3f65c88a323f5973a64eac2e3d66dcb76ded8147336bea1b922534b2f24615c7
7
+ data.tar.gz: 06b9d0ab20955f7f5256d8eae8925676c06e9fdcf20eee4acfd9cad30f06d05300976f1c7a8a49d7f2b3bae7612976066aca788ad04eabb62ed4d9d2f7ad1952
@@ -4,24 +4,23 @@ on: [push, pull_request]
4
4
 
5
5
  jobs:
6
6
  ruby-versions:
7
- runs-on: ubuntu-latest
8
- outputs:
9
- versions: ${{ steps.versions.outputs.value }}
10
- steps:
11
- - id: versions
12
- run: |
13
- versions=$(curl -s 'https://cache.ruby-lang.org/pub/misc/ci_versions/all.json' | jq -c '. + ["2.5"]')
14
- echo "::set-output name=value::${versions}"
7
+ uses: ruby/actions/.github/workflows/ruby_versions.yml@master
8
+ with:
9
+ min_version: 2.5
10
+
15
11
  test:
16
12
  needs: ruby-versions
17
13
  name: build (${{ matrix.ruby }} / ${{ matrix.os }})
18
14
  strategy:
19
15
  matrix:
20
16
  ruby: ${{ fromJson(needs.ruby-versions.outputs.versions) }}
21
- os: [ ubuntu-latest, macos-latest ]
17
+ os: [ ubuntu-latest, macos-latest, windows-latest ]
18
+ exclude:
19
+ - { os: windows-latest, ruby: truffleruby-head }
20
+ - { os: windows-latest, ruby: truffleruby }
22
21
  runs-on: ${{ matrix.os }}
23
22
  steps:
24
- - uses: actions/checkout@v3
23
+ - uses: actions/checkout@v4
25
24
  - name: Set up Ruby
26
25
  uses: ruby/setup-ruby@v1
27
26
  with:
data/abbrev.gemspec CHANGED
@@ -1,6 +1,13 @@
1
+ name = File.basename(__FILE__, ".gemspec")
2
+ version = ["lib", Array.new(name.count("-")+1, ".").join("/")].find do |dir|
3
+ break File.foreach(File.join(__dir__, dir, "#{name.tr('-', '/')}.rb")) do |line|
4
+ /^\s*VERSION\s*=\s*"(.*)"/ =~ line and break $1
5
+ end rescue nil
6
+ end
7
+
1
8
  Gem::Specification.new do |spec|
2
- spec.name = "abbrev"
3
- spec.version = "0.1.1"
9
+ spec.name = name
10
+ spec.version = version
4
11
  spec.authors = ["Akinori MUSHA"]
5
12
  spec.email = ["knu@idaemons.org"]
6
13
 
data/lib/abbrev.rb CHANGED
@@ -47,6 +47,7 @@
47
47
  # "w" => "winter" }
48
48
 
49
49
  module Abbrev
50
+ VERSION = "0.1.2"
50
51
 
51
52
  # Given a set of strings, calculate the set of unambiguous abbreviations for
52
53
  # those strings, and return a hash where the keys are all the possible
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: abbrev
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Akinori MUSHA
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-12-14 00:00:00.000000000 Z
11
+ date: 2023-12-16 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Calculates a set of unique abbreviations for a given set of strings
14
14
  email:
@@ -50,7 +50,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
50
50
  - !ruby/object:Gem::Version
51
51
  version: '0'
52
52
  requirements: []
53
- rubygems_version: 3.4.0.dev
53
+ rubygems_version: 3.5.0.dev
54
54
  signing_key:
55
55
  specification_version: 4
56
56
  summary: Calculates a set of unique abbreviations for a given set of strings