ffakeron 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: a445fbc805c725249a439339a5ffaa5d842bb246
4
+ data.tar.gz: eac3f7714c0d22f8fcb6e6919a6e0954c043f498
5
+ SHA512:
6
+ metadata.gz: d2936fa9f4e6ef11b0d2c211272bd0d28c8d949f30316e3f6e98ec70b2aec1a891955f6866eb241111fd3f18901fdcbf789922ee1b27b415e168b32a7f00e093
7
+ data.tar.gz: 131353be13c5da1a152c05997cb2a5c6c95f50d33e8380f70bbc4222648c0702d299ea9c1edda79926e7d4d0318e44c48e8025b467c043e3a9d52d52e297f383
@@ -5,7 +5,7 @@ module Faker
5
5
  extend self
6
6
 
7
7
  def word
8
- SWANSON_WORDS.rand
8
+ SWANSON_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
- SWANSON_QUOTES.rand
7
+ SWANSON_QUOTES.sample
8
8
  end
9
9
 
10
10
  def sentences(num = 3)
@@ -1,3 +1,3 @@
1
1
  module Fakeron
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
data/test/helper.rb CHANGED
@@ -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 'ffakeron'
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 TestSwansonIpsum < Test::Unit::TestCase
3
+ class TestSwansonIpsum < Minitest::Test
4
4
  def test_paragraph
5
5
  assert_match /1\+|[ a-z]+/i, Faker::SwansonIpsum.paragraph
6
6
  end
@@ -1,6 +1,6 @@
1
1
  require 'helper'
2
2
 
3
- class TestSwansonQuote < Test::Unit::TestCase
3
+ class TestSwansonQuote < Minitest::Test
4
4
  def test_sentence
5
5
  assert_match /1\+|[ a-z]+\./i, Faker::SwansonQuote.sentence
6
6
  end
metadata CHANGED
@@ -1,62 +1,55 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ffakeron
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
5
- prerelease:
4
+ version: 0.1.1
6
5
  platform: ruby
7
6
  authors:
8
7
  - Dirk Kelly
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2012-09-29 00:00:00.000000000 Z
11
+ date: 2015-02-25 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: ffaker
16
15
  requirement: !ruby/object:Gem::Requirement
17
- none: false
18
16
  requirements:
19
- - - ! '>='
17
+ - - ">="
20
18
  - !ruby/object:Gem::Version
21
19
  version: '0'
22
20
  type: :runtime
23
21
  prerelease: false
24
22
  version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
23
  requirements:
27
- - - ! '>='
24
+ - - ">="
28
25
  - !ruby/object:Gem::Version
29
26
  version: '0'
30
27
  - !ruby/object:Gem::Dependency
31
28
  name: rake
32
29
  requirement: !ruby/object:Gem::Requirement
33
- none: false
34
30
  requirements:
35
- - - ! '>='
31
+ - - ">="
36
32
  - !ruby/object:Gem::Version
37
33
  version: '0'
38
34
  type: :development
39
35
  prerelease: false
40
36
  version_requirements: !ruby/object:Gem::Requirement
41
- none: false
42
37
  requirements:
43
- - - ! '>='
38
+ - - ">="
44
39
  - !ruby/object:Gem::Version
45
40
  version: '0'
46
41
  - !ruby/object:Gem::Dependency
47
42
  name: test-unit
48
43
  requirement: !ruby/object:Gem::Requirement
49
- none: false
50
44
  requirements:
51
- - - ! '>='
45
+ - - ">="
52
46
  - !ruby/object:Gem::Version
53
47
  version: '0'
54
48
  type: :development
55
49
  prerelease: false
56
50
  version_requirements: !ruby/object:Gem::Requirement
57
- none: false
58
51
  requirements:
59
- - - ! '>='
52
+ - - ">="
60
53
  - !ruby/object:Gem::Version
61
54
  version: '0'
62
55
  description: Ron Swanson addition to Faker library
@@ -66,7 +59,7 @@ executables: []
66
59
  extensions: []
67
60
  extra_rdoc_files: []
68
61
  files:
69
- - .gitignore
62
+ - ".gitignore"
70
63
  - Gemfile
71
64
  - LICENSE.txt
72
65
  - README.md
@@ -81,33 +74,26 @@ files:
81
74
  - test/test_swanson_quote.rb
82
75
  homepage: http://swansonipsum.com
83
76
  licenses: []
77
+ metadata: {}
84
78
  post_install_message:
85
79
  rdoc_options: []
86
80
  require_paths:
87
81
  - lib
88
82
  required_ruby_version: !ruby/object:Gem::Requirement
89
- none: false
90
83
  requirements:
91
- - - ! '>='
84
+ - - ">="
92
85
  - !ruby/object:Gem::Version
93
86
  version: '0'
94
- segments:
95
- - 0
96
- hash: 1526826891248648513
97
87
  required_rubygems_version: !ruby/object:Gem::Requirement
98
- none: false
99
88
  requirements:
100
- - - ! '>='
89
+ - - ">="
101
90
  - !ruby/object:Gem::Version
102
91
  version: '0'
103
- segments:
104
- - 0
105
- hash: 1526826891248648513
106
92
  requirements: []
107
93
  rubyforge_project:
108
- rubygems_version: 1.8.24
94
+ rubygems_version: 2.2.2
109
95
  signing_key:
110
- specification_version: 3
96
+ specification_version: 4
111
97
  summary: Generates dummy data based off Ron Swanson quotes
112
98
  test_files:
113
99
  - test/helper.rb