bp3-hello-engine 0.1.4

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 ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 82477c7cabbd379cacfbfa24ca9cc400febe8ea0a81d72660c056b7050e7e400
4
+ data.tar.gz: ded2e7ff6c1f30a56f6d30420cf8a977c37970521a62d96b111d60fe2255773f
5
+ SHA512:
6
+ metadata.gz: c8cb801678db61d5517b27a5544af129ee037a0d50661bef61d744a81286b949801c05782c2054fdeb11c5f8e8cc4bc49e2b4879a32d9bc80aee9f2f818e69ae
7
+ data.tar.gz: eb8f083f4330a79ce879b2f838924939934f6f6e67024392ae393dca6cc02d6c39c216ad8b98489a33bfd6f3314bd0ba07401c175aaecd3d488ea73dba631341
data/README.md ADDED
@@ -0,0 +1,31 @@
1
+ # Bp3::Hello::Engine
2
+
3
+ Bp3::Hello::Engine is an example BP3 Rails engine that 'says hello'.
4
+
5
+ ## Installation
6
+
7
+ Add this line to your application's Gemfile:
8
+
9
+ ```ruby
10
+ gem "bp3-hello-engine"
11
+ ```
12
+
13
+ And then execute:
14
+
15
+ $ bundle install
16
+
17
+ Or install it yourself as:
18
+
19
+ $ gem install bp3-hello-engine
20
+
21
+ ## Development
22
+ See [Getting Started with Engines](https://guides.rubyonrails.org/engines.html)
23
+
24
+ ## Testing
25
+ Run `rake` to run rspec tests and rubocop linting.
26
+
27
+ ## Documentation
28
+ A `.yardopts` file is provided to support yard documentation.
29
+
30
+ ## License
31
+ 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,17 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'bundler/setup'
4
+
5
+ load 'rails/tasks/statistics.rake'
6
+
7
+ require 'bundler/gem_tasks'
8
+
9
+ require 'rspec/core/rake_task'
10
+
11
+ RSpec::Core::RakeTask.new(:spec)
12
+
13
+ require 'rubocop/rake_task'
14
+
15
+ RuboCop::RakeTask.new
16
+
17
+ task default: %i[spec rubocop]
@@ -0,0 +1 @@
1
+ //= link_directory ../stylesheets/bp3/hello/engine .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,10 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Bp3
4
+ module Hello
5
+ module Engine
6
+ class ApplicationController < ActionController::Base
7
+ end
8
+ end
9
+ end
10
+ end
@@ -0,0 +1,30 @@
1
+ # frozen_string_literal: true
2
+
3
+ # TODO: why is this needed?
4
+ require 'bp3-hello-world'
5
+
6
+ module Bp3
7
+ module Hello
8
+ module Engine
9
+ class HelloController < ::ApplicationController
10
+ layout :engine_layout
11
+
12
+ def world
13
+ @title = Bp3::Hello::World::Context.say_it!
14
+ @message = 'Success!'
15
+ end
16
+
17
+ def engine
18
+ @title = I18n.t('hello.engine')
19
+ @message = 'Success!'
20
+ end
21
+
22
+ private
23
+
24
+ def engine_layout
25
+ 'engine_layout'
26
+ end
27
+ end
28
+ end
29
+ end
30
+ end
@@ -0,0 +1,10 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Bp3
4
+ module Hello
5
+ module Engine
6
+ module ApplicationHelper
7
+ end
8
+ end
9
+ end
10
+ end
@@ -0,0 +1,10 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Bp3
4
+ module Hello
5
+ module Engine
6
+ module HelloHelper
7
+ end
8
+ end
9
+ end
10
+ end
@@ -0,0 +1,10 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Bp3
4
+ module Hello
5
+ module Engine
6
+ class ApplicationJob < ActiveJob::Base
7
+ end
8
+ end
9
+ end
10
+ end
@@ -0,0 +1,11 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Bp3
4
+ module Hello
5
+ module Engine
6
+ class ApplicationRecord < ActiveRecord::Base
7
+ self.abstract_class = true
8
+ end
9
+ end
10
+ end
11
+ end
@@ -0,0 +1,2 @@
1
+ <h1><%= @title %></h1>
2
+ <p><%= @message %></p>
@@ -0,0 +1,2 @@
1
+ <h1><%= @title %></h1>
2
+ <p><%= @message %></p>
@@ -0,0 +1,15 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <title>Bp3 hello engine</title>
5
+ <%= csrf_meta_tags %>
6
+ <%= csp_meta_tag %>
7
+
8
+ <%= stylesheet_link_tag "bp3/hello/engine/application", media: "all" %>
9
+ </head>
10
+ <body>
11
+
12
+ <%= yield %>
13
+
14
+ </body>
15
+ </html>
@@ -0,0 +1,3 @@
1
+ en:
2
+ hello:
3
+ engine: "hello engine"
@@ -0,0 +1,3 @@
1
+ nl:
2
+ hello:
3
+ engine: "hallo motor"
@@ -0,0 +1,3 @@
1
+ sp:
2
+ hello:
3
+ engine: "hola motor"
data/config/routes.rb ADDED
@@ -0,0 +1,10 @@
1
+ # frozen_string_literal: true
2
+
3
+ Bp3::Hello::Engine::Engine.routes.draw do
4
+ get 'hello/world'
5
+ get 'hello/engine'
6
+ get 'world', to: 'hello#world'
7
+ get 'engine', to: 'hello#engine'
8
+
9
+ root to: 'hello#engine'
10
+ end
@@ -0,0 +1,17 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Bp3
4
+ module Hello
5
+ module Engine
6
+ class Engine < ::Rails::Engine
7
+ isolate_namespace Bp3::Hello::Engine
8
+
9
+ config.generators do |g|
10
+ g.test_framework :rspec
11
+ g.assets false
12
+ g.helper false
13
+ end
14
+ end
15
+ end
16
+ end
17
+ end
@@ -0,0 +1,10 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Bp3
4
+ module Hello
5
+ module Engine
6
+ class Railtie < ::Rails::Railtie
7
+ end
8
+ end
9
+ end
10
+ end
@@ -0,0 +1,9 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Bp3
4
+ module Hello
5
+ module Engine
6
+ VERSION = '0.1.4'
7
+ end
8
+ end
9
+ end
@@ -0,0 +1,11 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'bp3/hello/engine/version'
4
+ require 'bp3/hello/engine/engine'
5
+
6
+ module Bp3
7
+ module Hello
8
+ module Engine
9
+ end
10
+ end
11
+ end
@@ -0,0 +1,3 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'bp3/hello/engine'
@@ -0,0 +1,6 @@
1
+ # frozen_string_literal: true
2
+
3
+ # desc "Explaining what the task does"
4
+ # task :bp3_hello_engine do
5
+ # # Task goes here
6
+ # end
metadata ADDED
@@ -0,0 +1,195 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: bp3-hello-engine
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.4
5
+ platform: ruby
6
+ authors:
7
+ - Wim den Braven
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2024-06-04 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: bp3-hello-world
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: 0.1.3
20
+ - - "<"
21
+ - !ruby/object:Gem::Version
22
+ version: '1'
23
+ type: :runtime
24
+ prerelease: false
25
+ version_requirements: !ruby/object:Gem::Requirement
26
+ requirements:
27
+ - - ">="
28
+ - !ruby/object:Gem::Version
29
+ version: 0.1.3
30
+ - - "<"
31
+ - !ruby/object:Gem::Version
32
+ version: '1'
33
+ - !ruby/object:Gem::Dependency
34
+ name: propshaft
35
+ requirement: !ruby/object:Gem::Requirement
36
+ requirements:
37
+ - - ">="
38
+ - !ruby/object:Gem::Version
39
+ version: '0'
40
+ type: :runtime
41
+ prerelease: false
42
+ version_requirements: !ruby/object:Gem::Requirement
43
+ requirements:
44
+ - - ">="
45
+ - !ruby/object:Gem::Version
46
+ version: '0'
47
+ - !ruby/object:Gem::Dependency
48
+ name: rails
49
+ requirement: !ruby/object:Gem::Requirement
50
+ requirements:
51
+ - - ">="
52
+ - !ruby/object:Gem::Version
53
+ version: 7.1.2
54
+ - - "<"
55
+ - !ruby/object:Gem::Version
56
+ version: '8'
57
+ type: :runtime
58
+ prerelease: false
59
+ version_requirements: !ruby/object:Gem::Requirement
60
+ requirements:
61
+ - - ">="
62
+ - !ruby/object:Gem::Version
63
+ version: 7.1.2
64
+ - - "<"
65
+ - !ruby/object:Gem::Version
66
+ version: '8'
67
+ - !ruby/object:Gem::Dependency
68
+ name: rake
69
+ requirement: !ruby/object:Gem::Requirement
70
+ requirements:
71
+ - - "~>"
72
+ - !ruby/object:Gem::Version
73
+ version: '13.0'
74
+ type: :development
75
+ prerelease: false
76
+ version_requirements: !ruby/object:Gem::Requirement
77
+ requirements:
78
+ - - "~>"
79
+ - !ruby/object:Gem::Version
80
+ version: '13.0'
81
+ - !ruby/object:Gem::Dependency
82
+ name: rspec-rails
83
+ requirement: !ruby/object:Gem::Requirement
84
+ requirements:
85
+ - - "~>"
86
+ - !ruby/object:Gem::Version
87
+ version: '6.0'
88
+ type: :development
89
+ prerelease: false
90
+ version_requirements: !ruby/object:Gem::Requirement
91
+ requirements:
92
+ - - "~>"
93
+ - !ruby/object:Gem::Version
94
+ version: '6.0'
95
+ - !ruby/object:Gem::Dependency
96
+ name: rubocop
97
+ requirement: !ruby/object:Gem::Requirement
98
+ requirements:
99
+ - - "~>"
100
+ - !ruby/object:Gem::Version
101
+ version: '1.21'
102
+ type: :development
103
+ prerelease: false
104
+ version_requirements: !ruby/object:Gem::Requirement
105
+ requirements:
106
+ - - "~>"
107
+ - !ruby/object:Gem::Version
108
+ version: '1.21'
109
+ - !ruby/object:Gem::Dependency
110
+ name: rubocop-rake
111
+ requirement: !ruby/object:Gem::Requirement
112
+ requirements:
113
+ - - "~>"
114
+ - !ruby/object:Gem::Version
115
+ version: '0.6'
116
+ type: :development
117
+ prerelease: false
118
+ version_requirements: !ruby/object:Gem::Requirement
119
+ requirements:
120
+ - - "~>"
121
+ - !ruby/object:Gem::Version
122
+ version: '0.6'
123
+ - !ruby/object:Gem::Dependency
124
+ name: rubocop-rspec
125
+ requirement: !ruby/object:Gem::Requirement
126
+ requirements:
127
+ - - "~>"
128
+ - !ruby/object:Gem::Version
129
+ version: '2.25'
130
+ type: :development
131
+ prerelease: false
132
+ version_requirements: !ruby/object:Gem::Requirement
133
+ requirements:
134
+ - - "~>"
135
+ - !ruby/object:Gem::Version
136
+ version: '2.25'
137
+ description: Bp3::Hello::Engine is an example BP3 Rails engine that 'says hello'
138
+ email:
139
+ - wimdenbraven@persuavis.com
140
+ executables: []
141
+ extensions: []
142
+ extra_rdoc_files: []
143
+ files:
144
+ - README.md
145
+ - Rakefile
146
+ - app/assets/config/bp3_hello_engine_manifest.js
147
+ - app/assets/stylesheets/bp3/hello/engine/application.css
148
+ - app/controllers/bp3/hello/engine/application_controller.rb
149
+ - app/controllers/bp3/hello/engine/hello_controller.rb
150
+ - app/helpers/bp3/hello/engine/application_helper.rb
151
+ - app/helpers/bp3/hello/engine/hello_helper.rb
152
+ - app/jobs/bp3/hello/engine/application_job.rb
153
+ - app/models/bp3/hello/engine/application_record.rb
154
+ - app/views/bp3/hello/engine/hello/engine.html.erb
155
+ - app/views/bp3/hello/engine/hello/world.html.erb
156
+ - app/views/layouts/bp3/hello/engine/application.html.erb
157
+ - config/locales/en.yml
158
+ - config/locales/nl.yml
159
+ - config/locales/sp.yml
160
+ - config/routes.rb
161
+ - lib/bp3-hello-engine.rb
162
+ - lib/bp3/hello/engine.rb
163
+ - lib/bp3/hello/engine/engine.rb
164
+ - lib/bp3/hello/engine/railtie.rb
165
+ - lib/bp3/hello/engine/version.rb
166
+ - lib/tasks/bp3/hello/engine_tasks.rake
167
+ homepage: https://www.black-phoebe.com
168
+ licenses:
169
+ - MIT
170
+ metadata:
171
+ allowed_push_host: https://rubygems.org
172
+ homepage_uri: https://www.black-phoebe.com
173
+ source_code_uri: https://github.com/persuavis/bp3-hello-engine
174
+ changelog_uri: https://github.com/persuavis/bp3-hello-engine/blob/main/CHANGELOG.md
175
+ rubygems_mfa_required: 'true'
176
+ post_install_message:
177
+ rdoc_options: []
178
+ require_paths:
179
+ - lib
180
+ required_ruby_version: !ruby/object:Gem::Requirement
181
+ requirements:
182
+ - - ">="
183
+ - !ruby/object:Gem::Version
184
+ version: 3.2.2
185
+ required_rubygems_version: !ruby/object:Gem::Requirement
186
+ requirements:
187
+ - - ">="
188
+ - !ruby/object:Gem::Version
189
+ version: '0'
190
+ requirements: []
191
+ rubygems_version: 3.5.11
192
+ signing_key:
193
+ specification_version: 4
194
+ summary: Bp3::Hello::Engine is an example BP3 Rails engine
195
+ test_files: []