betterlorem 0.0.2 → 0.0.3

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.
@@ -0,0 +1,66 @@
1
+ <!DOCTYPE html>
2
+
3
+ <html>
4
+ <head>
5
+ <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
6
+
7
+ <title>Table of Contents - RDoc Documentation</title>
8
+
9
+ <link type="text/css" media="screen" href="./rdoc.css" rel="stylesheet">
10
+
11
+ <script type="text/javascript">
12
+ var rdoc_rel_prefix = "./";
13
+ </script>
14
+
15
+ <script type="text/javascript" charset="utf-8" src="./js/jquery.js"></script>
16
+ <script type="text/javascript" charset="utf-8" src="./js/navigation.js"></script>
17
+ <script type="text/javascript" charset="utf-8" src="./js/search_index.js"></script>
18
+ <script type="text/javascript" charset="utf-8" src="./js/search.js"></script>
19
+ <script type="text/javascript" charset="utf-8" src="./js/searcher.js"></script>
20
+ <script type="text/javascript" charset="utf-8" src="./js/darkfish.js"></script>
21
+
22
+
23
+ <body class="indexpage">
24
+ <h1>Table of Contents - RDoc Documentation</h1>
25
+
26
+ <h2>Pages</h2>
27
+ <ul>
28
+ <li class="file">
29
+ <a href="lorem_txt.html">lorem</a>
30
+ </li>
31
+
32
+ </ul>
33
+
34
+ <h2 id="classes">Classes/Modules</h2>
35
+ <ul>
36
+ <li class="module">
37
+ <a href="BetterLorem.html">BetterLorem</a>
38
+ </li>
39
+ <li class="class">
40
+ <a href="BetterLorem/Loader.html">BetterLorem::Loader</a>
41
+ </li>
42
+
43
+ </ul>
44
+
45
+ <h2 id="methods">Methods</h2>
46
+ <ul>
47
+
48
+ <li class="method"><a href="BetterLorem.html#method-c-c">::c &mdash; BetterLorem</a>
49
+
50
+ <li class="method"><a href="BetterLorem/Loader.html#method-c-new">::new &mdash; BetterLorem::Loader</a>
51
+
52
+ <li class="method"><a href="BetterLorem.html#method-c-p">::p &mdash; BetterLorem</a>
53
+
54
+ <li class="method"><a href="BetterLorem.html#method-c-w">::w &mdash; BetterLorem</a>
55
+
56
+ <li class="method"><a href="BetterLorem/Loader.html#method-i-clean_line">#clean_line &mdash; BetterLorem::Loader</a>
57
+
58
+ </ul>
59
+
60
+
61
+ <footer id="validator-badges">
62
+ <p><a href="http://validator.w3.org/check/referer">[Validate]</a>
63
+ <p>Generated by <a href="https://github.com/rdoc/rdoc">RDoc</a> 3.12.
64
+ <p>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish Rdoc Generator</a> 3.
65
+ </footer>
66
+
@@ -0,0 +1,28 @@
1
+ require 'spec_helper'
2
+ require 'BetterLorem'
3
+
4
+ describe BetterLorem do
5
+
6
+ # Crappy specs start here
7
+ describe ".w" do
8
+ it "should return 20 words" do
9
+ words = BetterLorem.w(20)
10
+ words.should_not == ""
11
+ end
12
+ end
13
+
14
+ describe ".p" do
15
+ it "should return 3 paragraphs" do
16
+ lines = BetterLorem.p(3)
17
+ lines.should_not == ""
18
+ end
19
+ end
20
+
21
+ describe ".c" do
22
+ it "should return 100 characters" do
23
+ chars = BetterLorem.c(100)
24
+ chars.length.should == 100
25
+ end
26
+ end
27
+
28
+ end
@@ -0,0 +1,17 @@
1
+ # This file was generated by the `rspec --init` command. Conventionally, all
2
+ # specs live under a `spec` directory, which RSpec adds to the `$LOAD_PATH`.
3
+ # Require this file using `require "spec_helper"` to ensure that it is only
4
+ # loaded once.
5
+ #
6
+ # See http://rubydoc.info/gems/rspec-core/RSpec/Core/Configuration
7
+ RSpec.configure do |config|
8
+ config.treat_symbols_as_metadata_keys_with_true_values = true
9
+ config.run_all_when_everything_filtered = true
10
+ config.filter_run :focus
11
+
12
+ # Run specs in random order to surface order dependencies. If you find an
13
+ # order dependency and want to debug it, you can fix the order by providing
14
+ # the seed, which is printed after each run.
15
+ # --seed 1234
16
+ config.order = 'random'
17
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: betterlorem
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -18,7 +18,15 @@ extensions: []
18
18
  extra_rdoc_files: []
19
19
  files:
20
20
  - lib/betterlorem.rb
21
- homepage: http://rubygems.org/gems/betterlorem
21
+ - spec/betterlorem_spec.rb
22
+ - spec/spec_helper.rb
23
+ - doc/BetterLorem.html
24
+ - doc/created.rid
25
+ - doc/index.html
26
+ - doc/lorem_txt.html
27
+ - doc/rdoc.css
28
+ - doc/table_of_contents.html
29
+ homepage: https://github.com/statedigital/BetterLorem
22
30
  licenses: []
23
31
  post_install_message:
24
32
  rdoc_options: []