filler 0.0.3 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
data/gem.gemspec CHANGED
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = "filler"
3
- s.version = "0.0.3"
3
+ s.version = "0.0.4"
4
4
  s.platform = Gem::Platform::RUBY
5
5
  s.authors = ["Tomas Karlsen"]
6
6
  s.email = ["tkarlsn@gmail.com"]
@@ -1,12 +1,11 @@
1
- require 'rubygems'
2
-
3
1
  module Filler
4
2
  module Words
5
- def words
3
+ extend self
4
+
5
+ def output_words
6
6
  File.open("lipsum.txt").each do |file|
7
7
  file.each_line { |line| @w << line }
8
8
  end
9
- return @w
10
9
  end
11
10
  end
12
11
  end
data/lib/filler.rb CHANGED
@@ -4,16 +4,24 @@ require 'filler/filler_helper.rb'
4
4
  module Filler
5
5
  class << self
6
6
 
7
+ @words = []
8
+
9
+ def initialize
10
+ write_out
11
+ end
12
+
13
+ private
7
14
  def write_out
8
15
  @words = get_text
9
16
  @words.each do |word|
10
- puts word + "\n"
17
+ puts word
11
18
  end
12
19
  end
13
-
14
- private
20
+
21
+ def get_text
22
+
15
23
  def get_text
16
- @w = Filler::Words.words
24
+ @w = Filler::Words.output_words
17
25
  end
18
26
  end
19
27
  end
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 0
8
- - 3
9
- version: 0.0.3
8
+ - 4
9
+ version: 0.0.4
10
10
  platform: ruby
11
11
  authors:
12
12
  - Tomas Karlsen