meiou 0.1.7 → 0.1.8

Sign up to get free protection for your applications and to get access to all the features.
@@ -56,6 +56,10 @@ module ASTRO
56
56
  def self.planets
57
57
  [:mercury,:venus,:mars,:vesta,:ceres,:jupiter,:saturn,:uranus,:neptune,:pluto]
58
58
  end
59
+ def self.init!
60
+ File.open("books/astronomy.txt",'w') { |f| f.write(ASTRO.to_s) }
61
+ end
62
+
59
63
  end
60
64
 
61
65
  module Meiou
@@ -63,3 +67,5 @@ module Meiou
63
67
  ASTRO
64
68
  end
65
69
  end
70
+
71
+ Meiou.init(:astro) { |h| ASTRO.init! }
data/lib/meiou/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Meiou
4
- VERSION = "0.1.7"
4
+ VERSION = "0.1.8"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: meiou
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.7
4
+ version: 0.1.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Erik Olson
@@ -166,6 +166,7 @@ files:
166
166
  - books/Doctor_and_Patient.txt
167
167
  - books/Roman_Farm_Management.txt
168
168
  - books/Social_Organization.txt
169
+ - books/astronomy.txt
169
170
  - books/interpretation_of_dreams.txt
170
171
  - books/the_prince.txt
171
172
  - lib/meiou.rb