grouse 1.1.0 → 1.1.2

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: 742880e51e5f771a340c458fe55b07945c9bad15eb4fe20cc04c7bfa5811cf3e
4
- data.tar.gz: e6c7b677f75f485b0a51eab45eff40f4a8f91288479b3fc43e66c9f5b91f6916
3
+ metadata.gz: '01286b2596f70f2791350ee331a344e71d8878059a0cf85489f805862188f8e0'
4
+ data.tar.gz: 65bebb4d42d7d4c7c1ee614444c1bff1990cda4ce380b76537eb9b1d886e3c2a
5
5
  SHA512:
6
- metadata.gz: cb8e49dacc7ec2b028edb7b01a08938d4f663670105943d35083c9e69159f4fdf11d493a67de0a4f4baf7503c623875d69d1c0fd2848e6b6b142cfad77f4f3eb
7
- data.tar.gz: c42eb1cd931b08319d36cda912b1c356048e58b1f14aee55ab980636e39072f423e611a207fb48cc877bd8a07bfdf6f582ab3fe2505af1806550b3b13abe497c
6
+ metadata.gz: 3483b193ac7b117e078036b4c9bc4f762ccd73fde7a331bf8d231dedbc82f09040bee4db39e41f4dc66059832306b7296a93e4f26ee670022b70e9a1d8c974cc
7
+ data.tar.gz: 2449556953c32079f039803b0271982a380a57d0fe71612e68692c428fd70fe06dbafe62e312e650e414539c919a3bb6113a35f713a1be0e72a8ff0bb3560359
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
@@ -4,11 +4,10 @@ lib = File.expand_path('../lib', __FILE__)
4
4
  $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
5
5
 
6
6
  require "#{File.dirname(__FILE__)}/req/rubygems"
7
- require 'nym'
8
7
 
9
8
  Gem::Specification.new do |s|
10
9
  s.name = "grouse"
11
- s.version = CoreNYM.core_version
10
+ s.version = core_version
12
11
  s.authors = ["Takayuki Kamiyama"]
13
12
  s.email = "karuma.reason@gmail.com"
