faker-gpk 0.1.0 → 0.1.2

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
  SHA256:
3
- metadata.gz: 68ae1361fb84ffe5ba4a9d41a39506ac6efd7ce6bd076473e9a38977ff87ab71
4
- data.tar.gz: 87d7a424ab505e419a40685a0250bd1e6765aa5b61f69a31578b93be63a7f93f
3
+ metadata.gz: 2031dfad38a715f291e7bacc0ab5ce6ba54a3a4f83d365e8ef777606ced1b1ba
4
+ data.tar.gz: 6605e15de6f846fa5b22193e08e3d310c36e93a4c44798d675cc8afa323d095e
5
5
  SHA512:
6
- metadata.gz: d414895bd25627daf8ac98eb71dc5a5b545bf0cf0419654d135ebb53eb48b07f3e30bca966db9f25373bdd7f7eec786d10045667534748feaa4045db077ae573
7
- data.tar.gz: 6c9a83d5a823f7afc4d8b577f16287f0489cd62d9e9fc1188e92f49d5de7770f0b4a6b7cb7d17dcf1be0768a8f1d50f4e5cd760a02c315f10eb8b70eec43ae7e
6
+ metadata.gz: 5a466ab1bbb4427b3c62e43cc373fd07a0256b7d4c3997b70aacc588921d4e8abda30ef42143bf32da41f0453877fda896b1d27328d3bf35d10671bfe01b17a7
7
+ data.tar.gz: 06d389d54e983dda347e2fb9b99d1598a73f0895ab391c81ec91377f4fb8d7c92c7950d78716e864aca60f308ac46f02b608be18f6b35be6b259d76c295c90e7
data/README.md CHANGED
@@ -1,24 +1,39 @@
1
1
  # Faker::GPK
2
2
 
3
- TODO: Delete this and the text below, and describe your gem
4
-
5
- Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/faker-gpk`. To experiment with that code, run `bin/console` for an interactive prompt.
3
+ Faker extension for Garbage Pail Kids
6
4
 
7
5
  ## Installation
8
6
 
9
- TODO: Replace `UPDATE_WITH_YOUR_GEM_NAME_IMMEDIATELY_AFTER_RELEASE_TO_RUBYGEMS_ORG` with your gem name right after releasing it to RubyGems.org. Please do not do it earlier due to security reasons. Alternatively, replace this section with instructions to install your gem from git if you don't plan to release to RubyGems.org.
10
-
11
7
  Install the gem and add to the application's Gemfile by executing:
12
8
 
13
- $ bundle add UPDATE_WITH_YOUR_GEM_NAME_IMMEDIATELY_AFTER_RELEASE_TO_RUBYGEMS_ORG
9
+ $ bundle add faker-gpk
14
10
 
15
11
  If bundler is not being used to manage dependencies, install the gem by executing:
16
12
 
17
- $ gem install UPDATE_WITH_YOUR_GEM_NAME_IMMEDIATELY_AFTER_RELEASE_TO_RUBYGEMS_ORG
13
+ $ gem install faker-gpk
18
14
 
19
15
  ## Usage
20
16
 
21
- TODO: Write usage instructions here
17
+ Generate a name of our favourite Garbage Pail Kids
18
+
19
+ ```ruby
20
+ Faker::TradingCards::GarbagePailKids.name # => 'Nasty NICK'
21
+ Faker::TradingCards::GarbagePailKids.name(from: 'OS1') # => 'Graffiti PETEY'
22
+ ```
23
+
24
+ Generate a unique card id
25
+
26
+ ```ruby
27
+ Faker::TradingCards::GarbagePailKids.number # => '1a'
28
+ Faker::TradingCards::GarbagePailKids.number(from: 'OS2') # => '46a'
29
+ ```
30
+
31
+ Generate a card (id and number pair)
32
+
33
+ ```ruby
34
+ Faker::TradingCards::GarbagePailKids.card #=> {id: "385b", name: "Chuckin' CHARLIE"}
35
+ Faker::TradingCards::GarbagePailKids.card(from: 'OS3') #=> {id: "96a", name: "Distorted DOT"}
36
+ ```
22
37
 
23
38
  ## Development
24
39
 
@@ -28,7 +43,7 @@ To install this gem onto your local machine, run `bundle exec rake install`. To
28
43
 
29
44
  ## Contributing
30
45
 
31
- Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/faker-gpk.
46
+ Bug reports and pull requests are welcome on GitHub at https://github.com/braindeaf/faker-gpk.
32
47
 
33
48
  ## License
34
49
 
@@ -1,5 +1,5 @@
1
1
  module Faker
2
2
  module GPK
3
- VERSION = "0.1.0"
3
+ VERSION = "0.1.2"
4
4
  end
5
5
  end