hyakunin-issyu 0.0.6 → 0.0.7

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,3 +1,3 @@
1
1
  module HyakuninIssyu
2
- VERSION = "0.0.6"
2
+ VERSION = "0.0.7"
3
3
  end
@@ -1,11 +1,11 @@
1
1
  #encoding: utf-8
2
2
  require 'hyakunin-issyu/version'
3
3
  require 'yaml'
4
- path = Dir.pwd + '/vendor/bundle/ruby/1.9.1/gems/hyakunin-issyu-0.0.6/lib/hyakunin-issyu/data.yml'
4
+ path = Dir.pwd + '/vendor/bundle/ruby/1.9.1/gems/hyakunin-issyu-0.0.7/lib/hyakunin-issyu/data.yml'
5
5
  @data = YAML.load_file(path)
6
6
 
7
7
  module HyakuninIssyu
8
- def songs(start=1,last=1)
8
+ def self.songs(start=1,last=1)
9
9
  new_data = Hash.new
10
10
  for i in start..last do
11
11
  new_data[i] = @data[i]
@@ -14,12 +14,12 @@ module HyakuninIssyu
14
14
  end
15
15
  module_function :songs
16
16
 
17
- def poem(id=1)
17
+ def self.poem(id=1)
18
18
  @data[id]['poem']
19
19
  end
20
20
  module_function :poem
21
21
 
22
- def poet(id=1)
22
+ def self.poet(id=1)
23
23
  @data[id]['poet']
24
24
  end
25
25
  module_function :poet
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hyakunin-issyu
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.6
4
+ version: 0.0.7
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: