haikunator_ru 1.0.0 → 1.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: 455d991f5a484625b8664ad117b1e7bfdb3638f6d31ca3101112518c97ceff33
4
- data.tar.gz: ca377f48ab22503ca9a12a3a74cc5c10889701a814cbcbb03ee87474a9134acd
3
+ metadata.gz: 23c79b94b88c1281b663b98b814fad42230dcd2554dda68de59f0dddf180a7e6
4
+ data.tar.gz: 6b8cfdbb3e25fb3c694b65fb90cb3b26d6e7530ee748793e239aba6bf8429225
5
5
  SHA512:
6
- metadata.gz: 8e5ee8dcbe7703cddef477b4f91d2466c14c8687a8b4ce24279bf3598a834dea89446dab72b41e4d06c8e2d6c4279a6cb60a98d65c029c870d4d5398e32e29ce
7
- data.tar.gz: d70691e36e9d1b76f62f4f0edd9a01d63310b7981ec44ae22002e844f952789a0e937df913b3e241ebedc9c7f4fba7fe0e81d33bf7378b6a424acdd6865e30d7
6
+ metadata.gz: f1448d54c201379c1392c1a44200c81a9af37f3698941a6e8af8d5088a01fe5dcf8af761f1ce72ed6668b3fba8bf8b54cb98f6145590b8818eba08c19482230f
7
+ data.tar.gz: 9b475f8c90594ae97c54860eae3a772034608625512d5935c82f6b9df137ae7d0b576bc4c3b0d0e97ee34faa42745e30313f2d4b2490a29011fa0dac7a53e716
@@ -0,0 +1,37 @@
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
9
+
10
+ on:
11
+ push:
12
+ branches: [ "master" ]
13
+ pull_request:
14
+ branches: [ "master" ]
15
+
16
+ permissions:
17
+ contents: read
18
+
19
+ jobs:
20
+ test:
21
+
22
+ runs-on: ubuntu-latest
23
+ strategy:
24
+ matrix:
25
+ ruby-version: ['2.6', '2.7', '3.0']
26
+
27
+ steps:
28
+ - uses: actions/checkout@v4
29
+ - name: Set up Ruby
30
+ # To automatically get bug fixes and new Ruby versions for ruby/setup-ruby,
31
+ # change this to (see https://github.com/ruby/setup-ruby#versioning):
32
+ uses: ruby/setup-ruby@v1
33
+ with:
34
+ ruby-version: ${{ matrix.ruby-version }}
35
+ bundler-cache: true # runs 'bundle install' and caches installed gems automatically
36
+ - name: Run tests
37
+ run: bundle exec rspec
@@ -1,3 +1,3 @@
1
1
  module HaikunatorRu
2
- VERSION = "1.0.0"
2
+ VERSION = "1.0.1"
3
3
  end
data/lib/haikunator_ru.rb CHANGED
@@ -12,7 +12,7 @@ module HaikunatorRu
12
12
  def build(token_range, delimiter)
13
13
  nouns_all = nouns.values.flatten
14
14
  noun = nouns_all[random_seed % nouns_all.length]
15
- gender = nouns.find{_2.include?(noun)}[0]
15
+ gender = nouns.find{|_gender, nouns_array| nouns_array.include?(noun)}[0]
16
16
  sections = [
17
17
  adjectives[gender][random_seed % adjectives[gender].length],
18
18
  noun,
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: haikunator_ru
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - HorteWolf01
@@ -60,6 +60,7 @@ extensions: []
60
60
  extra_rdoc_files: []
61
61
  files:
62
62
  - ".coveralls.yml"
63
+ - ".github/workflows/ruby.yml"
63
64
  - ".gitignore"
64
65
  - ".rspec"
65
66
  - ".rubocop.yml"