jimothy 0.0.20 → 0.0.21

Sign up to get free protection for your applications and to get access to all the features.
Files changed (37) hide show
  1. checksums.yaml +4 -4
  2. data/MIT-LICENSE +20 -0
  3. data/README.md +28 -0
  4. data/Rakefile +8 -0
  5. data/app/assets/config/jimothy_manifest.js +1 -0
  6. data/app/assets/images/jimothy/andy-bernard.png +0 -0
  7. data/app/assets/images/jimothy/angela-martin.png +0 -0
  8. data/app/assets/images/jimothy/creed-bratton.png +0 -0
  9. data/app/assets/images/jimothy/darryl-philbin.png +0 -0
  10. data/app/assets/images/jimothy/dwight-schrute.png +0 -0
  11. data/app/assets/images/jimothy/erin-hannon.png +0 -0
  12. data/app/assets/images/jimothy/flonkerton.jpg +0 -0
  13. data/app/assets/images/jimothy/jim-halpert.png +0 -0
  14. data/app/assets/images/jimothy/kelly-kapoor.png +0 -0
  15. data/app/assets/images/jimothy/kevin-malone.png +0 -0
  16. data/app/assets/images/jimothy/meredith-palmer.png +0 -0
  17. data/app/assets/images/jimothy/michael-scott.png +0 -0
  18. data/app/assets/images/jimothy/oscar-martinez.png +0 -0
  19. data/app/assets/images/jimothy/pam-beesly.png +0 -0
  20. data/app/assets/images/jimothy/phyllis-vance.png +0 -0
  21. data/app/assets/images/jimothy/ryan-howard.png +0 -0
  22. data/app/assets/images/jimothy/stanley-hudson.png +0 -0
  23. data/app/assets/images/jimothy/toby-flenderson.png +0 -0
  24. data/app/assets/stylesheets/jimothy/application.css +15 -0
  25. data/app/controllers/jimothy/application_controller.rb +4 -0
  26. data/app/helpers/jimothy/application_helper.rb +4 -0
  27. data/app/jobs/jimothy/application_job.rb +4 -0
  28. data/app/mailers/jimothy/application_mailer.rb +6 -0
  29. data/app/models/jimothy/application_record.rb +5 -0
  30. data/app/views/layouts/jimothy/application.html.erb +15 -0
  31. data/config/routes.rb +2 -0
  32. data/lib/jimothy/engine.rb +5 -0
  33. data/lib/jimothy/the-office-characters.json +112 -0
  34. data/lib/jimothy/version.rb +3 -0
  35. data/lib/jimothy.rb +20 -0
  36. data/lib/tasks/jimothy_tasks.rake +4 -0
  37. metadata +41 -35
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a6688f7f6fab37948882ff0cfded7d852aad3afe55accca03cc058634407f006
4
- data.tar.gz: 444dd72e3d39502a0eb1a96cdbf6a10248c6fbe424591ec704ee47263a7b86de
3
+ metadata.gz: 250781dcd85311922e16ecc05c6b52f7203164518cabb9b4777214592df06dce
4
+ data.tar.gz: c33365192289c9b6354314129db804b743916bd293d0e9beb8f009368302b561
5
5
  SHA512:
