pokemon_faker 0.1.0 → 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8a621cb356b745012adc1d1eace628d78c424ab6
4
- data.tar.gz: 144e283f4cef2c6e475aa4e39241ac01689f0de7
3
+ metadata.gz: 4a45032bfc86f96007cfc43fd5dad019d445d9b8
4
+ data.tar.gz: 895ac7b5f94fc59e75bece9d392e0230de215d50
5
5
  SHA512:
6
- metadata.gz: d86576d1eb54075a0bb0f173e9b5779c555e914c75b39bc2304e793ca55816dfae3653428b4a7937ba174dae783d0c0a83fc6eab1379faccf3e96a15b1184971
7
- data.tar.gz: 917770740f7b7e4a458180a4ac954190829a9361b5fac755452735064e8dfab2b72e1a581c5716c2a278d1b390979cbfb3f0450897b75b3286e6d0d901b5f23c
6
+ metadata.gz: b57f0d0a053fea87804194e6c90e2fbf9326d018698c4493e17a90eb54d774894636f5fd6e3f2d89c59c8586efd7a7076998498b0888eb00c22e632966e66cd0
7
+ data.tar.gz: f7d303a3928035f8083a74dbf648438205ab86a977a5e307e1e886a42b6ec8eb3785af8dfc1d8f02e347e0b7fc03a0651eb501edb2f0aef67b9dcb4649137256
data/README.md CHANGED
@@ -9,7 +9,7 @@ TODO: Delete this and the text above, and describe your gem
9
9
  Add this line to your application's Gemfile:
10
10
 
11
11
  ```ruby
12
- gem 'pokemon_faker'
12
+ gem 'pokemon_faker', '~> 0.1.0'
13
13
  ```
14
14
 
15
15
  And then execute:
@@ -22,8 +22,29 @@ Or install it yourself as:
22
22
 
23
23
  ## Usage
24
24
 
25
- TODO: Write usage instructions here
25
+ To seed Pokemon Name:
26
26
 
27
+ PokemonFaker.name #Pikachu
28
+
29
+ To seed Pokemon Avatar Picture:
30
+
31
+ PokemonFaker.picture
32
+
33
+ To seed Pokemon Location:
34
+
35
+ PokemonFaker.location #Pallet Town"
36
+
37
+ To seed Pokemon Name and Avatar Picture:
38
+
39
+ PokemonFaker.match
40
+ or
41
+ see example:
42
+
43
+ 3.times do
44
+ p_name = PokemonFaker.match
45
+ Pokemon.new(name: p_name[0] image: p_name[1])
46
+ end
47
+
27
48
  ## Development
28
49
 
29
50
  After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
@@ -32,10 +53,13 @@ To install this gem onto your local machine, run `bundle exec rake install`. To
32
53
 
33
54
  ## Contributing
34
55
 
35
- Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/pokemon_faker.
56
+ Bug reports and pull requests are welcome on GitHub at https://github.com/shinwang1/pokemon_faker.
36
57
 
37
58
 
38
59
  ## License
39
60
 
40
61
  The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
41
62
 
63
+ ## Image Source
64
+ Credit of images goes to Nintendo and http://www.giantbomb.com/ a CBS Interactive company
65
+
data/lib/pokemon_faker.rb CHANGED
@@ -5,6 +5,8 @@ class PokemonFaker
5
5
 
