RADWIMPS 2016.8.24
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 +7 -0
- data/Gemfile +15 -0
- data/LICENSE.txt +21 -0
- data/README.md +53 -0
- data/Rakefile +12 -0
- data/Steepfile +5 -0
- data/lib/radwimps.rb +85 -0
- data/radwimps.gemspec +80 -0
- data/sig/radwimps.rbs +13 -0
- metadata +96 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: c125a230e89a375e48162ffbc16446d1e9eab942a5ca6e8e14e097ead7cf0fba
|
4
|
+
data.tar.gz: fb9f33248d158dca1a77b7ec28b581eb24394793c8bc2a582ee78960b27fcd34
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 363405bbefcc2275337b4c6bb79ad57b3d2ea421acd1063332de30193a27338f848c4e330f5de5fac4da87875907ced739c4da5eabf23ba8ea14b7e7acf79801
|
7
|
+
data.tar.gz: 5c882db26f6ba799ecc0c5db0d0ecb0db13977488e1c95e6e3f211bb9798ae24969ca125e1e7aa06b86b86ea977b6c0e32c2de29c84a39bc095fb93a2e8ab7f7
|
data/Gemfile
ADDED
@@ -0,0 +1,15 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
source "https://rubygems.org"
|
4
|
+
|
5
|
+
# Specify your gem's dependencies in radwimps.gemspec
|
6
|
+
gemspec
|
7
|
+
|
8
|
+
gem "rake", "~> 13.0"
|
9
|
+
|
10
|
+
group "test", optional: true do
|
11
|
+
gem "rspec", "~> 3.11"
|
12
|
+
gem "steep", "~> 0.47.0"
|
13
|
+
|
14
|
+
gem "activesupport", "~> 6" # https://github.com/soutaro/steep/issues/466
|
15
|
+
end
|
data/LICENSE.txt
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) 2022 sevenc-nanashi
|
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
|
+
# RADWIMPS
|
2
|
+
|
3
|
+
君の前前前世から僕は 君を探します。
|
4
|
+
|
5
|
+
## 見つけてはじめて 何をすればいい?(インストール)
|
6
|
+
|
7
|
+
君のGemfileにgemを書いて、
|
8
|
+
|
9
|
+
```ruby
|
10
|
+
gem 'radwimps'
|
11
|
+
```
|
12
|
+
|
13
|
+
遥か昔から知る このコマンドを実行してください。
|
14
|
+
|
15
|
+
$ bundle install
|
16
|
+
|
17
|
+
または、このコマンドを実行してください。
|
18
|
+
|
19
|
+
$ gem install radwimps
|
20
|
+
|
21
|
+
## 入れてはじめて 何を書けばいい?(仕様)
|
22
|
+
|
23
|
+
```ruby
|
24
|
+
require "radwimps"
|
25
|
+
|
26
|
+
radwimps = RADWIMPS.new
|
27
|
+
|
28
|
+
radwimps.then.then.then.set # => 前前前世
|
29
|
+
radwimps.then.then.set # => 前前世
|
30
|
+
radwimps.then.set # => 前世
|
31
|
+
radwimps.set # => 現世
|
32
|
+
radwimps.raise.set # => 来世
|
33
|
+
radwimps.raise.raise.set # => 来来世
|
34
|
+
radwimps.raise.raise.raise.set # => 来来来世
|
35
|
+
```
|
36
|
+
|
37
|
+
## このライブラリの内部まで愛してみたい人のために(開発)
|
38
|
+
|
39
|
+
```
|
40
|
+
bundle config set group test
|
41
|
+
bundle install
|
42
|
+
rake spec
|
43
|
+
rake steep
|
44
|
+
rake install
|
45
|
+
```
|
46
|
+
|
47
|
+
## どっから話すかな 僕がバグを起こしたストーリー(バグ報告)
|
48
|
+
|
49
|
+
https://github.com/sevenc-nanashi/radwimps に君がバグを起こしたストーリーを送信してください。
|
50
|
+
|
51
|
+
## その著作権を壊さずに どう使ったならいい?(ライセンス)
|
52
|
+
|
53
|
+
僕のリポジトリに[MIT License](https://opensource.org/licenses/MIT)を適用しています。
|
data/Rakefile
ADDED
data/Steepfile
ADDED
data/lib/radwimps.rb
ADDED
@@ -0,0 +1,85 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
#
|
4
|
+
# RADWIMPS(ラッドウィンプス)は、日本の4人組ロックバンドである。
|
5
|
+
# 所属レコード会社はユニバーサルミュージック、所属レーベルはEMI Records/Muzinto Records。
|
6
|
+
# 所属事務所は有限会社ボクチン(英語: voque ting、所属はRADWIMPSのみ)。
|
7
|
+
# 略称は「ラッド(RAD)」。
|
8
|
+
# @note バンド名は、「すごい」「強い」「いかした」という意味の軽いアメリカ英語の俗語「rad」と、「弱虫」「意気地なし」という意味の「wimp」を組み合わせた造語であり、「かっこいい弱虫」「見事な意気地なし」といった意味である。
|
9
|
+
# @see https://ja.wikipedia.org/wiki/RADWIMPS Wikipedia - RADWIMPS
|
10
|
+
#
|
11
|
+
class RADWIMPS
|
12
|
+
class Error < StandardError; end
|
13
|
+
|
14
|
+
VERSION = "2016.8.24"
|
15
|
+
RAISE = method(:raise) # Somehow steep fails with Kernel.raise
|
16
|
+
|
17
|
+
#
|
18
|
+
# RADWIMPSを新しく結成します。
|
19
|
+
#
|
20
|
+
# @param [Boolean] strict 前前前世に戻ることができなかった場合に例外を発生させるかどうか。
|
21
|
+
#
|
22
|
+
def initialize(strict: false)
|
23
|
+
@life_counter = 0
|
24
|
+
@strict = strict
|
25
|
+
end
|
26
|
+
|
27
|
+
#
|
28
|
+
# 前世を探します。
|
29
|
+
#
|
30
|
+
# @return [self]
|
31
|
+
#
|
32
|
+
def then
|
33
|
+
@life_counter -= 1
|
34
|
+
self
|
35
|
+
end
|
36
|
+
|
37
|
+
alias 前 then
|
38
|
+
|
39
|
+
#
|
40
|
+
# 来世を探します。
|
41
|
+
#
|
42
|
+
# @return [self]
|
43
|
+
#
|
44
|
+
def raise
|
45
|
+
@life_counter += 1
|
46
|
+
self
|
47
|
+
end
|
48
|
+
|
49
|
+
alias 来 raise
|
50
|
+
|
51
|
+
#
|
52
|
+
# そのぶきっちょな笑い方をめがけて やってきます。
|
53
|
+
#
|
54
|
+
# @raise [RADWIMPS::Error] 前前前世に戻ることができなかった場合。
|
55
|
+
#
|
56
|
+
def set
|
57
|
+
if @strict
|
58
|
+
if @life_counter < -3
|
59
|
+
RAISE.(Error, "前世に行きすぎました。現在は#{format_counter}にいます。")
|
60
|
+
elsif @life_counter == 0
|
61
|
+
RAISE.(Error, "君の前前前世を探していません。現在は#{format_counter}にいます。")
|
62
|
+
elsif @life_counter > -3
|
63
|
+
RAISE.(Error, "君の前前前世までたどり着いていません。現在は#{format_counter}にいます。")
|
64
|
+
else
|
65
|
+
puts format_counter
|
66
|
+
end
|
67
|
+
else
|
68
|
+
puts format_counter
|
69
|
+
end
|
70
|
+
end
|
71
|
+
|
72
|
+
alias 世 set
|
73
|
+
|
74
|
+
private
|
75
|
+
|
76
|
+
def format_counter
|
77
|
+
if @life_counter == 0
|
78
|
+
"現世"
|
79
|
+
elsif @life_counter > 0
|
80
|
+
"来" * @life_counter + "世"
|
81
|
+
else
|
82
|
+
"前" * @life_counter.abs + "世"
|
83
|
+
end
|
84
|
+
end
|
85
|
+
end
|
data/radwimps.gemspec
ADDED
@@ -0,0 +1,80 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require_relative "lib/radwimps"
|
4
|
+
|
5
|
+
Gem::Specification.new do |spec|
|
6
|
+
spec.name = "RADWIMPS"
|
7
|
+
spec.version = RADWIMPS::VERSION
|
8
|
+
spec.authors = ["sevenc-nanashi"]
|
9
|
+
spec.email = ["sevenc-nanashi@sevenbot.jp"]
|
10
|
+
|
11
|
+
spec.summary = "君の前前前世から僕は 君を探しはじめたよ"
|
12
|
+
spec.description = <<~LYRICS
|
13
|
+
やっと眼を覚ましたかい
|
14
|
+
それなのになぜ眼も合わせやしないんだい?
|
15
|
+
「遅いよ」と怒る君
|
16
|
+
これでもやれるだけ飛ばしてきたんだよ
|
17
|
+
心が身体を追い越してきたんだよ
|
18
|
+
君の髪や瞳だけで胸が痛いよ
|
19
|
+
同じ時を吸いこんで離したくないよ
|
20
|
+
遥か昔から知る その声に
|
21
|
+
生まれてはじめて 何を言えばいい?
|
22
|
+
|
23
|
+
君の前前前世から僕は 君を探しはじめたよ
|
24
|
+
そのぶきっちょな笑い方をめがけて やってきたんだよ
|
25
|
+
君が全然全部なくなって チリヂリになったって
|
26
|
+
もう迷わない また1から探しはじめるさ
|
27
|
+
むしろ0から また宇宙をはじめてみようか
|
28
|
+
|
29
|
+
|
30
|
+
どっから話すかな
|
31
|
+
君が眠っていた間のストーリー
|
32
|
+
何億 何光年分の物語を語りにきたんだよ
|
33
|
+
けどいざその姿この眼に映すと
|
34
|
+
君も知らぬ君とジャレて 戯れたいよ
|
35
|
+
君の消えぬ痛みまで愛してみたいよ
|
36
|
+
銀河何個分かの 果てに出逢えた
|
37
|
+
その手を壊さずに どう握ったならいい?
|
38
|
+
|
39
|
+
君の前前前世から僕は 君を探しはじめたよ
|
40
|
+
その騒がしい声と涙をめがけ やってきたんだよ
|
41
|
+
そんな革命前夜の僕らを誰が止めるというんだろう
|
42
|
+
もう迷わない 君のハートに旗を立てるよ
|
43
|
+
君は僕から諦め方を 奪い取ったの
|
44
|
+
|
45
|
+
(おぉ おぉ おぉ おぉ)
|
46
|
+
(おぉ おぉ おぉ おぉ)
|
47
|
+
(おぉ おぉ おぉ おぉ)
|
48
|
+
(おぉ おぉ おぉ おぉ)
|
49
|
+
(おぉ おぉ おぉ おぉ)
|
50
|
+
|
51
|
+
前前前世から僕は 君を探しはじめたよ
|
52
|
+
そのぶきっちょな笑い方をめがけて やってきたんだよ
|
53
|
+
君が全然全部なくなって チリヂリになったって
|
54
|
+
もう迷わない また1から探しはじめるさ
|
55
|
+
何光年でも この歌を口ずさみながら
|
56
|
+
LYRICS
|
57
|
+
spec.homepage = "https://github.com/sevenc-nanashi/radwimps"
|
58
|
+
spec.license = "MIT"
|
59
|
+
spec.required_ruby_version = ">= 3.0.0"
|
60
|
+
|
61
|
+
spec.metadata["homepage_uri"] = spec.homepage
|
62
|
+
spec.metadata["source_code_uri"] = "https://github.com/sevenc-nanashi/radwimps"
|
63
|
+
|
64
|
+
# Specify which files should be added to the gem when it is released.
|
65
|
+
# The `git ls-files -z` loads the files in the RubyGem that have been added into git.
|
66
|
+
spec.files = Dir.chdir(File.expand_path(__dir__)) do
|
67
|
+
`git ls-files -z`.split("\x0").reject do |f|
|
68
|
+
(f == __FILE__) || f.match(%r{\A(?:(?:bin|test|spec|features)/|\.(?:git|travis|circleci)|appveyor)})
|
69
|
+
end
|
70
|
+
end
|
71
|
+
spec.bindir = "exe"
|
72
|
+
spec.executables = spec.files.grep(%r{\Aexe/}) { |f| File.basename(f) }
|
73
|
+
spec.require_paths = ["lib"]
|
74
|
+
|
75
|
+
# Uncomment to register a new dependency of your gem
|
76
|
+
# spec.add_dependency "example-gem", "~> 1.0"
|
77
|
+
|
78
|
+
# For more information and examples about making a new gem, check out our
|
79
|
+
# guide at: https://bundler.io/guides/creating_gem.html
|
80
|
+
end
|
data/sig/radwimps.rbs
ADDED
metadata
ADDED
@@ -0,0 +1,96 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: RADWIMPS
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 2016.8.24
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- sevenc-nanashi
|
8
|
+
autorequire:
|
9
|
+
bindir: exe
|
10
|
+
cert_chain: []
|
11
|
+
date: 2022-02-11 00:00:00.000000000 Z
|
12
|
+
dependencies: []
|
13
|
+
description: |
|
14
|
+
やっと眼を覚ましたかい
|
15
|
+
それなのになぜ眼も合わせやしないんだい?
|
16
|
+
「遅いよ」と怒る君
|
17
|
+
これでもやれるだけ飛ばしてきたんだよ
|
18
|
+
心が身体を追い越してきたんだよ
|
19
|
+
君の髪や瞳だけで胸が痛いよ
|
20
|
+
同じ時を吸いこんで離したくないよ
|
21
|
+
遥か昔から知る その声に
|
22
|
+
生まれてはじめて 何を言えばいい?
|
23
|
+
|
24
|
+
君の前前前世から僕は 君を探しはじめたよ
|
25
|
+
そのぶきっちょな笑い方をめがけて やってきたんだよ
|
26
|
+
君が全然全部なくなって チリヂリになったって
|
27
|
+
もう迷わない また1から探しはじめるさ
|
28
|
+
むしろ0から また宇宙をはじめてみようか
|
29
|
+
|
30
|
+
|
31
|
+
どっから話すかな
|
32
|
+
君が眠っていた間のストーリー
|
33
|
+
何億 何光年分の物語を語りにきたんだよ
|
34
|
+
けどいざその姿この眼に映すと
|
35
|
+
君も知らぬ君とジャレて 戯れたいよ
|
36
|
+
君の消えぬ痛みまで愛してみたいよ
|
37
|
+
銀河何個分かの 果てに出逢えた
|
38
|
+
その手を壊さずに どう握ったならいい?
|
39
|
+
|
40
|
+
君の前前前世から僕は 君を探しはじめたよ
|
41
|
+
その騒がしい声と涙をめがけ やってきたんだよ
|
42
|
+
そんな革命前夜の僕らを誰が止めるというんだろう
|
43
|
+
もう迷わない 君のハートに旗を立てるよ
|
44
|
+
君は僕から諦め方を 奪い取ったの
|
45
|
+
|
46
|
+
(おぉ おぉ おぉ おぉ)
|
47
|
+
(おぉ おぉ おぉ おぉ)
|
48
|
+
(おぉ おぉ おぉ おぉ)
|
49
|
+
(おぉ おぉ おぉ おぉ)
|
50
|
+
(おぉ おぉ おぉ おぉ)
|
51
|
+
|
52
|
+
前前前世から僕は 君を探しはじめたよ
|
53
|
+
そのぶきっちょな笑い方をめがけて やってきたんだよ
|
54
|
+
君が全然全部なくなって チリヂリになったって
|
55
|
+
もう迷わない また1から探しはじめるさ
|
56
|
+
何光年でも この歌を口ずさみながら
|
57
|
+
email:
|
58
|
+
- sevenc-nanashi@sevenbot.jp
|
59
|
+
executables: []
|
60
|
+
extensions: []
|
61
|
+
extra_rdoc_files: []
|
62
|
+
files:
|
63
|
+
- Gemfile
|
64
|
+
- LICENSE.txt
|
65
|
+
- README.md
|
66
|
+
- Rakefile
|
67
|
+
- Steepfile
|
68
|
+
- lib/radwimps.rb
|
69
|
+
- radwimps.gemspec
|
70
|
+
- sig/radwimps.rbs
|
71
|
+
homepage: https://github.com/sevenc-nanashi/radwimps
|
72
|
+
licenses:
|
73
|
+
- MIT
|
74
|
+
metadata:
|
75
|
+
homepage_uri: https://github.com/sevenc-nanashi/radwimps
|
76
|
+
source_code_uri: https://github.com/sevenc-nanashi/radwimps
|
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.0.0
|
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.2.32
|
93
|
+
signing_key:
|
94
|
+
specification_version: 4
|
95
|
+
summary: 君の前前前世から僕は 君を探しはじめたよ
|
96
|
+
test_files: []
|