jimothy 1.0.001 → 1.0.002

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3449c2e563d203444526d05f5740d8d0b7a484a5eb88dce2362c7275e6bd4ccf
4
- data.tar.gz: 976d694f3854574fba19992a6f90230be1aa0be73d1089b362b1d9b7c29d0993
3
+ metadata.gz: 255502c8c568226ce82080916eae0bdb0fb3073fb7372a5f036a34616608c473
4
+ data.tar.gz: 73529e4e80f39edb1e56ded50686d4e6cd1d73b3f90fafe01aca155b19159f09
5
5
  SHA512:
6
- metadata.gz: 37ae2a52918aaa37e3fcf60887d8c5d4564fc364fadd9737a2c8b126bf3bf4e1abbf164657e73a2774f57ac1cbf560d50818af826cac156c51c8a5813c1ee6b4
7
- data.tar.gz: 870da2ecfb8778c6be4f3b94f6494b4a5568cd8f365c1ae0b3fe532da0ab960309d2eabad44445165d1471930ac86c03d56e355e06b71e8c7e9f631927d93fb2
6
+ metadata.gz: 0ad498d87ab805b1a66398df1390983da77558a0339ea0753ed731601051dfd2c5459f2b3faa095987dca41e509af8b2e17225d7a9140345c5afd2aeb62a66ab
7
+ data.tar.gz: d9c4a066276e6ac01016030e4612645540a3583fe77500c698200e5150dca47d581237ffd7fe102986bc4da42d02583275d5b29332950ac046370a83d2a1d04b
data/README.md CHANGED
@@ -1,27 +1,32 @@
1
1
  # Jimothy
2
- Placeholder user data from The Office
2
+ Placeholder user data from The Office.
3
+ Gem available at https://rubygems.org/gems/jimothy
3
4
 
4
5
  ![The office characters](https://github.com/mark-mcdermott/jimothy/blob/main/lib/jimothy/images/flonkerton.jpg)
5
6
 
6
7
  ## What This Does
7
8
 
8
- Quickly seed placeholder user data for your Rails toy app or prototype app. Generate the names, emails and profile pictures of eighteen characters from The Office.
9
+ Quickly seed placeholder user data for your Rails toy app or prototype app. Generate the names, emails and profile pictures of eighteen characters from The Office.
9
10
 
10
11
  ## Why
11
12
 
12
- This is a (much) less robust version of something like Faker (https://github.com/faker-ruby/faker). But I built it to be more reliable than Faker, with more solid data. Faker is great for what it does, but if you generate users from TV data, sometimes users get weird names like "Skinny Pete", where "Pete" isn't really a last name and it can mess up your data. Yeah it's just placeholder data, but we want it to look right.
13
+ This is a (much) less robust version of something like Faker (https://github.com/faker-ruby/faker). But I built it to be more reliable than Faker, with more solid data. Faker is great for what it does, but if you generate users from TV data for example, sometimes users get weird names like "Skinny Pete", where "Pete" isn't really a last name and it can mess up your data. Yeah it's just placeholder data, but we want it to look right.
13
14
 
14
15
  ## Usage (Quick, Using Custom Generator)
16
+ - (If you don't have an app already) Run `rails new testapp`
15
17
  - Add `gem "jimothy"` to your `Gemfile`
16
18
  - Run `bundle install`
17
19
  - Run `rails g jimothy:install`
18
20
  - This will scaffold user model/views, import images, seed users and add an image tag to the user view's `_user.html.erb` partial.
19
21
  - Run `rails server` and open `http://127.0.0.1:3000/users` - you should see the users from The Office.
20
22
 
23
+ ![Jimothy screenshot](https://github.com/mark-mcdermott/jimothy/blob/main/lib/jimothy/images/screenshot.jpg)
24
+
21
25
  ## Usage (Slow, Doing Everything By Hand)
26
+ - (If you don't have an app already) Run `rails new testapp`
22
27
  - Add `gem "jimothy"` to your `Gemfile`
23
28
  - Run `bundle install`
24
- - You'll need a `User` model with `name`, `email` and `image` fields (all `string`s. Fastest way to do this is:
29
+ - You'll need a `User` model with `name`, `email` and `image` fields (all `string`s). Fastest way to do this is:
25
30
  ```
26
31
  rails generate scaffold User name:string email:string image:string
27
32
  rails db:migrate
Binary file
@@ -1,3 +1,3 @@
1
1
  module Jimothy
2
- VERSION = "1.0.001"
2
+ VERSION = "1.0.002"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jimothy
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.001
4
+ version: 1.0.002
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mark McDermott
@@ -64,6 +64,7 @@ files:
64
64
  - lib/jimothy/images/pam-beesly.png
65
65
  - lib/jimothy/images/phyllis-vance.png
66
66
  - lib/jimothy/images/ryan-howard.png
67
+ - lib/jimothy/images/screenshot.jpg
67
68
  - lib/jimothy/images/stanley-hudson.png
68
69
  - lib/jimothy/images/toby-flenderson.png
69
70
  - lib/jimothy/the-office-characters.json