6
6
  @@pictures = ["http://static.giantbomb.com/uploads/scale_small/13/135472/1891758-001bulbasaur.png", "http://static.giantbomb.com/uploads/scale_small/13/135472/1891759-002ivysaur.png", "http://static.giantbomb.com/uploads/scale_small/13/135472/1891760-003venusaur.png", "http://static.giantbomb.com/uploads/scale_small/0/6087/2438704-1202149925_t.png", "http://static.giantbomb.com/uploads/scale_small/13/135472/1891762-005charmeleon.png", "http://static.giantbomb.com/uploads/scale_small/13/135472/1891763-006charizard.png", "http://static.giantbomb.com/uploads/scale_small/13/135472/1891764-007squirtle.png", "http://static.giantbomb.com/uploads/scale_small/13/135472/1891809-008wartortle.png", "http://static.giantbomb.com/uploads/scale_small/13/135472/1891810-009blastoise.png", "http://static.giantbomb.com/uploads/scale_small/13/135472/1892132-010caterpie.png", "http://static.giantbomb.com/uploads/scale_small/13/135472/1895815-011metapod.png", "http://static.giantbomb.com/uploads/scale_small/13/135472/1892298-012butterfree.png", "http://static.giantbomb.com/uploads/scale_small/13/135472/1891817-013weedle.png", "http://static.giantbomb.com/uploads/scale_small/13/135472/1891818-014kakuna.png", "http://static.giantbomb.com/uploads/scale_small/13/135472/1891819-015beedrill.png", "http://static.giantbomb.com/uploads/scale_small/13/135472/1891631-016pidgey.png", "http://static.giantbomb.com/uploads/scale_small/13/135472/1891820-017pidgeotto.png", "http://static.giantbomb.com/uploads/scale_small/13/135472/1891821-018pidgeot.png", "http://static.giantbomb.com/uploads/scale_small/13/135472/1898244-019rattata.png", "http://static.giantbomb.com/uploads/scale_small/13/135472/1898245-020raticate.png", "http://static.giantbomb.com/uploads/scale_small/13/135472/1898246-021spearow.png", "http://static.giantbomb.com/uploads/scale_small/13/135472/1898247-022fearow.png", "http://static.giantbomb.com/uploads/scale_small/13/135472/1898239-023ekans.png", "http://static.giantbomb.com/uploads/scale_small/13/135472/1895870-024arbok.png", "http://static.giantbomb.com/uploads/scale_small/0/6087/2437349-pikachu.png", "http://static.giantbomb.com/uploads/scale_small/13/135472/1898248-026raichu.png", "http://static.giantbomb.com/uploads/scale_small/13/135472/1891822-027sandshrew.png", "http://static.giantbomb.com/uploads/scale_small/13/135472/1891682-028sandslash.png", "http://static.giantbomb.com/uploads/scale_small/13/135472/1898252-029nidoran.png", "http://static.giantbomb.com/uploads/scale_small/13/135472/1898253-030nidorina.png", "http://static.giantbomb.com/uploads/scale_small/13/135472/1898254-031nidoqueen.png", "http://static.giantbomb.com/uploads/scale_small/13/135472/1898249-032nidoran.png", "http://static.giantbomb.com/uploads/scale_small/13/135472/1898250-033nidorino.png", "http://static.giantbomb.com/uploads/scale_small/13/135472/1898251-034nidoking.png", "http://static.giantbomb.com/uploads/scale_small/13/135472/1898255-035clefairy.png", "http://static.giantbomb.com/uploads/scale_small/13/135472/1898256-036clefable.png", "http://static.giantbomb.com/uploads/scale_small/13/135472/1891638-037vulpix.png", "http://static.giantbomb.com/uploads/scale_small/13/135472/1891823-038ninetales.png", "http://static.giantbomb.com/uploads/scale_small/13/135472/1892299-039jigglypuff.png", "http://static.giantbomb.com/uploads/scale_small/13/135472/1891680-040wigglytuff.png", "http://static.giantbomb.com/uploads/scale_small/13/135472/1891824-041zubat.png", "http://static.giantbomb.com/uploads/scale_small/13/135472/1891826-042golbat.png", "http://static.giantbomb.com/uploads/scale_small/13/135472/1891711-043oddish.png", "http://static.giantbomb.com/uploads/scale_small/13/135472/1898257-044gloom.png", "http://static.giantbomb.com/uploads/scale_small/13/135472/1898258-045vileplume.png", "http://static.giantbomb.com/uploads/scale_small/13/135472/1898259-046paras.png", "http://static.giantbomb.com/uploads/scale_small/13/135472/1898260-047parasect.png", "http://static.giantbomb.com/uploads/scale_small/13/135472/1892300-048venonat.png", "http://static.giantbomb.com/uploads/scale_small/13/135472/1892301-049venomoth.png", "http://static.giantbomb.com/uploads/scale_small/13/135472/1892133-050diglett.png", "http://static.giantbomb.com/uploads/scale_small/13/135472/1894634-051dugtrio.png", "http://static.giantbomb.com/uploads/scale_small/2/26507/948297-meowth.jpg", "http://static.giantbomb.com/uploads/scale_small/13/135472/1898262-053persian.png", "http://static.giantbomb.com/uploads/scale_small/13/135472/1892134-054psyduck.png", "http://static.giantbomb.com/uploads/scale_small/13/135472/1892302-055golduck.png", "http://static.giantbomb.com/uploads/scale_small/13/135472/1892135-056mankey.png", "http://static.giantbomb.com/uploads/scale_small/13/135472/1892055-057primeape.png", "http://static.giantbomb.com/uploads/scale_small/13/135472/1891827-058growlithe.png", "http://static.giantbomb.com/uploads/scale_small/13/135472/1891828-059arcanine.png", "http://static.giantbomb.com/uploads/scale_small/13/135472/1891829-060poliwag.png", "http://static.giantbomb.com/uploads/scale_small/13/135472/1891830-061poliwhirl.png", "http://static.giantbomb.com/uploads/scale_small/13/135472/1891831-062poliwrath.png", "http://static.giantbomb.com/uploads/scale_small/13/135472/1891834-063abra.png", "http://static.giantbomb.com/uploads/scale_small/13/135472/1891835-064kadabra.png", "http://static.giantbomb.com/uploads/scale_small/13/135472/1891836-065alakazam.png", "http://static.giantbomb.com/uploads/scale_small/13/135472/1892303-066machop.png", "http://static.giantbomb.com/uploads/scale_small/13/135472/1892304-067machoke.png", "http://static.giantbomb.com/uploads/scale_small/13/135472/1892305-068machamp.png", "http://static.giantbomb.com/uploads/scale_small/13/135472/1898263-069bellsprout.png", "http://static.giantbomb.com/uploads/scale_small/13/135472/1898264-070weepinbell.png", "http://static.giantbomb.com/uploads/scale_small/13/135472/1898265-071victreebel.png", "http://static.giantbomb.com/uploads/scale_small/13/135472/1892306-072tentacool.png", "http://static.giantbomb.com/uploads/scale_small/13/135472/1892307-073tentacruel.png", "http://static.giantbomb.com/uploads/scale_small/13/135472/1898243-074geodude.png", "http://static.giantbomb.com/uploads/scale_small/13/135472/1898242-075graveler.png", "http://static.giantbomb.com/uploads/scale_small/13/135472/1892308-076golem.png", "http://static.giantbomb.com/uploads/scale_small/13/135472/1892309-077ponyta.png", "http://static.giantbomb.com/uploads/scale_small/13/135472/1892310-078rapidash.png", "http://static.giantbomb.com/uploads/scale_small/13/135472/1892136-079slowpoke.png", "http://static.giantbomb.com/uploads/scale_small/13/135472/1892311-080slowbro.png", "http://static.giantbomb.com/uploads/scale_small/13/135472/1892312-081magnemite.png", "http://static.giantbomb.com/uploads/scale_small/13/135472/1892313-082magneton.png", "http://static.giantbomb.com/uploads/scale_small/13/135472/1891838-083farfetch_d.png", "http://static.giantbomb.com/uploads/scale_small/13/135472/1892314-084doduo.png", "http://static.giantbomb.com/uploads/scale_small/13/135472/1892315-085dodrio.png", "http://static.giantbomb.com/uploads/scale_small/13/135472/1892316-086seel.png", "http://static.giantbomb.com/uploads/scale_small/13/135472/1892317-087dewgong.png", "http://static.giantbomb.com/uploads/scale_small/13/135472/1898266-088grimer.png", "http://static.giantbomb.com/uploads/scale_small/13/135472/1892056-089muk.png", "http://static.giantbomb.com/uploads/scale_small/13/135472/1892137-090shellder.png", "http://static.giantbomb.com/uploads/scale_small/13/135472/1892318-091cloyster.png", "http://static.giantbomb.com/uploads/scale_small/13/135472/1891839-092gastly.png", "http://static.giantbomb.com/uploads/scale_small/13/135472/1891840-093haunter.png", "http://static.giantbomb.com/uploads/scale_small/13/135472/1891841-094gengar.png", "http://static.giantbomb.com/uploads/scale_small/13/135472/1891842-095onix.png", "http://static.giantbomb.com/uploads/scale_small/13/135472/1898267-096drowzee.png", "http://static.giantbomb.com/uploads/scale_small/13/135472/1898268-097hypno.png", "http://static.giantbomb.com/uploads/scale_small/13/135472/1891843-098krabby.png", "http://static.giantbomb.com/uploads/scale_small/13/135472/1891844-099kingler.png", "http://static.giantbomb.com/uploads/scale_small/13/135472/1892678-100voltorb.png", "http://static.giantbomb.com/uploads/scale_small/13/135472/1892679-101electrode.png", "http://static.giantbomb.com/uploads/scale_small/13/135472/1898269-102exeggcute.png", "http://static.giantbomb.com/uploads/scale_small/13/135472/1898270-103exeggutor.png", "http://static.giantbomb.com/uploads/scale_small/13/135472/1891845-104cubone.png", "http://static.giantbomb.com/uploads/scale_small/13/135472/1891846-105marowak.png", "http://static.giantbomb.com/uploads/scale_small/13/135472/1892680-106hitmonlee.png", "http://static.giantbomb.com/uploads/scale_small/13/135472/1892681-107hitmonchan.png", "http://static.giantbomb.com/uploads/scale_small/13/135472/1898271-108lickitung.png", "http://static.giantbomb.com/uploads/scale_small/13/135472/1892138-109koffing.png", "http://static.giantbomb.com/uploads/scale_small/13/135472/1898274-110weezing.png", "http://static.giantbomb.com/uploads/scale_small/13/135472/1892682-111rhyhorn.png", "http://static.giantbomb.com/uploads/scale_small/13/135472/1892683-112rhydon.png", "http://static.giantbomb.com/uploads/scale_small/13/135472/1892684-113chansey.png", "http://static.giantbomb.com/uploads/scale_small/13/135472/1898275-114tangela.png", "http://static.giantbomb.com/uploads/scale_small/13/135472/1898276-115kangaskhan.png", "http://static.giantbomb.com/uploads/scale_small/13/135472/1891847-116horsea.png", "http://static.giantbomb.com/uploads/scale_small/13/135472/1891849-117seadra.png", "http://static.giantbomb.com/uploads/scale_small/13/135472/1898280-118goldeen.png", "http://static.giantbomb.com/uploads/scale_small/13/135472/1898282-119seaking.png", "http://static.giantbomb.com/uploads/scale_small/13/135472/1892685-120staryu.png", "http://static.giantbomb.com/uploads/scale_small/13/135472/1892686-121starmie.png", "http://static.giantbomb.com/uploads/scale_small/13/135472/1898289-122mr._mime.png", "http://static.giantbomb.com/uploads/scale_small/13/135472/1891850-123scyther.png", "http://static.giantbomb.com/uploads/scale_small/13/135472/1898290-124jynx.png", "http://static.giantbomb.com/uploads/scale_small/13/135472/1892687-125electabuzz.png", "http://static.giantbomb.com/uploads/scale_small/13/135472/1895802-126magmar.png", "http://static.giantbomb.com/uploads/scale_small/13/135472/1891851-127pinsir.png", "http://static.giantbomb.com/uploads/scale_small/13/135472/1891852-128tauros.png", "http://static.giantbomb.com/uploads/scale_small/13/135472/1898291-129magikarp.png", "http://static.giantbomb.com/uploads/scale_small/13/135472/1891635-130gyarados.png", "http://static.giantbomb.com/uploads/scale_small/13/135472/1891870-131lapras.png", "http://static.giantbomb.com/uploads/scale_small/13/135472/1891871-132ditto.png", "http://static.giantbomb.com/uploads/scale_small/13/135472/1891681-133eevee.png", "http://static.giantbomb.com/uploads/scale_small/13/135472/1891872-134vaporeon.png", "http://static.giantbomb.com/uploads/scale_small/13/135472/1891873-135jolteon.png", "http://static.giantbomb.com/uploads/scale_small/13/135472/1891874-136flareon.png", "http://static.giantbomb.com/uploads/scale_small/13/135472/1898292-137porygon.png", "http://static.giantbomb.com/uploads/scale_small/13/135472/1892688-138omanyte.png", "http://static.giantbomb.com/uploads/scale_small/13/135472/1892689-139omastar.png", "http://static.giantbomb.com/uploads/scale_small/13/135472/1891959-140kabuto.png", "http://static.giantbomb.com/uploads/scale_small/13/135472/1891960-141kabutops.png", "http://static.giantbomb.com/uploads/scale_small/13/135472/1891961-142aerodactyl.png", "http://static.giantbomb.com/uploads/scale_small/0/4986/406919-143snorlax.png", "http://static.giantbomb.com/uploads/scale_small/13/135472/1892690-144articuno.png", "http://static.giantbomb.com/uploads/scale_small/13/135472/1892691-145zapdos.png", "http://static.giantbomb.com/uploads/scale_small/13/135472/1891710-146moltres.png", "http://static.giantbomb.com/uploads/scale_small/13/135472/1910790-147dratini_ag_anime.png", "http://static.giantbomb.com/uploads/scale_small/13/135472/1891876-148dragonair.png", "http://static.giantbomb.com/uploads/scale_small/13/135472/1892692-149dragonite.png", "http://static.giantbomb.com/uploads/scale_small/13/135472/1895869-150mewtwo.png"]
