terminal_character 0.2.1 → 0.3.0

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: 244f15e72e638565dd8e3441c6a3aed16df4c9eae645b25e91ce7fb21b526796
4
- data.tar.gz: 1085282f4a6484c931088d9d79264f97323952aada0cb85482ae9036b74c3e12
3
+ metadata.gz: 544f4b2bc6577847669973007560d5f76364398551ba57c1b9bd2c9aa0443f38
4
+ data.tar.gz: e0baaa83e0f5da75c286b3d98ca871d86d059981dfa9c0e4597f32626a5a98d6
5
5
  SHA512:
6
- metadata.gz: d77f61f1216eb5207beb402f385fa7d49e861e622cf67323608e8a2c7b978cf480f59f5d0415855e20fe562d22bfc1fc5712817092f4390f2b3184bedf59fcd9
7
- data.tar.gz: 618fb029328db0256390b239cea77cc20380c02ba21da27b7b5e8b902b632d8c17a25606c536935d3a039d0601631e7b36a2ed51dead88875dc46701b0d51cc8
6
+ metadata.gz: 8b7bf3d6560abd39d4df4ec3f65e78ee1289d5c03a90974d29793e60dd887692b28f0aa9eecc1edd6ddeea1a24de9a521847acb5d8fe874d68a8fd08eff2a881
7
+ data.tar.gz: f00da09d939962961ed23f127bb9599c71688489dcd9f660735f151df9103ac4525394b0af98926dabb370d45ebb2e6572b848b8c1a5f13166fd85f783fae09f
data/README.md CHANGED
@@ -1,35 +1,12 @@
1
1
  # TerminalCharacter
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/terminal_character`. To experiment with that code, run `bin/console` for an interactive prompt.
6
-
7
- ## Installation
8
-
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
- $ bundle add UPDATE_WITH_YOUR_GEM_NAME_IMMEDIATELY_AFTER_RELEASE_TO_RUBYGEMS_ORG
14
-
15
- If bundler is not being used to manage dependencies, install the gem by executing:
16
-
17
- $ gem install UPDATE_WITH_YOUR_GEM_NAME_IMMEDIATELY_AFTER_RELEASE_TO_RUBYGEMS_ORG
18
-
19
- ## Usage
20
-
21
- TODO: Write usage instructions here
22
-
23
- ## Development
24
-
25
- After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
26
-
27
- 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).
28
-
29
- ## Contributing
30
-
31
- Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/terminal_character.
32
-
33
- ## License
34
-
35
- The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
3
+ ### 使い方
4
+ 1. Gemfileに`gem 'terminal_character'`と記載する
5
+ 2. railsアプリケーションのvsコードの適当なファイルに`puts_character`と記載する
6
+ 記載例:トップページを表示するコントローラーのindexアクション
7
+ ```ruby
8
+ def index
9
+ puts_character
10
+ end
11
+ ```
12
+ 3. サーバー起動後、記載した`puts_character`が読まれる挙動をするとターミナルにちいかわのキャラが表示される
data/lib/character.rb CHANGED
@@ -1,62 +1,62 @@
1
1
 
2
2
 
3
3
  def chiikawa_usagi
4
- " .####. .#####.
5
- .####### .###``####.
6
- .####````##..###```` ####
7
- .####`````###.### `````####
8
- .### ``````###.##```````####
9
- ###~ ``````#####~~ `````####
10
- .###~~ `````####~~~~ ````###.
11
- ###~~~ `````####~~~~ ````###
12
- ###~~~ `````####~~~~ ``` ###
13
- ###~~~ `````#####~~~ ````##.
14
- ###~~~ `````####~~~~ ````##
15
- ###~~~~ ````####~~~~ ````##
16
- .###~~~~ ```.###~~~~ ````##.
17
- ###~~~~ ``` ###~~~~ ````##
18
- .##~~~~ ```.###~~~ `````##.
19
- ###~~~~ ```.###~~~ ```.##
20
- .##~~~~ ``` ####~~ ```.##.
21
- .###~~~ ```.###~~~~ ``.##
22
- .###~~~ ```.###~~~~ `` ##
23
- .####~~ ``.###~~~~ `` #.
24
- .####~ ` ###~~ `` ### .###~#~..
25
- ..####~``` ###### ````#`~.###########~~..
26
- ..############'````````````.```````````` ###########..
27
- ..######``##`````````````````.`````````````````````~#########.
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
- #####.``````.````.````````.``````````````````.`````.``````````````````````````.````.```` ~~~~####.``.`.```` ~##~
55
- ######. ````````````````````.`````````````````.`````.`````````````````.```````````````````` ~##########~~###
56
- .#######.. `````.``.```.````.``````.``.``````````.```.``.``.```.``.````.```.``.```.``` ..###~#####````#
57
- .############......```````.``.``````.``.``.`````````````. .....~~...~########~#########`
58
- #`########################~~#################################################`##`
59
- ~##`````````############################````##`
4
+ " .####. .#####.
5
+ .####### .###``####.
6
+ .####````##..###```` ####
7
+ .####`````###.### `````####
8
+ .### ``````###.##```````####
9
+ ###~ ``````#####~~ `````####
10
+ .###~~ `````####~~~~ ````###.
11
+ ###~~~ `````####~~~~ ````###
12
+ ###~~~ `````####~~~~ ``` ###
13
+ ###~~~ `````#####~~~ ````##.
14
+ ###~~~ `````####~~~~ ````##
15
+ ###~~~~ ````####~~~~ ````##
16
+ .###~~~~ ```.###~~~~ ````##.
17
+ ###~~~~ ``` ###~~~~ ````##
18
+ .##~~~~ ```.###~~~ `````##.
19
+ ###~~~~ ```.###~~~ ```.##
20
+ .##~~~~ ``` ####~~ ```.##.
21
+ .###~~~ ```.###~~~~ ``.##
22
+ .###~~~ ```.###~~~~ `` ##
23
+ .####~~ ``.###~~~~ `` #.
24
+ .####~ ` ###~~ `` ### .###~#~..
25
+ ..####~``` ###### ````#`~.###########~~..
26
+ ..############'````````````.```````````` ###########..
27
+ ..######``##`````````````````.`````````````````````~#########.
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
+ #####.``````.````.````````.``````````````````.`````.``````````````````````````.````.```` ~~~~####.``.`.```` ~##~
55
+ ######. ````````````````````.`````````````````.`````.`````````````````.```````````````````` ~##########~~###
56
+ .#######.. `````.``.```.````.``````.``.``````````.```.``.``.```.``.````.```.``.```.``` ..###~#####````#
57
+ .############......```````.``.``````.``.``.`````````````. .....~~...~########~#########`
58
+ #`########################~~#################################################`##`
59
+ ~##`````````############################````##`
60
60
  "
