staff_bar 0.1.0 → 0.1.1

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.
Files changed (70) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +11 -0
  3. data/README.md +2 -2
  4. data/app/views/staff_bar/_staff_bar.html.erb +1 -1
  5. data/lib/staff_bar/version.rb +1 -1
  6. metadata +3 -66
  7. data/.gitignore +0 -8
  8. data/Gemfile +0 -15
  9. data/Gemfile.lock +0 -149
  10. data/Rakefile +0 -27
  11. data/bin/test +0 -5
  12. data/preview-sm.png +0 -0
  13. data/preview.png +0 -0
  14. data/staff_bar.gemspec +0 -24
  15. data/test/dummy/.ruby-version +0 -1
  16. data/test/dummy/BRANCH +0 -1
  17. data/test/dummy/REVISION +0 -1
  18. data/test/dummy/Rakefile +0 -6
  19. data/test/dummy/app/assets/config/manifest.js +0 -2
  20. data/test/dummy/app/assets/images/.keep +0 -0
  21. data/test/dummy/app/assets/stylesheets/application.css +0 -15
  22. data/test/dummy/app/channels/application_cable/channel.rb +0 -4
  23. data/test/dummy/app/channels/application_cable/connection.rb +0 -4
  24. data/test/dummy/app/controllers/application_controller.rb +0 -2
  25. data/test/dummy/app/controllers/concerns/.keep +0 -0
  26. data/test/dummy/app/helpers/application_helper.rb +0 -2
  27. data/test/dummy/app/javascript/packs/application.js +0 -15
  28. data/test/dummy/app/jobs/application_job.rb +0 -7
  29. data/test/dummy/app/mailers/application_mailer.rb +0 -4
  30. data/test/dummy/app/models/application_record.rb +0 -3
  31. data/test/dummy/app/models/concerns/.keep +0 -0
  32. data/test/dummy/app/views/layouts/application.html.erb +0 -14
  33. data/test/dummy/app/views/layouts/mailer.html.erb +0 -13
  34. data/test/dummy/app/views/layouts/mailer.text.erb +0 -1
  35. data/test/dummy/bin/rails +0 -4
  36. data/test/dummy/bin/rake +0 -4
  37. data/test/dummy/bin/setup +0 -33
  38. data/test/dummy/config/application.rb +0 -19
  39. data/test/dummy/config/boot.rb +0 -5
  40. data/test/dummy/config/cable.yml +0 -10
  41. data/test/dummy/config/database.yml +0 -25
  42. data/test/dummy/config/environment.rb +0 -5
  43. data/test/dummy/config/environments/development.rb +0 -62
  44. data/test/dummy/config/environments/production.rb +0 -112
  45. data/test/dummy/config/environments/test.rb +0 -48
  46. data/test/dummy/config/initializers/application_controller_renderer.rb +0 -8
  47. data/test/dummy/config/initializers/assets.rb +0 -12
  48. data/test/dummy/config/initializers/backtrace_silencers.rb +0 -7
  49. data/test/dummy/config/initializers/content_security_policy.rb +0 -28
  50. data/test/dummy/config/initializers/cookies_serializer.rb +0 -5
  51. data/test/dummy/config/initializers/filter_parameter_logging.rb +0 -4
  52. data/test/dummy/config/initializers/inflections.rb +0 -16
  53. data/test/dummy/config/initializers/mime_types.rb +0 -4
  54. data/test/dummy/config/initializers/wrap_parameters.rb +0 -14
  55. data/test/dummy/config/locales/en.yml +0 -33
  56. data/test/dummy/config/puma.rb +0 -38
  57. data/test/dummy/config/routes.rb +0 -3
  58. data/test/dummy/config/spring.rb +0 -6
  59. data/test/dummy/config/storage.yml +0 -34
  60. data/test/dummy/config.ru +0 -5
  61. data/test/dummy/lib/assets/.keep +0 -0
  62. data/test/dummy/log/.keep +0 -0
  63. data/test/dummy/public/404.html +0 -67
  64. data/test/dummy/public/422.html +0 -67
  65. data/test/dummy/public/500.html +0 -66
  66. data/test/dummy/public/apple-touch-icon-precomposed.png +0 -0
  67. data/test/dummy/public/apple-touch-icon.png +0 -0
  68. data/test/dummy/public/favicon.ico +0 -0
  69. data/test/staff_bar_test.rb +0 -67
  70. data/test/test_helper.rb +0 -20
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4db3ef168d66ec2267f51e512ac985f2648ef78f0e738f0089aa7641391bff93
4
- data.tar.gz: 694ff72e8cada965044590c90fe071bf28d4bcfbe53bb25bbacb932b6a409607
3
+ metadata.gz: 286aeb0e88f9eac3dbcead561597359091f54b2dd0de2da45cf2a17a81563181
4
+ data.tar.gz: d2c2e7322e189f399acabf10690fc510723655d2a58f71cb625a2556f4283744
5
5
  SHA512:
