kiroshi 0.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 ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: f215b5db38cfab5958a6d87cfbfffe94a6a4ca9f36b114d6539f064e918aaf3c
4
+ data.tar.gz: 11fd8327a643b27eab6feaa92eda2dd962ccbb573501a0dd06f0811ac840dbdc
5
+ SHA512:
6
+ metadata.gz: 60fbd8f3a711432be3ecfdd1c565d535657b6424ee46eae72b85d345fed4dd160606eeb7e4c13c83de291b72cce32d6c63bbbc8c31949c1e5c0a3155ddb02821
7
+ data.tar.gz: e57185d0789ef027ac87be751cc5054cdf52169beb7a7f9836aaa7e750b9776b4ae86751560c91b20dc20b93775a9f63f58d91948d7d85ec23a5012b1a151fdd
@@ -0,0 +1,79 @@
1
+ version: 2
2
+ workflows:
3
+ version: 2
4
+ test-and-build:
5
+ jobs:
6
+ - test:
7
+ filters:
8
+ tags:
9
+ only: /.*/
10
+ - checks:
11
+ filters:
12
+ tags:
13
+ only: /.*/
14
+ - build-and-release:
15
+ requires: [test, checks]
16
+ filters:
17
+ tags:
18
+ only: /\d+\.\d+\.\d+/
19
+ branches:
20
+ only:
21
+ - master
22
+ jobs:
23
+ test:
24
+ docker:
25
+ - image: darthjee/circleci_rails_gems:2.0.0
26
+ environment:
27
+ PROJECT: kiroshi
28
+ steps:
29
+ - checkout
30
+ - run:
31
+ name: Bundle Install
32
+ command: bundle install
33
+ - run:
34
+ name: RSpec
35
+ command: bundle exec rspec
36
+ checks:
37
+ docker:
38
+ - image: darthjee/circleci_rails_gems:2.0.0
39
+ environment:
40
+ PROJECT: kiroshi
41
+ steps:
42
+ - checkout
43
+ - run:
44
+ name: Bundle Install
45
+ command: bundle install
46
+ - run:
47
+ name: Rubocop
48
+ command: rubocop
49
+ - run:
50
+ name: Yardstick coverage check
51
+ command: bundle exec rake verify_measurements
52
+ - run:
53
+ name: Check version documentation
54
+ command: check_readme.sh
55
+ - run:
56
+ name: Rubycritcs check
57
+ command: rubycritic.sh
58
+ - run:
59
+ name: Check unit tests
60
+ command: check_specs
61
+ build-and-release:
62
+ docker:
63
+ - image: darthjee/circleci_rails_gems:2.0.0
64
+ environment:
65
+ PROJECT: kiroshi
66
+ steps:
67
+ - checkout
68
+ - run:
69
+ name: Bundle Install
70
+ command: bundle install
71
+ - run:
72
+ name: Signin
73
+ command: build_gem.sh signin
74
+ - run:
75
+ name: Build Gem
76
+ command: build_gem.sh build
77
+ - run:
78
+ name: Push Gem
79
+ command: build_gem.sh push
data/.gitignore ADDED
@@ -0,0 +1,12 @@
1
+ coverages
2
+ pkg
3
+ Gemfile.lock
4
+ coverage
5
+ doc
6
+ .yardoc/
7
+ measurement/
8
+ **/*.swp
9
+ rubycritic/
10
+ spec/dummy/log/*
11
+ spec/dummy/tmp/*
12
+ spec/dummy/db/*.sqlite3
data/.rspec ADDED
@@ -0,0 +1 @@
1
+ --color
data/.rubocop.yml ADDED
@@ -0,0 +1,51 @@
1
+ require: rubocop-rspec
2
+ inherit_from: .rubocop_todo.yml
3
+
4
+ AllCops:
5
+ TargetRubyVersion: 3.3
6
+ NewCops: enable
7
+
8
+ Metrics/BlockLength:
9
+ Exclude:
10
+ - 'spec/**/*_spec.rb'
11
+ - 'spec/dummy/db/schema.rb'
12
+ - 'spec/support/shared_*/**/*.rb'
13
+ - 'kiroshi.gemspec'
14
+
15
+ RSpec/NestedGroups:
16
+ Max: 5
17
+
18
+ RSpec/AlignLeftLetBrace:
19
+ Enabled: true
20
+
21
+ Style/HashEachMethods:
22
+ Enabled: true
23
+
24
+ Style/HashTransformKeys:
25
+ Enabled: true
26
+
27
+ Style/HashTransformValues:
28
+ Enabled: true
29
+
30
+ RSpec/ExampleLength:
31
+ Exclude:
32
+ - 'spec/integration/readme/**/*_spec.rb'
33
+ - 'spec/integration/yard/**/*_spec.rb'
34
+
35
+ RSpec/MultipleExpectations:
36
+ Exclude:
37
+ - 'spec/integration/readme/**/*_spec.rb'
38
+ - 'spec/integration/yard/**/*_spec.rb'
39
+
40
+ RSpec/MultipleMemoizedHelpers:
41
+ Enabled: false
42
+
43
+ Gemspec/RequireMFA:
44
+ Enabled: false
45
+
46
+ Lint/EmptyBlock:
47
+ Exclude:
48
+ - 'spec/**/*_spec.rb'
49
+
50
+ Lint/EmptyClass:
51
+ Enabled: false
data/.rubocop_todo.yml ADDED
@@ -0,0 +1,21 @@
1
+ # This configuration was generated by
2
+ # `rubocop --auto-gen-config`
3
+ # on 2025-08-15 21:59:24 UTC using RuboCop version 1.79.2.
4
+ # The point is for the user to remove these configuration records
5
+ # one by one as the offenses are removed from the code base.
6
+ # Note that changes in the inspected code, or installation of new
7
+ # versions of RuboCop, may require this file to be generated again.
8
+
9
+ # Offense count: 1
10
+ # Configuration parameters: AllowComments, AllowEmptyLambdas.
11
+ Lint/EmptyBlock:
12
+ Exclude:
13
+ - 'spec/**/*_spec.rb'
14
+ - 'spec/dummy/config/routes.rb'
15
+
16
+ # Offense count: 1
17
+ # Configuration parameters: AllowedPatterns.
18
+ # AllowedPatterns: ^expect_, ^assert_
19
+ RSpec/NoExpectationExample:
20
+ Exclude:
21
+ - 'spec/lib/kiroshi_spec.rb'
data/Dockerfile ADDED
@@ -0,0 +1,21 @@
1
+ FROM darthjee/scripts:0.4.3 as scripts
2
+
3
+ FROM darthjee/rails_gems:2.0.0 as base
4
+
5
+ COPY --chown=app:app ./ /home/app/app/
6
+
7
+ ######################################
8
+
9
+ FROM base as builder
10
+
11
+ COPY --chown=app:app --from=scripts /home/scripts/builder/bundle_builder.sh /usr/local/sbin/bundle_builder.sh
12
+
13
+ ENV HOME_DIR /home/app
14
+ RUN bundle_builder.sh
15
+
16
+ #######################
17
+ #FINAL IMAGE
18
+ FROM base
19
+
20
+ COPY --chown=app:app --from=builder /home/app/bundle/ /usr/local/bundle/
21
+ RUN bundle install
data/Gemfile ADDED
@@ -0,0 +1,31 @@
1
+ # frozen_string_literal: true
2
+
3
+ source 'https://rubygems.org'
4
+
5
+ gemspec
6
+
7
+ gem 'actionpack', '7.2.2.1'
8
+ gem 'activerecord', '7.2.2.1'
9
+ gem 'bundler', '~> 2.3'
10
+ gem 'factory_bot', '6.2.1'
11
+ gem 'minitest', '5.25.4'
12
+ gem 'pry', '>= 0.14.2'
13
+ gem 'pry-nav', '>= 1.0.0'
14
+ gem 'rake', '13.2.1'
15
+ gem 'reek', '>= 6.4.0'
16
+ gem 'rspec', '>= 3.13.0'
17
+ gem 'rspec-collection_matchers', '1.2.1'
18
+ gem 'rspec-core', '>= 3.13.3'
19
+ gem 'rspec-expectations', '>= 3.13.3'
20
+ gem 'rspec-mocks', '>= 3.13.2'
21
+ gem 'rspec-rails', '>= 8.0.0'
22
+ gem 'rspec-support', '>= 3.13.2'
23
+ gem 'rubocop', '>= 1.75.5'
24
+ gem 'rubocop-rspec', '>= 3.6.0'
25
+ gem 'rubycritic', '>= 4.9.2'
26
+ gem 'shoulda-matchers', '6.5.0'
27
+ gem 'simplecov', '0.22.0'
28
+ gem 'sqlite3', '1.4.2'
29
+ gem 'tzinfo-data', '~> 1.2025.2'
30
+ gem 'yard', '0.9.37'
31
+ gem 'yardstick', '0.9.9'
data/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2025 Fernando Favini
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
data/Makefile ADDED
@@ -0,0 +1,6 @@
1
+ .PHONY: dev
2
+
3
+ PROJECT?=kiroshi
4
+
5
+ dev:
6
+ docker-compose run $(PROJECT) /bin/bash
data/README.md ADDED
@@ -0,0 +1,29 @@
1
+ Kiroshi
2
+ ====
3
+ [![Build Status](https://circleci.com/gh/darthjee/kiroshi.svg?style=shield)](https://circleci.com/gh/darthjee/kiroshi)
4
+ [![Codacy Badge](https://app.codacy.com/project/badge/Grade/35480a5e82e74ff7a0186697b3f61a4b)](https://app.codacy.com/gh/darthjee/kiroshi/dashboard?utm_source=gh&utm_medium=referral&utm_content=&utm_campaign=Badge_grade)
5
+
6
+ ![kiroshi](https://raw.githubusercontent.com/darthjee/kiroshi/master/kiroshi.jpg)
7
+
8
+ Yard Documentation
9
+ -------------------
10
+ [https://www.rubydoc.info/gems/kiroshi/0.0.1](https://www.rubydoc.info/gems/kiroshi/0.0.1)
11
+
12
+ Installation
13
+ ---------------
14
+
15
+ - Install it
16
+
17
+ ```ruby
18
+ gem install kiroshi
19
+ ```
20
+
21
+ - Or add Kiroshi to your `Gemfile` and `bundle install`:
22
+
23
+ ```ruby
24
+ gem 'kiroshi'
25
+ ```
26
+
27
+ ```bash
28
+ bundle install kiroshi
29
+ ```
data/Rakefile ADDED
@@ -0,0 +1,12 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'bundler/gem_tasks'
4
+ require 'rspec/core/rake_task'
5
+ require 'yardstick/rake/measurement'
6
+ require './config/yardstick'
7
+ require './config/rubycritc'
8
+
9
+ RSpec::Core::RakeTask.new
10
+
11
+ task default: :spec
12
+ task test: :spec
@@ -0,0 +1,2 @@
1
+ ignore:
2
+ - lib/kiroshi/version.rb
@@ -0,0 +1,12 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'rubycritic/rake_task'
4
+
5
+ RubyCritic::RakeTask.new do |task|
6
+ options = %w[
7
+ --path rubycritic/
8
+ --no-browser
9
+ ]
10
+ task.options = options.join(' ')
11
+ task.paths = %w[lib]
12
+ end
@@ -0,0 +1,13 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'yardstick/rake/measurement'
4
+ require 'yardstick/rake/verify'
5
+ require 'yaml'
6
+
7
+ options = YAML.load_file('config/yardstick.yml')
8
+
9
+ Yardstick::Rake::Measurement.new(:yardstick_measure, options) do |measurement|
10
+ measurement.output = 'measurement/report.txt'
11
+ end
12
+
13
+ Yardstick::Rake::Verify.new(:verify_measurements, options)
@@ -0,0 +1,33 @@
1
+ threshold: 100
2
+ require_exact_threshold: false
3
+ rules:
4
+ ApiTag::Presence:
5
+ enabled: true
6
+ exclude: []
7
+ ApiTag::Inclusion:
8
+ enabled: true
9
+ exclude: []
10
+ ApiTag::ProtectedMethod:
11
+ enabled: true
12
+ exclude: []
13
+ ApiTag::PrivateMethod:
14
+ enabled: true
15
+ exclude: []
16
+ ExampleTag:
17
+ enabled: true
18
+ exclude: []
19
+ ReturnTag:
20
+ enabled: true
21
+ exclude: []
22
+ Summary::Presence:
23
+ enabled: true
24
+ exclude: []
25
+ Summary::Length:
26
+ enabled: true
27
+ exclude: []
28
+ Summary::Delimiter:
29
+ enabled: true
30
+ exclude: []
31
+ Summary::SingleLine:
32
+ enabled: true
33
+ exclude: []
@@ -0,0 +1,23 @@
1
+ version: '3'
2
+ services:
3
+ base: &base
4
+ image: kiroshi
5
+ working_dir: /home/app/app
6
+ volumes:
7
+ - .:/home/app/app
8
+
9
+ base_build:
10
+ <<: *base
11
+ build: .
12
+ command: echo done
13
+
14
+ kiroshi:
15
+ <<: *base
16
+ container_name: kiroshi
17
+ depends_on: [base_build]
18
+ command: /bin/bash -c 'rspec'
19
+
20
+ test_all:
21
+ <<: *base
22
+ depends_on: [base_build]
23
+ command: /bin/bash -c 'rspec && yard && rake yardstick_measure && rake verify_measurements'
data/kiroshi.gemspec ADDED
@@ -0,0 +1,23 @@
1
+ # frozen_string_literal: true
2
+
3
+ lib = File.expand_path('lib', __dir__)
4
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
5
+ require 'kiroshi/version'
6
+
7
+ Gem::Specification.new do |gem|
8
+ gem.name = 'kiroshi'
9
+ gem.version = Kiroshi::VERSION
10
+ gem.authors = ['Darthjee']
11
+ gem.email = ['darthjee@gmail.com']
12
+ gem.summary = 'Kiroshi'
13
+ gem.description = ''
14
+ gem.homepage = 'https://github.com/darthjee/kiroshi'
15
+ gem.required_ruby_version = '>= 3.3.1'
16
+
17
+ gem.files = `git ls-files`.split($INPUT_RECORD_SEPARATOR)
18
+ gem.executables = gem.files.grep(%r{^bin/}) { |f| File.basename(f) }
19
+ gem.require_paths = ['lib']
20
+
21
+ gem.add_dependency 'activesupport', '~> 7.2.x'
22
+ gem.add_dependency 'sinclair', '>= 3.0.0'
23
+ end
@@ -0,0 +1,5 @@
1
+ # frozen_string_literal: true
2
+
3
+ class Kiroshi
4
+ VERSION = '0.0.1'
5
+ end
data/lib/kiroshi.rb ADDED
@@ -0,0 +1,7 @@
1
+ # frozen_string_literal: true
2
+
3
+ # @api public
4
+ # @author darthjee
5
+ class Kiroshi
6
+ autoload :VERSION, 'kiroshi/version'
7
+ end
File without changes
File without changes
@@ -0,0 +1,8 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'spec_helper'
4
+
5
+ describe Kiroshi do
6
+ it 'does something' do
7
+ end
8
+ end
@@ -0,0 +1,33 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'simplecov'
4
+
5
+ SimpleCov.profiles.define 'gem' do
6
+ add_filter '/spec/'
7
+ end
8
+
9
+ SimpleCov.start 'gem'
10
+
11
+ require 'kiroshi'
12
+ require 'pry-nav'
13
+
14
+ require 'active_record'
15
+ ActiveRecord::Base.establish_connection(
16
+ adapter: 'sqlite3', database: ':memory:'
17
+ )
18
+
19
+ require File.expand_path('spec/support/db/schema.rb')
20
+
21
+ support_files = File.expand_path('spec/support/**/*.rb')
22
+ Dir[support_files].each { |file| require file }
23
+
24
+ RSpec::Matchers.define_negated_matcher :not_change, :change
25
+ RSpec::Matchers.define_negated_matcher :not_add_method, :add_method
26
+
27
+ RSpec.configure do |config|
28
+ config.run_all_when_everything_filtered = true
29
+ config.filter_run :focus
30
+ config.filter_run_excluding :integration unless ENV['ALL']
31
+
32
+ config.order = 'random'
33
+ end
@@ -0,0 +1,5 @@
1
+ # frozen_string_literal: true
2
+
3
+ ActiveRecord::Schema.define do
4
+ self.verbose = false
5
+ end
File without changes
File without changes
metadata ADDED
@@ -0,0 +1,96 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: kiroshi
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ platform: ruby
6
+ authors:
7
+ - Darthjee
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2025-08-15 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: activesupport
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: 7.2.x
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: 7.2.x
27
+ - !ruby/object:Gem::Dependency
28
+ name: sinclair
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: 3.0.0
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ">="
39
+ - !ruby/object:Gem::Version
40
+ version: 3.0.0
41
+ description: ''
42
+ email:
43
+ - darthjee@gmail.com
44
+ executables: []
45
+ extensions: []
46
+ extra_rdoc_files: []
47
+ files:
48
+ - ".circleci/config.yml"
49
+ - ".gitignore"
50
+ - ".rspec"
51
+ - ".rubocop.yml"
52
+ - ".rubocop_todo.yml"
53
+ - Dockerfile
54
+ - Gemfile
55
+ - LICENSE
56
+ - Makefile
57
+ - README.md
58
+ - Rakefile
59
+ - config/check_specs.yml
60
+ - config/rubycritc.rb
61
+ - config/yardstick.rb
62
+ - config/yardstick.yml
63
+ - docker-compose.yml
64
+ - kiroshi.gemspec
65
+ - lib/kiroshi.rb
66
+ - lib/kiroshi/version.rb
67
+ - spec/integration/readme/.keep
68
+ - spec/integration/yard/.keep
69
+ - spec/lib/kiroshi_spec.rb
70
+ - spec/spec_helper.rb
71
+ - spec/support/db/schema.rb
72
+ - spec/support/models/.keep
73
+ - spec/support/shared_examples/.keep
74
+ homepage: https://github.com/darthjee/kiroshi
75
+ licenses: []
76
+ metadata: {}
77
+ post_install_message:
78
+ rdoc_options: []
79
+ require_paths:
80
+ - lib
81
+ required_ruby_version: !ruby/object:Gem::Requirement
82
+ requirements:
83
+ - - ">="
84
+ - !ruby/object:Gem::Version
85
+ version: 3.3.1
86
+ required_rubygems_version: !ruby/object:Gem::Requirement
87
+ requirements:
88
+ - - ">="
89
+ - !ruby/object:Gem::Version
90
+ version: '0'
91
+ requirements: []
92
+ rubygems_version: 3.5.9
93
+ signing_key:
94
+ specification_version: 4
95
+ summary: Kiroshi
96
+ test_files: []