d1lcs 0.5.2 → 0.5.3

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
  SHA1:
3
- metadata.gz: 90a71e0e428ecde7e2ff5d6b573c00ee62dc721d
4
- data.tar.gz: 3f7137c525bed48ed924d706251efe6c750d149d
3
+ metadata.gz: 3d6a4a9ec25be0f92dd364ee08ec7a957ba98659
4
+ data.tar.gz: 6c11ceffb3b5b23f19d9d189c32a1c496e95cc63
5
5
  SHA512:
6
- metadata.gz: 8d5c804d3e8eaafe33ab439e3a34cceab5fa385b9165ec3761feb18fdb19e40cad191a849afa4cf04e5e300ee6e598acde954a11e04585e70290b338ef087a5e
7
- data.tar.gz: 8e0671489cb48a4b3a51bbacd02aeedd08bd0c8651a51812e1de5b8c2b0ee03e947adc66d04885259e32b1107bf0154fb3b8a7eaa388a7b98887be8a2ae98951
6
+ metadata.gz: ccb8ec2008d3417ad31bda057f3d37db87a351f1fa3a9f57d34e1c3f824438b87e2ab4bbce9f3c9173963ca3ded5f4631922b53cdc1c4585c7841b6231afd9bf
7
+ data.tar.gz: 63d58196ae8078d130fec8fc945aa07f07b8a1e7f033522e41cc8b2744916452876b761a4d36c5916be80894616fb000d8d785a442891400a6ddfd9e8fdf88c5
@@ -3,8 +3,9 @@ rvm:
3
3
  - '1.9.3'
4
4
  - '2.0.0-p648'
5
5
  - '2.1.10'
6
- - '2.2.5'
7
- - '2.3.1'
6
+ - '2.2.6'
7
+ - '2.3.3'
8
+ - '2.4.0'
8
9
  before_install: gem install bundler -v 1.10.6
9
10
  bundler_args: --path vendor/bundle
10
11
  cache:
@@ -16,7 +16,6 @@ module D1lcs
16
16
  attr_reader :error
17
17
 
18
18
  # JSON でデータを取り込む
19
- # @param id [Fixnum] オンラインキャラシの登録ID
20
19
  # @return [String] 完成した1行キャラシ
21
20
  # ToDo: エラー処理を書く
22
21
  def initialize(request)
@@ -136,7 +135,7 @@ module D1lcs
136
135
 
137
136
  # リクエストされたキャラクターIDが正しいか確認する
138
137
  # @param [String] request
139
- # @return [Fixnum/false]
138
+ # @return [Integer/false]
140
139
  def check_id(request)
141
140
  id = request.to_i
142
141
  case id
@@ -182,7 +181,7 @@ module D1lcs
182
181
  end
183
182
 
184
183
  # クラスIDから全角2文字の短縮形に変換する
185
- # @param [Fixnum] class_id JSONから読み込むことを考慮し文字列型
184
+ # @param [Integer] class_id JSONから読み込むことを考慮し文字列型
186
185
  # @return [String]
187
186
  def classID_short(class_id)
188
187
  class_ids = ['勇者', '魔王', '姫様', 'ドラ', '戦士', '魔使',
@@ -193,7 +192,7 @@ module D1lcs
193
192
  end
194
193
 
195
194
  # ポジションIDから全角2文字の短縮形に変換する
196
- # @param [Fixnum] position_id JSONから読み込むことを考慮し文字列型
195
+ # @param [Integer] position_id JSONから読み込むことを考慮し文字列型
197
196
  # @return [String]
198
197
  def positionID_short(position_id)
199
198
  position_ids = ['冒険', '凡人', '夢追', '神話', '負犬', '守護',
@@ -2,16 +2,19 @@
2
2
 
3
3
  class String
4
4
  # 数字を全角に変換する
5
+ # @return [String]
5
6
  def half_to_full
6
7
  self.tr('0-9', '0-9')
7
8
  end
8
9
 
9
10
  # 数字を半角に変換する
11
+ # @return [String]
10
12
  def full_to_half
11
13
  self.tr('0-9', '0-9')
12
14
  end
13
15
 
14
16
  # 文字列を表示するために使うサイズを返す
17
+ # @return [Integer]
15
18
  def dispsize
16
19
  charsize = 0
17
20
 
@@ -27,7 +30,7 @@ class String
27
30
  end
28
31
 
29
32
  # 表示サイズに文字列を切り詰める
30
- # @param long [Fixnum] 生成文字列の長さ
33
+ # @param long [Integer] 生成文字列の長さ
31
34
  # @param dot [Boolean] 末尾に … を付加するか
32
35
  # @return [String]
33
36
  def dispsize_cut(long, dot = false)
@@ -1,4 +1,4 @@
1
1
  module D1lcs
2
- VERSION = "0.5.2"
2
+ VERSION = "0.5.3"
3
3
  USER_AGENT = "Ruby/#{RUBY_VERSION} (#{RUBY_DESCRIPTION}) d1lcs-gem/#{VERSION}"
4
4
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: d1lcs
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.2
4
+ version: 0.5.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - koi-chan