6
- metadata.gz: 8eb796c4d0c8b16f35169525ef4773607385d6c28327d3dc56cdbe2d85b600badc776663f42ee5b7817baf0b04c09372cdfe59a96a7cce71ba2e07aed0d3ca6a
7
- data.tar.gz: 45ef7137eab96f78a1dd2c6b87ea3f8b941d7f17d8025fd9397662751708852851807455ddba216a0bfc40d0c48a589fd4f649da42457390e91a2c9be6c2c39d
6
+ metadata.gz: b7bf5a4e78922598973be90066532c7e2ba8ef89ee16ce538f47a17f0d83ebb6b1a11fc7ada6b5891db1ffabc7b51d9ee392bd352260bacaf8f2ac3b79c81df9
7
+ data.tar.gz: a29082f9d6d80e3256be1c8fd3d77c2b07d8ac9bdb468b6936a1588d1f44312435fda00136ec5bcba85081ccbd8497c018403f5618413008e8a9015e1ad9e53f
data/CHANGELOG.md ADDED
@@ -0,0 +1,11 @@
1
+ ### unreleased
2
+
3
+ ### 0.1.1 / October 31, 2019
4
+
5
+ * Ignore links when using sequential keyboard navigation [Rolandas Barysas]
6
+
7
+ * Ignore some files in gemspec to reduce file size [Rolandas Barysas]
8
+
9
+ ### 0.1.0 / October 29, 2019
10
+
11
+ * Initial release [Rolandas Barysas]
data/README.md CHANGED
@@ -33,12 +33,12 @@ Add this to your `application.css` to use default styles:
33
33
  *= require staff_bar
34
34
  ```
35
35
 
36
- To show current branch, add staff_bar capistrano tasks in `Capfile`
36
+ To show current branch, add staff_bar capistrano tasks in `Capfile`:
37
37
  ```ruby
38
38
  require "staff_bar/capistrano"
