brut 0.5.0 → 0.8.0
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 +4 -4
- data/.gitignore +4 -0
- data/CHANGELOG.md +7 -0
- data/Dockerfile.dx +19 -0
- data/Gemfile.lock +1 -1
- data/README.md +19 -0
- data/assets/YouTubeThumb.pxd +0 -0
- data/bin/build +86 -0
- data/bin/ci +36 -0
- data/bin/docs +39 -9
- data/bin/publish +61 -0
- data/bin/setup +6 -0
- data/brut-css/bin/build +19 -0
- data/brut-css/bin/ci +19 -0
- data/brut-css/bin/docs +19 -0
- data/brut-css/bin/publish +21 -0
- data/brut-css/bin/setup +1 -0
- data/brut-css/package-lock.json +2 -2
- data/brut-css/package.json +1 -1
- data/brut-js/bin/build +15 -6
- data/brut-js/bin/docs +25 -0
- data/brut-js/bin/publish +21 -0
- data/brut-js/bin/setup +1 -0
- data/brut-js/dx +1 -0
- data/brut-js/package-lock.json +2 -2
- data/brut-js/package.json +1 -1
- data/brut.gemspec +2 -2
- data/brutrb.com/bin/setup +1 -0
- data/brutrb.com/getting-started.md +3 -0
- data/brutrb.com/overview.md +6 -0
- data/brutrb.com/tutorial.md +7 -3
- data/docs/404.html +2 -2
- data/docs/adrs.html +3 -3
- data/docs/ai.html +3 -3
- data/docs/assets/{app.D6BuVHo9.js → app.DyQLb4Ot.js} +1 -1
- data/docs/assets/chunks/@localSearchIndexroot.CmtZyrFA.js +1 -0
- data/docs/assets/chunks/{VPLocalSearchBox.BpvHMbx6.js → VPLocalSearchBox.T1iA-eJx.js} +1 -1
- data/docs/assets/chunks/{theme.wlAOvi2f.js → theme.ChwsbWjK.js} +2 -2
- data/docs/assets/{components.md.iLiv2E9X.js → components.md.DHh-NwKs.js} +3 -3
- data/docs/assets/{configuration.md.DmuAdsli.js → configuration.md.D8Wz3oJU.js} +1 -1
- data/docs/assets/{forms.md.D8aa_qI-.js → forms.md.BRE85eju.js} +1 -1
- data/docs/assets/{getting-started.md.DLplsDUd.js → getting-started.md.2ioiTe-B.js} +6 -3
- data/docs/assets/{getting-started.md.DLplsDUd.lean.js → getting-started.md.2ioiTe-B.lean.js} +1 -1
- data/docs/assets/overview.md.DlKiRRG_.js +1 -0
- data/docs/assets/overview.md.DlKiRRG_.lean.js +1 -0
- data/docs/assets/tutorial.md.BIb7XT6j.js +1 -0
- data/docs/assets/tutorial.md.BIb7XT6j.lean.js +1 -0
- data/docs/assets.html +3 -3
- data/docs/brut-js.html +3 -3
- data/docs/business-logic.html +3 -3
- data/docs/cli.html +3 -3
- data/docs/components.html +7 -7
- data/docs/configuration.html +5 -5
- data/docs/css.html +3 -3
- data/docs/custom-element-tests.html +3 -3
- data/docs/database-access.html +3 -3
- data/docs/database-schema.html +3 -3
- data/docs/deployment.html +3 -3
- data/docs/dev-environment.html +3 -3
- data/docs/dir-structure.html +3 -3
- data/docs/doc-conventions.html +3 -3
- data/docs/end-to-end-tests.html +3 -3
- data/docs/features.html +3 -3
- data/docs/flash-and-session.html +3 -3
- data/docs/form-constraints.html +3 -3
- data/docs/forms.html +5 -5
- data/docs/getting-started.html +9 -6
- data/docs/handlers.html +3 -3
- data/docs/hashmap.json +1 -1
- data/docs/hooks.html +3 -3
- data/docs/i18n.html +3 -3
- data/docs/index.html +3 -3
- data/docs/instrumentation.html +3 -3
- data/docs/javascript.html +3 -3
- data/docs/jobs.html +3 -3
- data/docs/keyword-injection.html +3 -3
- data/docs/layouts.html +3 -3
- data/docs/lsp.html +3 -3
- data/docs/markdown-examples.html +3 -3
- data/docs/middleware.html +3 -3
- data/docs/overview.html +5 -5
- data/docs/pages.html +3 -3
- data/docs/recipes/alternate-layouts.html +3 -3
- data/docs/recipes/authentication.html +3 -3
- data/docs/recipes/blank-layouts.html +3 -3
- data/docs/recipes/custom-flash.html +3 -3
- data/docs/recipes/indexed-forms.html +3 -3
- data/docs/recipes/migrations.html +3 -3
- data/docs/recipes/text-field-component.html +3 -3
- data/docs/roadmap.html +3 -3
- data/docs/routes.html +3 -3
- data/docs/security.html +3 -3
- data/docs/seed-data.html +3 -3
- data/docs/space-time-continuum.html +3 -3
- data/docs/tutorial.html +5 -5
- data/docs/unit-tests.html +3 -3
- data/docs/why.html +3 -3
- data/lib/brut/framework/mcp.rb +1 -1
- data/lib/brut/front_end/components/form_tag.rb +2 -2
- data/lib/brut/version.rb +1 -1
- data/mkbrut/.gitignore +16 -0
- data/mkbrut/CODE_OF_CONDUCT.txt +100 -0
- data/mkbrut/Gemfile +3 -0
- data/mkbrut/Gemfile.lock +19 -0
- data/mkbrut/LICENSE.txt +370 -0
- data/mkbrut/README.md +145 -0
- data/mkbrut/Rakefile +2 -0
- data/mkbrut/bin/build +36 -0
- data/mkbrut/bin/ci +19 -0
- data/mkbrut/bin/docs +19 -0
- data/mkbrut/bin/publish +129 -0
- data/mkbrut/bin/rake +16 -0
- data/mkbrut/bin/setup +30 -0
- data/mkbrut/brut-welcome.png +0 -0
- data/mkbrut/deploy/.dockerignore +2 -0
- data/mkbrut/deploy/Dockerfile +25 -0
- data/mkbrut/exe/mkbrut +5 -0
- data/mkbrut/lib/mkbrut/app.rb +79 -0
- data/mkbrut/lib/mkbrut/app_id.rb +8 -0
- data/mkbrut/lib/mkbrut/app_name.rb +29 -0
- data/mkbrut/lib/mkbrut/app_options.rb +36 -0
- data/mkbrut/lib/mkbrut/base.rb +57 -0
- data/mkbrut/lib/mkbrut/cli.rb +107 -0
- data/mkbrut/lib/mkbrut/erb_binding_delegate.rb +20 -0
- data/mkbrut/lib/mkbrut/internet_identifier.rb +32 -0
- data/mkbrut/lib/mkbrut/invalid_identifier.rb +4 -0
- data/mkbrut/lib/mkbrut/ops/add_css_import.rb +42 -0
- data/mkbrut/lib/mkbrut/ops/add_i18n_message.rb +74 -0
- data/mkbrut/lib/mkbrut/ops/add_method.rb +48 -0
- data/mkbrut/lib/mkbrut/ops/append_to_file.rb +20 -0
- data/mkbrut/lib/mkbrut/ops/base_op.rb +21 -0
- data/mkbrut/lib/mkbrut/ops/copy_file.rb +12 -0
- data/mkbrut/lib/mkbrut/ops/insert_code_in_method.rb +58 -0
- data/mkbrut/lib/mkbrut/ops/insert_route.rb +52 -0
- data/mkbrut/lib/mkbrut/ops/mkdir.rb +13 -0
- data/mkbrut/lib/mkbrut/ops/prism_parsing_op.rb +70 -0
- data/mkbrut/lib/mkbrut/ops/render_template.rb +26 -0
- data/mkbrut/lib/mkbrut/ops/skip_file.rb +10 -0
- data/mkbrut/lib/mkbrut/ops.rb +16 -0
- data/mkbrut/lib/mkbrut/organization.rb +5 -0
- data/mkbrut/lib/mkbrut/prefix.rb +26 -0
- data/mkbrut/lib/mkbrut/prefixed_io.rb +16 -0
- data/mkbrut/lib/mkbrut/segments/bare_bones.rb +185 -0
- data/mkbrut/lib/mkbrut/segments/demo.rb +121 -0
- data/mkbrut/lib/mkbrut/segments/heroku.rb +30 -0
- data/mkbrut/lib/mkbrut/segments/sidekiq.rb +3 -0
- data/mkbrut/lib/mkbrut/segments.rb +8 -0
- data/mkbrut/lib/mkbrut/version.rb +3 -0
- data/mkbrut/lib/mkbrut/versions.rb +13 -0
- data/mkbrut/lib/mkbrut.rb +18 -0
- data/mkbrut/mkbrut.gemspec +32 -0
- data/mkbrut/templates/Base/.dockerignore +25 -0
- data/mkbrut/templates/Base/.env.development.erb +60 -0
- data/mkbrut/templates/Base/.env.test.erb +8 -0
- data/mkbrut/templates/Base/.gitignore +31 -0
- data/mkbrut/templates/Base/.projections.json +59 -0
- data/mkbrut/templates/Base/Dockerfile.dx +205 -0
- data/mkbrut/templates/Base/Gemfile.erb +53 -0
- data/mkbrut/templates/Base/Procfile.development +5 -0
- data/mkbrut/templates/Base/Procfile.test +1 -0
- data/mkbrut/templates/Base/README.md +4 -0
- data/mkbrut/templates/Base/README.md.erb +40 -0
- data/mkbrut/templates/Base/app/bootstrap.rb +61 -0
- data/mkbrut/templates/Base/app/config/i18n/en/1_defaults.rb +128 -0
- data/mkbrut/templates/Base/app/config/i18n/en/2_app.rb +24 -0
- data/mkbrut/templates/Base/app/public/static/manifest.json.erb +33 -0
- data/mkbrut/templates/Base/app/src/app.rb.erb +37 -0
- data/mkbrut/templates/Base/app/src/back_end/data_models/app_data_model.rb +5 -0
- data/mkbrut/templates/Base/app/src/back_end/data_models/db.rb +19 -0
- data/mkbrut/templates/Base/app/src/back_end/data_models/migrations/20240101130000_citext.rb +6 -0
- data/mkbrut/templates/Base/app/src/back_end/data_models/seed/seed_data.rb +9 -0
- data/mkbrut/templates/Base/app/src/front_end/components/app_component.rb +8 -0
- data/mkbrut/templates/Base/app/src/front_end/components/custom_element_registration.rb.erb +7 -0
- data/mkbrut/templates/Base/app/src/front_end/css/index.css +2 -0
- data/mkbrut/templates/Base/app/src/front_end/css/svgs.css +12 -0
- data/mkbrut/templates/Base/app/src/front_end/forms/app_form.rb +4 -0
- data/mkbrut/templates/Base/app/src/front_end/handlers/app_handler.rb +4 -0
- data/mkbrut/templates/Base/app/src/front_end/images/LogoPylon.png +0 -0
- data/mkbrut/templates/Base/app/src/front_end/images/LogoTransit.png +0 -0
- data/mkbrut/templates/Base/app/src/front_end/images/apple-touch-icon-120x120.png +0 -0
- data/mkbrut/templates/Base/app/src/front_end/images/apple-touch-icon-152x152.png +0 -0
- data/mkbrut/templates/Base/app/src/front_end/images/apple-touch-icon-167x167.png +0 -0
- data/mkbrut/templates/Base/app/src/front_end/images/apple-touch-icon-180x180.png +0 -0
- data/mkbrut/templates/Base/app/src/front_end/images/favicon.ico +0 -0
- data/mkbrut/templates/Base/app/src/front_end/images/icon.png +0 -0
- data/mkbrut/templates/Base/app/src/front_end/images/mkicons.sh +6 -0
- data/mkbrut/templates/Base/app/src/front_end/js/index.js +6 -0
- data/mkbrut/templates/Base/app/src/front_end/layouts/default_layout.rb.erb +73 -0
- data/mkbrut/templates/Base/app/src/front_end/pages/app_page.rb +11 -0
- data/mkbrut/templates/Base/app/src/front_end/pages/home_page.rb +62 -0
- data/mkbrut/templates/Base/app/src/front_end/support/app_session.rb +6 -0
- data/mkbrut/templates/Base/app/src/front_end/svgs/README.md +5 -0
- data/mkbrut/templates/Base/app/src/front_end/svgs/comment-button.svg +59 -0
- data/mkbrut/templates/Base/bin/README.md.erb +5 -0
- data/mkbrut/templates/Base/bin/build-assets +7 -0
- data/mkbrut/templates/Base/bin/ci +39 -0
- data/mkbrut/templates/Base/bin/console +31 -0
- data/mkbrut/templates/Base/bin/db +9 -0
- data/mkbrut/templates/Base/bin/dbconsole +51 -0
- data/mkbrut/templates/Base/bin/dev +25 -0
- data/mkbrut/templates/Base/bin/release +26 -0
- data/mkbrut/templates/Base/bin/run +86 -0
- data/mkbrut/templates/Base/bin/scaffold +9 -0
- data/mkbrut/templates/Base/bin/setup +256 -0
- data/mkbrut/templates/Base/bin/startup-message +65 -0
- data/mkbrut/templates/Base/bin/test +9 -0
- data/mkbrut/templates/Base/bin/test-server +29 -0
- data/mkbrut/templates/Base/bin/watch-and-build-assets +37 -0
- data/mkbrut/templates/Base/config.ru +16 -0
- data/mkbrut/templates/Base/docker-compose.dx.yml +92 -0
- data/mkbrut/templates/Base/dx/README.md +28 -0
- data/mkbrut/templates/Base/dx/bash_customizations +12 -0
- data/mkbrut/templates/Base/dx/bash_customizations.local +8 -0
- data/mkbrut/templates/Base/dx/build +107 -0
- data/mkbrut/templates/Base/dx/docker-compose.env.erb +25 -0
- data/mkbrut/templates/Base/dx/dx.sh.lib +137 -0
- data/mkbrut/templates/Base/dx/exec +68 -0
- data/mkbrut/templates/Base/dx/prune +19 -0
- data/mkbrut/templates/Base/dx/show-help-in-app-container-then-wait.sh +38 -0
- data/mkbrut/templates/Base/dx/start +30 -0
- data/mkbrut/templates/Base/dx/stop +23 -0
- data/mkbrut/templates/Base/package.json.erb +37 -0
- data/mkbrut/templates/Base/puma.config.rb +53 -0
- data/mkbrut/templates/Base/specs/e2e/home_page.spec.rb.erb +23 -0
- data/mkbrut/templates/Base/specs/front_end/js/SpecHelper.js +24 -0
- data/mkbrut/templates/Base/specs/front_end/pages/home_page.spec.rb +22 -0
- data/mkbrut/templates/Base/specs/lint_factories.spec.rb +7 -0
- data/mkbrut/templates/Base/specs/spec_helper.rb +78 -0
- data/mkbrut/templates/Base/specs/support.rb +2 -0
- data/mkbrut/templates/segments/BareBones/app/src/front_end/handlers/trigger_exception_handler.rb +24 -0
- data/mkbrut/templates/segments/BareBones/app/src/front_end/js/Example.js.erb +49 -0
- data/mkbrut/templates/segments/BareBones/specs/front_end/handlers/trigger_exception_handler.spec.rb +41 -0
- data/mkbrut/templates/segments/BareBones/specs/front_end/js/Example.spec.js.erb +38 -0
- data/mkbrut/templates/segments/Demo/app/src/back_end/data_models/db/guestbook_message.rb +3 -0
- data/mkbrut/templates/segments/Demo/app/src/back_end/data_models/migrations/20250628194124_guestbook.rb +14 -0
- data/mkbrut/templates/segments/Demo/app/src/front_end/components/flash_component.rb +36 -0
- data/mkbrut/templates/segments/Demo/app/src/front_end/css/constraint-violations.css +18 -0
- data/mkbrut/templates/segments/Demo/app/src/front_end/css/fonts.css +19 -0
- data/mkbrut/templates/segments/Demo/app/src/front_end/fonts/monaspace-xenon.ttf +0 -0
- data/mkbrut/templates/segments/Demo/app/src/front_end/forms/guestbook_message_form.rb +4 -0
- data/mkbrut/templates/segments/Demo/app/src/front_end/handlers/guestbook_message_handler.rb +64 -0
- data/mkbrut/templates/segments/Demo/app/src/front_end/pages/guestbook_page/message_component.rb +41 -0
- data/mkbrut/templates/segments/Demo/app/src/front_end/pages/guestbook_page.rb +43 -0
- data/mkbrut/templates/segments/Demo/app/src/front_end/pages/new_guestbook_message_page.rb +64 -0
- data/mkbrut/templates/segments/Demo/specs/back_end/data_models/db/guestbook_message.spec.rb +5 -0
- data/mkbrut/templates/segments/Demo/specs/e2e/guest_message.spec.rb +54 -0
- data/mkbrut/templates/segments/Demo/specs/factories/db/guestbook_message.factory.rb +7 -0
- data/mkbrut/templates/segments/Demo/specs/front_end/components/flash_component.spec.rb +5 -0
- data/mkbrut/templates/segments/Demo/specs/front_end/handlers/guestbook_message_handler.spec.rb +122 -0
- data/mkbrut/templates/segments/Demo/specs/front_end/pages/guestbook_page/message_component.spec.rb +5 -0
- data/mkbrut/templates/segments/Demo/specs/front_end/pages/guestbook_page.spec.rb +52 -0
- data/mkbrut/templates/segments/Demo/specs/front_end/pages/new_guestbook_message_page.spec.rb +5 -0
- data/mkbrut/templates/segments/Heroku/bin/deploy +11 -0
- data/mkbrut/templates/segments/Heroku/deploy/Dockerfile +125 -0
- data/mkbrut/templates/segments/Heroku/deploy/docker-entrypoint +15 -0
- data/mkbrut/templates/segments/Heroku/deploy/heroku_config.rb +26 -0
- metadata +185 -21
- data/docs/assets/chunks/@localSearchIndexroot.COP2Bcmp.js +0 -1
- data/docs/assets/overview.md.iMnwLO4x.js +0 -1
- data/docs/assets/overview.md.iMnwLO4x.lean.js +0 -1
- data/docs/assets/tutorial.md.BYXj4cOu.js +0 -1
- data/docs/assets/tutorial.md.BYXj4cOu.lean.js +0 -1
- /data/docs/assets/{components.md.iLiv2E9X.lean.js → components.md.DHh-NwKs.lean.js} +0 -0
- /data/docs/assets/{configuration.md.DmuAdsli.lean.js → configuration.md.D8Wz3oJU.lean.js} +0 -0
- /data/docs/assets/{forms.md.D8aa_qI-.lean.js → forms.md.BRE85eju.lean.js} +0 -0
data/mkbrut/LICENSE.txt
ADDED
@@ -0,0 +1,370 @@
|
|
1
|
+
HIPPOCRATIC LICENSE
|
2
|
+
|
3
|
+
Version 3.0, October 2021
|
4
|
+
|
5
|
+
https://firstdonoharm.dev/version/3/0/cl-eco-media-my-tal-xuar.txt
|
6
|
+
|
7
|
+
TERMS AND CONDITIONS
|
8
|
+
|
9
|
+
TERMS AND CONDITIONS FOR USE, COPY, MODIFICATION, PREPARATION OF DERIVATIVE
|
10
|
+
WORK, REPRODUCTION, AND DISTRIBUTION:
|
11
|
+
|
12
|
+
1. DEFINITIONS:
|
13
|
+
|
14
|
+
This section defines certain terms used throughout this license agreement.
|
15
|
+
|
16
|
+
1.1. “License” means the terms and conditions, as stated herein, for use, copy,
|
17
|
+
modification, preparation of derivative work, reproduction, and distribution of
|
18
|
+
Software (as defined below).
|
19
|
+
|
20
|
+
1.2. “Licensor” means the copyright and/or patent owner or entity authorized by
|
21
|
+
the copyright and/or patent owner that is granting the License.
|
22
|
+
|
23
|
+
1.3. “Licensee” means the individual or entity exercising permissions granted by
|
24
|
+
this License, including the use, copy, modification, preparation of derivative
|
25
|
+
work, reproduction, and distribution of Software (as defined below).
|
26
|
+
|
27
|
+
1.4. “Software” means any copyrighted work, including but not limited to
|
28
|
+
software code, authored by Licensor and made available under this License.
|
29
|
+
|
30
|
+
1.5. “Supply Chain” means the sequence of processes involved in the production
|
31
|
+
and/or distribution of a commodity, good, or service offered by the Licensee.
|
32
|
+
|
33
|
+
1.6. “Supply Chain Impacted Party” or “Supply Chain Impacted Parties” means any
|
34
|
+
person(s) directly impacted by any of Licensee’s Supply Chain, including the
|
35
|
+
practices of all persons or entities within the Supply Chain prior to a good or
|
36
|
+
service reaching the Licensee.
|
37
|
+
|
38
|
+
1.7. “Duty of Care” is defined by its use in tort law, delict law, and/or
|
39
|
+
similar bodies of law closely related to tort and/or delict law, including
|
40
|
+
without limitation, a requirement to act with the watchfulness, attention,
|
41
|
+
caution, and prudence that a reasonable person in the same or similar
|
42
|
+
circumstances would use towards any Supply Chain Impacted Party.
|
43
|
+
|
44
|
+
1.8. “Worker” is defined to include any and all permanent, temporary, and agency
|
45
|
+
workers, as well as piece-rate, salaried, hourly paid, legal young (minors),
|
46
|
+
part-time, night, and migrant workers.
|
47
|
+
|
48
|
+
2. INTELLECTUAL PROPERTY GRANTS:
|
49
|
+
|
50
|
+
This section identifies intellectual property rights granted to a Licensee.
|
51
|
+
|
52
|
+
2.1. Grant of Copyright License: Subject to the terms and conditions of this
|
53
|
+
License, Licensor hereby grants to Licensee a worldwide, non-exclusive,
|
54
|
+
no-charge, royalty-free copyright license to use, copy, modify, prepare
|
55
|
+
derivative work, reproduce, or distribute the Software, Licensor authored
|
56
|
+
modified software, or other work derived from the Software.
|
57
|
+
|
58
|
+
2.2. Grant of Patent License: Subject to the terms and conditions of this
|
59
|
+
License, Licensor hereby grants Licensee a worldwide, non-exclusive, no-charge,
|
60
|
+
royalty-free patent license to make, have made, use, offer to sell, sell,
|
61
|
+
import, and otherwise transfer Software.
|
62
|
+
|
63
|
+
3. ETHICAL STANDARDS:
|
64
|
+
|
65
|
+
This section lists conditions the Licensee must comply with in order to have
|
66
|
+
rights under this License.
|
67
|
+
|
68
|
+
The rights granted to the Licensee by this License are expressly made subject to
|
69
|
+
the Licensee’s ongoing compliance with the following conditions:
|
70
|
+
|
71
|
+
* 3.1. The Licensee SHALL NOT, whether directly or indirectly, through agents
|
72
|
+
or assigns:
|
73
|
+
|
74
|
+
* 3.1.1. Infringe upon any person’s right to life or security of person,
|
75
|
+
engage in extrajudicial killings, or commit murder, without lawful cause
|
76
|
+
(See Article 3, United Nations Universal Declaration of Human Rights;
|
77
|
+
Article 6, International Covenant on Civil and Political Rights)
|
78
|
+
|
79
|
+
* 3.1.2. Hold any person in slavery, servitude, or forced labor (See Article
|
80
|
+
4, United Nations Universal Declaration of Human Rights; Article 8,
|
81
|
+
International Covenant on Civil and Political Rights);
|
82
|
+
|
83
|
+
* 3.1.3. Contribute to the institution of slavery, slave trading, forced
|
84
|
+
labor, or unlawful child labor (See Article 4, United Nations Universal
|
85
|
+
Declaration of Human Rights; Article 8, International Covenant on Civil and
|
86
|
+
Political Rights);
|
87
|
+
|
88
|
+
* 3.1.4. Torture or subject any person to cruel, inhumane, or degrading
|
89
|
+
treatment or punishment (See Article 5, United Nations Universal
|
90
|
+
Declaration of Human Rights; Article 7, International Covenant on Civil and
|
91
|
+
Political Rights);
|
92
|
+
|
93
|
+
* 3.1.5. Discriminate on the basis of sex, gender, sexual orientation, race,
|
94
|
+
ethnicity, nationality, religion, caste, age, medical disability or
|
95
|
+
impairment, and/or any other like circumstances (See Article 7, United
|
96
|
+
Nations Universal Declaration of Human Rights; Article 2, International
|
97
|
+
Covenant on Economic, Social and Cultural Rights; Article 26, International
|
98
|
+
Covenant on Civil and Political Rights);
|
99
|
+
|
100
|
+
* 3.1.6. Prevent any person from exercising his/her/their right to seek an
|
101
|
+
effective remedy by a competent court or national tribunal (including
|
102
|
+
domestic judicial systems, international courts, arbitration bodies, and
|
103
|
+
other adjudicating bodies) for actions violating the fundamental rights
|
104
|
+
granted to him/her/them by applicable constitutions, applicable laws, or by
|
105
|
+
this License (See Article 8, United Nations Universal Declaration of Human
|
106
|
+
Rights; Articles 9 and 14, International Covenant on Civil and Political
|
107
|
+
Rights);
|
108
|
+
|
109
|
+
* 3.1.7. Subject any person to arbitrary arrest, detention, or exile (See
|
110
|
+
Article 9, United Nations Universal Declaration of Human Rights; Article 9,
|
111
|
+
International Covenant on Civil and Political Rights);
|
112
|
+
|
113
|
+
* 3.1.8. Subject any person to arbitrary interference with a person’s
|
114
|
+
privacy, family, home, or correspondence without the express written
|
115
|
+
consent of the person (See Article 12, United Nations Universal Declaration
|
116
|
+
of Human Rights; Article 17, International Covenant on Civil and Political
|
117
|
+
Rights);
|
118
|
+
|
119
|
+
* 3.1.9. Arbitrarily deprive any person of his/her/their property (See
|
120
|
+
Article 17, United Nations Universal Declaration of Human Rights);
|
121
|
+
|
122
|
+
* 3.1.10. Forcibly remove indigenous peoples from their lands or territories
|
123
|
+
or take any action with the aim or effect of dispossessing indigenous
|
124
|
+
peoples from their lands, territories, or resources, including without
|
125
|
+
limitation the intellectual property or traditional knowledge of indigenous
|
126
|
+
peoples, without the free, prior, and informed consent of indigenous
|
127
|
+
peoples concerned (See Articles 8 and 10, United Nations Declaration on the
|
128
|
+
Rights of Indigenous Peoples);
|
129
|
+
|
130
|
+
* 3.1.11. Ecocide: Commit ecocide:
|
131
|
+
|
132
|
+
* 3.1.11.1. For the purpose of this section, “ecocide” means unlawful or
|
133
|
+
wanton acts committed with knowledge that there is a substantial
|
134
|
+
likelihood of severe and either widespread or long-term damage to the
|
135
|
+
environment being caused by those acts;
|
136
|
+
|
137
|
+
* 3.1.11.2. For the purpose of further defining ecocide and the terms
|
138
|
+
contained in the previous paragraph:
|
139
|
+
|
140
|
+
* 3.1.11.2.1. “Wanton” means with reckless disregard for damage which
|
141
|
+
would be clearly excessive in relation to the social and economic
|
142
|
+
benefits anticipated;
|
143
|
+
|
144
|
+
* 3.1.11.2.2. “Severe” means damage which involves very serious adverse
|
145
|
+
changes, disruption, or harm to any element of the environment,
|
146
|
+
including grave impacts on human life or natural, cultural, or
|
147
|
+
economic resources;
|
148
|
+
|
149
|
+
* 3.1.11.2.3. “Widespread” means damage which extends beyond a limited
|
150
|
+
geographic area, crosses state boundaries, or is suffered by an entire
|
151
|
+
ecosystem or species or a large number of human beings;
|
152
|
+
|
153
|
+
* 3.1.11.2.4. “Long-term” means damage which is irreversible or which
|
154
|
+
cannot be redressed through natural recovery within a reasonable
|
155
|
+
period of time; and
|
156
|
+
|
157
|
+
* 3.1.11.2.5. “Environment” means the earth, its biosphere, cryosphere,
|
158
|
+
lithosphere, hydrosphere, and atmosphere, as well as outer space
|
159
|
+
|
160
|
+
(See Section II, Independent Expert Panel for the Legal Definition of
|
161
|
+
Ecocide, Stop Ecocide Foundation and the Promise Institute for Human
|
162
|
+
Rights at UCLA School of Law, June 2021);
|
163
|
+
|
164
|
+
* 3.1.12. Taliban: Be an individual or entity that:
|
165
|
+
|
166
|
+
* 3.1.12.1. engages in any commercial transactions with the Taliban; or
|
167
|
+
|
168
|
+
* 3.1.12.2. is a representative, agent, affiliate, successor, attorney, or
|
169
|
+
assign of the Taliban;
|
170
|
+
|
171
|
+
* 3.1.13. Myanmar: Be an individual or entity that:
|
172
|
+
|
173
|
+
* 3.1.13.1. engages in any commercial transactions with the
|
174
|
+
Myanmar/Burmese military junta; or
|
175
|
+
|
176
|
+
* 3.1.13.2. is a representative, agent, affiliate, successor, attorney, or
|
177
|
+
assign of the Myanmar/Burmese government;
|
178
|
+
|
179
|
+
* 3.1.14. Xinjiang Uygur Autonomous Region: Be an individual or entity, or a
|
180
|
+
representative, agent, affiliate, successor, attorney, or assign of any
|
181
|
+
individual or entity, that does business in, purchases goods from, or
|
182
|
+
otherwise benefits from goods produced in the Xinjiang Uygur Autonomous
|
183
|
+
Region of China;
|
184
|
+
|
185
|
+
* 3.1.15. Media: Be an individual or entity, or a representative, agent,
|
186
|
+
affiliate, successor, attorney, or assign of an individual or entity, that
|
187
|
+
broadcasts messages promoting killing, torture, or other forms of extreme
|
188
|
+
violence;
|
189
|
+
|
190
|
+
* 3.1.16. Interfere with Workers' free exercise of the right to organize and
|
191
|
+
associate (See Article 20, United Nations Universal Declaration of Human
|
192
|
+
Rights; C087 - Freedom of Association and Protection of the Right to
|
193
|
+
Organise Convention, 1948 (No. 87), International Labour Organization;
|
194
|
+
Article 8, International Covenant on Economic, Social and Cultural Rights);
|
195
|
+
and
|
196
|
+
|
197
|
+
* 3.1.17. Harm the environment in a manner inconsistent with local, state,
|
198
|
+
national, or international law.
|
199
|
+
|
200
|
+
* 3.2. The Licensee SHALL:
|
201
|
+
|
202
|
+
* 3.2.1. Provide equal pay for equal work where the performance of such work
|
203
|
+
requires equal skill, effort, and responsibility, and which are performed
|
204
|
+
under similar working conditions, except where such payment is made
|
205
|
+
pursuant to:
|
206
|
+
|
207
|
+
* 3.2.1.1. A seniority system;
|
208
|
+
|
209
|
+
* 3.2.1.2. A merit system;
|
210
|
+
|
211
|
+
* 3.2.1.3. A system which measures earnings by quantity or quality of
|
212
|
+
production; or
|
213
|
+
|
214
|
+
* 3.2.1.4. A differential based on any other factor other than sex, gender,
|
215
|
+
sexual orientation, race, ethnicity, nationality, religion, caste, age,
|
216
|
+
medical disability or impairment, and/or any other like circumstances
|
217
|
+
(See 29 U.S.C.A. § 206(d)(1); Article 23, United Nations Universal
|
218
|
+
Declaration of Human Rights; Article 7, International Covenant on
|
219
|
+
Economic, Social and Cultural Rights; Article 26, International Covenant
|
220
|
+
on Civil and Political Rights); and
|
221
|
+
|
222
|
+
* 3.2.2. Allow for reasonable limitation of working hours and periodic
|
223
|
+
holidays with pay (See Article 24, United Nations Universal Declaration of
|
224
|
+
Human Rights; Article 7, International Covenant on Economic, Social and
|
225
|
+
Cultural Rights).
|
226
|
+
|
227
|
+
4. SUPPLY CHAIN IMPACTED PARTIES:
|
228
|
+
|
229
|
+
This section identifies additional individuals or entities that a Licensee could
|
230
|
+
harm as a result of violating the Ethical Standards section, the condition that
|
231
|
+
the Licensee must voluntarily accept a Duty of Care for those individuals or
|
232
|
+
entities, and the right to a private right of action that those individuals or
|
233
|
+
entities possess as a result of violations of the Ethical Standards section.
|
234
|
+
|
235
|
+
4.1. In addition to the above Ethical Standards, Licensee voluntarily accepts a
|
236
|
+
Duty of Care for Supply Chain Impacted Parties of this License, including
|
237
|
+
individuals and communities impacted by violations of the Ethical Standards. The
|
238
|
+
Duty of Care is breached when a provision within the Ethical Standards section
|
239
|
+
is violated by a Licensee, one of its successors or assigns, or by an individual
|
240
|
+
or entity that exists within the Supply Chain prior to a good or service
|
241
|
+
reaching the Licensee.
|
242
|
+
|
243
|
+
4.2. Breaches of the Duty of Care, as stated within this section, shall create a
|
244
|
+
private right of action, allowing any Supply Chain Impacted Party harmed by the
|
245
|
+
Licensee to take legal action against the Licensee in accordance with applicable
|
246
|
+
negligence laws, whether they be in tort law, delict law, and/or similar bodies
|
247
|
+
of law closely related to tort and/or delict law, regardless if Licensee is
|
248
|
+
directly responsible for the harms suffered by a Supply Chain Impacted Party.
|
249
|
+
Nothing in this section shall be interpreted to include acts committed by
|
250
|
+
individuals outside of the scope of his/her/their employment.
|
251
|
+
|
252
|
+
5. NOTICE: This section explains when a Licensee must notify others of the
|
253
|
+
License.
|
254
|
+
|
255
|
+
5.1. Distribution of Notice: Licensee must ensure that everyone who receives a
|
256
|
+
copy of or uses any part of Software from Licensee, with or without changes,
|
257
|
+
also receives the License and the copyright notice included with Software (and
|
258
|
+
if included by the Licensor, patent, trademark, and attribution notice).
|
259
|
+
Licensee must ensure that License is prominently displayed so that any
|
260
|
+
individual or entity seeking to download, copy, use, or otherwise receive any
|
261
|
+
part of Software from Licensee is notified of this License and its terms and
|
262
|
+
conditions. Licensee must cause any modified versions of the Software to carry
|
263
|
+
prominent notices stating that Licensee changed the Software.
|
264
|
+
|
265
|
+
5.2. Modified Software: Licensee is free to create modifications of the Software
|
266
|
+
and distribute only the modified portion created by Licensee, however, any
|
267
|
+
derivative work stemming from the Software or its code must be distributed
|
268
|
+
pursuant to this License, including this Notice provision.
|
269
|
+
|
270
|
+
5.3. Recipients as Licensees: Any individual or entity that uses, copies,
|
271
|
+
modifies, reproduces, distributes, or prepares derivative work based upon the
|
272
|
+
Software, all or part of the Software’s code, or a derivative work developed by
|
273
|
+
using the Software, including a portion of its code, is a Licensee as defined
|
274
|
+
above and is subject to the terms and conditions of this License.
|
275
|
+
|
276
|
+
6. REPRESENTATIONS AND WARRANTIES:
|
277
|
+
|
278
|
+
6.1. Disclaimer of Warranty: TO THE FULL EXTENT ALLOWED BY LAW, THIS SOFTWARE
|
279
|
+
COMES “AS IS,” WITHOUT ANY WARRANTY, EXPRESS OR IMPLIED, AND LICENSOR SHALL NOT
|
280
|
+
BE LIABLE TO ANY PERSON OR ENTITY FOR ANY DAMAGES OR OTHER LIABILITY ARISING
|
281
|
+
FROM, OUT OF, OR IN CONNECTION WITH THE SOFTWARE OR THIS LICENSE, UNDER ANY
|
282
|
+
LEGAL CLAIM.
|
283
|
+
|
284
|
+
6.2. Limitation of Liability: LICENSEE SHALL HOLD LICENSOR HARMLESS AGAINST ANY
|
285
|
+
AND ALL CLAIMS, DEBTS, DUES, LIABILITIES, LIENS, CAUSES OF ACTION, DEMANDS,
|
286
|
+
OBLIGATIONS, DISPUTES, DAMAGES, LOSSES, EXPENSES, ATTORNEYS' FEES, COSTS,
|
287
|
+
LIABILITIES, AND ALL OTHER CLAIMS OF EVERY KIND AND NATURE WHATSOEVER, WHETHER
|
288
|
+
KNOWN OR UNKNOWN, ANTICIPATED OR UNANTICIPATED, FORESEEN OR UNFORESEEN, ACCRUED
|
289
|
+
OR UNACCRUED, DISCLOSED OR UNDISCLOSED, ARISING OUT OF OR RELATING TO LICENSEE’S
|
290
|
+
USE OF THE SOFTWARE. NOTHING IN THIS SECTION SHOULD BE INTERPRETED TO REQUIRE
|
291
|
+
LICENSEE TO INDEMNIFY LICENSOR, NOR REQUIRE LICENSOR TO INDEMNIFY LICENSEE.
|
292
|
+
|
293
|
+
7. TERMINATION
|
294
|
+
|
295
|
+
7.1. Violations of Ethical Standards or Breaching Duty of Care: If Licensee
|
296
|
+
violates the Ethical Standards section or Licensee, or any other person or
|
297
|
+
entity within the Supply Chain prior to a good or service reaching the Licensee,
|
298
|
+
breaches its Duty of Care to Supply Chain Impacted Parties, Licensee must remedy
|
299
|
+
the violation or harm caused by Licensee within 30 days of being notified of the
|
300
|
+
violation or harm. If Licensee fails to remedy the violation or harm within 30
|
301
|
+
days, all rights in the Software granted to Licensee by License will be null and
|
302
|
+
void as between Licensor and Licensee.
|
303
|
+
|
304
|
+
7.2. Failure of Notice: If any person or entity notifies Licensee in writing
|
305
|
+
that Licensee has not complied with the Notice section of this License, Licensee
|
306
|
+
can keep this License by taking all practical steps to comply within 30 days
|
307
|
+
after the notice of noncompliance. If Licensee does not do so, Licensee’s
|
308
|
+
License (and all rights licensed hereunder) will end immediately.
|
309
|
+
|
310
|
+
7.3. Judicial Findings: In the event Licensee is found by a civil, criminal,
|
311
|
+
administrative, or other court of competent jurisdiction, or some other
|
312
|
+
adjudicating body with legal authority, to have committed actions which are in
|
313
|
+
violation of the Ethical Standards or Supply Chain Impacted Party sections of
|
314
|
+
this License, all rights granted to Licensee by this License will terminate
|
315
|
+
immediately.
|
316
|
+
|
317
|
+
7.4. Patent Litigation: If Licensee institutes patent litigation against any
|
318
|
+
entity (including a cross-claim or counterclaim in a suit) alleging that the
|
319
|
+
Software, all or part of the Software’s code, or a derivative work developed
|
320
|
+
using the Software, including a portion of its code, constitutes direct or
|
321
|
+
contributory patent infringement, then any patent license, along with all other
|
322
|
+
rights, granted to Licensee under this License will terminate as of the date
|
323
|
+
such litigation is filed.
|
324
|
+
|
325
|
+
7.5. Additional Remedies: Termination of the License by failing to remedy harms
|
326
|
+
in no way prevents Licensor or Supply Chain Impacted Party from seeking
|
327
|
+
appropriate remedies at law or in equity.
|
328
|
+
|
329
|
+
8. MISCELLANEOUS:
|
330
|
+
|
331
|
+
8.1. Conditions: Sections 3, 4.1, 5.1, 5.2, 7.1, 7.2, 7.3, and 7.4 are
|
332
|
+
conditions of the rights granted to Licensee in the License.
|
333
|
+
|
334
|
+
8.2. Equitable Relief: Licensor and any Supply Chain Impacted Party shall be
|
335
|
+
entitled to equitable relief, including injunctive relief or specific
|
336
|
+
performance of the terms hereof, in addition to any other remedy to which they
|
337
|
+
are entitled at law or in equity.
|
338
|
+
|
339
|
+
8.3. Copyleft: Modified software, source code, or other derivative work must be
|
340
|
+
licensed, in its entirety, under the exact same conditions as this License.
|
341
|
+
|
342
|
+
8.4. Severability: If any term or provision of this License is determined to be
|
343
|
+
invalid, illegal, or unenforceable by a court of competent jurisdiction, any
|
344
|
+
such determination of invalidity, illegality, or unenforceability shall not
|
345
|
+
affect any other term or provision of this License or invalidate or render
|
346
|
+
unenforceable such term or provision in any other jurisdiction. If the
|
347
|
+
determination of invalidity, illegality, or unenforceability by a court of
|
348
|
+
competent jurisdiction pertains to the terms or provisions contained in the
|
349
|
+
Ethical Standards section of this License, all rights in the Software granted to
|
350
|
+
Licensee shall be deemed null and void as between Licensor and Licensee.
|
351
|
+
|
352
|
+
8.5. Section Titles: Section titles are solely written for organizational
|
353
|
+
purposes and should not be used to interpret the language within each section.
|
354
|
+
|
355
|
+
8.6. Citations: Citations are solely written to provide context for the source
|
356
|
+
of the provisions in the Ethical Standards.
|
357
|
+
|
358
|
+
8.7. Section Summaries: Some sections have a brief italicized description which
|
359
|
+
is provided for the sole purpose of briefly describing the section and should
|
360
|
+
not be used to interpret the terms of the License.
|
361
|
+
|
362
|
+
8.8. Entire License: This is the entire License between the Licensor and
|
363
|
+
Licensee with respect to the claims released herein and that the consideration
|
364
|
+
stated herein is the only consideration or compensation to be paid or exchanged
|
365
|
+
between them for this License. This License cannot be modified or amended except
|
366
|
+
in a writing signed by Licensor and Licensee.
|
367
|
+
|
368
|
+
8.9. Successors and Assigns: This License shall be binding upon and inure to the
|
369
|
+
benefit of the Licensor’s and Licensee’s respective heirs, successors, and
|
370
|
+
assigns.
|
data/mkbrut/README.md
ADDED
@@ -0,0 +1,145 @@
|
|
1
|
+
# mkbrut - Create a new Brut App
|
2
|
+
|
3
|
+
`mkbrut` is how you go from zero to having a Brut app where you can start working.
|
4
|
+
|
5
|
+
## Installation
|
6
|
+
|
7
|
+
There are two ways to install `mkbrut`: Docker (recommended) and RubyGems.
|
8
|
+
|
9
|
+
### Docker (recommended)
|
10
|
+
|
11
|
+
1. Install Docker
|
12
|
+
2. Use `docker` to run `mkbrut`:
|
13
|
+
|
14
|
+
```
|
15
|
+
docker run --pull always \
|
16
|
+
-v "$PWD":"$PWD" \
|
17
|
+
-w "$PWD"
|
18
|
+
-it \
|
19
|
+
thirdtank/mkbrut \
|
20
|
+
mkbrut -h
|
21
|
+
```
|
22
|
+
|
23
|
+
[Why is this recommended?](#why-is-docker-recommended)
|
24
|
+
|
25
|
+
### RubyGems
|
26
|
+
|
27
|
+
1. Ensure you have Ruby 3.4 installed
|
28
|
+
2. `gem install mkbrut`
|
29
|
+
3. `mkbrut -h`
|
30
|
+
|
31
|
+
## Usage
|
32
|
+
|
33
|
+
```
|
34
|
+
docker run --pull always \
|
35
|
+
-v "$PWD":"$PWD" \
|
36
|
+
-w "$PWD"
|
37
|
+
-it \
|
38
|
+
thirdtank/mkbrut \
|
39
|
+
mkbrut my-new-app
|
40
|
+
```
|
41
|
+
|
42
|
+
(or, if using RubyGems):
|
43
|
+
|
44
|
+
```
|
45
|
+
mkbrut my-new-app
|
46
|
+
```
|
47
|
+
|
48
|
+
This will create a new Brut app, including a development environment.
|
49
|
+
|
50
|
+
It will output instructions to start the dev environment and start the app:
|
51
|
+
|
52
|
+
1. Ensure Docker is installed
|
53
|
+
2. `dx/build` - build image where app and tests etc will run.
|
54
|
+
3. `dx/start` - start up container use said image + other containers for e.g Postgres
|
55
|
+
4. In a new terminal, `dx/exec bash`
|
56
|
+
5. You are now "logged into" the container where you can run the app. Note that you
|
57
|
+
can use an editor on your computer to edit the code - you just need to run all
|
58
|
+
commands inside the container"
|
59
|
+
6. `bin/setup`
|
60
|
+
7. `bin/dev`
|
61
|
+
8. Open `http://localhost:6502`:
|
62
|
+
|
63
|
+

|
64
|
+
|
65
|
+
*Note* that you can run the commands from your computer with `dx/exec` more directly if you like:
|
66
|
+
|
67
|
+
* `dx/exec bin/setup`
|
68
|
+
* `dx/exec bin/dev`
|
69
|
+
* etc.
|
70
|
+
|
71
|
+
Read more at [brutrb.com](https://brutrb.com).
|
72
|
+
|
73
|
+
The app will have some demo features to show you around the framework. To get a bare bones new app, use `--no-demo`:
|
74
|
+
|
75
|
+
```
|
76
|
+
docker run -v "$PWD":"$PWD" -w "$PWD" -it thirdtank/mkbrut mkbrut my-new-app --no-demo
|
77
|
+
```
|
78
|
+
|
79
|
+
(or, if using RubyGems):
|
80
|
+
|
81
|
+
```
|
82
|
+
mkbrut my-new-app --no-demo
|
83
|
+
```
|
84
|
+
|
85
|
+
You can also customize some aspects of your app once start to have an opinion about
|
86
|
+
it:
|
87
|
+
|
88
|
+
|
89
|
+
```
|
90
|
+
docker run -v "$PWD":"$PWD" -w "$PWD" -it thirdtank/mkbrut mkbrut \
|
91
|
+
--app-id=new-app \
|
92
|
+
--organization=cyberdyne \
|
93
|
+
--prefix=ap \
|
94
|
+
my-new-app
|
95
|
+
```
|
96
|
+
|
97
|
+
(or, if using RubyGems):
|
98
|
+
|
99
|
+
```
|
100
|
+
mkbrut \
|
101
|
+
--app-id=new-app \
|
102
|
+
--organization=cyberdyne \
|
103
|
+
--prefix=ap \
|
104
|
+
my-new-app
|
105
|
+
```
|
106
|
+
|
107
|
+
* `--app-id` The identifier for your app, suitable for use as a hostname or other internet-safe identifier.
|
108
|
+
* `--organization` This is your organization name you might use on GitHub, DockerHub, or WhateverHub.
|
109
|
+
* `--prefix` The two-character prefix for all external IDs of your database tables that opt into external IDs as well as any autonomous custom elements you might make
|
110
|
+
|
111
|
+
### Why is Docker Recommended?
|
112
|
+
|
113
|
+
The [Docker image](https://hub.docker.com/repository/docker/thirdtank/mkbrut/general)
|
114
|
+
is entirely self-contained and is the most guaranteed to work. Plus, it avoids you
|
115
|
+
having to figure out how to install RUby 3.4 on your computer.
|
116
|
+
|
117
|
+
It *does* require a very cumbersom command-line invocation (explained below), but you
|
118
|
+
are likely not creating lots of Brut apps every day (and, if you were, `alias` exists).
|
119
|
+
|
120
|
+
The command-line invocation is cumbersome, but here is why everything is the way it
|
121
|
+
is:
|
122
|
+
|
123
|
+
* `docker run ` - Tells Docker to use an image to start a container to run a
|
124
|
+
command
|
125
|
+
* `--pull always` - Pulls a fresh image from DockerHub to ensure you have the
|
126
|
+
actual latest version.
|
127
|
+
* `-v "$PWD":"$PWD"` - Makes your current directory available inside the Docker container as the same path, so that files written inside the container show up on your computer.
|
128
|
+
* `-w "$PWD"` - Run all commands inside your current directory
|
129
|
+
* `-it` - Create an interactive TTY, which causes `mkbrut` to behave "normally"
|
130
|
+
* `thirdtank/mkbrut` - name of the image to run. This name implies, and is identical to, `thirdtank/mkbrut:latest`, keeping in mind that `latest` is only the actual latest if you used `--pull always`. Docker gonna Docker.
|
131
|
+
* `mkbrut -h` - command to run inside the container
|
132
|
+
|
133
|
+
## Developing
|
134
|
+
|
135
|
+
`mkbrut` has a Docker-based dev environment:
|
136
|
+
|
137
|
+
1. Install Docker
|
138
|
+
2. `dx/build`
|
139
|
+
3. `dx/start`
|
140
|
+
4. Open a new terminal:
|
141
|
+
1. `dx/exec bash`
|
142
|
+
2. You are now inside a running Docker container:
|
143
|
+
1. `bin/setup`
|
144
|
+
2. `bundle exec exe/mkbrut -h`
|
145
|
+
|
data/mkbrut/Rakefile
ADDED
data/mkbrut/bin/build
ADDED
@@ -0,0 +1,36 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
|
3
|
+
require "optparse"
|
4
|
+
require "pathname"
|
5
|
+
require "fileutils"
|
6
|
+
require_relative "../../bin/bin_kit"
|
7
|
+
|
8
|
+
def main
|
9
|
+
|
10
|
+
log "Building mkbrut gem"
|
11
|
+
system!("bin/rake build")
|
12
|
+
|
13
|
+
end
|
14
|
+
|
15
|
+
OptionParser.new do |opts|
|
16
|
+
opts.banner = "Usage: build [options]\n\n Builds deployable artifacts\n\nOPTIONS"
|
17
|
+
|
18
|
+
opts.on("-h", "--help", "Display this help message") do
|
19
|
+
puts opts
|
20
|
+
exit
|
21
|
+
end
|
22
|
+
end.parse!
|
23
|
+
|
24
|
+
def require_clean_repo!
|
25
|
+
out, err = capture!("git status --porcelain")
|
26
|
+
if out.to_s.strip != ""
|
27
|
+
log out
|
28
|
+
log err
|
29
|
+
log "Your git repository is not clean. Please commit or stash your changes before running this script."
|
30
|
+
exit 1
|
31
|
+
end
|
32
|
+
end
|
33
|
+
|
34
|
+
require_clean_repo!
|
35
|
+
main
|
36
|
+
|
data/mkbrut/bin/ci
ADDED
@@ -0,0 +1,19 @@
|
|
1
|
+
#!/usr/bin/env bash
|
2
|
+
|
3
|
+
set -e
|
4
|
+
SCRIPT_DIR=$( cd -- "$( dirname -- "${0}" )" > /dev/null 2>&1 && pwd )
|
5
|
+
ROOT_DIR=$(realpath "$SCRIPT_DIR/..")
|
6
|
+
|
7
|
+
usage() {
|
8
|
+
echo "Usage: $0"
|
9
|
+
echo
|
10
|
+
echo " No-op to comply with workspace protocol"
|
11
|
+
echo
|
12
|
+
}
|
13
|
+
|
14
|
+
for arg in "$@"; do
|
15
|
+
if [ "${arg}" = "-h" ] || [ "${arg}" = "--help" ] || [ "${arg}" = "help" ]; then
|
16
|
+
usage
|
17
|
+
exit 0
|
18
|
+
fi
|
19
|
+
done
|
data/mkbrut/bin/docs
ADDED
@@ -0,0 +1,19 @@
|
|
1
|
+
#!/usr/bin/env bash
|
2
|
+
|
3
|
+
set -e
|
4
|
+
SCRIPT_DIR=$( cd -- "$( dirname -- "${0}" )" > /dev/null 2>&1 && pwd )
|
5
|
+
ROOT_DIR=$(realpath "$SCRIPT_DIR/..")
|
6
|
+
|
7
|
+
usage() {
|
8
|
+
echo "Usage: $0"
|
9
|
+
echo
|
10
|
+
echo " No-op to comply with workspace protocol"
|
11
|
+
echo
|
12
|
+
}
|
13
|
+
|
14
|
+
for arg in "$@"; do
|
15
|
+
if [ "${arg}" = "-h" ] || [ "${arg}" = "--help" ] || [ "${arg}" = "help" ]; then
|
16
|
+
usage
|
17
|
+
exit 0
|
18
|
+
fi
|
19
|
+
done
|