jimothy 1.0.0 → 1.0.002
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 +4 -4
- data/README.md +9 -4
- data/lib/jimothy/images/screenshot.jpg +0 -0
- data/lib/jimothy/version.rb +1 -1
- metadata +6 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 255502c8c568226ce82080916eae0bdb0fb3073fb7372a5f036a34616608c473
|
|
4
|
+
data.tar.gz: 73529e4e80f39edb1e56ded50686d4e6cd1d73b3f90fafe01aca155b19159f09
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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
|

|
|
5
6
|
|
|
6
7
|
## What This Does
|
|
7
8
|
|
|
8
|
-
Quickly seed
|
|
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
|
|
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
|
+

|
|
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
|
data/lib/jimothy/version.rb
CHANGED
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.
|
|
4
|
+
version: 1.0.002
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Mark McDermott
|
|
@@ -24,7 +24,9 @@ dependencies:
|
|
|
24
24
|
- - ">="
|
|
25
25
|
- !ruby/object:Gem::Version
|
|
26
26
|
version: 7.0.4.2
|
|
27
|
-
description:
|
|
27
|
+
description: Quickly seed placeholder user data for your Rails toy app or prototype
|
|
28
|
+
app. Generate the names, emails and profile pictures of eighteen characters from
|
|
29
|
+
The Office.
|
|
28
30
|
email:
|
|
29
31
|
- mark@markmcdermott.io
|
|
30
32
|
executables: []
|
|
@@ -62,12 +64,13 @@ files:
|
|
|
62
64
|
- lib/jimothy/images/pam-beesly.png
|
|
63
65
|
- lib/jimothy/images/phyllis-vance.png
|
|
64
66
|
- lib/jimothy/images/ryan-howard.png
|
|
67
|
+
- lib/jimothy/images/screenshot.jpg
|
|
65
68
|
- lib/jimothy/images/stanley-hudson.png
|
|
66
69
|
- lib/jimothy/images/toby-flenderson.png
|
|
67
70
|
- lib/jimothy/the-office-characters.json
|
|
68
71
|
- lib/jimothy/version.rb
|
|
69
72
|
- lib/tasks/jimothy_tasks.rake
|
|
70
|
-
homepage: https://
|
|
73
|
+
homepage: https://github.com/mark-mcdermott/jimothy/
|
|
71
74
|
licenses:
|
|
72
75
|
- MIT
|
|
73
76
|
metadata: {}
|