moca_rlibs 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 3ef945dc73c8e0fb0aa0234c30f3d01271490337d698cee36ed339ae21d5e13f
4
+ data.tar.gz: f57bfaf311fce897170f8c3d07370e131326e9ba12f3ef0c306169cea1356a03
5
+ SHA512:
6
+ metadata.gz: d98655a5a137b9fa954afd4d6a9246fcaa5e8ebacd3a8bb49b4677c35aa01a52aef2e326290c70026c11dd0c1d33c333d50f605c20e6de5451f19afb16cddb37
7
+ data.tar.gz: 218c1d9202d4efa6d8669c2c8a2ed8fc5f05a57edcbfd5726e258fea3e9cadd885e9215c064ecc048a169a0d3f2a0597cf160f5e46e84a6986914a17415b0c9a
data/.gitignore ADDED
@@ -0,0 +1,4 @@
1
+ .rspec_status
2
+ .bundle/
3
+ coverage/
4
+ pkg/
data/.gitmodules ADDED
@@ -0,0 +1,3 @@
1
+ [submodule "vendor/tools"]
2
+ path = vendor/tools
3
+ url = https://github.com/mocaberos/tools.git
data/.rspec ADDED
@@ -0,0 +1,3 @@
1
+ --format documentation
2
+ --color
3
+ --require spec_helper
data/.rubocop.yml ADDED
@@ -0,0 +1,5 @@
1
+ inherit_from: ./vendor/tools/config/rubocop.yml
2
+
3
+ # 文字列リテラルfrozen強制
4
+ Style/FrozenStringLiteralComment:
5
+ Enabled: true
data/CHANGELOG.md ADDED
@@ -0,0 +1,5 @@
1
+ ## [Unreleased]
2
+
3
+ ## [0.0.2] - 2021-10-3
4
+
5
+ - Initial release
@@ -0,0 +1,84 @@
1
+ # Contributor Covenant Code of Conduct
2
+
3
+ ## Our Pledge
4
+
5
+ We as members, contributors, and leaders pledge to make participation in our community a harassment-free experience for everyone, regardless of age, body size, visible or invisible disability, ethnicity, sex characteristics, gender identity and expression, level of experience, education, socio-economic status, nationality, personal appearance, race, religion, or sexual identity and orientation.
6
+
7
+ We pledge to act and interact in ways that contribute to an open, welcoming, diverse, inclusive, and healthy community.
8
+
9
+ ## Our Standards
10
+
11
+ Examples of behavior that contributes to a positive environment for our community include:
12
+
13
+ * Demonstrating empathy and kindness toward other people
14
+ * Being respectful of differing opinions, viewpoints, and experiences
15
+ * Giving and gracefully accepting constructive feedback
16
+ * Accepting responsibility and apologizing to those affected by our mistakes, and learning from the experience
17
+ * Focusing on what is best not just for us as individuals, but for the overall community
18
+
19
+ Examples of unacceptable behavior include:
20
+
21
+ * The use of sexualized language or imagery, and sexual attention or
22
+ advances of any kind
23
+ * Trolling, insulting or derogatory comments, and personal or political attacks
24
+ * Public or private harassment
25
+ * Publishing others' private information, such as a physical or email
26
+ address, without their explicit permission
27
+ * Other conduct which could reasonably be considered inappropriate in a
28
+ professional setting
29
+
30
+ ## Enforcement Responsibilities
31
+
32
+ Community leaders are responsible for clarifying and enforcing our standards of acceptable behavior and will take appropriate and fair corrective action in response to any behavior that they deem inappropriate, threatening, offensive, or harmful.
33
+
34
+ Community leaders have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, and will communicate reasons for moderation decisions when appropriate.
35
+
36
+ ## Scope
37
+
38
+ This Code of Conduct applies within all community spaces, and also applies when an individual is officially representing the community in public spaces. Examples of representing our community include using an official e-mail address, posting via an official social media account, or acting as an appointed representative at an online or offline event.
39
+
40
+ ## Enforcement
41
+
42
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be reported to the community leaders responsible for enforcement at mocaberos@gmail.com. All complaints will be reviewed and investigated promptly and fairly.
43
+
44
+ All community leaders are obligated to respect the privacy and security of the reporter of any incident.
45
+
46
+ ## Enforcement Guidelines
47
+
48
+ Community leaders will follow these Community Impact Guidelines in determining the consequences for any action they deem in violation of this Code of Conduct:
49
+
50
+ ### 1. Correction
51
+
52
+ **Community Impact**: Use of inappropriate language or other behavior deemed unprofessional or unwelcome in the community.
53
+
54
+ **Consequence**: A private, written warning from community leaders, providing clarity around the nature of the violation and an explanation of why the behavior was inappropriate. A public apology may be requested.
55
+
56
+ ### 2. Warning
57
+
58
+ **Community Impact**: A violation through a single incident or series of actions.
59
+
60
+ **Consequence**: A warning with consequences for continued behavior. No interaction with the people involved, including unsolicited interaction with those enforcing the Code of Conduct, for a specified period of time. This includes avoiding interactions in community spaces as well as external channels like social media. Violating these terms may lead to a temporary or permanent ban.
61
+
62
+ ### 3. Temporary Ban
63
+
64
+ **Community Impact**: A serious violation of community standards, including sustained inappropriate behavior.
65
+
66
+ **Consequence**: A temporary ban from any sort of interaction or public communication with the community for a specified period of time. No public or private interaction with the people involved, including unsolicited interaction with those enforcing the Code of Conduct, is allowed during this period. Violating these terms may lead to a permanent ban.
67
+
68
+ ### 4. Permanent Ban
69
+
70
+ **Community Impact**: Demonstrating a pattern of violation of community standards, including sustained inappropriate behavior, harassment of an individual, or aggression toward or disparagement of classes of individuals.
71
+
72
+ **Consequence**: A permanent ban from any sort of public interaction within the community.
73
+
74
+ ## Attribution
75
+
76
+ This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 2.0,
77
+ available at https://www.contributor-covenant.org/version/2/0/code_of_conduct.html.
78
+
79
+ Community Impact Guidelines were inspired by [Mozilla's code of conduct enforcement ladder](https://github.com/mozilla/diversity).
80
+
81
+ [homepage]: https://www.contributor-covenant.org
82
+
83
+ For answers to common questions about this code of conduct, see the FAQ at
84
+ https://www.contributor-covenant.org/faq. Translations are available at https://www.contributor-covenant.org/translations.
data/Dockerfile ADDED
@@ -0,0 +1,6 @@
1
+ FROM ruby:3.0.2-bullseye
2
+
3
+ WORKDIR /app
4
+ COPY . /app
5
+
6
+ RUN bundle install --jobs=3 --retry=3
data/Gemfile ADDED
@@ -0,0 +1,8 @@
1
+ # frozen_string_literal: true
2
+
3
+ source 'https://rubygems.org'
4
+ git_source(:github) { |repo| "https://github.com/#{repo}.git" }
5
+
6
+ ruby '3.0.2'
7
+
8
+ gemspec
data/Gemfile.lock ADDED
@@ -0,0 +1,97 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ moca_rlibs (0.0.2)
5
+ slack-notifier (~> 2.4.0)
6
+
7
+ GEM
8
+ remote: https://rubygems.org/
9
+ specs:
10
+ activesupport (6.1.4.1)
11
+ concurrent-ruby (~> 1.0, >= 1.0.2)
12
+ i18n (>= 1.6, < 2)
13
+ minitest (>= 5.1)
14
+ tzinfo (~> 2.0)
15
+ zeitwerk (~> 2.3)
16
+ ast (2.4.2)
17
+ codecov (0.6.0)
18
+ simplecov (>= 0.15, < 0.22)
19
+ concurrent-ruby (1.1.9)
20
+ diff-lcs (1.4.4)
21
+ docile (1.4.0)
22
+ i18n (1.8.10)
23
+ concurrent-ruby (~> 1.0)
24
+ minitest (5.14.4)
25
+ parallel (1.21.0)
26
+ parser (3.0.2.0)
27
+ ast (~> 2.4.1)
28
+ rack (2.2.3)
29
+ rainbow (3.0.0)
30
+ rake (13.0.6)
31
+ regexp_parser (2.1.1)
32
+ rexml (3.2.5)
33
+ rspec (3.10.0)
34
+ rspec-core (~> 3.10.0)
35
+ rspec-expectations (~> 3.10.0)
36
+ rspec-mocks (~> 3.10.0)
37
+ rspec-core (3.10.1)
38
+ rspec-support (~> 3.10.0)
39
+ rspec-expectations (3.10.1)
40
+ diff-lcs (>= 1.2.0, < 2.0)
41
+ rspec-support (~> 3.10.0)
42
+ rspec-mocks (3.10.2)
43
+ diff-lcs (>= 1.2.0, < 2.0)
44
+ rspec-support (~> 3.10.0)
45
+ rspec-support (3.10.2)
46
+ rubocop (1.22.0)
47
+ parallel (~> 1.10)
48
+ parser (>= 3.0.0.0)
49
+ rainbow (>= 2.2.2, < 4.0)
50
+ regexp_parser (>= 1.8, < 3.0)
51
+ rexml
52
+ rubocop-ast (>= 1.12.0, < 2.0)
53
+ ruby-progressbar (~> 1.7)
54
+ unicode-display_width (>= 1.4.0, < 3.0)
55
+ rubocop-ast (1.12.0)
56
+ parser (>= 3.0.1.1)
57
+ rubocop-performance (1.11.5)
58
+ rubocop (>= 1.7.0, < 2.0)
59
+ rubocop-ast (>= 0.4.0)
60
+ rubocop-rails (2.12.2)
61
+ activesupport (>= 4.2.0)
62
+ rack (>= 1.1)
63
+ rubocop (>= 1.7.0, < 2.0)
64
+ rubocop-rspec (2.5.0)
65
+ rubocop (~> 1.19)
66
+ ruby-progressbar (1.11.0)
67
+ simplecov (0.21.2)
68
+ docile (~> 1.1)
69
+ simplecov-html (~> 0.11)
70
+ simplecov_json_formatter (~> 0.1)
71
+ simplecov-html (0.12.3)
72
+ simplecov_json_formatter (0.1.3)
73
+ slack-notifier (2.4.0)
74
+ tzinfo (2.0.4)
75
+ concurrent-ruby (~> 1.0)
76
+ unicode-display_width (2.1.0)
77
+ zeitwerk (2.4.2)
78
+
79
+ PLATFORMS
80
+ x86_64-darwin-21
81
+
82
+ DEPENDENCIES
83
+ codecov
84
+ moca_rlibs!
85
+ rake
86
+ rspec
87
+ rubocop
88
+ rubocop-performance
89
+ rubocop-rails
90
+ rubocop-rspec
91
+ simplecov
92
+
93
+ RUBY VERSION
94
+ ruby 3.0.2p107
95
+
96
+ BUNDLED WITH
97
+ 2.2.22
data/LICENSE.txt ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2021 mocaberos
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
13
+ all 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
21
+ THE SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,53 @@
1
+ # Ruby用ツールセット
2
+
3
+ [![Build Status](https://codebuild.ap-northeast-1.amazonaws.com/badges?uuid=eyJlbmNyeXB0ZWREYXRhIjoiekhCRy9vSkZhL3BSR1hCV0NvSkc3b3NMcm5MQnlnakkwVFZhWFI1bzZpTzZONmxMeFVLcjNKODhlQWo5ZGtFYmpLcjNQZVFqdzNVZTRBbFFJZ3h1NTNvPSIsIml2UGFyYW1ldGVyU3BlYyI6ImU4dXdib0NpOE1IbHJiYVQiLCJtYXRlcmlhbFNldFNlcmlhbCI6MX0%3D&branch=master)](https://ap-northeast-1.console.aws.amazon.com/codesuite/codebuild/085041388644/projects/rlibs)
4
+ [![codecov](https://codecov.io/gh/mocaberos/rlibs/branch/master/graph/badge.svg?token=L6SB5CH8KN)](https://codecov.io/gh/mocaberos/rlibs)
5
+
6
+ ## インストール
7
+ ```ruby
8
+ gem 'moca_rlibs'
9
+ ```
10
+
11
+ ## Dockerコンテナ内かどうかを判別する
12
+ ```ruby
13
+ MocaRlibs::Docker.running_on_docker?
14
+ ```
15
+
16
+ ## CodeBuild上で"直接"実行されているかを判別する。
17
+ ```ruby
18
+ MocaRlibs::CodeBuild.running_on_codebuild?
19
+ ```
20
+
21
+ ## Slack通知送信用クラス
22
+ ```ruby
23
+ # インスタンス化
24
+ client = MocaRlibs::SlackNotifier.new
25
+
26
+ # シンプルなテキストを送信する
27
+ #
28
+ # @param [String] message 送信メッセージ
29
+ # @param [String] at メンション先
30
+ client.send('some message')
31
+
32
+ # エラーログを送信
33
+ #
34
+ # @param [StandardError] err エラーオブジェクト
35
+ client.error(StandardError.new('some error occurred'))
36
+
37
+ # シンプルなテキストを送信する
38
+ #
39
+ # @param [String] message 送信メッセージ
40
+ # @param [String] channel チャンネル名
41
+ # @param [String] username ユーザー名
42
+ # @param [String] webhook Web Hook URL
43
+ # @param [String] at メンション先
44
+ MocaRlibs::SlackNotifier.send('some message')
45
+
46
+ # エラーログを送信
47
+ #
48
+ # @param [StandardError] err エラーオブジェクト
49
+ # @param [String] channel チャンネル名
50
+ # @param [String] username ユーザー名
51
+ # @param [String] webhook Web Hook URL
52
+ MocaRlibs::SlackNotifier.error(StandardError.new('some error occurred'))
53
+ ```
data/Rakefile ADDED
@@ -0,0 +1,8 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'bundler/gem_tasks'
4
+ require 'rspec/core/rake_task'
5
+
6
+ RSpec::Core::RakeTask.new(:spec)
7
+
8
+ task default: :spec
data/bin/console ADDED
@@ -0,0 +1,15 @@
1
+ #!/usr/bin/env ruby
2
+ # frozen_string_literal: true
3
+
4
+ require 'bundler/setup'
5
+ require 'moca_rlibs'
6
+
7
+ # You can add fixtures and/or initialization code here to make experimenting
8
+ # with your gem easier. You can also use a different console, if you like.
9
+
10
+ # (If you use this, don't forget to add pry to your Gemfile!)
11
+ # require "pry"
12
+ # Pry.start
13
+
14
+ require 'irb'
15
+ IRB.start(__FILE__)
data/bin/setup ADDED
@@ -0,0 +1,8 @@
1
+ #!/usr/bin/env bash
2
+ set -euo pipefail
3
+ IFS=$'\n\t'
4
+ set -vx
5
+
6
+ bundle install
7
+
8
+ # Do any other automated setup that you need to do here
data/buildspec.yml ADDED
@@ -0,0 +1,27 @@
1
+ version: 0.2
2
+
3
+ phases:
4
+ install:
5
+ commands:
6
+ - export PATH=$PATH:$(pwd)/vendor/tools/codebuild
7
+ - docker-login
8
+ pre_build:
9
+ commands:
10
+ - |
11
+ #
12
+ # Run test.
13
+ #
14
+ set -eu;
15
+ docker build -t mocaberos:mzk .;
16
+ docker run --rm \
17
+ -e CODECOV_TOKEN=$CODECOV_TOKEN \
18
+ mocaberos:mzk \
19
+ sh -c ./docker/scripts/test.sh;
20
+ post_build:
21
+ commands:
22
+ - |
23
+ #
24
+ # Notify the result.
25
+ #
26
+ set -eu;
27
+ notify-build-result moca_rlibs;
@@ -0,0 +1,14 @@
1
+ #!/usr/bin/env bash
2
+
3
+ set -eu;
4
+
5
+ bundle exec rspec;
6
+ bundle exec rubocop;
7
+
8
+ # テストの終了
9
+ echo -e "";
10
+ echo -e "\n =========================\n";
11
+ echo -e " TEST PASSED";
12
+ echo -e "\n =========================\n";
13
+ echo -e "";
14
+ exit 0;
@@ -0,0 +1,13 @@
1
+ # frozen_string_literal: true
2
+
3
+ module MocaRlibs
4
+ # CodeBuild関連の機能を纏めたモジュール
5
+ class CodeBuild
6
+ # CodeBuild上で"直接"実行されているかを判別する。
7
+ #
8
+ # @return [Boolean] CodeBuild上で"直接"実行されている場合はtrueを返す。
9
+ def self.running_on_codebuild?
10
+ @running_on_codebuild ||= !ENV['CODEBUILD_BUILD_ID'].nil?
11
+ end
12
+ end
13
+ end
@@ -0,0 +1,13 @@
1
+ # frozen_string_literal: true
2
+
3
+ module MocaRlibs
4
+ # Docker関連の機能を纏めたモジュール
5
+ class Docker
6
+ # Dockerコンテナ内かどうかをチェックする。
7
+ #
8
+ # @return [Boolean] Dockerコンテナ内であればtrueを返す。
9
+ def self.running_on_docker?
10
+ @running_on_docker ||= File.exist?('/.dockerenv')
11
+ end
12
+ end
13
+ end
@@ -0,0 +1,70 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'slack-notifier'
4
+
5
+ module MocaRlibs
6
+ # Slack通知クライアント
7
+ class SlackNotifier
8
+ begin
9
+ PREFIX = Rails.application.class.module_parent_name&.upcase || 'MOCA'
10
+ rescue NameError
11
+ PREFIX = 'MOCA'
12
+ end
13
+
14
+ attr_reader :client
15
+
16
+ SLACK_WEBHOOK_URL = ENV["#{PREFIX}_SLACK_WEBHOOK_URL"]
17
+ SLACK_DEFAULT_CHANNEL = ENV["#{PREFIX}_SLACK_DEFAULT_CHANNEL"]
18
+ SLACK_DEFAULT_USER = ENV["#{PREFIX}_SLACK_DEFAULT_USER"]
19
+
20
+ # @param [String] webhook Web Hook URL
21
+ # @param [String] channel チャンネル名
22
+ # @param [String] username ユーザー名
23
+ def initialize(webhook: nil, channel: nil, username: nil)
24
+ @client = Slack::Notifier.new(
25
+ webhook || SLACK_WEBHOOK_URL,
26
+ channel: channel || SLACK_DEFAULT_CHANNEL,
27
+ username: username || SLACK_DEFAULT_USER
28
+ )
29
+ end
30
+
31
+ # シンプルなテキストを送信する
32
+ #
33
+ # @param [String] message 送信メッセージ
34
+ # @param [String] at メンション先
35
+ def send(message, at: nil)
36
+ @client.ping("#{at ? "<!#{at}> " : ''}#{message}")
37
+ end
38
+
39
+ # エラーログを送信
40
+ #
41
+ # @param [StandardError] err エラーオブジェクト
42
+ def error(err)
43
+ send("#{err.message}\n```#{err.backtrace}```", at: 'here')
44
+ end
45
+
46
+ # シンプルなテキストを送信する
47
+ #
48
+ # @param [String] message 送信メッセージ
49
+ # @param [String] channel チャンネル名
50
+ # @param [String] username ユーザー名
51
+ # @param [String] webhook Web Hook URL
52
+ # @param [String] at メンション先
53
+ def self.send(message, channel: nil, username: nil, webhook: nil, at: nil)
54
+ new(webhook: webhook, channel: channel, username: username)
55
+ .send(message, at: at)
56
+ end
57
+
58
+ # エラーログを送信
59
+ #
60
+ # @param [StandardError] err エラーオブジェクト
61
+ # @param [String] channel チャンネル名
62
+ # @param [String] username ユーザー名
63
+ # @param [String] webhook Web Hook URL
64
+ def self.error(err, channel: nil, username: nil, webhook: nil)
65
+ backtrace = (err.backtrace&.join || 'no backtrace info').sub('`', '\'').slice(0, 2000)
66
+ new(webhook: webhook, channel: channel, username: username)
67
+ .send("#{err.message}\n```\n#{backtrace}\n```", at: 'here')
68
+ end
69
+ end
70
+ end
@@ -0,0 +1,5 @@
1
+ # frozen_string_literal: true
2
+
3
+ module MocaRlibs
4
+ VERSION = '0.0.2'
5
+ end
data/lib/moca_rlibs.rb ADDED
@@ -0,0 +1,10 @@
1
+ # frozen_string_literal: true
2
+
3
+ require_relative 'moca_rlibs/version'
4
+ require_relative 'moca_rlibs/docker'
5
+ require_relative 'moca_rlibs/codebuild'
6
+ require_relative 'moca_rlibs/slack_notifier'
7
+
8
+ # Ruby&Rails用ツールセット
9
+ module MocaRlibs
10
+ end
@@ -0,0 +1,40 @@
1
+ # frozen_string_literal: true
2
+
3
+ require_relative 'lib/moca_rlibs/version'
4
+
5
+ Gem::Specification.new do |spec|
6
+ spec.name = 'moca_rlibs'
7
+ spec.version = MocaRlibs::VERSION
8
+ spec.authors = ['mocaberos']
9
+ spec.email = ['mocaberos@gmail.com']
10
+
11
+ spec.summary = 'A toolset for ruby and rails.'
12
+ spec.description = 'A toolset for ruby and rails.'
13
+ spec.homepage = 'https://github.com/mocaberos/rlibs'
14
+ spec.license = 'MIT'
15
+ spec.required_ruby_version = '>= 3.0.0'
16
+
17
+ spec.metadata['homepage_uri'] = spec.homepage
18
+ spec.metadata['source_code_uri'] = 'https://github.com/mocaberos/rlibs'
19
+ spec.metadata['changelog_uri'] = 'https://github.com/mocaberos/rlibs/blob/master/CHANGELOG.md'
20
+
21
+ # Specify which files should be added to the gem when it is released.
22
+ # The `git ls-files -z` loads the files in the RubyGem that have been added into git.
23
+ spec.files = Dir.chdir(File.expand_path(__dir__)) do
24
+ `git ls-files -z`.split("\x0").reject { |f| f.match(%r{\A(?:test|spec|features)/}) }
25
+ end
26
+ spec.bindir = 'exe'
27
+ spec.executables = spec.files.grep(%r{\Aexe/}) { |f| File.basename(f) }
28
+ spec.require_paths = ['lib']
29
+
30
+ spec.add_dependency 'slack-notifier', '~> 2.4.0'
31
+
32
+ spec.add_development_dependency 'codecov'
33
+ spec.add_development_dependency 'rake'
34
+ spec.add_development_dependency 'rspec'
35
+ spec.add_development_dependency 'rubocop'
36
+ spec.add_development_dependency 'rubocop-performance'
37
+ spec.add_development_dependency 'rubocop-rails'
38
+ spec.add_development_dependency 'rubocop-rspec'
39
+ spec.add_development_dependency 'simplecov'
40
+ end
metadata ADDED
@@ -0,0 +1,194 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: moca_rlibs
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.2
5
+ platform: ruby
6
+ authors:
7
+ - mocaberos
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2021-10-03 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: slack-notifier
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: 2.4.0
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: 2.4.0
27
+ - !ruby/object:Gem::Dependency
28
+ name: codecov
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ">="
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: rake
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ">="
46
+ - !ruby/object:Gem::Version
47
+ version: '0'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ">="
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: rspec
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - ">="
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - ">="
67
+ - !ruby/object:Gem::Version
68
+ version: '0'
69
+ - !ruby/object:Gem::Dependency
70
+ name: rubocop
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - ">="
74
+ - !ruby/object:Gem::Version
75
+ version: '0'
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - ">="
81
+ - !ruby/object:Gem::Version
82
+ version: '0'
83
+ - !ruby/object:Gem::Dependency
84
+ name: rubocop-performance
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - ">="
88
+ - !ruby/object:Gem::Version
89
+ version: '0'
90
+ type: :development
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - ">="
95
+ - !ruby/object:Gem::Version
96
+ version: '0'
97
+ - !ruby/object:Gem::Dependency
98
+ name: rubocop-rails
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - ">="
102
+ - !ruby/object:Gem::Version
103
+ version: '0'
104
+ type: :development
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - ">="
109
+ - !ruby/object:Gem::Version
110
+ version: '0'
111
+ - !ruby/object:Gem::Dependency
112
+ name: rubocop-rspec
113
+ requirement: !ruby/object:Gem::Requirement
114
+ requirements:
115
+ - - ">="
116
+ - !ruby/object:Gem::Version
117
+ version: '0'
118
+ type: :development
119
+ prerelease: false
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ requirements:
122
+ - - ">="
123
+ - !ruby/object:Gem::Version
124
+ version: '0'
125
+ - !ruby/object:Gem::Dependency
126
+ name: simplecov
127
+ requirement: !ruby/object:Gem::Requirement
128
+ requirements:
129
+ - - ">="
130
+ - !ruby/object:Gem::Version
131
+ version: '0'
132
+ type: :development
133
+ prerelease: false
134
+ version_requirements: !ruby/object:Gem::Requirement
135
+ requirements:
136
+ - - ">="
137
+ - !ruby/object:Gem::Version
138
+ version: '0'
139
+ description: A toolset for ruby and rails.
140
+ email:
141
+ - mocaberos@gmail.com
142
+ executables: []
143
+ extensions: []
144
+ extra_rdoc_files: []
145
+ files:
146
+ - ".gitignore"
147
+ - ".gitmodules"
148
+ - ".rspec"
149
+ - ".rubocop.yml"
150
+ - CHANGELOG.md
151
+ - CODE_OF_CONDUCT.md
152
+ - Dockerfile
153
+ - Gemfile
154
+ - Gemfile.lock
155
+ - LICENSE.txt
156
+ - README.md
157
+ - Rakefile
158
+ - bin/console
159
+ - bin/setup
160
+ - buildspec.yml
161
+ - docker/scripts/test.sh
162
+ - lib/moca_rlibs.rb
163
+ - lib/moca_rlibs/codebuild.rb
164
+ - lib/moca_rlibs/docker.rb
165
+ - lib/moca_rlibs/slack_notifier.rb
166
+ - lib/moca_rlibs/version.rb
167
+ - moca_rlibs.gemspec
168
+ homepage: https://github.com/mocaberos/rlibs
169
+ licenses:
170
+ - MIT
171
+ metadata:
172
+ homepage_uri: https://github.com/mocaberos/rlibs
173
+ source_code_uri: https://github.com/mocaberos/rlibs
174
+ changelog_uri: https://github.com/mocaberos/rlibs/blob/master/CHANGELOG.md
175
+ post_install_message:
176
+ rdoc_options: []
177
+ require_paths:
178
+ - lib
179
+ required_ruby_version: !ruby/object:Gem::Requirement
180
+ requirements:
181
+ - - ">="
182
+ - !ruby/object:Gem::Version
183
+ version: 3.0.0
184
+ required_rubygems_version: !ruby/object:Gem::Requirement
185
+ requirements:
186
+ - - ">="
187
+ - !ruby/object:Gem::Version
188
+ version: '0'
189
+ requirements: []
190
+ rubygems_version: 3.2.22
191
+ signing_key:
192
+ specification_version: 4
193
+ summary: A toolset for ruby and rails.
194
+ test_files: []