61
61
  end
62
62
 
@@ -137,4 +137,77 @@ def chiikawa_hachiware
137
137
  ####~~~###~. .##~
138
138
  ~~~ ~#####
139
139
  "
140
- end
140
+ end
141
+
142
+
143
+
144
+
145
+ def chiikawa_chiikawa
146
+ "
147
+ ..######..
148
+ .###########~.
149
+ .########.. ....... .#### .####
150
+ .###` ~#####. ...~~######################..##### #####
151
+ .#### ####.#########``###~ ~########### .####
152
+ #### ######## ~#### ####
153
+ ####~ #### ###
154
+ .###. ###
155
+ .###. .#####..
156
+ ~## #######..
157
+ ..### ######.
158
+ ..###` ######.
159
+ .#### #####.
160
+ .###` ..... ######.
161
+ .##### ..####. ####### .#####.
162
+ .#### .####``# #`` #####.
163
+ .#### #`# #####.
164
+ .##### #####
165
+ ##### #####
166
+ .#### .#######.. #####
167
+ .#### ..###. ####### #####
168
+ .#### .######### ##~# ..~~~~~~~... #####
169
+ #### .######~` .##..####~###~.~ #####
170
+ .#### ...~~.~~~.. `` .###..####.###~### .####
171
+ #### ..##....~~.~~~~. .... .###..####~######## ####.
172
+ .### ..####.###.##..~#.` .### ##~..###..###.##~ ####.
173
+ #### ..####.####.###.### .##. ####~ .## `...~##.~##..~#. ####
174
+ #### ..####.####.###~#### ###############` `..##~#.~~#` ####.
175
+ #### ##~~~.##..###.~~.``` #### .### ````` .####
176
+ #### ..~~~~.~..~..` .###. .### .####
177
+ #### ```` ###~. #### ####
178
+ .###. ######## .####
179
+ #### .###
180
+ ###. .######. .###
181
+ #### .###~ ###
182
+ #### .###
183
+ #### .###
184
+ #### ####
185
+ ####. .####
186
+ #####. ########..
187
+ #####. ~#######.
188
+ ####~. .####~
189
+ #####. ####
190
+ ##### ###... ...####
191
+ .#### ##########~
192
+ .#### ###
193
+ .#### ... ###
194
+ ###. .dMMt .###
195
+ .#########~ .. .###
196
+ ~````# #### .###
197
+ ####. .####
198
+ #### .####
199
+ #### ####
200
+ .###~ .####
201
+ .####. .####
202
+ .#####. ..#####
203
+ .##~~####. .#####
204
+ ### ######. ..#####
205
+ .####. .######.. ...#####
206
+ .#######~ #########.. .######~
207
+ ##############~~~~. .## ###
208
+ ########## .### .###
209
+ ####. #### .###
210
+ #####..#####..###
211
+ .##``#######
212
+ "
213
+ end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module TerminalCharacter
4
- VERSION = "0.2.1"
4
+ VERSION = "0.3.0"
5
5
  end
@@ -7,6 +7,7 @@ module TerminalCharacter
7
7
  def self.puts_character
8
8
  puts chiikawa_usagi
9
9
  puts chiikawa_hachiware
10
+ puts chiikawa_chiikawa
10
11
  end
11
12
  # class Error < StandardError; end
12
13
  # Your code goes here...
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: terminal_character
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - OhyaYouki
@@ -26,9 +26,6 @@ files:
26
26
  - lib/terminal_character.rb
27
27
  - lib/terminal_character/version.rb
28
28
  - sig/terminal_character.rbs
29
- - terminal_character-0.1.0.gem
30
- - terminal_character-0.1.1.gem
31
- - terminal_character-0.2.0.gem
32
29
  homepage: https://github.com/OhyaYouki/terminal_character
33
30
  licenses:
34
31
  - MIT
Binary file
Binary file
Binary file