39
39
  ```
40
40
 
41
- This will create `BRANCH` file when depoying, which will staff bar use to show the branch.
41
+ This will create `BRANCH` file when deploying, which will staff bar use to show the branch.
42
42
 
43
43
  ## Configuration
44
44
 
@@ -15,7 +15,7 @@
15
15
  <div class="staff-bar-list">
16
16
  <% StaffBar.config.links.each do |link| %>
17
17
  <div class="staff-bar-list-item">
18
- <a href="<%= link[:url] %>" target="_blank" rel="noopener"><%= link[:title] %></a>
18
+ <a href="<%= link[:url] %>" target="_blank" rel="noopener" tabindex="-1"><%= link[:title] %></a>
19
19
  </div>
20
20
  <% end %>
21
21
  </div>
@@ -1,3 +1,3 @@
1
1
  module StaffBar
2
- VERSION = '0.1.0'
2
+ VERSION = '0.1.1'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: staff_bar
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rolandas Barysas
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-10-29 00:00:00.000000000 Z
11
+ date: 2019-10-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -59,16 +59,12 @@ executables: []
59
59
  extensions: []
60
60
  extra_rdoc_files: []
61
61
  files:
62
- - ".gitignore"
63
- - Gemfile
64
- - Gemfile.lock
62
+ - CHANGELOG.md
65
63
  - LICENSE
66
64
  - README.md
67
- - Rakefile
68
65
  - app/assets/stylesheets/staff_bar.scss
69
66
  - app/helpers/staff_bar_helper.rb
70
67
  - app/views/staff_bar/_staff_bar.html.erb
71
- - bin/test
72
68
  - lib/staff_bar.rb
73
69
  - lib/staff_bar/capistrano.rb
74
70
  - lib/staff_bar/capistrano/tasks/staff_bar.rake
@@ -76,65 +72,6 @@ files:
76
72
  - lib/staff_bar/core.rb
77
73
  - lib/staff_bar/engine.rb
78
74
  - lib/staff_bar/version.rb
79
- - preview-sm.png
80
- - preview.png
81
- - staff_bar.gemspec
82
- - test/dummy/.ruby-version
83
- - test/dummy/BRANCH
84
- - test/dummy/REVISION
85
- - test/dummy/Rakefile
86
- - test/dummy/app/assets/config/manifest.js
87
- - test/dummy/app/assets/images/.keep
88
- - test/dummy/app/assets/stylesheets/application.css
89
- - test/dummy/app/channels/application_cable/channel.rb
90
- - test/dummy/app/channels/application_cable/connection.rb
91
- - test/dummy/app/controllers/application_controller.rb
92
- - test/dummy/app/controllers/concerns/.keep
93
- - test/dummy/app/helpers/application_helper.rb
94
- - test/dummy/app/javascript/packs/application.js
95
- - test/dummy/app/jobs/application_job.rb
96
- - test/dummy/app/mailers/application_mailer.rb
97
- - test/dummy/app/models/application_record.rb
98
- - test/dummy/app/models/concerns/.keep
99
- - test/dummy/app/views/layouts/application.html.erb
100
- - test/dummy/app/views/layouts/mailer.html.erb
101
- - test/dummy/app/views/layouts/mailer.text.erb
102
- - test/dummy/bin/rails
103
- - test/dummy/bin/rake
104
- - test/dummy/bin/setup
105
- - test/dummy/config.ru
106
- - test/dummy/config/application.rb
107
- - test/dummy/config/boot.rb
108
- - test/dummy/config/cable.yml
109
- - test/dummy/config/database.yml
110
- - test/dummy/config/environment.rb
111
- - test/dummy/config/environments/development.rb
112
- - test/dummy/config/environments/production.rb
113
- - test/dummy/config/environments/test.rb
114
- - test/dummy/config/initializers/application_controller_renderer.rb
115
- - test/dummy/config/initializers/assets.rb
116
- - test/dummy/config/initializers/backtrace_silencers.rb
117
- - test/dummy/config/initializers/content_security_policy.rb
118
- - test/dummy/config/initializers/cookies_serializer.rb
119
- - test/dummy/config/initializers/filter_parameter_logging.rb
120
- - test/dummy/config/initializers/inflections.rb
121
- - test/dummy/config/initializers/mime_types.rb
122
- - test/dummy/config/initializers/wrap_parameters.rb
123
- - test/dummy/config/locales/en.yml
124
- - test/dummy/config/puma.rb
125
- - test/dummy/config/routes.rb
126
- - test/dummy/config/spring.rb
127
- - test/dummy/config/storage.yml
128
- - test/dummy/lib/assets/.keep
129
- - test/dummy/log/.keep
130
- - test/dummy/public/404.html
131
- - test/dummy/public/422.html
132
- - test/dummy/public/500.html
133
- - test/dummy/public/apple-touch-icon-precomposed.png
134
- - test/dummy/public/apple-touch-icon.png
135
- - test/dummy/public/favicon.ico
136
- - test/staff_bar_test.rb
137
- - test/test_helper.rb
138
75
  homepage: https://github.com/decentbudget/staff_bar
139
76
  licenses:
140
77
  - MIT
data/.gitignore DELETED
@@ -1,8 +0,0 @@
1
- .bundle/
2
- log/*.log
3
- pkg/
4
- test/dummy/db/*.sqlite3
5
- test/dummy/db/*.sqlite3-journal
6
- test/dummy/log/*.log
7
- test/dummy/storage/
8
- test/dummy/tmp/
data/Gemfile DELETED
@@ -1,15 +0,0 @@
1
- source 'https://rubygems.org'
2
- git_source(:github) { |repo| "https://github.com/#{repo}.git" }
3
-
4
- # Declare your gem's dependencies in staff_bar.gemspec.
5
- # Bundler will treat runtime dependencies like base dependencies, and
6
- # development dependencies will be added by default to the :development group.
7
- gemspec
8
-
9
- # Declare any dependencies that are still in development here instead of in
10
- # your gemspec. These might include edge Rails or gems from your path or
11
- # Git. Remember to move these dependencies to your gemspec before releasing
12
- # your gem to rubygems.org.
13
-
14
- # To use a debugger
15
- # gem 'byebug', group: [:development, :test]
data/Gemfile.lock DELETED
@@ -1,149 +0,0 @@
1
- PATH
2
- remote: .
3
- specs:
4
- staff_bar (0.1.0)
5
- octicons_helper (~> 9)
6
- rails (>= 5.0.0)
7
-
8
- GEM
9
- remote: https://rubygems.org/
10
- specs:
11
- actioncable (6.0.0)
12
- actionpack (= 6.0.0)
13
- nio4r (~> 2.0)
14
- websocket-driver (>= 0.6.1)
15
- actionmailbox (6.0.0)
16
- actionpack (= 6.0.0)
17
- activejob (= 6.0.0)
18
- activerecord (= 6.0.0)
19
- activestorage (= 6.0.0)
20
- activesupport (= 6.0.0)
21
- mail (>= 2.7.1)
22
- actionmailer (6.0.0)
23
- actionpack (= 6.0.0)
24
- actionview (= 6.0.0)
25
- activejob (= 6.0.0)
26
- mail (~> 2.5, >= 2.5.4)
27
- rails-dom-testing (~> 2.0)
28
- actionpack (6.0.0)
29
- actionview (= 6.0.0)
30
- activesupport (= 6.0.0)
31
- rack (~> 2.0)
32
- rack-test (>= 0.6.3)
33
- rails-dom-testing (~> 2.0)
34
- rails-html-sanitizer (~> 1.0, >= 1.2.0)
35
- actiontext (6.0.0)
36
- actionpack (= 6.0.0)
37
- activerecord (= 6.0.0)
38
- activestorage (= 6.0.0)
39
- activesupport (= 6.0.0)
40
- nokogiri (>= 1.8.5)
41
- actionview (6.0.0)
42
- activesupport (= 6.0.0)
43
- builder (~> 3.1)
44
- erubi (~> 1.4)
45
- rails-dom-testing (~> 2.0)
46
- rails-html-sanitizer (~> 1.1, >= 1.2.0)
47
- activejob (6.0.0)
48
- activesupport (= 6.0.0)
49
- globalid (>= 0.3.6)
50
- activemodel (6.0.0)
51
- activesupport (= 6.0.0)
52
- activerecord (6.0.0)
53
- activemodel (= 6.0.0)
54
- activesupport (= 6.0.0)
55
- activestorage (6.0.0)
56
- actionpack (= 6.0.0)
57
- activejob (= 6.0.0)
58
- activerecord (= 6.0.0)
59
- marcel (~> 0.3.1)
60
- activesupport (6.0.0)
61
- concurrent-ruby (~> 1.0, >= 1.0.2)
62
- i18n (>= 0.7, < 2)
63
- minitest (~> 5.1)
64
- tzinfo (~> 1.1)
65
- zeitwerk (~> 2.1, >= 2.1.8)
66
- builder (3.2.3)
67
- concurrent-ruby (1.1.5)
68
- crass (1.0.5)
69
- erubi (1.9.0)
70
- globalid (0.4.2)
71
- activesupport (>= 4.2.0)
72
- i18n (1.7.0)
73
- concurrent-ruby (~> 1.0)
74
- loofah (2.3.1)
75
- crass (~> 1.0.2)
76
- nokogiri (>= 1.5.9)
77
- mail (2.7.1)
78
- mini_mime (>= 0.1.1)
79
- marcel (0.3.3)
80
- mimemagic (~> 0.3.2)
81
- method_source (0.9.2)
82
- mimemagic (0.3.3)
83
- mini_mime (1.0.2)
84
- mini_portile2 (2.4.0)
85
- minitest (5.12.2)
86
- nio4r (2.5.2)
87
- nokogiri (1.10.4)
88
- mini_portile2 (~> 2.4.0)
89
- octicons (9.2.0)
90
- nokogiri (>= 1.6.3.1)
91
- octicons_helper (9.2.0)
92
- octicons (= 9.2.0)
93
- rails
94
- rack (2.0.7)
95
- rack-test (1.1.0)
96
- rack (>= 1.0, < 3)
97
- rails (6.0.0)
98
- actioncable (= 6.0.0)
99
- actionmailbox (= 6.0.0)
100
- actionmailer (= 6.0.0)
101
- actionpack (= 6.0.0)
102
- actiontext (= 6.0.0)
103
- actionview (= 6.0.0)
104
- activejob (= 6.0.0)
105
- activemodel (= 6.0.0)
106
- activerecord (= 6.0.0)
107
- activestorage (= 6.0.0)
108
- activesupport (= 6.0.0)
109
- bundler (>= 1.3.0)
110
- railties (= 6.0.0)
111
- sprockets-rails (>= 2.0.0)
112
- rails-dom-testing (2.0.3)
113
- activesupport (>= 4.2.0)
114
- nokogiri (>= 1.6)
115
- rails-html-sanitizer (1.3.0)
116
- loofah (~> 2.3)
117
- railties (6.0.0)
118
- actionpack (= 6.0.0)
119
- activesupport (= 6.0.0)
120
- method_source
121
- rake (>= 0.8.7)
122
- thor (>= 0.20.3, < 2.0)
123
- rake (13.0.0)
124
- sprockets (4.0.0)
125
- concurrent-ruby (~> 1.0)
126
- rack (> 1, < 3)
127
- sprockets-rails (3.2.1)
128
- actionpack (>= 4.0)
129
- activesupport (>= 4.0)
130
- sprockets (>= 3.0.0)
131
- sqlite3 (1.4.1)
132
- thor (0.20.3)
133
- thread_safe (0.3.6)
134
- tzinfo (1.2.5)
135
- thread_safe (~> 0.1)
136
- websocket-driver (0.7.1)
137
- websocket-extensions (>= 0.1.0)
138
- websocket-extensions (0.1.4)
139
- zeitwerk (2.2.0)
140
-
141
- PLATFORMS
142
- ruby
143
-
144
- DEPENDENCIES
145
- sqlite3
146
- staff_bar!
147
-
148
- BUNDLED WITH
149
- 2.0.2
data/Rakefile DELETED
@@ -1,27 +0,0 @@
1
- begin
2
- require 'bundler/setup'
3
- rescue LoadError
4
- puts 'You must `gem install bundler` and `bundle install` to run rake tasks'
5
- end
6
-
7
- require 'rdoc/task'
8
-
9
- RDoc::Task.new(:rdoc) do |rdoc|
10
- rdoc.rdoc_dir = 'rdoc'
11
- rdoc.title = 'StaffBar'
12
- rdoc.options << '--line-numbers'
13
- rdoc.rdoc_files.include('README.md')
14
- rdoc.rdoc_files.include('lib/**/*.rb')
15
- end
16
-
17
- require 'bundler/gem_tasks'
18
-
19
- require 'rake/testtask'
20
-
21
- Rake::TestTask.new(:test) do |t|
22
- t.libs << 'test'
23
- t.pattern = 'test/**/*_test.rb'
24
- t.verbose = false
25
- end
26
-
27
- task default: :test
data/bin/test DELETED
@@ -1,5 +0,0 @@
1
- #!/usr/bin/env ruby
2
- $: << File.expand_path("../test", __dir__)
3
-
4
- require "bundler/setup"
5
- require "rails/plugin/test"
data/preview-sm.png DELETED
Binary file
data/preview.png DELETED
Binary file
data/staff_bar.gemspec DELETED
@@ -1,24 +0,0 @@
1
- $:.push File.expand_path("lib", __dir__)
2
-
3
- # Maintain your gem's version:
4
- require "staff_bar/version"
5
-
6
- # Describe your gem and declare its dependencies:
7
- Gem::Specification.new do |spec|
8
- spec.name = "staff_bar"
9
- spec.version = StaffBar::VERSION
10
- spec.authors = ["Rolandas Barysas"]
11
- spec.email = ["rolandas@rolandasb.com"]
12
- spec.homepage = "https://github.com/decentbudget/staff_bar"
13
- spec.summary = "Show a bar with general project information for administrators."
14
- spec.description = "Show a bar with general project information for administrators."
15
- spec.license = "MIT"
16
-
17
- spec.files = `git ls-files`.split("\n")
18
- spec.require_paths = ["lib"]
19
-
20
- spec.add_dependency "rails", ">= 5.0.0"
21
- spec.add_dependency "octicons_helper", "~> 9"
22
-
23
- spec.add_development_dependency "sqlite3"
24
- end
@@ -1 +0,0 @@
1
- 2.5.3
data/test/dummy/BRANCH DELETED
@@ -1 +0,0 @@
1
- foo-branch
data/test/dummy/REVISION DELETED
@@ -1 +0,0 @@
1
- abcd1234
data/test/dummy/Rakefile DELETED
@@ -1,6 +0,0 @@
1
- # Add your own tasks in files placed in lib/tasks ending in .rake,
2
- # for example lib/tasks/capistrano.rake, and they will automatically be available to Rake.
3
-
4
- require_relative 'config/application'
5
-
6
- Rails.application.load_tasks
@@ -1,2 +0,0 @@
1
- //= link_tree ../images
2
- //= link_directory ../stylesheets .css
File without changes
@@ -1,15 +0,0 @@
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
- */
@@ -1,4 +0,0 @@
1
- module ApplicationCable
2
- class Channel < ActionCable::Channel::Base
3
- end
4
- end
@@ -1,4 +0,0 @@
1
- module ApplicationCable
2
- class Connection < ActionCable::Connection::Base
3
- end
4
- end
@@ -1,2 +0,0 @@
1
- class ApplicationController < ActionController::Base
2
- end
File without changes
@@ -1,2 +0,0 @@
1
- module ApplicationHelper
2
- end
@@ -1,15 +0,0 @@
1
- // This is a manifest file that'll be compiled into application.js, which will include all the files
2
- // listed below.
3
- //
4
- // Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts,
5
- // or any plugin's vendor/assets/javascripts directory can be referenced here using a relative path.
6
- //
7
- // It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the
8
- // compiled file. JavaScript code in this file should be added after the last require_* statement.
9
- //
10
- // Read Sprockets README (https://github.com/rails/sprockets#sprockets-directives) for details
11
- // about supported directives.
12
- //
13
- //= require rails-ujs
14
- //= require activestorage
15
- //= require_tree .
@@ -1,7 +0,0 @@
1
- class ApplicationJob < ActiveJob::Base
2
- # Automatically retry jobs that encountered a deadlock
3
- # retry_on ActiveRecord::Deadlocked
4
-
5
- # Most jobs are safe to ignore if the underlying records are no longer available
6
- # discard_on ActiveJob::DeserializationError
7
- end
@@ -1,4 +0,0 @@
1
- class ApplicationMailer < ActionMailer::Base
2
- default from: 'from@example.com'
3
- layout 'mailer'
4
- end
@@ -1,3 +0,0 @@
1
- class ApplicationRecord < ActiveRecord::Base
2
- self.abstract_class = true
3
- end
File without changes
@@ -1,14 +0,0 @@
1
- <!DOCTYPE html>
2
- <html>
3
- <head>
4
- <title>Dummy</title>
5
- <%= csrf_meta_tags %>
6
- <%= csp_meta_tag %>
7
-
8
- <%= stylesheet_link_tag 'application', media: 'all' %>
9
- </head>
10
-
11
- <body>
12
- <%= yield %>
13
- </body>
14
- </html>
@@ -1,13 +0,0 @@
1
- <!DOCTYPE html>
2
- <html>
3
- <head>
4
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
5
- <style>
6
- /* Email styles need to be inline */
7
- </style>
8
- </head>
9
-
10
- <body>
11
- <%= yield %>
12
- </body>
13
- </html>
@@ -1 +0,0 @@
1
- <%= yield %>
data/test/dummy/bin/rails DELETED
@@ -1,4 +0,0 @@
1
- #!/usr/bin/env ruby
2
- APP_PATH = File.expand_path('../config/application', __dir__)
3
- require_relative '../config/boot'
4
- require 'rails/commands'
data/test/dummy/bin/rake DELETED
@@ -1,4 +0,0 @@
1
- #!/usr/bin/env ruby
2
- require_relative '../config/boot'
3
- require 'rake'
4
- Rake.application.run
data/test/dummy/bin/setup DELETED
@@ -1,33 +0,0 @@
1
- #!/usr/bin/env ruby
2
- require 'fileutils'
3
-
4
- # path to your application root.
5
- APP_ROOT = File.expand_path('..', __dir__)
6
-
7
- def system!(*args)
8
- system(*args) || abort("\n== Command #{args} failed ==")
9
- end
10
-
11
- FileUtils.chdir APP_ROOT do
12
- # This script is a way to setup or update your development environment automatically.
13
- # This script is idempotent, so that you can run it at anytime and get an expectable outcome.
14
- # Add necessary setup steps to this file.
15
-
16
- puts '== Installing dependencies =='
17
- system! 'gem install bundler --conservative'
18
- system('bundle check') || system!('bundle install')
19
-
20
- # puts "\n== Copying sample files =="
21
- # unless File.exist?('config/database.yml')
22
- # FileUtils.cp 'config/database.yml.sample', 'config/database.yml'
23
- # end
24
-
25
- puts "\n== Preparing database =="
26
- system! 'bin/rails db:prepare'
27
-
28
- puts "\n== Removing old logs and tempfiles =="
29
- system! 'bin/rails log:clear tmp:clear'
30
-
31
- puts "\n== Restarting application server =="
32
- system! 'bin/rails restart'
33
- end
@@ -1,19 +0,0 @@
1
- require_relative 'boot'
2
-
3
- require 'rails/all'
4
-
5
- Bundler.require(*Rails.groups)
6
- require "staff_bar"
7
-
8
- module Dummy
9
- class Application < Rails::Application
10
- # Initialize configuration defaults for originally generated Rails version.
11
- config.load_defaults 6.0
12
-
13
- # Settings in config/environments/* take precedence over those specified here.
14
- # Application configuration can go into files in config/initializers
15
- # -- all .rb files in that directory are automatically loaded after loading
16
- # the framework and any gems in your application.
17
- end
18
- end
19
-
@@ -1,5 +0,0 @@
1
- # Set up gems listed in the Gemfile.
2
- ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../../Gemfile', __dir__)
3
-
4
- require 'bundler/setup' if File.exist?(ENV['BUNDLE_GEMFILE'])
5
- $LOAD_PATH.unshift File.expand_path('../../../lib', __dir__)
@@ -1,10 +0,0 @@
1
- development:
2
- adapter: async
3
-
4
- test:
5
- adapter: test
6
-
7
- production:
8
- adapter: redis
9
- url: <%= ENV.fetch("REDIS_URL") { "redis://localhost:6379/1" } %>
10
- channel_prefix: dummy_production
@@ -1,25 +0,0 @@
1
- # SQLite. Versions 3.8.0 and up are supported.
2
- # gem install sqlite3
3
- #
4
- # Ensure the SQLite 3 gem is defined in your Gemfile
5
- # gem 'sqlite3'
6
- #
7
- default: &default
8
- adapter: sqlite3
9
- pool: <%= ENV.fetch("RAILS_MAX_THREADS") { 5 } %>
10
- timeout: 5000
11
-
12
- development:
13
- <<: *default
14
- database: db/development.sqlite3
15
-
16
- # Warning: The database defined as "test" will be erased and
17
- # re-generated from your development database when you run "rake".
18
- # Do not set this db to the same as development or production.
19
- test:
20
- <<: *default
21
- database: db/test.sqlite3
22
-
23
- production:
24
- <<: *default
25
- database: db/production.sqlite3
@@ -1,5 +0,0 @@
1
- # Load the Rails application.
2
- require_relative 'application'
3
-
4
- # Initialize the Rails application.
5
- Rails.application.initialize!