ffaker 0.3.4 → 0.3.5

Sign up to get free protection for your applications and to get access to all the features.
@@ -21,12 +21,12 @@ so annoyed on several ineficiencies on the original gem.
21
21
 
22
22
  And because I coult not find the original author on github (and I
23
23
  don't feel like working with the arcane rubyforge+svn tools) I
24
- just realised this gem using a different name.
24
+ just realeased this gem using a different name.
25
25
 
26
26
  The only difference in usage is that you need to gem install ffaker,
27
- and require 'ffaker', instead of the previous "faker" with one f.
27
+ and require 'ffaker', instead of the previous "faker" with only one f.
28
28
 
29
- The API is pretty much the same. Fork/ping me if you feel like adding
29
+ The API is pretty much the same. Fork it/ping me if you feel like adding
30
30
  more goodies to it.
31
31
 
32
32
  == Faster? does it really matter ?
@@ -34,8 +34,8 @@ more goodies to it.
34
34
  While it may seem like the speed of good'ol faker is not such a big deal, I
35
35
  really disliked the previous code base.
36
36
 
37
- Speed came as a result of having better code in place. In any case getting a
38
- few more cycles here and there is not bad, specially since I had fun while
37
+ Speed came as a result of having better code in place. Getting a
38
+ few more cycles here and there was not bad, specially since I had fun while
39
39
  doing the refactoring :).
40
40
 
41
41
  Here are some benchmarks (yeah everybody love benchmarks!)
@@ -66,7 +66,7 @@ $ cat scripts/benchmark.rb
66
66
  Fast Faker 0.050000 0.000000 0.050000 ( 0.052292)
67
67
 
68
68
  DISCLAIMER: I have no idea why I'm getting such bad numbers
69
- for traditional faker on 1.9, but I'm not making up this!!!
69
+ for traditional faker on 1.9, but I'm not making this up!
70
70
  Try it in your own machine, your mileage may vary.
71
71
 
72
72
  == Note on Patches/Pull Requests
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.3.4
1
+ 0.3.5
@@ -18,13 +18,13 @@ module Faker
18
18
  # Generate a buzzword-laden catch phrase.
19
19
  # Wordlist from http://www.1728.com/buzzword.htm
20
20
  def catch_phrase
21
- "#{CATCH_MID.rand}#{CATCH_MID.rand}#{CATCH_POS.rand}"
21
+ "#{CATCH_MID.rand} #{CATCH_MID.rand} #{CATCH_POS.rand}"
22
22
  end
23
23
 
24
24
  # When a straight answer won't do, BS to the rescue!
25
25
  # Wordlist from http://dack.com/web/bullshit.html
26
26
  def bs
27
- "#{BS_MID.rand}#{BS_MID.rand}#{BS_POS.rand}"
27
+ "#{BS_MID.rand} #{BS_MID.rand} #{BS_POS.rand}"
28
28
  end
29
29
 
30
30
  SUFFIXES = k %w(Inc and\ Sons LLC Group)
@@ -2,7 +2,7 @@ module Faker #:nodoc:
2
2
  module VERSION #:nodoc:
3
3
  MAJOR = 0
4
4
  MINOR = 3
5
- TINY = 4
5
+ TINY = 5
6
6
 
7
7
  STRING = [MAJOR, MINOR, TINY].join('.')
8
8
  end
@@ -3,10 +3,12 @@ require 'helper'
3
3
  class TestCompany < Test::Unit::TestCase
4
4
  def test_bs
5
5
  assert_match /[ a-z]+/, Faker::Company.bs
6
+ assert_match /\s/, Faker::Company.bs
6
7
  end
7
8
 
8
9
  def test_catch_phrase
9
10
  assert_match /[ a-z]+/, Faker::Company.catch_phrase
11
+ assert_match /\s/, Faker::Company.catch_phrase
10
12
  end
11
13
 
12
14
  def test_name
metadata CHANGED
@@ -1,7 +1,12 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ffaker
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.4
4
+ prerelease: false
5
+ segments:
6
+ - 0
7
+ - 3
8
+ - 5
9
+ version: 0.3.5
5
10
  platform: ruby
6
11
  authors:
7
12
  - Emmanuel Oga
@@ -9,7 +14,7 @@ autorequire:
9
14
  bindir: bin
10
15
  cert_chain: []
11
16
 
12
- date: 2010-01-15 00:00:00 -03:00
17
+ date: 2010-02-25 00:00:00 -03:00
13
18
  default_executable:
14
19
  dependencies: []
15
20
 
@@ -66,18 +71,20 @@ required_ruby_version: !ruby/object:Gem::Requirement
66
71
  requirements:
67
72
  - - ">="
68
73
  - !ruby/object:Gem::Version
74
+ segments:
75
+ - 0
69
76
  version: "0"
70
- version:
71
77
  required_rubygems_version: !ruby/object:Gem::Requirement
72
78
  requirements:
73
79
  - - ">="
74
80
  - !ruby/object:Gem::Version
81
+ segments:
82
+ - 0
75
83
  version: "0"
76
- version:
77
84
  requirements: []
78
85
 
79
86
  rubyforge_project:
80
- rubygems_version: 1.3.5
87
+ rubygems_version: 1.3.6
81
88
  signing_key:
82
89
  specification_version: 3
83
90
  summary: Faker, only cleaner and faster