6
- metadata.gz: 9af755684f5fb2abcf0833dc2a0990cea424101c23159b19f4f77bd4e9301ee8374ed9ede8713a8bf306efa397fee8fb9a232c5502e9ddc249369e15f8df938b
7
- data.tar.gz: 7bc9f7add052270324efb6e5a91d298bf4f40a72f1623dc8fa0ecaaed547eb58071c4ac96ed5a08216900e8f885ab5a4f4e399033f3fa223e9f772557b36b4ea
6
+ metadata.gz: b24ef3f29269cdce06387f9e3c2515d8c581d891323034b4fd9ede6757bbeaf4acb0f702fc5b4cc089bbab7e867f0e61700458f708af8419dbc376e0188f28d0
7
+ data.tar.gz: 8c13f04464ba632d7896c25a0c552a6b4f3079f7160de28217ac29c9a420f86685688c8481db8151da93a5e57f048ea91160af384f842ebeaa4acc4be0267f82
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,8 @@
1
+ require "bundler/setup"
2
+
3
+ APP_RAKEFILE = File.expand_path("test/dummy/Rakefile", __dir__)
4
+ load "rails/tasks/engine.rake"
5
+
6
+ load "rails/tasks/statistics.rake"
7
+
8
+ require "bundler/gem_tasks"
@@ -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
+ */
@@ -0,0 +1,4 @@
1
+ module Jimothy
2
+ class ApplicationController < ActionController::Base
3
+ end
4
+ end
@@ -0,0 +1,4 @@
1
+ module Jimothy
2
+ module ApplicationHelper
3
+ end
4
+ end
@@ -0,0 +1,4 @@
1
+ module Jimothy
2
+ class ApplicationJob < ActiveJob::Base
3
+ end
4
+ end
@@ -0,0 +1,6 @@
1
+ module Jimothy
2
+ class ApplicationMailer < ActionMailer::Base
3
+ default from: "from@example.com"
4
+ layout "mailer"
5
+ end
6
+ end
@@ -0,0 +1,5 @@
1
+ module Jimothy
2
+ class ApplicationRecord < ActiveRecord::Base
3
+ self.abstract_class = true
4
+ end
5
+ end
@@ -0,0 +1,15 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <title>Jimothy</title>
5
+ <%= csrf_meta_tags %>
6
+ <%= csp_meta_tag %>
7
+
8
+ <%= stylesheet_link_tag "jimothy/application", media: "all" %>
9
+ </head>
10
+ <body>
11
+
12
+ <%= yield %>
13
+
14
+ </body>
15
+ </html>
data/config/routes.rb ADDED
@@ -0,0 +1,2 @@
1
+ Jimothy::Engine.routes.draw do
2
+ end
@@ -0,0 +1,5 @@
1
+ module Jimothy
2
+ class Engine < ::Rails::Engine
3
+ isolate_namespace Jimothy
4
+ end
5
+ end
@@ -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
+ }
@@ -0,0 +1,3 @@
1
+ module Jimothy
2
+ VERSION = "0.0.21"
3
+ end
data/lib/jimothy.rb ADDED
@@ -0,0 +1,20 @@
1
+ require "jimothy/version"
2
+ require "jimothy/engine"
3
+ require "json"
4
+
5
+ GEM_ROOT = File.expand_path("../..", __FILE__)
6
+
7
+ module Jimothy
8
+
9
+ def self.get_users
10
+ users = JSON.parse(IO.read("#{GEM_ROOT}/lib/jimothy/the-office-characters.json"))['users']
11
+ end
12
+
13
+ def self.seed_users
14
+ users = get_users
15
+ users.each do |user|
16
+ User.create(name: user['firstname'] + " " + user['lastname'], email: user['email'], image: user['image'])
17
+ end
18
+ end
19
+
20
+ end
@@ -0,0 +1,4 @@
1
+ # desc "Explaining what the task does"
2
+ # task :jimothy do
3
+ # # Task goes here
4
+ # 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.20
4
+ version: 0.0.21
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: '3.1'
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: '3.1'
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/images/jimothy/andy-bernard.png
39
+ - app/assets/images/jimothy/angela-martin.png
40
+ - app/assets/images/jimothy/creed-bratton.png
41
+ - app/assets/images/jimothy/darryl-philbin.png
42
+ - app/assets/images/jimothy/dwight-schrute.png
43
+ - app/assets/images/jimothy/erin-hannon.png
44
+ - app/assets/images/jimothy/flonkerton.jpg
45
+ - app/assets/images/jimothy/jim-halpert.png
46
+ - app/assets/images/jimothy/kelly-kapoor.png
47
+ - app/assets/images/jimothy/kevin-malone.png
48
+ - app/assets/images/jimothy/meredith-palmer.png
49
+ - app/assets/images/jimothy/michael-scott.png
50
+ - app/assets/images/jimothy/oscar-martinez.png
51
+ - app/assets/images/jimothy/pam-beesly.png
52
+ - app/assets/images/jimothy/phyllis-vance.png
53
+ - app/assets/images/jimothy/ryan-howard.png
54
+ - app/assets/images/jimothy/stanley-hudson.png
55
+ - app/assets/images/jimothy/toby-flenderson.png
56
+ - app/assets/stylesheets/jimothy/application.css
57
+ - app/controllers/jimothy/application_controller.rb
58
+ - app/helpers/jimothy/application_helper.rb
59
+ - app/jobs/jimothy/application_job.rb
60
+ - app/mailers/jimothy/application_mailer.rb
61
+ - app/models/jimothy/application_record.rb
62
+ - app/views/layouts/jimothy/application.html.erb
63
+ - config/routes.rb
64
+ - lib/jimothy.rb
65
+ - lib/jimothy/engine.rb
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: []