From fce8e2ee1d81681be8c333b75818d7dd0e520cd2 Mon Sep 17 00:00:00 2001 From: gkunwar Date: Mon, 18 Feb 2019 14:13:15 +0545 Subject: [PATCH 1/3] Fixed typos to the unreleased_README.md --- unreleased_README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/unreleased_README.md b/unreleased_README.md index 6693ae9f38..d6d657a02a 100644 --- a/unreleased_README.md +++ b/unreleased_README.md @@ -49,7 +49,7 @@ development. ```bash gem install faker ``` -Note: if you are getting a `uninitialized constant Faker::[some_class]` error, your version of the gem is behind the one documented here. To make sure that your gem is the one documented here, change the line in your gemfile to: +Note: if you are getting a `uninitialized constant Faker::[some_class]` error, your version of the gem is behind the one documented here. To make sure that your gem is the one documented here, change the line in your Gemfile to: ```ruby gem 'faker', :git => 'https://github.com/stympy/faker.git', :branch => 'master' @@ -67,7 +67,7 @@ Faker::Internet.email #=> "kirsten.greenholt@corkeryfisher.info" ### Ensuring unique values Prefix your method call with `unique`. For example: ```ruby -Faker::Name.unique.name # This will return a unique name every time it is called +Faker::Name.unique.name #=> This will return a unique name every time it is called ``` If too many unique values are requested from a generator that has a limited @@ -75,8 +75,8 @@ number of potential values, a `Faker::UniqueGenerator::RetryLimitExceeded` exception may be raised. It is possible to clear the record of unique values that have been returned, for example between tests. ```ruby -Faker::Name.unique.clear # Clears used values for Faker::Name -Faker::UniqueGenerator.clear # Clears used values for all generators +Faker::Name.unique.clear #=> Clears used values for Faker::Name +Faker::UniqueGenerator.clear #=> Clears used values for all generators ``` You also can give some already used values to the unique generator if you have From 6e0700c82f6a7e3d65c241f9d872aa14b55f9512 Mon Sep 17 00:00:00 2001 From: gkunwar Date: Mon, 18 Feb 2019 14:22:25 +0545 Subject: [PATCH 2/3] Revert notes --- unreleased_README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/unreleased_README.md b/unreleased_README.md index d6d657a02a..fa2ea91407 100644 --- a/unreleased_README.md +++ b/unreleased_README.md @@ -67,7 +67,7 @@ Faker::Internet.email #=> "kirsten.greenholt@corkeryfisher.info" ### Ensuring unique values Prefix your method call with `unique`. For example: ```ruby -Faker::Name.unique.name #=> This will return a unique name every time it is called +Faker::Name.unique.name # This will return a unique name every time it is called ``` If too many unique values are requested from a generator that has a limited @@ -75,8 +75,8 @@ number of potential values, a `Faker::UniqueGenerator::RetryLimitExceeded` exception may be raised. It is possible to clear the record of unique values that have been returned, for example between tests. ```ruby -Faker::Name.unique.clear #=> Clears used values for Faker::Name -Faker::UniqueGenerator.clear #=> Clears used values for all generators +Faker::Name.unique.clear # Clears used values for Faker::Name +Faker::UniqueGenerator.clear # Clears used values for all generators ``` You also can give some already used values to the unique generator if you have From 71ac6b39edd905d69c03e0797f122ce20fca84b4 Mon Sep 17 00:00:00 2001 From: gkunwar Date: Mon, 18 Feb 2019 15:54:13 +0545 Subject: [PATCH 3/3] Fixed typo to README.md file --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 687201df4e..a2ad185c5e 100644 --- a/README.md +++ b/README.md @@ -47,7 +47,7 @@ development. ```bash gem install faker ``` -Note: if you are getting a `uninitialized constant Faker::[some_class]` error, your version of the gem is behind the one documented here. To make sure that your gem is the one documented here, change the line in your gemfile to: +Note: if you are getting a `uninitialized constant Faker::[some_class]` error, your version of the gem is behind the one documented here. To make sure that your gem is the one documented here, change the line in your Gemfile to: ```ruby gem 'faker', :git => 'https://github.com/stympy/faker.git', :branch => 'master'