jimothy 0.0.20 → 0.0.22
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/MIT-LICENSE +20 -0
- data/README.md +28 -0
- data/Rakefile +8 -0
- data/app/assets/config/jimothy_manifest.js +1 -0
- data/app/assets/stylesheets/jimothy/application.css +15 -0
- data/app/controllers/jimothy/application_controller.rb +4 -0
- data/app/helpers/jimothy/application_helper.rb +4 -0
- data/app/jobs/jimothy/application_job.rb +4 -0
- data/app/mailers/jimothy/application_mailer.rb +6 -0
- data/app/models/jimothy/application_record.rb +5 -0
- data/app/views/layouts/jimothy/application.html.erb +15 -0
- data/config/routes.rb +2 -0
- data/lib/jimothy/engine.rb +5 -0
- data/lib/jimothy/images/andy-bernard.png +0 -0
- data/lib/jimothy/images/angela-martin.png +0 -0
- data/lib/jimothy/images/creed-bratton.png +0 -0
- data/lib/jimothy/images/darryl-philbin.png +0 -0
- data/lib/jimothy/images/dwight-schrute.png +0 -0
- data/lib/jimothy/images/erin-hannon.png +0 -0
- data/lib/jimothy/images/flonkerton.jpg +0 -0
- data/lib/jimothy/images/jim-halpert.png +0 -0
- data/lib/jimothy/images/kelly-kapoor.png +0 -0
- data/lib/jimothy/images/kevin-malone.png +0 -0
- data/lib/jimothy/images/meredith-palmer.png +0 -0
- data/lib/jimothy/images/michael-scott.png +0 -0
- data/lib/jimothy/images/oscar-martinez.png +0 -0
- data/lib/jimothy/images/pam-beesly.png +0 -0
- data/lib/jimothy/images/phyllis-vance.png +0 -0
- data/lib/jimothy/images/ryan-howard.png +0 -0
- data/lib/jimothy/images/stanley-hudson.png +0 -0
- data/lib/jimothy/images/toby-flenderson.png +0 -0
- data/lib/jimothy/the-office-characters.json +112 -0
- data/lib/jimothy/version.rb +3 -0
- data/lib/jimothy.rb +35 -0
- data/lib/tasks/jimothy_tasks.rake +4 -0
- metadata +41 -35
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 72719933f1723c69f04cc39c6ed0b5593c5ad8581a089ed64402fec90b6e0a20
|
4
|
+
data.tar.gz: 0401a2f58aafbd2ecd557242511180fb6d140c94632f7230ebdb53aa3ae5a7d4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 306cc03ab4d64a54018c8d92e1fcfc51a924824c71bd998500d585d8b9a2451e06432a1cd2827bbf0fbb0f86b3e2142e2cb0d17cfbe46e7c7cb4d7ecaae8afa3
|
7
|
+
data.tar.gz: c0242c630f996ef7a80e924efd43cf218143cd78d47cf188f5454dedcf97cf652c7219924ce87b486e93e47ce28408a8d0e9c8d98af96d6f96d62bd23728565b
|
data/MIT-LICENSE
ADDED
@@ -0,0 +1,20 @@
|
|
1
|
+
Copyright 2023 Mark McDermott
|
2
|
+
|
3
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
4
|
+
a copy of this software and associated documentation files (the
|
5
|
+
"Software"), to deal in the Software without restriction, including
|
6
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
7
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
8
|
+
permit persons to whom the Software is furnished to do so, subject to
|
9
|
+
the following conditions:
|
10
|
+
|
11
|
+
The above copyright notice and this permission notice shall be
|
12
|
+
included in all copies or substantial portions of the Software.
|
13
|
+
|
14
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
15
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
16
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
17
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
18
|
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
19
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
20
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,28 @@
|
|
1
|
+
# Jimothy
|
2
|
+
Short description and motivation.
|
3
|
+
|
4
|
+
## Usage
|
5
|
+
How to use my plugin.
|
6
|
+
|
7
|
+
## Installation
|
8
|
+
Add this line to your application's Gemfile:
|
9
|
+
|
10
|
+
```ruby
|
11
|
+
gem "jimothy"
|
12
|
+
```
|
13
|
+
|
14
|
+
And then execute:
|
15
|
+
```bash
|
16
|
+
$ bundle
|
17
|
+
```
|
18
|
+
|
19
|
+
Or install it yourself as:
|
20
|
+
```bash
|
21
|
+
$ gem install jimothy
|
22
|
+
```
|
23
|
+
|
24
|
+
## Contributing
|
25
|
+
Contribution directions go here.
|
26
|
+
|
27
|
+
## License
|
28
|
+
The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
|
data/Rakefile
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
//= link_directory ../stylesheets/jimothy .css
|
@@ -0,0 +1,15 @@
|
|
1
|
+
/*
|
2
|
+
* This is a manifest file that'll be compiled into application.css, which will include all the files
|
3
|
+
* listed below.
|
4
|
+
*
|
5
|
+
* Any CSS and SCSS file within this directory, lib/assets/stylesheets, vendor/assets/stylesheets,
|
6
|
+
* or any plugin's vendor/assets/stylesheets directory can be referenced here using a relative path.
|
7
|
+
*
|
8
|
+
* You're free to add application-wide styles to this file and they'll appear at the bottom of the
|
9
|
+
* compiled file so the styles you add here take precedence over styles defined in any other CSS/SCSS
|
10
|
+
* files in this directory. Styles in this file should be added after the last require_* statement.
|
11
|
+
* It is generally better to create a new file per style scope.
|
12
|
+
*
|
13
|
+
*= require_tree .
|
14
|
+
*= require_self
|
15
|
+
*/
|
data/config/routes.rb
ADDED
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
@@ -0,0 +1,112 @@
|
|
1
|
+
{
|
2
|
+
"users": [
|
3
|
+
{
|
4
|
+
"firstname": "Michael",
|
5
|
+
"lastname": "Scott",
|
6
|
+
"email": "michaelscott@dundermifflin.com",
|
7
|
+
"image": "michael-scott.png"
|
8
|
+
},
|
9
|
+
{
|
10
|
+
"firstname": "Jim",
|
11
|
+
"lastname": "Halpert",
|
12
|
+
"email": "jimhalpert@dundermifflin.com",
|
13
|
+
"image": "jim-halpert.png"
|
14
|
+
},
|
15
|
+
{
|
16
|
+
"firstname": "Dwight",
|
17
|
+
"lastname": "Schrute",
|
18
|
+
"email": "dwightschrute@dundermifflin.com",
|
19
|
+
"image": "dwight-schrute.png"
|
20
|
+
},
|
21
|
+
{
|
22
|
+
"firstname": "Pam",
|
23
|
+
"lastname": "Beesly",
|
24
|
+
"email": "pambeesly@dundermifflin.com",
|
25
|
+
"image": "pam-beesly.png"
|
26
|
+
},
|
27
|
+
{
|
28
|
+
"firstname": "Ryan",
|
29
|
+
"lastname": "Howard",
|
30
|
+
"email": "ryanhoward@dundermifflin.com",
|
31
|
+
"image": "ryan-howard.png"
|
32
|
+
},
|
33
|
+
{
|
34
|
+
"firstname": "Andy",
|
35
|
+
"lastname": "Bernard",
|
36
|
+
"email": "andybernard@dundermifflin.com",
|
37
|
+
"image": "andy-bernard.png"
|
38
|
+
},
|
39
|
+
{
|
40
|
+
"firstname": "Kevin",
|
41
|
+
"lastname": "Malone",
|
42
|
+
"email": "kevinmalone@dundermifflin.com",
|
43
|
+
"image": "kevin-malone.png"
|
44
|
+
},
|
45
|
+
{
|
46
|
+
"firstname": "Erin",
|
47
|
+
"lastname": "Hannon",
|
48
|
+
"email": "erinhannon@dundermifflin.com",
|
49
|
+
"image": "erin-hannon.png"
|
50
|
+
},
|
51
|
+
{
|
52
|
+
"firstname": "Angela",
|
53
|
+
"lastname": "Martin",
|
54
|
+
"email": "angelamartin@dundermifflin.com",
|
55
|
+
"image": "angela-martin.png"
|
56
|
+
},
|
57
|
+
{
|
58
|
+
"firstname": "Toby",
|
59
|
+
"lastname": "Flenderson",
|
60
|
+
"email": "tobyflenderson@dundermifflin.com",
|
61
|
+
"image": "toby-flenderson.png"
|
62
|
+
},
|
63
|
+
{
|
64
|
+
"firstname": "Kelly",
|
65
|
+
"lastname": "Kapoor",
|
66
|
+
"email": "kellykapoor@dundermifflin.com",
|
67
|
+
"image": "kelly-kapoor.png"
|
68
|
+
},
|
69
|
+
{
|
70
|
+
"firstname": "Phyllis",
|
71
|
+
"lastname": "Vance",
|
72
|
+
"email": "phyllisvance@dundermifflin.com",
|
73
|
+
"image": "phyllis-vance.png"
|
74
|
+
},
|
75
|
+
{
|
76
|
+
"firstname": "Darryl",
|
77
|
+
"lastname": "Philbin",
|
78
|
+
"email": "darrylphilbin@dundermifflin.com",
|
79
|
+
"image": "darryl-philbin.png"
|
80
|
+
},
|
81
|
+
{
|
82
|
+
"firstname": "Oscar",
|
83
|
+
"lastname": "Martinez",
|
84
|
+
"email": "oscarmartinez@dundermifflin.com",
|
85
|
+
"image": "oscar-martinez.png"
|
86
|
+
},
|
87
|
+
{
|
88
|
+
"firstname": "Ryan",
|
89
|
+
"lastname": "Howard",
|
90
|
+
"email": "ryanhoward@dundermifflin.com",
|
91
|
+
"image": "ryan-howard.png"
|
92
|
+
},
|
93
|
+
{
|
94
|
+
"firstname": "Stanley",
|
95
|
+
"lastname": "Hudson",
|
96
|
+
"email": "stanleyhudson@dundermifflin.com",
|
97
|
+
"image": "stanley-hudson.png"
|
98
|
+
},
|
99
|
+
{
|
100
|
+
"firstname": "Meredith",
|
101
|
+
"lastname": "Palmer",
|
102
|
+
"email": "meredithpalmer@dundermifflin.com",
|
103
|
+
"image": "meredith-palmer.png"
|
104
|
+
},
|
105
|
+
{
|
106
|
+
"firstname": "Creed",
|
107
|
+
"lastname": "Bratton",
|
108
|
+
"email": "creedbratton@dundermifflin.com",
|
109
|
+
"image": "creed-bratton.png"
|
110
|
+
}
|
111
|
+
]
|
112
|
+
}
|
data/lib/jimothy.rb
ADDED
@@ -0,0 +1,35 @@
|
|
1
|
+
require "jimothy/version"
|
2
|
+
require "jimothy/engine"
|
3
|
+
require "json"
|
4
|
+
|
5
|
+
GEM_ROOT = File.expand_path("../..", __FILE__)
|
6
|
+
JSON_PATH = "#{GEM_ROOT}/lib/jimothy/the-office-characters.json"
|
7
|
+
GEM_IMAGE_PATH = "#{GEM_ROOT}/lib/jimothy/images/"
|
8
|
+
RAILS_IMAGE_PATH = "/app/assets/images/"
|
9
|
+
|
10
|
+
module Jimothy
|
11
|
+
def self.get_users
|
12
|
+
users = JSON.parse(IO.read("#{JSON_PATH}"))['users']
|
13
|
+
end
|
14
|
+
|
15
|
+
def self.seed_users
|
16
|
+
create_users
|
17
|
+
import_images
|
18
|
+
end
|
19
|
+
|
20
|
+
def self.create_users
|
21
|
+
get_users.each do |user|
|
22
|
+
User.create(name: user['firstname'] + " " + user['lastname'], email: user['email'], image: user['image'])
|
23
|
+
end
|
24
|
+
end
|
25
|
+
|
26
|
+
def self.import_images
|
27
|
+
images = Dir["#{GEM_IMAGE_PATH}" + "*.png"]
|
28
|
+
images.each do |path|
|
29
|
+
image = path.split('/')[-1]
|
30
|
+
source = "#{GEM_IMAGE_PATH}" + image
|
31
|
+
target = "#{Rails.root}#{RAILS_IMAGE_PATH}" + image
|
32
|
+
FileUtils.cp(source, target)
|
33
|
+
end
|
34
|
+
end
|
35
|
+
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: 0.0.
|
4
|
+
version: 0.0.22
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Mark McDermott
|
@@ -10,55 +10,62 @@ bindir: bin
|
|
10
10
|
cert_chain: []
|
11
11
|
date: 2023-02-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
|
-
- !ruby/object:Gem::Dependency
|
14
|
-
name: bundler
|
15
|
-
requirement: !ruby/object:Gem::Requirement
|
16
|
-
requirements:
|
17
|
-
- - "~>"
|
18
|
-
- !ruby/object:Gem::Version
|
19
|
-
version: '1.5'
|
20
|
-
type: :development
|
21
|
-
prerelease: false
|
22
|
-
version_requirements: !ruby/object:Gem::Requirement
|
23
|
-
requirements:
|
24
|
-
- - "~>"
|
25
|
-
- !ruby/object:Gem::Version
|
26
|
-
version: '1.5'
|
27
|
-
- !ruby/object:Gem::Dependency
|
28
|
-
name: rake
|
29
|
-
requirement: !ruby/object:Gem::Requirement
|
30
|
-
requirements:
|
31
|
-
- - ">="
|
32
|
-
- !ruby/object:Gem::Version
|
33
|
-
version: '0'
|
34
|
-
type: :development
|
35
|
-
prerelease: false
|
36
|
-
version_requirements: !ruby/object:Gem::Requirement
|
37
|
-
requirements:
|
38
|
-
- - ">="
|
39
|
-
- !ruby/object:Gem::Version
|
40
|
-
version: '0'
|
41
13
|
- !ruby/object:Gem::Dependency
|
42
14
|
name: rails
|
43
15
|
requirement: !ruby/object:Gem::Requirement
|
44
16
|
requirements:
|
45
17
|
- - ">="
|
46
18
|
- !ruby/object:Gem::Version
|
47
|
-
version:
|
19
|
+
version: 7.0.4.2
|
48
20
|
type: :runtime
|
49
21
|
prerelease: false
|
50
22
|
version_requirements: !ruby/object:Gem::Requirement
|
51
23
|
requirements:
|
52
24
|
- - ">="
|
53
25
|
- !ruby/object:Gem::Version
|
54
|
-
version:
|
55
|
-
description:
|
26
|
+
version: 7.0.4.2
|
27
|
+
description: Placeholder Rails users from The Office
|
56
28
|
email:
|
57
29
|
- mark@markmcdermott.io
|
58
30
|
executables: []
|
59
31
|
extensions: []
|
60
32
|
extra_rdoc_files: []
|
61
|
-
files:
|
33
|
+
files:
|
34
|
+
- MIT-LICENSE
|
35
|
+
- README.md
|
36
|
+
- Rakefile
|
37
|
+
- app/assets/config/jimothy_manifest.js
|
38
|
+
- app/assets/stylesheets/jimothy/application.css
|
39
|
+
- app/controllers/jimothy/application_controller.rb
|
40
|
+
- app/helpers/jimothy/application_helper.rb
|
41
|
+
- app/jobs/jimothy/application_job.rb
|
42
|
+
- app/mailers/jimothy/application_mailer.rb
|
43
|
+
- app/models/jimothy/application_record.rb
|
44
|
+
- app/views/layouts/jimothy/application.html.erb
|
45
|
+
- config/routes.rb
|
46
|
+
- lib/jimothy.rb
|
47
|
+
- lib/jimothy/engine.rb
|
48
|
+
- lib/jimothy/images/andy-bernard.png
|
49
|
+
- lib/jimothy/images/angela-martin.png
|
50
|
+
- lib/jimothy/images/creed-bratton.png
|
51
|
+
- lib/jimothy/images/darryl-philbin.png
|
52
|
+
- lib/jimothy/images/dwight-schrute.png
|
53
|
+
- lib/jimothy/images/erin-hannon.png
|
54
|
+
- lib/jimothy/images/flonkerton.jpg
|
55
|
+
- lib/jimothy/images/jim-halpert.png
|
56
|
+
- lib/jimothy/images/kelly-kapoor.png
|
57
|
+
- lib/jimothy/images/kevin-malone.png
|
58
|
+
- lib/jimothy/images/meredith-palmer.png
|
59
|
+
- lib/jimothy/images/michael-scott.png
|
60
|
+
- lib/jimothy/images/oscar-martinez.png
|
61
|
+
- lib/jimothy/images/pam-beesly.png
|
62
|
+
- lib/jimothy/images/phyllis-vance.png
|
63
|
+
- lib/jimothy/images/ryan-howard.png
|
64
|
+
- lib/jimothy/images/stanley-hudson.png
|
65
|
+
- lib/jimothy/images/toby-flenderson.png
|
66
|
+
- lib/jimothy/the-office-characters.json
|
67
|
+
- lib/jimothy/version.rb
|
68
|
+
- lib/tasks/jimothy_tasks.rake
|
62
69
|
homepage: https://rubygems.org/gems/jimothy
|
63
70
|
licenses:
|
64
71
|
- MIT
|
@@ -67,7 +74,6 @@ post_install_message:
|
|
67
74
|
rdoc_options: []
|
68
75
|
require_paths:
|
69
76
|
- lib
|
70
|
-
- app
|
71
77
|
required_ruby_version: !ruby/object:Gem::Requirement
|
72
78
|
requirements:
|
73
79
|
- - ">="
|
@@ -82,5 +88,5 @@ requirements: []
|
|
82
88
|
rubygems_version: 3.3.7
|
83
89
|
signing_key:
|
84
90
|
specification_version: 4
|
85
|
-
summary: Placeholder Rails users from The Office
|
91
|
+
summary: Placeholder Rails users from The Office
|
86
92
|
test_files: []
|