rubocop-faker 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.circleci/config.yml +43 -0
- data/.gitignore +61 -0
- data/.rspec +3 -0
- data/.rspec_status +4 -0
- data/.rubocop.yml +81 -0
- data/.rubocop_todo.yml +23 -0
- data/.travis.yml +6 -0
- data/CHANGELOG.md +9 -0
- data/Gemfile +13 -0
- data/LICENSE.txt +21 -0
- data/README.md +63 -0
- data/Rakefile +66 -0
- data/bin/console +15 -0
- data/bin/setup +8 -0
- data/config/default.yml +450 -0
- data/lib/rubocop-faker.rb +11 -0
- data/lib/rubocop/cop/faker/deprecated_arguments.rb +113 -0
- data/lib/rubocop/cop/faker_cops.rb +3 -0
- data/lib/rubocop/faker.rb +12 -0
- data/lib/rubocop/faker/inject.rb +18 -0
- data/lib/rubocop/faker/version.rb +7 -0
- data/manual/cops.md +6 -0
- data/manual/cops_faker.md +30 -0
- data/rubocop-faker.gemspec +29 -0
- data/tasks/cops_documentation.rake +310 -0
- metadata +83 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: d656a993af8fbade3cb0a33710650fefc7d1589aabd0bf311277b53420d35902
|
4
|
+
data.tar.gz: ca08d83c826333f7dadccca91e37ef7897c50f2b33fd0821977918ca982ccb21
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 703a11af3986d36b98d035830aadc56ed3cfff3ed72c1529ff23a5f4c9c403f8b624cb32de252adfabeb15c40c0660be4da5c25acefdd11c3f33e09e2a60921c
|
7
|
+
data.tar.gz: cd2b9c97746bdbfb01a53c17078b2e279279466db796b5c5f547ec272122a85a6ea3ddc29170e59725ab2724d4f1e9883b8e00f8e0da7297711cd02bdc92f983
|
@@ -0,0 +1,43 @@
|
|
1
|
+
version: 2.1
|
2
|
+
|
3
|
+
jobs:
|
4
|
+
rake_default:
|
5
|
+
parameters:
|
6
|
+
image:
|
7
|
+
description: "Name of the Docker image."
|
8
|
+
type: string
|
9
|
+
default: "circleci/ruby"
|
10
|
+
docker:
|
11
|
+
- image: << parameters.image >>
|
12
|
+
environment:
|
13
|
+
# CircleCI container has two cores, but Ruby can see 32 cores. So we
|
14
|
+
# configure test-queue.
|
15
|
+
# See https://github.com/tmm1/test-queue#environment-variables
|
16
|
+
TEST_QUEUE_WORKERS: 2
|
17
|
+
JRUBY_OPTS: "--dev -J-Xmx1000M"
|
18
|
+
steps:
|
19
|
+
- checkout
|
20
|
+
- run: bundle install
|
21
|
+
- run: bundle exec rake
|
22
|
+
|
23
|
+
workflows:
|
24
|
+
build:
|
25
|
+
jobs:
|
26
|
+
- rake_default:
|
27
|
+
name: Ruby 2.3
|
28
|
+
image: circleci/ruby:2.3
|
29
|
+
- rake_default:
|
30
|
+
name: Ruby 2.4
|
31
|
+
image: circleci/ruby:2.4
|
32
|
+
- rake_default:
|
33
|
+
name: Ruby 2.5
|
34
|
+
image: circleci/ruby:2.5
|
35
|
+
- rake_default:
|
36
|
+
name: Ruby 2.6
|
37
|
+
image: circleci/ruby:2.6
|
38
|
+
- rake_default:
|
39
|
+
name: Ruby HEAD
|
40
|
+
image: rubocophq/circleci-ruby-snapshot:latest # Nightly snapshot build
|
41
|
+
- rake_default:
|
42
|
+
name: JRuby 9.2
|
43
|
+
image: circleci/jruby:9.2
|
data/.gitignore
ADDED
@@ -0,0 +1,61 @@
|
|
1
|
+
# rcov generated
|
2
|
+
coverage
|
3
|
+
coverage.data
|
4
|
+
|
5
|
+
# rdoc generated
|
6
|
+
rdoc
|
7
|
+
|
8
|
+
# yard generated
|
9
|
+
doc
|
10
|
+
.yardoc
|
11
|
+
|
12
|
+
# bundler
|
13
|
+
.bundle
|
14
|
+
Gemfile.lock
|
15
|
+
Gemfile.local
|
16
|
+
|
17
|
+
# rbenv
|
18
|
+
.ruby-version
|
19
|
+
|
20
|
+
# rspec
|
21
|
+
/spec/examples.txt
|
22
|
+
/.test_queue_stats
|
23
|
+
|
24
|
+
# jeweler generated
|
25
|
+
pkg
|
26
|
+
|
27
|
+
# etags
|
28
|
+
TAGS
|
29
|
+
|
30
|
+
# Have editor/IDE/OS specific files you need to ignore? Consider using a global gitignore:
|
31
|
+
#
|
32
|
+
# * Create a file at ~/.gitignore
|
33
|
+
# * Include files you want ignored
|
34
|
+
# * Run: git config --global core.excludesfile ~/.gitignore
|
35
|
+
#
|
36
|
+
# After doing this, these files will be ignored in all your git projects,
|
37
|
+
# saving you from having to 'pollute' every project you touch with them
|
38
|
+
#
|
39
|
+
# Not sure what to needs to be ignored for particular editors/OSes? Here's some ideas to get you started. (Remember, remove the leading # of the line)
|
40
|
+
#
|
41
|
+
# For MacOS:
|
42
|
+
#
|
43
|
+
#.DS_Store
|
44
|
+
|
45
|
+
# For TextMate
|
46
|
+
#*.tmproj
|
47
|
+
#tmtags
|
48
|
+
|
49
|
+
# For emacs:
|
50
|
+
#*~
|
51
|
+
#\#*
|
52
|
+
#.\#*
|
53
|
+
|
54
|
+
# For vim:
|
55
|
+
*.swp
|
56
|
+
|
57
|
+
# For redcar:
|
58
|
+
#.redcar
|
59
|
+
|
60
|
+
# For rubinius:
|
61
|
+
#*.rbc
|
data/.rspec
ADDED
data/.rspec_status
ADDED
data/.rubocop.yml
ADDED
@@ -0,0 +1,81 @@
|
|
1
|
+
inherit_from: .rubocop_todo.yml
|
2
|
+
|
3
|
+
# This is the configuration used to check the rubocop source code.
|
4
|
+
|
5
|
+
require:
|
6
|
+
- rubocop/cop/internal_affairs
|
7
|
+
- rubocop-performance
|
8
|
+
|
9
|
+
AllCops:
|
10
|
+
TargetRubyVersion: 2.3
|
11
|
+
|
12
|
+
Naming/PredicateName:
|
13
|
+
# Method define macros for dynamically generated method.
|
14
|
+
MethodDefinitionMacros:
|
15
|
+
- define_method
|
16
|
+
- define_singleton_method
|
17
|
+
- def_node_matcher
|
18
|
+
- def_node_search
|
19
|
+
|
20
|
+
Style/FormatStringToken:
|
21
|
+
# Because we parse a lot of source codes from strings. Percent arrays
|
22
|
+
# look like unannotated format string tokens to this cop.
|
23
|
+
Exclude:
|
24
|
+
- test/**/*
|
25
|
+
|
26
|
+
Layout/EndOfLine:
|
27
|
+
EnforcedStyle: lf
|
28
|
+
|
29
|
+
Layout/ClassStructure:
|
30
|
+
Enabled: true
|
31
|
+
Categories:
|
32
|
+
module_inclusion:
|
33
|
+
- include
|
34
|
+
- prepend
|
35
|
+
- extend
|
36
|
+
ExpectedOrder:
|
37
|
+
- module_inclusion
|
38
|
+
- constants
|
39
|
+
- public_class_methods
|
40
|
+
- initializer
|
41
|
+
- instance_methods
|
42
|
+
- protected_methods
|
43
|
+
- private_methods
|
44
|
+
|
45
|
+
# Trailing white space is meaningful in code examples
|
46
|
+
Layout/TrailingWhitespace:
|
47
|
+
AllowInHeredoc: true
|
48
|
+
|
49
|
+
Lint/AmbiguousBlockAssociation:
|
50
|
+
Exclude:
|
51
|
+
- 'test/**/*.rb'
|
52
|
+
|
53
|
+
Lint/InterpolationCheck:
|
54
|
+
Exclude:
|
55
|
+
- 'test/**/*.rb'
|
56
|
+
|
57
|
+
Lint/UselessAccessModifier:
|
58
|
+
MethodCreatingMethods:
|
59
|
+
- 'def_matcher'
|
60
|
+
- 'def_node_matcher'
|
61
|
+
|
62
|
+
Lint/BooleanSymbol:
|
63
|
+
Enabled: false
|
64
|
+
|
65
|
+
Metrics/BlockLength:
|
66
|
+
Exclude:
|
67
|
+
- 'Rakefile'
|
68
|
+
- '**/*.rake'
|
69
|
+
- 'spec/**/*.rb'
|
70
|
+
- '**/*.gemspec'
|
71
|
+
|
72
|
+
Naming/FileName:
|
73
|
+
Exclude:
|
74
|
+
- lib/rubocop-faker.rb
|
75
|
+
|
76
|
+
Metrics/ModuleLength:
|
77
|
+
Exclude:
|
78
|
+
- 'test/**/*.rb'
|
79
|
+
|
80
|
+
Performance/ChainArrayAllocation:
|
81
|
+
Enabled: false
|
data/.rubocop_todo.yml
ADDED
@@ -0,0 +1,23 @@
|
|
1
|
+
# This configuration was generated by
|
2
|
+
# `rubocop --auto-gen-config`
|
3
|
+
# on 2019-08-07 15:41:02 +0900 using RuboCop version 0.74.0.
|
4
|
+
# The point is for the user to remove these configuration records
|
5
|
+
# one by one as the offenses are removed from the code base.
|
6
|
+
# Note that changes in the inspected code, or installation of new
|
7
|
+
# versions of RuboCop, may require this file to be generated again.
|
8
|
+
|
9
|
+
# Offense count: 2
|
10
|
+
Metrics/AbcSize:
|
11
|
+
Max: 17
|
12
|
+
|
13
|
+
# Offense count: 5
|
14
|
+
# Configuration parameters: CountComments, ExcludedMethods.
|
15
|
+
Metrics/MethodLength:
|
16
|
+
Max: 14
|
17
|
+
|
18
|
+
# Offense count: 2
|
19
|
+
# Cop supports --auto-correct.
|
20
|
+
# Configuration parameters: AutoCorrect, AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, IgnoredPatterns.
|
21
|
+
# URISchemes: http, https
|
22
|
+
Metrics/LineLength:
|
23
|
+
Max: 87
|
data/.travis.yml
ADDED
data/CHANGELOG.md
ADDED
data/Gemfile
ADDED
@@ -0,0 +1,13 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
source 'https://rubygems.org'
|
4
|
+
|
5
|
+
git_source(:github) { |repo| "https://github.com/#{repo}.git" }
|
6
|
+
|
7
|
+
gemspec
|
8
|
+
|
9
|
+
gem 'rake'
|
10
|
+
gem 'rspec'
|
11
|
+
gem 'rubocop', github: 'rubocop-hq/rubocop'
|
12
|
+
gem 'rubocop-performance', '~> 1.4.0'
|
13
|
+
gem 'yard', '~> 0.9'
|
data/LICENSE.txt
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) 2019 Koichi ITO
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
7
|
+
in the Software without restriction, including without limitation the rights
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
10
|
+
furnished to do so, subject to the following conditions:
|
11
|
+
|
12
|
+
The above copyright notice and this permission notice shall be included in
|
13
|
+
all copies or substantial portions of the Software.
|
14
|
+
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
21
|
+
THE SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,63 @@
|
|
1
|
+
# RuboCop Faker
|
2
|
+
|
3
|
+
A [RuboCop](https://github.com/rubocop-hq/rubocop) extension for [Faker](https://github.com/faker-ruby/faker).
|
4
|
+
|
5
|
+
RuboCop Faker is a tool for converting your Faker's methods to the latest Faker argument style with static code analysis.
|
6
|
+
|
7
|
+
With RuboCop Faker you can upgrade your Faker 1 codes to Faker 2 in no time. It supports [conversions](https://github.com/koic/rubocop-faker/blob/master/config/default.yml) for almost all of the Faker 2 changes.
|
8
|
+
|
9
|
+
## Installation
|
10
|
+
|
11
|
+
Just install the `rubocop-faker` gem
|
12
|
+
|
13
|
+
```sh
|
14
|
+
gem install rubocop-faker
|
15
|
+
```
|
16
|
+
|
17
|
+
or if you use bundler put this in your `Gemfile`
|
18
|
+
|
19
|
+
```ruby
|
20
|
+
gem 'rubocop-faker'
|
21
|
+
```
|
22
|
+
|
23
|
+
## Examples
|
24
|
+
|
25
|
+
Here's an example.
|
26
|
+
|
27
|
+
```ruby
|
28
|
+
Faker::Avatar.image(slug, size, format, set, bgset)
|
29
|
+
```
|
30
|
+
|
31
|
+
RuboCop Faker would convert it to the following Faker 2 form:
|
32
|
+
|
33
|
+
```
|
34
|
+
Faker::Avatar.image(slug: slug, size: size, format: format, set: set, bgset: bgset)
|
35
|
+
```
|
36
|
+
|
37
|
+
## Usage
|
38
|
+
|
39
|
+
You need to tell RuboCop to load the Faker extension.
|
40
|
+
|
41
|
+
This gem offers the only `Faker/DeprecatedArguments` cop. It is intended to convert a Faker 2 compatible interface.
|
42
|
+
|
43
|
+
### Command line
|
44
|
+
|
45
|
+
Check positional argument style before Faker 2.
|
46
|
+
|
47
|
+
```console
|
48
|
+
% rubocop --require rubocop-faker --only Faker/DeprecatedArguments
|
49
|
+
```
|
50
|
+
|
51
|
+
Auto-correction to keyword argument style on Faker 2.
|
52
|
+
|
53
|
+
```console
|
54
|
+
% rubocop --require rubocop-faker --only Faker/DeprecatedArguments --auto-correct
|
55
|
+
```
|
56
|
+
|
57
|
+
## Contributing
|
58
|
+
|
59
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/koic/rubocop-faker.
|
60
|
+
|
61
|
+
## License
|
62
|
+
|
63
|
+
The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
|
data/Rakefile
ADDED
@@ -0,0 +1,66 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require 'bundler'
|
4
|
+
require 'bundler/gem_tasks'
|
5
|
+
|
6
|
+
Dir['tasks/**/*.rake'].each { |t| load t }
|
7
|
+
|
8
|
+
begin
|
9
|
+
Bundler.setup(:default, :development)
|
10
|
+
rescue Bundler::BundlerError => e
|
11
|
+
warn e.message
|
12
|
+
warn 'Run `bundle install` to install missing gems'
|
13
|
+
exit e.status_code
|
14
|
+
end
|
15
|
+
|
16
|
+
require 'rubocop/rake_task'
|
17
|
+
require 'rspec/core/rake_task'
|
18
|
+
|
19
|
+
RSpec::Core::RakeTask.new(:spec) do |spec|
|
20
|
+
spec.pattern = FileList['spec/**/*_spec.rb']
|
21
|
+
end
|
22
|
+
|
23
|
+
desc 'Run RSpec with code coverage'
|
24
|
+
task :coverage do
|
25
|
+
ENV['COVERAGE'] = 'true'
|
26
|
+
Rake::Task['spec'].execute
|
27
|
+
end
|
28
|
+
|
29
|
+
desc 'Run RuboCop over itself'
|
30
|
+
RuboCop::RakeTask.new(:internal_investigation).tap do |task|
|
31
|
+
if RUBY_ENGINE == 'ruby' &&
|
32
|
+
RbConfig::CONFIG['host_os'] !~ /mswin|msys|mingw|cygwin|bccwin|wince|emc/
|
33
|
+
task.options = %w[--parallel]
|
34
|
+
end
|
35
|
+
end
|
36
|
+
|
37
|
+
task default: %i[
|
38
|
+
documentation_syntax_check
|
39
|
+
generate_cops_documentation
|
40
|
+
spec
|
41
|
+
internal_investigation
|
42
|
+
]
|
43
|
+
|
44
|
+
desc 'Generate a new cop template'
|
45
|
+
task :new_cop, [:cop] do |_task, args|
|
46
|
+
require 'rubocop'
|
47
|
+
|
48
|
+
cop_name = args.fetch(:cop) do
|
49
|
+
warn 'usage: bundle exec rake new_cop[Department/Name]'
|
50
|
+
exit!
|
51
|
+
end
|
52
|
+
|
53
|
+
github_user = `git config github.user`.chop
|
54
|
+
github_user = 'your_id' if github_user.empty?
|
55
|
+
|
56
|
+
generator = RuboCop::Cop::Generator.new(cop_name, github_user)
|
57
|
+
|
58
|
+
generator.write_source
|
59
|
+
generator.write_spec
|
60
|
+
generator.inject_require(
|
61
|
+
root_file_path: 'lib/rubocop/cop/faker_cops.rb'
|
62
|
+
)
|
63
|
+
generator.inject_config(config_file_path: 'config/default.yml')
|
64
|
+
|
65
|
+
puts generator.todo
|
66
|
+
end
|
data/bin/console
ADDED
@@ -0,0 +1,15 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
# frozen_string_literal: true
|
3
|
+
|
4
|
+
require 'bundler/setup'
|
5
|
+
require 'rubocop/faker'
|
6
|
+
|
7
|
+
# You can add fixtures and/or initialization code here to make experimenting
|
8
|
+
# with your gem easier. You can also use a different console, if you like.
|
9
|
+
|
10
|
+
# (If you use this, don't forget to add pry to your Gemfile!)
|
11
|
+
# require "pry"
|
12
|
+
# Pry.start
|
13
|
+
|
14
|
+
require 'irb'
|
15
|
+
IRB.start(__FILE__)
|
data/bin/setup
ADDED
data/config/default.yml
ADDED
@@ -0,0 +1,450 @@
|
|
1
|
+
# This is the default configuration file.
|
2
|
+
|
3
|
+
Faker/DeprecatedArguments:
|
4
|
+
Description: 'Checks that Faker arguments style is based on Faker 2.'
|
5
|
+
Enabled: true
|
6
|
+
VersionAdded: '0.1'
|
7
|
+
Reference: 'https://github.com/faker-ruby/faker/blob/master/CHANGELOG.md#v20-2019-31-07'
|
8
|
+
ArgumentKeywords:
|
9
|
+
#
|
10
|
+
# FakerClassName:
|
11
|
+
# method_name:
|
12
|
+
# - keyword_name_for_first_argument
|
13
|
+
# - keyword_name_for_second_argument
|
14
|
+
# - keyword_name_for_third_argument
|
15
|
+
#
|
16
|
+
Faker::Dune:
|
17
|
+
quote:
|
18
|
+
- character
|
19
|
+
saying:
|
20
|
+
- source
|
21
|
+
Faker::Books::Lovecraft:
|
22
|
+
fhtagn:
|
23
|
+
- number
|
24
|
+
sentence:
|
25
|
+
- word_count
|
26
|
+
- random_words_to_add
|
27
|
+
words:
|
28
|
+
- number
|
29
|
+
- spaces_allowed
|
30
|
+
sentences:
|
31
|
+
- number
|
32
|
+
paragraph:
|
33
|
+
- sentence_count
|
34
|
+
- random_sentences_to_add
|
35
|
+
paragraphs:
|
36
|
+
- number
|
37
|
+
paragraph_by_chars:
|
38
|
+
- characters
|
39
|
+
Faker::Address:
|
40
|
+
city:
|
41
|
+
- options
|
42
|
+
street_address:
|
43
|
+
- include_secondary
|
44
|
+
zip_code:
|
45
|
+
- state_abbreviation
|
46
|
+
country_by_code:
|
47
|
+
- code
|
48
|
+
country_name_to_code:
|
49
|
+
- name
|
50
|
+
Faker::Alphanumeric:
|
51
|
+
alpha:
|
52
|
+
- number
|
53
|
+
alphanumeric:
|
54
|
+
- number
|
55
|
+
Faker::App:
|
56
|
+
semantic_version:
|
57
|
+
- major
|
58
|
+
- minor
|
59
|
+
- patch
|
60
|
+
Faker::Avatar:
|
61
|
+
image:
|
62
|
+
- slug
|
63
|
+
- size
|
64
|
+
- format
|
65
|
+
- set
|
66
|
+
- bgset
|
67
|
+
Faker::Bank:
|
68
|
+
account_number:
|
69
|
+
- digits
|
70
|
+
iban:
|
71
|
+
- country_code
|
72
|
+
Faker::Boolean:
|
73
|
+
boolean:
|
74
|
+
- true_ratio
|
75
|
+
Faker::ChileRut:
|
76
|
+
rut:
|
77
|
+
- min_rut
|
78
|
+
- fixed
|
79
|
+
full_rut:
|
80
|
+
- min_rut
|
81
|
+
- fixed
|
82
|
+
Faker::Code:
|
83
|
+
isbn:
|
84
|
+
- base
|
85
|
+
ean:
|
86
|
+
- base
|
87
|
+
nric:
|
88
|
+
- min_age
|
89
|
+
- max_age
|
90
|
+
Faker::Commerce:
|
91
|
+
promotion_code:
|
92
|
+
- digits
|
93
|
+
department:
|
94
|
+
- max
|
95
|
+
- fixed_amount
|
96
|
+
price:
|
97
|
+
- range
|
98
|
+
- as_string
|
99
|
+
Faker::Company:
|
100
|
+
polish_register_of_national_economy:
|
101
|
+
- length
|
102
|
+
brazilian_company_number:
|
103
|
+
- formatted
|
104
|
+
Faker::CryptoCoin:
|
105
|
+
coin_name:
|
106
|
+
- coin
|
107
|
+
acronym:
|
108
|
+
- coin
|
109
|
+
url_logo:
|
110
|
+
- coin
|
111
|
+
Faker::Date:
|
112
|
+
between:
|
113
|
+
- from
|
114
|
+
- to
|
115
|
+
between_except:
|
116
|
+
- from
|
117
|
+
- to
|
118
|
+
- excepted
|
119
|
+
forward:
|
120
|
+
- days
|
121
|
+
backward:
|
122
|
+
- days
|
123
|
+
birthday:
|
124
|
+
- min_age
|
125
|
+
- max_age
|
126
|
+
Faker::Demographic:
|
127
|
+
height:
|
128
|
+
- unit
|
129
|
+
Faker::DrivingLicence:
|
130
|
+
british_driving_licence:
|
131
|
+
- last_name
|
132
|
+
- initials
|
133
|
+
- gender
|
134
|
+
- date_of_birth
|
135
|
+
Faker::File:
|
136
|
+
dir:
|
137
|
+
- segment_count
|
138
|
+
- root
|
139
|
+
- directory_separator
|
140
|
+
file_name:
|
141
|
+
- dir
|
142
|
+
- name
|
143
|
+
- ext
|
144
|
+
- directory_separator
|
145
|
+
Faker::Fillmurray:
|
146
|
+
image:
|
147
|
+
- grayscale
|
148
|
+
- width
|
149
|
+
- height
|
150
|
+
Faker::Finance:
|
151
|
+
vat_number:
|
152
|
+
- country
|
153
|
+
Faker::Hipster:
|
154
|
+
words:
|
155
|
+
- number
|
156
|
+
- supplemental
|
157
|
+
- spaces_allowed
|
158
|
+
sentence:
|
159
|
+
- word_count
|
160
|
+
- supplemental
|
161
|
+
- random_words_to_add
|
162
|
+
sentences:
|
163
|
+
- number
|
164
|
+
- supplemental
|
165
|
+
paragraph:
|
166
|
+
- sentence_count
|
167
|
+
- supplemental
|
168
|
+
- random_sentences_to_add
|
169
|
+
paragraphs:
|
170
|
+
- number
|
171
|
+
- supplemental
|
172
|
+
paragraph_by_chars:
|
173
|
+
- characters
|
174
|
+
- supplemental
|
175
|
+
Faker::IDNumber:
|
176
|
+
brazilian_citizen_number:
|
177
|
+
- formatted
|
178
|
+
brazilian_id:
|
179
|
+
- formatted
|
180
|
+
Faker::Internet:
|
181
|
+
email:
|
182
|
+
- name
|
183
|
+
- separators
|
184
|
+
free_email:
|
185
|
+
- name
|
186
|
+
safe_email:
|
187
|
+
- name
|
188
|
+
username:
|
189
|
+
- specifier
|
190
|
+
- separators
|
191
|
+
password:
|
192
|
+
- min_length
|
193
|
+
- max_length
|
194
|
+
- mix_case
|
195
|
+
- special_characters
|
196
|
+
domain_name:
|
197
|
+
- subdomain
|
198
|
+
fix_umlauts:
|
199
|
+
- string
|
200
|
+
mac_address:
|
201
|
+
- prefix
|
202
|
+
url:
|
203
|
+
- host
|
204
|
+
- path
|
205
|
+
- scheme
|
206
|
+
slug:
|
207
|
+
- words
|
208
|
+
- glue
|
209
|
+
user_agent:
|
210
|
+
- vendor
|
211
|
+
Faker::Invoice:
|
212
|
+
amount_between:
|
213
|
+
- from
|
214
|
+
- to
|
215
|
+
creditor_reference:
|
216
|
+
- ref
|
217
|
+
reference:
|
218
|
+
- ref
|
219
|
+
Faker::Json:
|
220
|
+
shallow_json:
|
221
|
+
- width
|
222
|
+
- options
|
223
|
+
add_depth_to_json:
|
224
|
+
- json
|
225
|
+
- width
|
226
|
+
- options
|
227
|
+
Faker::Lorem:
|
228
|
+
words:
|
229
|
+
- number
|
230
|
+
- supplemental
|
231
|
+
characters:
|
232
|
+
- number
|
233
|
+
sentence:
|
234
|
+
- word_count
|
235
|
+
- supplemental
|
236
|
+
- random_words_to_add
|
237
|
+
sentences:
|
238
|
+
- number
|
239
|
+
- supplemental
|
240
|
+
paragraph:
|
241
|
+
- sentence_count
|
242
|
+
- supplemental
|
243
|
+
- random_sentences_to_add
|
244
|
+
paragraphs:
|
245
|
+
- number
|
246
|
+
- supplemental
|
247
|
+
paragraph_by_chars:
|
248
|
+
- number
|
249
|
+
- supplemental
|
250
|
+
question:
|
251
|
+
- word_count
|
252
|
+
- supplemental
|
253
|
+
- random_words_to_add
|
254
|
+
questions:
|
255
|
+
- number
|
256
|
+
- supplemental
|
257
|
+
Faker::LoremFlickr:
|
258
|
+
image:
|
259
|
+
- size
|
260
|
+
- search_terms
|
261
|
+
- match_all
|
262
|
+
grayscale_image:
|
263
|
+
- size
|
264
|
+
- search_terms
|
265
|
+
- match_all
|
266
|
+
pixelated_image:
|
267
|
+
- size
|
268
|
+
- search_terms
|
269
|
+
- match_all
|
270
|
+
colorized_image:
|
271
|
+
- size
|
272
|
+
- color
|
273
|
+
- search_terms
|
274
|
+
- match_all
|
275
|
+
Faker::LoremPixel:
|
276
|
+
image:
|
277
|
+
- size
|
278
|
+
- is_gray
|
279
|
+
- category
|
280
|
+
- number
|
281
|
+
- text
|
282
|
+
- secure
|
283
|
+
Faker::Markdown:
|
284
|
+
sandwich:
|
285
|
+
- sentences
|
286
|
+
- repeat
|
287
|
+
Faker::Measurement:
|
288
|
+
height:
|
289
|
+
- amount
|
290
|
+
length:
|
291
|
+
- amount
|
292
|
+
volume:
|
293
|
+
- amount
|
294
|
+
weight:
|
295
|
+
- amount
|
296
|
+
metric_height:
|
297
|
+
- amount
|
298
|
+
metric_length:
|
299
|
+
- amount
|
300
|
+
metric_volume:
|
301
|
+
- amount
|
302
|
+
metric_weight:
|
303
|
+
- amount
|
304
|
+
Faker::Name:
|
305
|
+
initials:
|
306
|
+
- number
|
307
|
+
Faker::NationalHealthService:
|
308
|
+
check_digit:
|
309
|
+
- number
|
310
|
+
Faker::Number:
|
311
|
+
number:
|
312
|
+
- digits
|
313
|
+
leading_zero_number:
|
314
|
+
- digits
|
315
|
+
decimal_part:
|
316
|
+
- digits
|
317
|
+
decimal:
|
318
|
+
- l_digits
|
319
|
+
- r_digits
|
320
|
+
hexadecimal:
|
321
|
+
- digits
|
322
|
+
normal:
|
323
|
+
- mean
|
324
|
+
- standard_deviation
|
325
|
+
between:
|
326
|
+
- from
|
327
|
+
- to
|
328
|
+
within:
|
329
|
+
- range
|
330
|
+
positive:
|
331
|
+
- from
|
332
|
+
- to
|
333
|
+
negative:
|
334
|
+
- from
|
335
|
+
- to
|
336
|
+
Faker::Omniauth:
|
337
|
+
google:
|
338
|
+
- name
|
339
|
+
- email
|
340
|
+
- uid
|
341
|
+
facebook:
|
342
|
+
- name
|
343
|
+
- email
|
344
|
+
- username
|
345
|
+
- uid
|
346
|
+
twitter:
|
347
|
+
- name
|
348
|
+
- nickname
|
349
|
+
- uid
|
350
|
+
linkedin:
|
351
|
+
- name
|
352
|
+
- email
|
353
|
+
- uid
|
354
|
+
github:
|
355
|
+
- name
|
356
|
+
- email
|
357
|
+
- uid
|
358
|
+
Faker::PhoneNumber:
|
359
|
+
subscriber_number:
|
360
|
+
- length
|
361
|
+
Faker::Placeholdit:
|
362
|
+
image:
|
363
|
+
- size
|
364
|
+
- format
|
365
|
+
- background_color
|
366
|
+
- text_color
|
367
|
+
- text
|
368
|
+
Faker::Relationship:
|
369
|
+
familial:
|
370
|
+
- connection
|
371
|
+
Faker::Source:
|
372
|
+
hello_world:
|
373
|
+
- lang
|
374
|
+
print:
|
375
|
+
- str
|
376
|
+
- lang
|
377
|
+
print_1_to_10:
|
378
|
+
- lang
|
379
|
+
Faker::String:
|
380
|
+
random:
|
381
|
+
- length
|
382
|
+
Faker::Stripe:
|
383
|
+
valid_card:
|
384
|
+
- card_type
|
385
|
+
valid_token:
|
386
|
+
- card_type
|
387
|
+
invalid_card:
|
388
|
+
- card_error
|
389
|
+
ccv:
|
390
|
+
- card_type
|
391
|
+
Faker::Time:
|
392
|
+
between:
|
393
|
+
- from
|
394
|
+
- to
|
395
|
+
- format
|
396
|
+
between_dates:
|
397
|
+
- from
|
398
|
+
- to
|
399
|
+
- period
|
400
|
+
- format
|
401
|
+
forward:
|
402
|
+
- days
|
403
|
+
- period
|
404
|
+
- format
|
405
|
+
backward:
|
406
|
+
- days
|
407
|
+
- period
|
408
|
+
- format
|
409
|
+
Faker::Twitter:
|
410
|
+
user:
|
411
|
+
- include_status
|
412
|
+
- include_email
|
413
|
+
status:
|
414
|
+
- include_user
|
415
|
+
- include_photo
|
416
|
+
status_entities:
|
417
|
+
- include_photo
|
418
|
+
Faker::Types:
|
419
|
+
rb_string:
|
420
|
+
- words
|
421
|
+
rb_integer:
|
422
|
+
- from
|
423
|
+
- to
|
424
|
+
rb_hash:
|
425
|
+
- number
|
426
|
+
- type
|
427
|
+
complex_rb_hash:
|
428
|
+
- number
|
429
|
+
rb_array:
|
430
|
+
- len
|
431
|
+
Faker::Vehicle:
|
432
|
+
model:
|
433
|
+
- make_of_model
|
434
|
+
mileage:
|
435
|
+
- min
|
436
|
+
- max
|
437
|
+
license_plate:
|
438
|
+
- state_abreviation
|
439
|
+
Faker::WorldCup:
|
440
|
+
group:
|
441
|
+
- group
|
442
|
+
roster:
|
443
|
+
- country
|
444
|
+
- type
|
445
|
+
Faker::Dota:
|
446
|
+
quote:
|
447
|
+
- hero
|
448
|
+
Faker::Movies::StarWars:
|
449
|
+
quote:
|
450
|
+
- character
|