ffakertime 0.0.1 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b3f63ec0c74365778ea079c9c4e7a8813fd2c0d8
4
- data.tar.gz: 554c4095a98bb288142c43025aad881da1e5b316
3
+ metadata.gz: b864704e2ccf36b77c33577681c9258738d218d9
4
+ data.tar.gz: b8a2e8d45f4fa8b88f532049d68e5204474f17b5
5
5
  SHA512:
6
- metadata.gz: 45b11b50081b6f6a7f396d171fc6cea54a7981ba993b56057cf41d6a1ccb5d58f1fb035e2e8111d8b63d3b2c9b55b5326d7897a8345a25f51d138a249b72f7bb
7
- data.tar.gz: a5c313ee0ba0e1fdb59cd93a7c40ccc1bd57d082c06f7b65c3ced02f2b7c87e7f267328a1d7490b9a433ccd1f0e1513e25b13edd5546294738fcde81b6c63ae2
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::SwansonIpsum, Faker::SwansonQuote giving you endless hours of fun with Ron Swanson idioms.
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 NBC sitcoms... As true as that conception may be.
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 'ffakeron'
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 ffakeron
23
+ $ gem install ffakertime
24
24
 
25
25
  ## Usage
26
26
 
27
- ### Faker::SwansonIpsum
27
+ ### Faker::IpsumTime
28
28
 
29
- As you would any other Ipsum generator you're able to get a few basic strings from Faker::SwansonIpsum, notably.
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::SwansonIpsum.word # random Swanson style word
32
- Faker::SwansonIpsum.words(count) # array of random words
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::SwansonIpsum.sentence # random collection of words as a sentence
35
- Faker::SwansonIpsum.sentences(count) # array of random sentences
34
+ Faker::IpsumTime.sentence # random collection of words as a sentence
35
+ Faker::IpsumTime.sentences(count) # array of random sentences
36
36
 
37
- Faker::SwansonIpsum.paragraph # random sentences, strung together
38
- Faker::SwansonIpsum.paragraphs(count) # array of random paragraphs
37
+ Faker::IpsumTime.paragraph # random sentences, strung together
38
+ Faker::IpsumTime.paragraphs(count) # array of random paragraphs
39
39
 
40
- ### Faker::SwansonQuote
40
+ ### Faker::QuoteTime
41
41
 
42
- Instead of a pattern of gibberish Ipsum, you can generate quotes from Swanson
42
+ Instead of a pattern of gibberish Ipsum, you can generate quotes from Adventure Time
43
43
 
44
- Faker::SwansonQuote.sentence # A single quote
45
- Faker::SwansonQuote.sentences(count) # array of quotes
44
+ Faker::QuoteTime.sentence # A single quote
45
+ Faker::QuoteTime.sentences(count) # array of quotes
46
46
 
47
- Faker::SwansonQuote.paragraph # A few quotes strung together
48
- Faker::SwansonQuote.paragraphs(count) # array of paragraphs of quotes
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. Commit your changes (`git commit -am 'Add some feature'`)
55
- 4. Push to the branch (`git push origin my-new-feature`)
56
- 5. Create new Pull Request
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
+ ```
@@ -5,7 +5,7 @@ module Faker
5
5
  extend self
6
6
 
7
7
  def word
8
- ADVENTURE_WORDS.rand
8
+ ADVENTURE_WORDS.sample
9
9
  end
10
10
 
11
11
  def words(num = 3)
@@ -4,7 +4,7 @@ module Faker
4
4
  extend self
5
5
 
6
6
  def sentence
7
- ADVENTURE_QUOTES.rand
7
+ ADVENTURE_QUOTES.sample
8
8
  end
9
9
 
10
10
  def sentences(num = 3)
@@ -1,3 +1,3 @@
1
1
  module Fakertime
2
- VERSION = "0.0.1"
2
+ VERSION = "0.1.1"
3
3
  end
@@ -1,11 +1,11 @@
1
- require 'test/unit'
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::Unit::TestCase
8
+ class Minitest::Test
9
9
  def self.it(description, &block)
10
10
  define_method("test_#{ description }", &block)
11
11
  end
@@ -1,6 +1,6 @@
1
1
  require 'helper'
2
2
 
3
- class TestIpsumTime < Test::Unit::TestCase
3
+ class TestIpsumTime < Minitest::Test
4
4
  def test_paragraph
5
5
  assert_match /1\+|[ a-z]+/i, Faker::IpsumTime.paragraph
6
6
  end
@@ -1,6 +1,6 @@
1
1
  require 'helper'
2
2
 
3
- class TestQuoteTime < Test::Unit::TestCase
3
+ class TestQuoteTime < Minitest::Test
4
4
  def test_sentence
5
5
  assert_match /1\+|[a-z]+\./i, Faker::QuoteTime.sentence
6
6
  end
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.0.1
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: 2013-04-18 00:00:00.000000000 Z
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.0.0
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