grouse 1.0.0

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 ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 52ceeea9fed4a5cc6e210a0ba117346e57ef7ece1bc5b06c6cb2e3af59e68c0e
4
+ data.tar.gz: 4a01eeed4de606c6ab584a3a6db76f19e259100860de186165ea0046c8a6c949
5
+ SHA512:
6
+ metadata.gz: 4985cddc4f376eb9766ac0f3d73b90428916fc176d6cc550000a5682598294cd2cdbbf1037bd98b07d465f48c03b8f948bff6a8b679986eea2d78dfde5d5a1df
7
+ data.tar.gz: 3675813048338f21d359999e7065268237e31620956339a66e5cef085e9ab951d7c29fbc6edc69b7ee1756011085f763f51ff185a03533a7e4de95810d2a6c3b
data/.gitignore ADDED
@@ -0,0 +1,2 @@
1
+ Gemfile.lock
2
+ grouse-*.gem
data/Gemfile ADDED
@@ -0,0 +1,10 @@
1
+ # frozen_string_literal: true
2
+
3
+ # source 'https://rubygems.org'
4
+
5
+ # Windows ENV.
6
+ if Gem.win_platform?
7
+ gem 'sheltered-girl', '4.0.4.5'
8
+ else
9
+ gem 'sheltered-girl'
10
+ end
data/LICENSE.txt ADDED
@@ -0,0 +1,28 @@
1
+ The MIT License
2
+
3
+ Copyright (c) 2025 Takayuki Kamiyama
4
+
5
+ Permission is hereby granted, free of charge,
6
+ to any person obtaining a copy of this software and
7
+ associated documentation files (the [Software]),
8
+ to deal in the Software without restriction,
9
+ including without limitation the rights to use, copy, modify,
10
+ merge, publish, distribute, sublicense,
11
+ and/or sell copies of the Software,
12
+ and to permit persons to whom the Software is furnished to do so,
13
+ subject to the following conditions:
14
+
15
+ The above copyright notice and
16
+ this permission notice shall be included
17
+ in all copies or substantial portions of the Software.
18
+
19
+ THE SOFTWARE IS PROVIDED [AS IS],
20
+ WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
21
+ INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
22
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
23
+ IN NO EVENT SHALL THE AUTHORS OR
24
+ COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
25
+ DAMAGES OR OTHER LIABILITY,
26
+ WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
27
+ ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE
28
+ OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,10 @@
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)
2
+ <br /><br />
3
+
4
+ <div align="center">
5
+ <p> grouse. </p>
6
+ <b> Copyright &copy 2025 Takayuki Kamiyama </b>
7
+ <p> Please readme, See the <a href="https://github.com/takkii/grouse/wiki/manual">wiki</a> for how to use. </p>
8
+ </div>
9
+
10
+ <br />
data/grouse.gemspec ADDED
@@ -0,0 +1,34 @@
1
+ # frozen_string_literal: true
2
+
3
+ lib = File.expand_path('../lib', __FILE__)
4
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
5
+
6
+ require "#{File.dirname(__FILE__)}/req/rubygems"
7
+ require 'gem_version'
8
+
9
+ Gem::Specification.new do |s|
10
+ s.name = "grouse"
11
+ s.version = Grs.version
12
+ s.authors = ["Takayuki Kamiyama"]
13
+ s.email = "karuma.reason@gmail.com"
14
+ s.extra_rdoc_files = [
15
+ "LICENSE.txt",
16
+ ]
17
+ # Ignore files in mini_test and mini_unit folder.
18
+ s.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(mini_test|mini_unit)/}) }
19
+ s.homepage = "https://github.com/takkii/grouse"
20
+ s.licenses = ["MIT"]
21
+ s.require_paths = ["lib"]
22
+ s.required_ruby_version = ['>= 3.0']
23
+ s.required_rubygems_version = '~> 3.6.9' if s.respond_to? RbGemversion::VERSION
24
+ s.summary = "This project is minimum packages"
25
+ s.description = "nyasocom_sun packages in ROR."
26
+ s.metadata["github_repo"] = "https://github.com/takkii/grouse"
27
+
28
+ # If build error case, unless Gem.win_platform?
29
+ s.add_runtime_dependency('sheltered-girl', '~> 4.0') if Gem.win_platform?
30
+
31
+ if s.respond_to? :specification_version
32
+ s.specification_version = 4
33
+ end
34
+ end
data/lib/core.rb ADDED
@@ -0,0 +1,27 @@
1
+ # frozen_string_literal: true
2
+
3
+ # CoreNYM version in .env
4
+ class CoreNYM
5
+ # current date.
6
+ def self.koyomi
7
+ dt = Time.new.getlocal('+09:00')
8
+ week = %w(日 月 火 水 木 金 土)[dt.wday]
9
+ @himekuri = "#{dt.year}年" + "#{dt.month}月" + "#{dt.day}日" + ' : '.to_s + "#{dt.hour}時"+"#{dt.min}分"+"#{dt.sec}秒" + ' : '.to_s + week + "曜日"
10
+ end
11
+
12
+ # libgroonga version in pgroonga
13
+ def self.pg_version
14
+ sql = "SHOW pgroonga.libgroonga_version;"
15
+ query = ActiveRecord::Base.connection.select_all(sql).to_a
16
+ pg_string = (query).to_s.gsub(/[^A-Za-z]/, ' ').rstrip
17
+ pg_number = (query).to_s.gsub(/[^.0-9A-Za-z]/, '').rstrip.delete("A-Za-z").delete_prefix(".").delete_suffix(".")
18
+ @pg_version = pg_string + " " + pg_number
19
+ end
20
+
21
+ # version number x.x
22
+ def self.version
23
+ @version = ENV['NYASOCOMSUN_VERSION']
24
+ end
25
+ end
26
+
27
+ __END__
data/lib/version.rb ADDED
@@ -0,0 +1,17 @@
1
+ # frozen_string_literal: true
2
+
3
+ class Grs
4
+ def self.version
5
+ '1.0.0'.to_s
6
+ end
7
+ end
8
+
9
+ begin
10
+ Grs.version
11
+ rescue StandardError => e
12
+ puts e.backtrace
13
+ ensure
14
+ GC.auto_compact
15
+ end
16
+
17
+ __END__
data/req/rubygems.rb ADDED
@@ -0,0 +1,12 @@
1
+ # frozen_string_literal: true
2
+
3
+ # dependent file or library.
4
+ # --------------------------------------
5
+ require 'version'
6
+ require 'bmi'
7
+ # --------------------------------------
8
+
9
+ # File encoding setting is UTF-8.
10
+ # --------------------------------------
11
+ encoding_style
12
+ # --------------------------------------
metadata ADDED
@@ -0,0 +1,63 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: grouse
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.0.0
5
+ platform: ruby
6
+ authors:
7
+ - Takayuki Kamiyama
8
+ bindir: bin
9
+ cert_chain: []
10
+ date: 1980-01-02 00:00:00.000000000 Z
11
+ dependencies:
12
+ - !ruby/object:Gem::Dependency
13
+ name: sheltered-girl
14
+ requirement: !ruby/object:Gem::Requirement
15
+ requirements:
16
+ - - "~>"
17
+ - !ruby/object:Gem::Version
18
+ version: '4.0'
19
+ type: :runtime
20
+ prerelease: false
21
+ version_requirements: !ruby/object:Gem::Requirement
22
+ requirements:
23
+ - - "~>"
24
+ - !ruby/object:Gem::Version
25
+ version: '4.0'
26
+ description: nyasocom_sun packages in ROR.
27
+ email: karuma.reason@gmail.com
28
+ executables: []
29
+ extensions: []
30
+ extra_rdoc_files:
31
+ - LICENSE.txt
32
+ files:
33
+ - ".gitignore"
34
+ - Gemfile
35
+ - LICENSE.txt
36
+ - README.md
37
+ - grouse.gemspec
38
+ - lib/core.rb
39
+ - lib/version.rb
40
+ - req/rubygems.rb
41
+ homepage: https://github.com/takkii/grouse
42
+ licenses:
43
+ - MIT
44
+ metadata:
45
+ github_repo: https://github.com/takkii/grouse
46
+ rdoc_options: []
47
+ require_paths:
48
+ - lib
49
+ required_ruby_version: !ruby/object:Gem::Requirement
50
+ requirements:
51
+ - - ">="
52
+ - !ruby/object:Gem::Version
53
+ version: '3.0'
54
+ required_rubygems_version: !ruby/object:Gem::Requirement
55
+ requirements:
56
+ - - ">="
57
+ - !ruby/object:Gem::Version
58
+ version: '0'
59
+ requirements: []
60
+ rubygems_version: 3.7.2
61
+ specification_version: 4
62
+ summary: This project is minimum packages
63
+ test_files: []