7
7
 
8
+ @@locations = ["Accumula Town", "Ambrette Town", "Anistar City", "Anville Town", "Aquacorde Town", "Aspertia City", "Azalea Town", "Black City", "Blackthorn City", "Camphrier Town", "Canalave City", "Castelia City", "Celadon City", "Celestic Town", "Cerulean City", "Cherrygrove City", "Cianwood City", "Cinnabar Island", nil, "Coumarine City", "Couriway Town", "Cyllage City", "Dendemille Town", "Dewford Town", "Driftveil City", "Ecruteak City", "Eterna City", "Ever Grande City", "Fallarbor Town", "Fight Area", "Five Island", "Floaroma Town", "Floccesy Town", "Fortree City", "Four Island", "Frontier Access", "Fuchsia City", "Geosenge Town", "Goldenrod City", "Hearthome City", "Humilau City", "Icirrus City", "Jubilife City", "Kiloude City", "Lacunosa Town", "Lavaridge Town", "Lavender Town", "Laverre City", "Lentimas Town", "Littleroot Town", "Lilycove City", "Lumiose City", "Mahogany Town", "Mauville City", "Mistralton City", "Mossdeep City", "Nacrene City", "New Bark Town", "Nimbasa City", "Nuvema Town", "Oldale Town", "Olivine City", "One Island", "Opelucid City", "Oreburgh City", "Pacifidlog Town", "Pallet Town", "Pastoria City", "Petalburg City", "Pewter City", "Resort Area", "Rustboro City", "Safari Zone Gate", "Saffron City", "Sandgem Town", "Santalune City", "Striaton City", "Seven Island", "Shalour City", "Six Island", "Slateport City", "Snowbelle City", "Snowpoint City", "Solaceon Town", "Sootopolis City", "Sunyshore City", "Survival Area", "Three Island", "Twinleaf Town", "Two Island", "Undella Town", "Vaniville Town", "Veilstone City", "Verdanturf Town", "Vermilion City", "Violet City", "Virbank City", "Viridian City", "White Forest"]
9
+
8
10
  def self.name
