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 +4 -4
- data/README.md +14 -23
- data/lib/swimming_fish/version.rb +1 -1
- data/lib/swimming_fish.rb +12 -9
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4f109a863023130e73fdd35b4d8ab71d53d154a9acdde0e3483a3f8f3c89e5bf
|
4
|
+
data.tar.gz: 300ae24e1b2228f27fa255f4afe95d26a97de561d0ce5e4559cdc230ce41502f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
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
|
8
|
+
gem 'swimming_fish', '~> 0.1.2'
|
21
9
|
```
|
22
10
|
|
23
11
|
## Usage
|
24
12
|
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
13
|
+
小さな魚群を泳がせて、ログの場所が分かりやすくなるgemです。
|
14
|
+
ログを記載する手前で以下のように記述してください。
|
15
|
+
```ruby
|
16
|
+
Fish.swim
|
17
|
+
```
|
18
|
+
そうすると、以下のようなログが流れます。
|
19
|
+

|
32
20
|
|
33
|
-
|
21
|
+
または、引数に文字列やオブジェクトを与えると、`puts`で出力されます。
|
22
|
+
```ruby
|
23
|
+
Fish.swim("ここからデバッグ内容")
|
24
|
+
```
|
25
|
+

|
34
26
|
|
35
|
-
Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/swimming_fish.
|
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
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
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.
|
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:
|
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://
|
25
|
+
homepage: https://github.com/YmzknA/swimming_fish
|
26
26
|
licenses: []
|
27
27
|
metadata:
|
28
|
-
homepage_uri: https://
|
28
|
+
homepage_uri: https://github.com/YmzknA/swimming_fish
|
29
29
|
post_install_message:
|
30
30
|
rdoc_options: []
|
31
31
|
require_paths:
|