grouse 1.1.1 → 1.1.3

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: e6cd19c9b8959472c442e3dceb46c1617ac4f366743adba95a9295de9ab23059
4
- data.tar.gz: 68acb2d87daf2b2a2a94d3ab22178b6e9ca03e1ef7d49ede212f7c2ab8bdc114
3
+ metadata.gz: 2a408b5f2f04f5a71fd5e2eebf86b6230d2f52747f48037eb280138b2d592a68
4
+ data.tar.gz: d67cd8de39fe33d369eb1554e6bd18823ec622a8c33625f9f114e9067bc5bf1c
5
5
  SHA512:
6
- metadata.gz: 5e3108e09dc35668532403ce45ab876daf503ade5844bad749919945df32528807b3973deee6b67af8e84d42d668d72eea20748a458db4807a11628333ae40e4
7
- data.tar.gz: bfee6e63ea6bece2169b6977103c03420a5044f348aeac597df6b6c23d7f185fc91c4c6b2856821d33c4fa4601c70af0afa1b56c57d30bc83abb643e2c5d1dca
6
+ metadata.gz: 0b777eb0d4dc730da941341a9382ab18cf1c59c9937a5d18076d1e16687f4860ed8b41fb5d42d360cfe7837408e26ab8065bd47af2d977f1c1d8c56a63022d66
7
+ data.tar.gz: '0929ae6436d59ffb5b3b80af72d33289596d2b9f937285eef891bb813bb26653f9e2ebcd30e79e3f93dd8800095ff7535396bb7f0bcc5e58f30dc8d40273f6d8'
data/.gitignore CHANGED
@@ -1,3 +1,8 @@
1
+ # Ignore, RubyMine Settings.
1
2
  .idea/*
3
+
4
+ # Ignore Gemfile.lock
2
5
  Gemfile.lock
6
+
7
+ # Ignore, .gem
3
8
  grouse-*.gem
data/LICENSE.txt CHANGED
@@ -1,6 +1,7 @@
1
1
  The MIT License
2
2
 
3
- Copyright (c) 2025 Takayuki Kamiyama
3
+ Copyright © 2025 Takayuki Kamiyama
4
+ Copyright © 2026 Team 'Red Eyes, Black Dragon.'
4
5
 
5
6
  Permission is hereby granted, free of charge,
6
7
  to any person obtaining a copy of this software and
data/README.md CHANGED
@@ -1,16 +1,17 @@
1
- [![MIT License](http://img.shields.io/badge/license-MIT-blue.svg?style=flat)](LICENSE) [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT) [![GitHub release](https://img.shields.io/github/release/takkii/grouse.svg?style=flat)](GitHub) [![GitHub Status](https://img.shields.io/github/last-commit/takkii/grouse.svg?style=flat)](GitHub) [![Gem Version](https://badge.fury.io/rb/grouse.svg)](https://badge.fury.io/rb/grouse)
1
+ [![MIT License](http://img.shields.io/badge/license-MIT-blue.svg?style=flat)](LICENSE) [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT) [![GitHub Status](https://img.shields.io/github/last-commit/takkii/grouse.svg?style=flat)](GitHub) [![Gem Version](https://badge.fury.io/rb/grouse.svg)](https://badge.fury.io/rb/grouse)
2
2
 
3
- <br />
3
+ <hr />
4
4
 
5
- <div align="center"><img src="https://github.com/takkii/grouse/blob/main/images/grouse.gif" alt="grouse image" title="logo"></div>
5
+ <div align="center">
6
+ <img src="./images/grouse.gif" alt="grouse image" title="logo">
7
+ </div>
6
8
 
7
- <br />
9
+ <hr />
8
10
 
9
11
  <div align="center">
10
- <p> This project name is grouse.</p>
11
- <p>Use nyasocom_sun_pg_win. </p>
12
- <b> Copyright &copy 2025 Takayuki Kamiyama </b>
13
- <p> Please readme, See the <a href="https://github.com/takkii/grouse/wiki/manual">wiki</a> for how to use. </p>
12
+ <h1><p> This project name is grouse.</p></h1>
13
+ <h3><p><ins> Use nyasocom_sun_pg_win. </ins></p></h3>
14
+ <h4><p> Please readme, See the <a href="https://github.com/takkii/grouse/wiki/manual">wiki</a> for how to use. </p></h4>
14
15
  </div>
15
16
 
16
- <br />
17
+ <hr />
data/grouse.gemspec CHANGED
@@ -20,8 +20,8 @@ Gem::Specification.new do |s|
20
20
  s.require_paths = ["lib"]
21
21
  s.required_ruby_version = ['>= 3.0']
22
22
  s.required_rubygems_version = '~> 3.6.9' if s.respond_to? gem_version
23
- s.summary = "This project is minimum packages"
24
- s.description = "nyasocom_sun packages in ROR."
23
+ s.summary = "grouse seen from the side like to Long-tailed Tit."
24
+ s.description = "In a way quasi AI program, automatic decision in key or value etc."
25
25
  s.metadata["github_repo"] = "https://github.com/takkii/grouse"
26
26
 
27
27
  # Use Windows ENV, speak function v4.0.4.5. exec 'bundle install'.
data/lib/grouse.rb CHANGED
@@ -3,7 +3,7 @@
3
3
  require 'open3'
4
4
  require 'socket'
5
5
 
6
- # module grouse function.
6
+ # module grouse many functions.
7
7
  module Grouse
8
8
  module_function
9
9
 
@@ -47,19 +47,39 @@ module Grouse
47
47
  @version = ENV['NYASOCOMSUN_VERSION']
48
48
  end
49
49
 
50
- # rubygems version
50
+ # Using, rubygems version
51
51
  def gem_version
52
52
  gversion = 'gem -v'
53
53
  stdout_rb, stderr_rb, status_rb = Open3.capture3(gversion)
54
54
  version = stdout_rb.to_s
55
55
  end
56
56
 
57
- # nyasocom tools core version
57
+ # BrokenCircuit
58
+ def recommender_circuit(number_failure, within_times)
59
+ @num_failure = number_failure
60
+ @within = within_times
61
+ @failure = [].to_s
62
+
63
+ if @failure >= @num_failure.to_s
64
+ cutoff = Time.now - @within.to_i
65
+ @failure.split.reject!{|t| t < cutoff.to_s}
66
+ return if @failure.length >= @num_failure.to_i
67
+ end
68
+
69
+ begin
70
+ yield
71
+ rescue
72
+ @failure.to_i << (Time.now).to_i
73
+ nil
74
+ end
75
+ end
76
+
77
+ # grouse version
58
78
  def core_version
59
- '1.1.1'.to_s
79
+ '1.1.3'.to_s
60
80
  end
61
81
  end
62
82
 
63
83
  include Grouse
64
84
 
65
- __END__
85
+ __END__
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: grouse
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.1
4
+ version: 1.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Takayuki Kamiyama
@@ -23,7 +23,7 @@ dependencies:
23
23
  - - "~>"
24
24
  - !ruby/object:Gem::Version
25
25
  version: '4.0'
26
- description: nyasocom_sun packages in ROR.
26
+ description: In a way quasi AI program, automatic decision in key or value etc.
27
27
  email: karuma.reason@gmail.com
28
28
  executables: []
29
29
  extensions: []
@@ -57,7 +57,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
57
57
  - !ruby/object:Gem::Version
58
58
  version: '0'
59
59
  requirements: []
60
- rubygems_version: 3.7.2
60
+ rubygems_version: 4.0.11
61
61
  specification_version: 4
62
- summary: This project is minimum packages
62
+ summary: grouse seen from the side like to Long-tailed Tit.
63
63
  test_files: []