9
11
  return @@names.sample
10
12
  end
@@ -13,6 +15,10 @@ class PokemonFaker
13
15
  return @@pictures.sample
14
16
  end
15
17
 
18
+ def self.location
19
+ return @@locations.sample
20
+ end
21
+
16
22
  def self.match
17
23
  index = rand(0..149)
18
24
 
@@ -1,3 +1,3 @@
1
1
  module PokemonFaker
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
Binary file
@@ -10,7 +10,7 @@ Gem::Specification.new do |spec|
10
10
  spec.email = ["shinwang3@gmail.com"]
11
11
 
12
12
  spec.summary = %q{Ruby Pokemon faker names and avatar pictures.}
13
- spec.description = %q{Users are able to seed their database with the following methods: PokemonFaker.name, PokemonFaker.picture, and PokemonFaker.match}
13
+ spec.description = %q{Users are able to seed their database with the following methods: PokemonFaker.name, PokemonFaker.picture, PokemonFaker.location and PokemonFaker.match. Please refer to my github below to see examples.}
14
14
  spec.homepage = "https://github.com/shinwang1/Pokemon-Ruby-Faker-Gem/tree/master/Pokemon-faker"
15
15
  spec.license = "MIT"
16
16
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pokemon_faker
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Shin Wang and Andrew Lee
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-07-14 00:00:00.000000000 Z
11
+ date: 2016-07-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -53,7 +53,8 @@ dependencies:
53
53
  - !ruby/object:Gem::Version
54
54
  version: '3.0'
55
55
  description: 'Users are able to seed their database with the following methods: PokemonFaker.name,
56
- PokemonFaker.picture, and PokemonFaker.match'
56
+ PokemonFaker.picture, PokemonFaker.location and PokemonFaker.match. Please refer
57
+ to my github below to see examples.'
57
58
  email:
58
59
  - shinwang3@gmail.com
59
60
  executables: []
@@ -71,6 +72,7 @@ files:
71
72
  - bin/setup
72
73
  - lib/pokemon_faker.rb
73
74
  - lib/pokemon_faker/version.rb
75
+ - pokemon_faker-0.1.0.gem
74
76
  - pokemon_faker.gemspec
75
77
  homepage: https://github.com/shinwang1/Pokemon-Ruby-Faker-Gem/tree/master/Pokemon-faker
76
78
  licenses: