satori_like_dictionary 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8c59622c6f18ee113723cbc3ce1acd8ad633320f
4
- data.tar.gz: 151782ce65a8e051598205c9d3b44b83703d97bb
3
+ metadata.gz: f0b2123dcdb6d8d97d61177eacf1319ae5a96899
4
+ data.tar.gz: f972352a25ea1c97502b17c75757595f4aadb195
5
5
  SHA512:
6
- metadata.gz: 417b6d91e05e9305d15e19b5f20079940f73e501f9dad0f4a52195b4446cb8d79f644d3153863f7a1e746b9ac3a2b8f058b09c7ef15923e76e17b38d6741bdc2
7
- data.tar.gz: 8d5110d0816381dec2ead7cb1756762ef0b0f42ccf1f00ede1f7e04d843b9d5f322df0eed072db15aba71fa70c8dab4c881024753aa18960e90f096dc03b8b84
6
+ metadata.gz: acef9ba568267eb247aab879b3856acb933f44fcb2e405bd9cbd684cdb41b93a2c235e0a1ee964b4948f8a171a028e8913af8cffa1f06ada1de821cbc13de1f9
7
+ data.tar.gz: b6b6854acdcf4c755c91e25140557b4cfc88bc8ad2c21961756f685139ad88bc536fd3883dbf468f8b9c3e018995c0311f45bdfc39d394b1aa0a1f5b9da353dd
@@ -233,7 +233,7 @@ class SatoriLikeDictionary
233
233
  # @param [Events] events events definition
234
234
  # @param [OpenStruct] request request hash
235
235
  def render(events, request)
236
- shuffle.first.render(events, request)
236
+ sample.render(events, request)
237
237
  end
238
238
  end
239
239
 
@@ -251,8 +251,9 @@ class SatoriLikeDictionary
251
251
 
252
252
  # change character scope
253
253
  def change_scope
254
- request.__satori_scope = request.__satori_scope.nil? || request.__satori_scope == 1 ? 0 : 1
255
- '\\' + request.__satori_scope.to_s
254
+ scope_info = "__satori_scope_#{self.object_id}"
255
+ request[scope_info] = request[scope_info].nil? || request[scope_info] == 1 ? 0 : 1
256
+ '\\' + request[scope_info].to_s
256
257
  end
257
258
 
258
259
  # jump to entry
@@ -3,7 +3,7 @@ lib = File.expand_path('../lib', __FILE__)
3
3
 
4
4
  Gem::Specification.new do |spec|
5
5
  spec.name = "satori_like_dictionary"
6
- spec.version = "0.0.2"
6
+ spec.version = "0.0.3"
7
7
  spec.authors = ["Narazaka"]
8
8
  spec.email = ["info@narazaka.net"]
9
9
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: satori_like_dictionary
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Narazaka