jimothy 0.0.34 → 1.0.001
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +4 -3
- data/lib/jimothy/version.rb +1 -1
- metadata +5 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3449c2e563d203444526d05f5740d8d0b7a484a5eb88dce2362c7275e6bd4ccf
|
4
|
+
data.tar.gz: 976d694f3854574fba19992a6f90230be1aa0be73d1089b362b1d9b7c29d0993
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 37ae2a52918aaa37e3fcf60887d8c5d4564fc364fadd9737a2c8b126bf3bf4e1abbf164657e73a2774f57ac1cbf560d50818af826cac156c51c8a5813c1ee6b4
|
7
|
+
data.tar.gz: 870da2ecfb8778c6be4f3b94f6494b4a5568cd8f365c1ae0b3fe532da0ab960309d2eabad44445165d1471930ac86c03d56e355e06b71e8c7e9f631927d93fb2
|
data/README.md
CHANGED
@@ -5,17 +5,18 @@ Placeholder user data from The Office
|
|
5
5
|
|
6
6
|
## What This Does
|
7
7
|
|
8
|
-
Quickly seed
|
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
9
|
|
10
10
|
## Why
|
11
11
|
|
12
|
-
This is
|
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
13
|
|
14
14
|
## Usage (Quick, Using Custom Generator)
|
15
15
|
- Add `gem "jimothy"` to your `Gemfile`
|
16
16
|
- Run `bundle install`
|
17
17
|
- Run `rails g jimothy:install`
|
18
18
|
- 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
|
+
- Run `rails server` and open `http://127.0.0.1:3000/users` - you should see the users from The Office.
|
19
20
|
|
20
21
|
## Usage (Slow, Doing Everything By Hand)
|
21
22
|
- Add `gem "jimothy"` to your `Gemfile`
|
@@ -32,7 +33,7 @@ Jimothy::seed_users
|
|
32
33
|
```
|
33
34
|
- Run `rails db:seed`
|
34
35
|
- In `app/views/users/_user.html.erb`, change `<%= user.image %>` to `<%= image_tag user.image %>`
|
35
|
-
- Run `rails server` and go to `http://127.0.0.1:3000/users`
|
36
|
+
- Run `rails server` and go to `http://127.0.0.1:3000/users` - you should see the users from The Office.
|
36
37
|
|
37
38
|
## Details
|
38
39
|
- Main methods (`seed_users`, etc) are in `lib/jimothy.rb`
|
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:
|
4
|
+
version: 1.0.001
|
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: []
|
@@ -67,7 +69,7 @@ files:
|
|
67
69
|
- lib/jimothy/the-office-characters.json
|
68
70
|
- lib/jimothy/version.rb
|
69
71
|
- lib/tasks/jimothy_tasks.rake
|
70
|
-
homepage: https://
|
72
|
+
homepage: https://github.com/mark-mcdermott/jimothy/
|
71
73
|
licenses:
|
72
74
|
- MIT
|
73
75
|
metadata: {}
|