Skip to content

Commit

Permalink
Changes before release (faker-ruby#1508)
Browse files Browse the repository at this point in the history
* Change deprecate dates to 01/2019

* Move docs/unreleased to docs/1.9.2

* Fix rubocop offenses

* Check the 1.8.7 deprecate methods and remove the warnings

* Revert wrong change

* Fix deprecate dates

* Fix Style/NumericLiteralPrefix cop offense

* Enable Style/NumericLiteralPrefix false
  • Loading branch information
vbrazo committed Jan 7, 2019
1 parent c638589 commit 4d8f511
Show file tree
Hide file tree
Showing 250 changed files with 3,799 additions and 259 deletions.
3 changes: 3 additions & 0 deletions .rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,9 @@ Style/For:
- for
- each

Style/NumericLiteralPrefix:
Enabled: false

Style/RegexpLiteral:
Description: Use / or %r around regular expressions.
StyleGuide: https://github.com/rubocop-hq/ruby-style-guide#percent-r
Expand Down
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
## HEAD Unreleased

### Bug/Fixes
- [PR #1494](https://github.com/stympy/faker/pull/1494) Fix Faker::Internet.ip_v4_address to include all IP ranges [@lucasqueiroz](https://github.com/lucasqueiroz)
- [PR #1456](https://github.com/stympy/faker/pull/1456) fix: omit . from slug [@ivanoblomov](https://github.com/ivanoblomov)
- [PR #1436](https://github.com/stympy/faker/pull/1436) Fix regex and add magic string to pass rubocop check [@jakrzus](https://github.com/jakrzus)
- [PR #1425](https://github.com/stympy/faker/pull/1425) NHS: fix occasional bad numbers [@ChaoticBoredom](https://github.com/ChaoticBoredom)
Expand All @@ -20,6 +21,8 @@
- [PR #1310](https://github.com/stympy/faker/pull/1310) Add alias for middle_name and remove locale [@vbrazo](https://github.com/vbrazo)

### Chores
- [PR #1496](https://github.com/stympy/faker/pull/1496) Update yaml format in docs [@SpyMaster356](https://github.com/SpyMaster356)
- [PR #1508](https://github.com/stympy/faker/pull/1508) Changes before release [@vbrazo](https://github.com/vbrazo)
- [PR #1490](https://github.com/stympy/faker/pull/1490) Add missing Faker::HeroesOfTheStorm tests [@vbrazo](https://github.com/vbrazo)
- [PR #1457](https://github.com/stympy/faker/pull/1457) Add tests for new Faker::Internet.slug glue [@vbrazo](https://github.com/vbrazo)
- [PR #1434](https://github.com/stympy/faker/pull/1434) Add keyword argument to Faker::Games::Dota.quote [@vbrazo](https://github.com/vbrazo)
Expand Down Expand Up @@ -56,6 +59,7 @@
- [PR #803](https://github.com/stympy/faker/pull/803) Modify Faker::Educator, Fix #576 [@ghbooth12](https://github.com/ghbooth12)

### Documentation
- [PR #1497](https://github.com/stympy/faker/pull/1497) add TV Shows to table of contents [@SpyMaster356](https://github.com/SpyMaster356)
- [PR #1488](https://github.com/stympy/faker/pull/1488) Fix unreleased docs [@vbrazo](https://github.com/vbrazo)
- [PR #1462](https://github.com/stympy/faker/pull/1462) Fix documentation on Faker::Avatar [@mrstebo](https://github.com/mrstebo)
- [PR #1445](https://github.com/stympy/faker/pull/1445) Separate README.md: unreleased and latest version [@vbrazo](https://github.com/vbrazo)
Expand All @@ -72,6 +76,7 @@
- [PR #1329](https://github.com/stympy/faker/pull/1329) Update docs on behavior of price [@softwaregravy](https://github.com/softwaregravy)

### Feature Request
- [PR #1493](https://github.com/stympy/faker/pull/1493) Add Faker::Books::CultureSeries [@richardbulger](https://github.com/richardbulger)
- [PR #1489](https://github.com/stympy/faker/pull/1489) Format brazilian_company_number and brazilian_citizen_number [@jpkarvonen](https://github.com/jpkarvonen)
- [PR #1487](https://github.com/stympy/faker/pull/1487) Add Faker::TvShows::TheExpanse [@jpkarvonen](https://github.com/jpkarvonen)
- [PR #1475](https://github.com/stympy/faker/pull/1475) Adds Faker::Nation.flag [@JonathanWThom](https://github.com/JonathanWThom)
Expand Down Expand Up @@ -127,6 +132,10 @@
- [PR #1246](https://github.com/stympy/faker/pull/1246) Store list of generators with enabled uniqueness for faster clear [@MarcPer](https://github.com/MarcPer)

### Update/add locales
- [PR #1492](https://github.com/stympy/faker/pull/1492) Fix abbreviation for Osten [@sonOfRa](https://github.com/sonOfRa)
- [PR #1499](https://github.com/stympy/faker/pull/1499) Adds some items on pt-BR locales seniority and education levels. And removes duplicated items from cities list. [@ramonlg](https://github.com/ramonlg)
- [PR #1501](https://github.com/stympy/faker/pull/1501) fix asajj_ventress alternate name [@ethan-dowler](https://github.com/ethan-dowler)
- [PR #1502](https://github.com/stympy/faker/pull/1502) Add support for Armenian language [@hovikman](https://github.com/hovikman)
- [PR #1486](https://github.com/stympy/faker/pull/1486) Added some professions in company.yml [@ReneIvanov](https://github.com/ReneIvanov)
- [PR #1474](https://github.com/stympy/faker/pull/1474) Fr format and translation [@maxime-lenne](https://github.com/maxime-lenne)
- [PR #1468](https://github.com/stympy/faker/pull/1468) Update "Black Pink" to "Blackpink" [@agungyuliaji](https://github.com/agungyuliaji)
Expand Down
7 changes: 7 additions & 0 deletions doc/v1.9.2/blockchain/bitcoin.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# Faker::Blockchain::Bitcoin

```ruby
Faker::Blockchain::Bitcoin.address #=> "1HUoGjmgChmnxxYhz87YytV4gVjfPaExmh"

Faker::Blockchain::Bitcoin.testnet_address #=> "msHGunDvoEwmVFXvd2Bub1SNw5RP1YHJaf"
```
7 changes: 7 additions & 0 deletions doc/v1.9.2/blockchain/ethereum.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# Faker::Blockchain::Ethereum

Available since version 1.9.0.

```ruby
Faker::Blockchain::Ethereum.address #=> "c38bbc8e93c09f6ed3fe39b5135da91ad1a99d397ef16948606cdcbd14929f9d"
```
13 changes: 13 additions & 0 deletions doc/v1.9.2/blockchain/tezos.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Faker::Blockchain::Tezos

It might be available in the next version.

```ruby
Faker::Blockchain::Tezos.account #=> "tz1eUsgK6aj752Fbxwk5sAoEFvSDnPjZ4qvk"

Faker::Blockchain::Tezos.contract #=> "KT1MroqeP15nnitB4CnNfkqHYa2NErhPPLWF"

Faker::Blockchain::Tezos.operation #=> "onygWYXJX3xNstFLv9PcCrhQdCkENC795xwSinmTEc1jsDN4VDa"

Faker::Blockchain::Tezos.signature #=> "edsigu165B7VFf3Dpw2QABVzEtCxJY2gsNBNcE3Ti7rRxtDUjqTFRpg67EdAQmY6YWPE5tKJDMnSTJDFu65gic8uLjbW2YwGvAZ"
```
15 changes: 15 additions & 0 deletions doc/v1.9.2/books/book.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# Faker::Book

```ruby
# Random Book Title
Faker::Book.title #=> "The Odd Sister"

# Random Author
Faker::Book.author #=> "Alysha Olsen"

# Random Publisher
Faker::Book.publisher #=> "Opus Reader"

# Random Genre
Faker::Book.genre #=> "Mystery"
```
15 changes: 15 additions & 0 deletions doc/v1.9.2/books/culture_series.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# Faker::Books::CultureSeries

```ruby
Faker::Books::CultureSeries.book #=> "The Player of Games"

Faker::Books::CultureSeries.culture_ship #=> "Fate Amenable To Change"

Faker::Books::CultureSeries.culture_ship_class #=> "General Systems Vehicle"

Faker::Books::CultureSeries.culture_ship_class_abv #=> "GSV"

Faker::Books::CultureSeries.civ #=> "Culture"

Faker::Books::CultureSeries.planet #=> "Xinth"
```
19 changes: 19 additions & 0 deletions doc/v1.9.2/books/dune.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# Faker::Books::Dune

### A Faker module beyond your dreams, test data beyond your imagination.

```ruby
Faker::Books::Dune.character #=> "Leto Atreides"

Faker::Books::Dune.title #=> "Duke"

Faker::Books::Dune.planet #=> "Caladan"

Faker::Books::Dune.quote #=> "A dead man, surely, no longer requires that water."

Faker::Books::Dune.quote("baron_harkonnen") #=> "He who controls the spice, controls the universe!"

Faker::Books::Dune.saying #=> "You do not beg the sun for mercy."

Faker::Books::Dune.saying("fremen") #=> "May thy knife chip and shatter."
```
41 changes: 41 additions & 0 deletions doc/v1.9.2/books/lovecraft.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
# Faker::Books::Lovecraft

```ruby
Faker::Books::Lovecraft.fhtagn #=> "Ph'nglui mglw'nafh Cthulhu R'lyeh wgah'nagl fhtagn"
Faker::Books::Lovecraft.fhtagn(3) #=> "Ph'nglui mglw'nafh Cthulhu R'lyeh wgah'nagl fhtagn. Ph'nglui mglw'nafh Cthulhu R'lyeh wgah'nagl fhtagn. Ph'nglui mglw'nafh Cthulhu R'lyeh wgah'nagl fhtagn"

Faker::Books::Lovecraft.deity #=> "Shub-Niggurath"

Faker::Books::Lovecraft.tome #=> "Book of Eibon"

Faker::Books::Lovecraft.location #=> "Kingsport"

Faker::Books::Lovecraft.word #=> "furtive"

# Optional arguments: word_count=4, random_words_to_add=6
Faker::Books::Lovecraft.sentence #=> "Furtive antiquarian squamous dank cat loathsome amorphous lurk."
Faker::Books::Lovecraft.sentence(3) #=> "Daemoniac antediluvian fainted squamous comprehension gambrel nameless singular."
Faker::Books::Lovecraft.sentence(3, 1) #=> "Amorphous indescribable tenebrous."

# Optional arguments: num=3, spaces_allowed = false
Faker::Books::Lovecraft.words #=> ["manuscript", "abnormal", "singular"]
Faker::Books::Lovecraft.words(2) #=> ["daemoniac", "cat"]
Faker::Books::Lovecraft.words(2, true) #=> ["lurk", "charnel"]

# Optional arguments: sentence_count=3
Faker::Books::Lovecraft.sentences #=> ["Nameless loathsome decadent gambrel.", "Ululate swarthy immemorial cat madness gibbous unmentionable unnamable.", "Decadent antediluvian non-euclidean tentacles amorphous tenebrous."]
Faker::Books::Lovecraft.sentences(2) #=> ["Antediluvian amorphous unmentionable singular accursed squamous immemorial.", "Gambrel daemoniac gibbous stygian shunned ululate iridescence abnormal."]

# Optional arguments: sentence_count=3, random_sentences_to_add=3
Faker::Books::Lovecraft.paragraph #=> "Squamous nameless daemoniac fungus ululate. Cyclopean stygian decadent loathsome manuscript tenebrous. Foetid abnormal stench. Dank non-euclidean comprehension eldritch. Charnel singular shunned lurk effulgence fungus."
Faker::Books::Lovecraft.paragraph(2) #=> "Decadent lurk tenebrous loathsome furtive spectral amorphous gibbous. Gambrel eldritch daemoniac cat madness comprehension stygian effulgence."
Faker::Books::Lovecraft.paragraph(2, 1) #=> "Stench cyclopean fainted antiquarian nameless. Antiquarian ululate tenebrous non-euclidean effulgence."

# Optional arguments: paragraph_count=3
Faker::Books::Lovecraft.paragraphs #=> ["Noisome daemoniac gibbous abnormal antediluvian. Unutterable fungus accursed stench noisome lurk madness indescribable. Antiquarian fungus gibbering lurk dank fainted. Hideous loathsome manuscript daemoniac lurk charnel foetid.", "Non-euclidean immemorial indescribable accursed furtive. Dank unnamable cyclopean tenebrous stench immemorial. Eldritch abnormal gibbering tenebrous. Singular accursed lurk.", "Charnel antediluvian unnamable cat blasphemous comprehension tenebrous. Nameless accursed amorphous unnamable stench. Squamous unnamable mortal accursed manuscript spectral gambrel amorphous. Shunned stygian charnel unutterable. Tenebrous ululate lurk amorphous unnamable."]
Faker::Books::Lovecraft.paragraphs(2) #=> ["Hideous amorphous manuscript antediluvian non-euclidean cat eldritch foetid. Stench squamous manuscript amorphous gibbering fainted gibbous. Accursed loathsome blasphemous iridescence antediluvian abnormal ululate manuscript. Singular manuscript gibbering decadent accursed indescribable.", "Tenebrous unnamable comprehension antediluvian lurk. Lurk spectral noisome gibbering. Furtive manuscript madness tenebrous daemoniac."]

# Optional arguments: chars=3, supplemental=false
Faker::Books::Lovecraft.paragraph_by_chars #=> "Truffaut stumptown trust fund 8-bit messenger bag portland. Meh kombucha selvage swag biodiesel. Lomo kinfolk jean shorts asymmetrical diy. Wayfarers portland twee stumptown. Wes anderson biodiesel retro 90's pabst. Diy echo 90's mixtape semiotics. Cornho."
Faker::Books::Lovecraft.paragraph_by_chars(256) #=> "Hella kogi blog narwhal sartorial selfies mustache schlitz. Bespoke normcore kitsch cred hella fixie. Park aesthetic fixie migas twee. Cliche mustache brunch tumblr fixie godard. Drinking pop-up synth hoodie dreamcatcher typewriter. Kitsch biodiesel green."
```
7 changes: 7 additions & 0 deletions doc/v1.9.2/creature/animal.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# Faker::Creature::Animal

It might be available in the next version.

```ruby
Faker::Creature::Animal.name #=> "Antelope"
```
14 changes: 14 additions & 0 deletions doc/v1.9.2/creature/cat.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# Faker::Creature::Cat

Available since version 1.6.2.

```ruby
# Random cat name
Faker::Creature::Cat.name #=> "Shadow"

# Random cat breed
Faker::Creature::Cat.breed #=> "British Semipi-longhair"

# Random cat registry
Faker::Creature::Cat.registry #=> "American Cat Fanciers Association"
```
27 changes: 27 additions & 0 deletions doc/v1.9.2/creature/dog.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# Faker::Creature::Dog

```ruby
# Random dog name
Faker::Creature::Dog.name #=> "Spike"

# Random dog breed
Faker::Creature::Dog.breed #=> "Yorkshire Terrier"

# Random dog sound
Faker::Creature::Dog.sound #=> "woof woof"

# Random dog meme phrase
Faker::Creature::Dog.meme_phrase #=> "smol pupperino"

# Random dog age
Faker::Creature::Dog.age #=> "puppy"

# Random dog gender
Faker::Creature::Dog.gender #=> "female"

# Random dog coat length
Faker::Creature::Dog.coat_length #=> "short"

# Random dog size
Faker::Creature::Dog.size #=> "small"
```
54 changes: 54 additions & 0 deletions doc/v1.9.2/default/address.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
# Faker::Address

Available since version 0.3.0.

```ruby
Faker::Address.city #=> "Imogeneborough"

Faker::Address.street_name #=> "Larkin Fork"

Faker::Address.street_address #=> "282 Kevin Brook"

Faker::Address.secondary_address #=> "Apt. 672"

Faker::Address.building_number #=> "7304"

Faker::Address.community #=> "University Crossing"

Faker::Address.zip_code #=> "58517" or "23285-4905"

Faker::Address.zip #=> "58517" or "66259-8212"

Faker::Address.postcode #=> "76032-4907" or "58517"

Faker::Address.time_zone #=> "Asia/Yakutsk"

Faker::Address.street_suffix #=> "Street"

Faker::Address.city_suffix #=> "fort"

Faker::Address.city_prefix #=> "Lake"

Faker::Address.state #=> "California"

Faker::Address.state_abbr #=> "AP"

Faker::Address.country #=> "French Guiana"

# Optional arguments: code
Faker::Address.country_by_code(code: 'NL') #=> "Netherlands"

# Optional arguments: name
Faker::Address.country_name_to_code(name: 'united_states') #=> "US"

Faker::Address.country_code #=> "IT"

Faker::Address.country_code_long #=> "ITA"

Faker::Address.latitude #=> "-58.17256227443719"

Faker::Address.longitude #=> "-156.65548382095133"

Faker::Address.full_address #=> "282 Kevin Brook, Imogeneborough, CA 58517"

```
9 changes: 9 additions & 0 deletions doc/v1.9.2/default/alphanumeric.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Faker::Alphanumeric

It might be available in the next version.

```ruby
Faker::Alphanumeric.alpha 10 #=> "zlvubkrwga"

Faker::Alphanumeric.alphanumeric 10 #=> "3yfq2phxtb"
```
13 changes: 13 additions & 0 deletions doc/v1.9.2/default/ancient.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Faker::Ancient

Available since version 1.7.0.

```ruby
Faker::Ancient.god #=> "Zeus"

Faker::Ancient.primordial #=> "Gaia"

Faker::Ancient.titan #=> "Atlas"

Faker::Ancient.hero #=> "Achilles"
```
19 changes: 19 additions & 0 deletions doc/v1.9.2/default/app.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# Faker::App

Available since version 1.4.3.

```ruby
Faker::App.name #=> "Treeflex"

Faker::App.version #=> "1.85"

Faker::App.author #=> "Daphne Swift"

Faker::App.semantic_version #=> "3.2.5"

Faker::App.semantic_version(major: 42) #=> "42.5.2"

Faker::App.semantic_version(minor: 100..101) #=> "42.100.4"

Faker::App.semantic_version(patch: 5..6) #=> "7.2.6"
```
9 changes: 9 additions & 0 deletions doc/v1.9.2/default/appliance.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Faker::Appliance

Available since version 1.9.0.

```ruby
Faker::Appliance.brand #=> "Bosch"

Faker::Appliance.equipment #=> "Appliance plug"
```
7 changes: 7 additions & 0 deletions doc/v1.9.2/default/artist.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# Faker::Artist

Available since version 1.8.8.

```ruby
Faker::Artist.name #=> "Michelangelo"
```
15 changes: 15 additions & 0 deletions doc/v1.9.2/default/avatar.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# Faker::Avatar

```ruby
Faker::Avatar.image #=> "https://robohash.org/sitsequiquia.png?size=300x300"

Faker::Avatar.image("my-own-slug") #=> "https://robohash.org/my-own-slug.png?size=300x300"

Faker::Avatar.image("my-own-slug", "50x50") #=> "https://robohash.org/my-own-slug.png?size=50x50"

Faker::Avatar.image("my-own-slug", "50x50", "jpg") #=> "https://robohash.org/my-own-slug.jpg?size=50x50"

Faker::Avatar.image("my-own-slug", "50x50", "bmp") #=> "https://robohash.org/my-own-slug.bmp?size=50x50"

Faker::Avatar.image("my-own-slug", "50x50", "bmp", "set1", "bg1") #=> "https://robohash.org/my-own-slug.bmp?size=50x50&set=set1&bgset=bg1"
```
21 changes: 21 additions & 0 deletions doc/v1.9.2/default/bank.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Faker::Bank
```ruby

Faker::Bank.account_number #=> 6738582379

Faker::Bank.account_number(13) #=> 673858237902

Faker::Bank.iban #=> "GB76DZJM33188515981979"

# Optional argument bank_country_code
# All countries should be supported
Faker::Bank.iban("be") #=> "BE6375388567752043"

Faker::Bank.name #=> "ABN AMRO CORPORATE FINANCE LIMITED"

Faker::Bank.routing_number #=> "729343831"

Faker::Bank.routing_number(true) #=> "22-3833/64805"

Faker::Bank.swift_bic #=> "AAFMGB21"
```
Loading

0 comments on commit 4d8f511

Please sign in to comment.