14
13
  s.extra_rdoc_files = [
@@ -20,9 +19,9 @@ Gem::Specification.new do |s|
20
19
  s.licenses = ["MIT"]
21
20
  s.require_paths = ["lib"]
22
21
  s.required_ruby_version = ['>= 3.0']
23
- s.required_rubygems_version = '~> 3.6.9' if s.respond_to? CoreNYM.gem_version
24
- s.summary = "This project is minimum packages"
25
- s.description = "nyasocom_sun packages in ROR."
22
+ s.required_rubygems_version = '~> 3.6.9' if s.respond_to? gem_version
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."
26
25
  s.metadata["github_repo"] = "https://github.com/takkii/grouse"
27
26
 
28
27
  # Use Windows ENV, speak function v4.0.4.5. exec 'bundle install'.
data/lib/grouse.rb CHANGED
@@ -1,8 +1,9 @@
1
1
  # frozen_string_literal: true
2
2
 
3
+ require 'open3'
3
4
  require 'socket'
4
5
 
5
- # module grouse function.
6
+ # module grouse many functions.
6
7
  module Grouse
7
8
  module_function
8
9
 
@@ -25,8 +26,40 @@ module Grouse
25
26
  ai.ipv4? && !ai.ipv4_loopback?
26
27
  end.ip_address
27
28
  end
29
+
30
+ def koyomi
31
+ dt = Time.new.getlocal('+09:00')
32
+ week = %w(日 月 火 水 木 金 土)[dt.wday]
33
+ @himekuri = "#{dt.year}年" + "#{dt.month}月" + "#{dt.day}日" + ' : '.to_s + "#{dt.hour}時"+"#{dt.min}分"+"#{dt.sec}秒" + ' : '.to_s + week + "曜日"
34
+ end
35
+
36
+ # libgroonga version in pgroonga
37
+ def pg_version
38
+ sql = "SHOW pgroonga.libgroonga_version;"
39
+ query = ActiveRecord::Base.connection.select_all(sql).to_a
40
+ pg_string = (query).to_s.gsub(/[^A-Za-z]/, ' ').rstrip
41
+ pg_number = (query).to_s.gsub(/[^.0-9A-Za-z]/, '').rstrip.delete("A-Za-z").delete_prefix(".").delete_suffix(".")
42
+ @pg_version = pg_string + " " + pg_number
43
+ end
44
+
45
+ # version number x.x
46
+ def version
47
+ @version = ENV['NYASOCOMSUN_VERSION']
48
+ end
49
+
50
+ # Using, rubygems version
51
+ def gem_version
52
+ gversion = 'gem -v'
53
+ stdout_rb, stderr_rb, status_rb = Open3.capture3(gversion)
54
+ version = stdout_rb.to_s
55
+ end
56
+
57
+ # grouse version
58
+ def core_version
59
+ '1.1.2'.to_s
60
+ end
28
61
  end
29
62
 
30
63
  include Grouse
31
64
 
32
- __END__
65
+ __END__
data/req/rubygems.rb CHANGED
@@ -2,6 +2,7 @@
2
2
 
3
3
  # dependent file or library.
4
4
  # --------------------------------------
5
+ require 'grouse'
5
6
  require 'version'
6
7
  require 'bmi'
7
8
  # --------------------------------------
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.0
4
+ version: 1.1.2
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: []
@@ -37,7 +37,6 @@ files:
37
37
  - grouse.gemspec
38
38
  - images/grouse.gif
39
39
  - lib/grouse.rb
40
- - lib/nym.rb
41
40
  - req/rubygems.rb
42
41
  homepage: https://github.com/takkii/grouse
43
42
  licenses:
@@ -58,7 +57,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
58
57
  - !ruby/object:Gem::Version
59
58
  version: '0'
60
59
  requirements: []
61
- rubygems_version: 3.7.2
60
+ rubygems_version: 3.6.9
62
61
  specification_version: 4
63
- summary: This project is minimum packages
62
+ summary: grouse seen from the side like to Long-tailed Tit.
64
63
  test_files: []
data/lib/nym.rb DELETED
@@ -1,41 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require 'open3'
4
-
5
- # CoreNYM version in .env
6
- class CoreNYM
7
- # current date.
8
- def self.koyomi
9
- dt = Time.new.getlocal('+09:00')
10
- week = %w(日 月 火 水 木 金 土)[dt.wday]
11
- @himekuri = "#{dt.year}年" + "#{dt.month}月" + "#{dt.day}日" + ' : '.to_s + "#{dt.hour}時"+"#{dt.min}分"+"#{dt.sec}秒" + ' : '.to_s + week + "曜日"
12
- end
13
-
14
- # libgroonga version in pgroonga
15
- def self.pg_version
16
- sql = "SHOW pgroonga.libgroonga_version;"
17
- query = ActiveRecord::Base.connection.select_all(sql).to_a
18
- pg_string = (query).to_s.gsub(/[^A-Za-z]/, ' ').rstrip
19
- pg_number = (query).to_s.gsub(/[^.0-9A-Za-z]/, '').rstrip.delete("A-Za-z").delete_prefix(".").delete_suffix(".")
20
- @pg_version = pg_string + " " + pg_number
21
- end
22
-
23
- # version number x.x
24
- def self.version
25
- @version = ENV['NYASOCOMSUN_VERSION']
26
- end
27
-
28
- # rubygems version
29
- def self.gem_version
30
- gversion = 'gem -v'
31
- stdout_rb, stderr_rb, status_rb = Open3.capture3(gversion)
32
- version = stdout_rb.to_s
33
- end
34
-
35
- # nyasocom tools core version
36
- def self.core_version
37
- '1.1.0'.to_s
38
- end
39
- end
40
-
41
- __END__