swimming_fish 0.1.0 → 0.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: 176a55c1ff16f548a5f4481a215c009decd8fae069ff42b204281d2619bdebbe
4
- data.tar.gz: 688886fc68efc64e2a99705404e73fc110e5c0c2fde9d57b736b065915747fbf
3
+ metadata.gz: 4f109a863023130e73fdd35b4d8ab71d53d154a9acdde0e3483a3f8f3c89e5bf
4
+ data.tar.gz: 300ae24e1b2228f27fa255f4afe95d26a97de561d0ce5e4559cdc230ce41502f
5
5
  SHA512:
6
- metadata.gz: 38d51065d34c559bc056d13b49be6850143bc2111a9d2217c55c73e8c311a31e9674dedcf33095e3f3151d0dd1af265d417257c299508c922cb87597c72433e8
7
- data.tar.gz: eb5a3abd24262ef068855faf2a2a29c25f91db414c11558d13fbe7b61b413346b9d6b099b282d987a7e67964da9c1771c1fd6879b32fed4f8a2a1e3efe9d2365
6
+ metadata.gz: 2c8203450d1f9d5c1da2a772cb02cf256758dfb446e9e25efb05e24ac074b8ca14b564f24aa8ef5458543f9c59c35d3e1e6bdbd5805014e59e95614070fdbfc8
7
+ data.tar.gz: d43e645f342d315fa8e80df53ed30db4ab7f552bc554a17490c3508389f367dfdef8f7f4e0b89918d01e244e4431df711957b62092316c87bc48f3310a9e9d5f
data/README.md CHANGED
@@ -1,35 +1,26 @@
1
1
  # SwimmingFish
2
2
 
3
- TODO: Delete this and the text below, and describe your gem
4
-
5
- Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/swimming_fish`. To experiment with that code, run `bin/console` for an interactive prompt.
6
-
7
3
  ## Installation
8
4
 
9
- TODO: Replace `UPDATE_WITH_YOUR_GEM_NAME_IMMEDIATELY_AFTER_RELEASE_TO_RUBYGEMS_ORG` with your gem name right after releasing it to RubyGems.org. Please do not do it earlier due to security reasons. Alternatively, replace this section with instructions to install your gem from git if you don't plan to release to RubyGems.org.
10
-
11
- Install the gem and add to the application's Gemfile by executing:
12
-
13
- ```bash
14
- bundle add UPDATE_WITH_YOUR_GEM_NAME_IMMEDIATELY_AFTER_RELEASE_TO_RUBYGEMS_ORG
15
- ```
16
-
17
- If bundler is not being used to manage dependencies, install the gem by executing:
5
+ Gemfileに以下のように記載してください。
18
6
 
19
7
  ```bash
20
- gem install UPDATE_WITH_YOUR_GEM_NAME_IMMEDIATELY_AFTER_RELEASE_TO_RUBYGEMS_ORG
8
+ gem 'swimming_fish', '~> 0.1.2'
21
9
  ```
22
10
 
23
11
  ## Usage
24
12
 
25
- TODO: Write usage instructions here
26
-
27
- ## Development
28
-
29
- After checking out the repo, run `bin/setup` to install dependencies. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
30
-
31
- To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and the created tag, and push the `.gem` file to [rubygems.org](https://rubygems.org).
13
+ 小さな魚群を泳がせて、ログの場所が分かりやすくなるgemです。
14
+ ログを記載する手前で以下のように記述してください。
15
+ ```ruby
16
+ Fish.swim
17
+ ```
18
+ そうすると、以下のようなログが流れます。
19
+ ![Image](https://github.com/user-attachments/assets/9a121708-abf1-4728-a4a5-b2104c69af42)
32
20
 
33
- ## Contributing
21
+ または、引数に文字列やオブジェクトを与えると、`puts`で出力されます。
22
+ ```ruby
23
+ Fish.swim("ここからデバッグ内容")
24
+ ```
25
+ ![Image](https://github.com/user-attachments/assets/24827472-e811-43fb-a543-11ff7b4d3c69)
34
26
 
35
- Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/swimming_fish.
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module SwimmingFish
4
- VERSION = "0.1.0"
4
+ VERSION = "0.1.2"
5
5
  end
data/lib/swimming_fish.rb CHANGED
@@ -4,14 +4,17 @@ require_relative "swimming_fish/version"
4
4
 
5
5
  module Fish
6
6
  class Error < StandardError; end
7
- # Your code goes here...
8
- def self.swimming
9
- pp "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"
10
- pp " >>ログデバッグ魚群到来<< "
11
- pp "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"
12
- pp " <°))))>< ᗦ↞◃ ଳ ଳ ଳ "
13
- pp " <°))))>< <>< ᗦ↞◃ ᗦ↞◃~~3 "
14
- pp " ᗦ↞◃ "
15
- pp "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"
7
+ def self.swim(message = "魚群が去っていきました")
8
+ puts "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"
9
+ puts " >>ログデバッグ魚群到来<< "
10
+ puts "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"
11
+ puts " <°))))>< ᗦ↞◃ ଳ ଳ ଳ "
12
+ puts " <°))))>< <>< ᗦ↞◃ ᗦ↞◃~~3 "
13
+ puts " ᗦ↞◃ "
14
+ puts "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"
15
+ puts "#{message}"
16
+ puts "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"
17
+ puts " ᗦ↞◃ ~ "
18
+ puts "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"
16
19
  end
17
20
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: swimming_fish
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - YmzknA
@@ -10,7 +10,7 @@ bindir: exe
10
10
  cert_chain: []
11
11
  date: 2025-03-17 00:00:00.000000000 Z
12
12
  dependencies: []
13
- description: Gemをつくってみる経験のために、簡単なgemを作成しました。
13
+ description: ログに魚を泳がしたかったので作成しました
14
14
  email:
15
15
  - taiyo.yamazaki.35b@gmail.com
16
16
  executables: []
@@ -22,10 +22,10 @@ files:
22
22
  - lib/swimming_fish.rb
23
23
  - lib/swimming_fish/version.rb
24
24
  - sig/swimming_fish.rbs
25
- homepage: https://katatsumuri.wpx.jp/
25
+ homepage: https://github.com/YmzknA/swimming_fish
26
26
  licenses: []
27
27
  metadata:
28
- homepage_uri: https://katatsumuri.wpx.jp/
28
+ homepage_uri: https://github.com/YmzknA/swimming_fish
29
29
  post_install_message:
30
30
  rdoc_options: []
31
31
  require_paths: