kotodama 1.2.4 → 1.2.5

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.
@@ -1,7 +1,7 @@
1
1
  require 'kaiseki'
2
2
 
3
3
  module Kotodama
4
- VERSION = '1.2.4'
4
+ VERSION = '1.2.5'
5
5
  file_path = File.dirname __FILE__
6
6
 
7
7
  #load base class mods
@@ -27,9 +27,12 @@ module Kotodama
27
27
  if @spellings.key? n
28
28
  string << @spellings[n]
29
29
  else
30
- string << n[0]
30
+ if n[0] == '$'
31
+ string << n[1..-1]
32
+ else
33
+ string << n[0]
34
+ end
31
35
  end
32
- string.gsub '$', ''
33
36
  end
34
37
  string
35
38
  end
@@ -15,6 +15,7 @@ module Kotodama
15
15
  rule = options[:rule] || @options['$rule']
16
16
  raise "rule `#{rule}' isn't defined" unless @rules.key? rule
17
17
  output = @rules[rule].generate
18
+ puts output
18
19
  return output.join if options[:generate_only]
19
20
  change = options[:change] || @options['$change']
20
21
  if change
@@ -27,7 +28,11 @@ module Kotodama
27
28
  if @spellings.key? n
28
29
  string << @spellings[n]
29
30
  else
30
- string << n[0]
31
+ if n[0] == '$'
32
+ string << n[1..-1]
33
+ else
34
+ string << n[0]
35
+ end
31
36
  end
32
37
  end
33
38
  string
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: kotodama
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 1.2.4
5
+ version: 1.2.5
6
6
  platform: ruby
7
7
  authors:
8
8
  - William Hamilton-Levi