ffakertime 0.0.1 → 0.1.1
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.
- checksums.yaml +4 -4
- data/README.md +42 -21
- data/lib/ffaker/ipsum_time.rb +1 -1
- data/lib/ffaker/quote_time.rb +1 -1
- data/lib/ffakertime/version.rb +1 -1
- data/test/helper.rb +2 -2
- data/test/test_ipsum_time.rb +1 -1
- data/test/test_quote_time.rb +1 -1
- metadata +12 -12
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b864704e2ccf36b77c33577681c9258738d218d9
|
4
|
+
data.tar.gz: b8a2e8d45f4fa8b88f532049d68e5204474f17b5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c3c461bcd49fe1d4ecec1ae4efe15328957d4e8eb79ef35248361a9bec4ff57b65b2347b8353b83a618ae238f04b5f0d9a0f1ad71a06fa5edafaaef7549b190d
|
7
|
+
data.tar.gz: 6c29863d10829d0df627b232542aa322dad42e1e65afb13d2fcf0751d4d4647fde79ebf47b608e1f28e396d4736bce419da8be147be194deb6dfc71dc2df82d1
|
data/README.md
CHANGED
@@ -1,18 +1,18 @@
|
|
1
1
|
# Fakeron
|
2
2
|
|
3
|
-
Adds the module Faker::
|
3
|
+
Adds the module Faker::IpsumTime, Faker::QuoteTime giving you endless hours of fun with Adventure Time idioms.
|
4
4
|
|
5
5
|
## Why?
|
6
6
|
|
7
7
|
I don't think you should have to run off a branch to get this comedy gold, and I don't think it should really be additional code in the master branch.
|
8
8
|
|
9
|
-
Also I wanted to publish another gem so it doesn't look like I do nothing with my life other than watch
|
9
|
+
Also I wanted to publish another gem so it doesn't look like I do nothing with my life other than watch Cartoon Network cartoons... As true as that conception may be.
|
10
10
|
|
11
11
|
## Installation
|
12
12
|
|
13
13
|
Add this line to your application's Gemfile:
|
14
14
|
|
15
|
-
gem '
|
15
|
+
gem 'ffakertime'
|
16
16
|
|
17
17
|
And then execute:
|
18
18
|
|
@@ -20,37 +20,58 @@ And then execute:
|
|
20
20
|
|
21
21
|
Or install it yourself as:
|
22
22
|
|
23
|
-
$ gem install
|
23
|
+
$ gem install ffakertime
|
24
24
|
|
25
25
|
## Usage
|
26
26
|
|
27
|
-
### Faker::
|
27
|
+
### Faker::IpsumTime
|
28
28
|
|
29
|
-
As you would any other Ipsum generator you're able to get a few basic strings from Faker::
|
29
|
+
As you would any other Ipsum generator you're able to get a few basic strings from Faker::IpsumTime, notably.
|
30
30
|
|
31
|
-
Faker::
|
32
|
-
Faker::
|
31
|
+
Faker::IpsumTime.word # random Adventure Time style word # algebraic
|
32
|
+
Faker::IpsumTime.words(count) # array of random words # algebraic alphanumerical Jake
|
33
33
|
|
34
|
-
Faker::
|
35
|
-
Faker::
|
34
|
+
Faker::IpsumTime.sentence # random collection of words as a sentence
|
35
|
+
Faker::IpsumTime.sentences(count) # array of random sentences
|
36
36
|
|
37
|
-
Faker::
|
38
|
-
Faker::
|
37
|
+
Faker::IpsumTime.paragraph # random sentences, strung together
|
38
|
+
Faker::IpsumTime.paragraphs(count) # array of random paragraphs
|
39
39
|
|
40
|
-
### Faker::
|
40
|
+
### Faker::QuoteTime
|
41
41
|
|
42
|
-
Instead of a pattern of gibberish Ipsum, you can generate quotes from
|
42
|
+
Instead of a pattern of gibberish Ipsum, you can generate quotes from Adventure Time
|
43
43
|
|
44
|
-
Faker::
|
45
|
-
Faker::
|
44
|
+
Faker::QuoteTime.sentence # A single quote
|
45
|
+
Faker::QuoteTime.sentences(count) # array of quotes
|
46
46
|
|
47
|
-
Faker::
|
48
|
-
Faker::
|
47
|
+
Faker::QuoteTime.paragraph # A few quotes strung together
|
48
|
+
Faker::QuoteTime.paragraphs(count) # array of paragraphs of quotes
|
49
|
+
|
50
|
+
### Testing
|
51
|
+
|
52
|
+
If you're going to add things, just make sure the tests pass.
|
53
|
+
|
54
|
+
rake test
|
55
|
+
|
56
|
+
### Limitations
|
57
|
+
|
58
|
+
Punctuation on the quotes, I just need to rejigger the tests a little, but this Glenlivit is more appealing and I'm on a plane and I want to keep reading Catch 22.
|
49
59
|
|
50
60
|
## Contributing
|
51
61
|
|
52
62
|
1. Fork it
|
53
63
|
2. Create your feature branch (`git checkout -b my-new-feature`)
|
54
|
-
3.
|
55
|
-
4.
|
56
|
-
5.
|
64
|
+
3. Hack, hack hack
|
65
|
+
4. Test
|
66
|
+
5. Fix things that broke
|
67
|
+
6. Test
|
68
|
+
7. Commit your changes (`git commit -am 'Add some feature'`)
|
69
|
+
8. Push to the branch (`git push origin my-new-feature`)
|
70
|
+
9. Create new Pull Request
|
71
|
+
|
72
|
+
## Publishing
|
73
|
+
|
74
|
+
```
|
75
|
+
gem build ffakertime.gemspec
|
76
|
+
gem publish ffakertime-X.X.X.gem
|
77
|
+
```
|
data/lib/ffaker/ipsum_time.rb
CHANGED
data/lib/ffaker/quote_time.rb
CHANGED
data/lib/ffakertime/version.rb
CHANGED
data/test/helper.rb
CHANGED
@@ -1,11 +1,11 @@
|
|
1
|
-
require '
|
1
|
+
require 'minitest/autorun'
|
2
2
|
|
3
3
|
$LOAD_PATH.unshift(File.dirname(__FILE__))
|
4
4
|
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
|
5
5
|
require 'ffaker'
|
6
6
|
require 'ffakertime'
|
7
7
|
|
8
|
-
class Test
|
8
|
+
class Minitest::Test
|
9
9
|
def self.it(description, &block)
|
10
10
|
define_method("test_#{ description }", &block)
|
11
11
|
end
|
data/test/test_ipsum_time.rb
CHANGED
data/test/test_quote_time.rb
CHANGED
metadata
CHANGED
@@ -1,55 +1,55 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ffakertime
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dirk Kelly
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2015-02-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: ffaker
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- -
|
17
|
+
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
19
|
version: '0'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- -
|
24
|
+
- - ">="
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '0'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: rake
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- -
|
31
|
+
- - ">="
|
32
32
|
- !ruby/object:Gem::Version
|
33
33
|
version: '0'
|
34
34
|
type: :development
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
|
-
- -
|
38
|
+
- - ">="
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '0'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: test-unit
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
|
-
- -
|
45
|
+
- - ">="
|
46
46
|
- !ruby/object:Gem::Version
|
47
47
|
version: '0'
|
48
48
|
type: :development
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
|
-
- -
|
52
|
+
- - ">="
|
53
53
|
- !ruby/object:Gem::Version
|
54
54
|
version: '0'
|
55
55
|
description: Adventure Time addition to Ffaker
|
@@ -59,7 +59,7 @@ executables: []
|
|
59
59
|
extensions: []
|
60
60
|
extra_rdoc_files: []
|
61
61
|
files:
|
62
|
-
- .gitignore
|
62
|
+
- ".gitignore"
|
63
63
|
- Gemfile
|
64
64
|
- LICENSE.txt
|
65
65
|
- README.md
|
@@ -81,17 +81,17 @@ require_paths:
|
|
81
81
|
- lib
|
82
82
|
required_ruby_version: !ruby/object:Gem::Requirement
|
83
83
|
requirements:
|
84
|
-
- -
|
84
|
+
- - ">="
|
85
85
|
- !ruby/object:Gem::Version
|
86
86
|
version: '0'
|
87
87
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
88
88
|
requirements:
|
89
|
-
- -
|
89
|
+
- - ">="
|
90
90
|
- !ruby/object:Gem::Version
|
91
91
|
version: '0'
|
92
92
|
requirements: []
|
93
93
|
rubyforge_project:
|
94
|
-
rubygems_version: 2.
|
94
|
+
rubygems_version: 2.2.2
|
95
95
|
signing_key:
|
96
96
|
specification_version: 4
|
97
97
|
summary: Generates dummy data based off Adventure Time stuff
|