rubysmith 0.1.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.
Files changed (64) hide show
  1. checksums.yaml +7 -0
  2. checksums.yaml.gz.sig +0 -0
  3. data.tar.gz.sig +0 -0
  4. data/LICENSE.adoc +162 -0
  5. data/README.adoc +207 -0
  6. data/bin/rubysmith +11 -0
  7. data/lib/rubysmith.rb +30 -0
  8. data/lib/rubysmith/builder.rb +145 -0
  9. data/lib/rubysmith/builders/bundler.rb +34 -0
  10. data/lib/rubysmith/builders/console.rb +29 -0
  11. data/lib/rubysmith/builders/core.rb +29 -0
  12. data/lib/rubysmith/builders/documentation.rb +60 -0
  13. data/lib/rubysmith/builders/git/commit.rb +45 -0
  14. data/lib/rubysmith/builders/git/setup.rb +29 -0
  15. data/lib/rubysmith/builders/guard.rb +28 -0
  16. data/lib/rubysmith/builders/pragma.rb +37 -0
  17. data/lib/rubysmith/builders/rake.rb +32 -0
  18. data/lib/rubysmith/builders/reek.rb +27 -0
  19. data/lib/rubysmith/builders/rspec/context.rb +31 -0
  20. data/lib/rubysmith/builders/rspec/helper.rb +33 -0
  21. data/lib/rubysmith/builders/rubocop.rb +43 -0
  22. data/lib/rubysmith/builders/setup.rb +27 -0
  23. data/lib/rubysmith/cli/configuration.rb +29 -0
  24. data/lib/rubysmith/cli/defaults.yml +34 -0
  25. data/lib/rubysmith/cli/parsers/assembler.rb +39 -0
  26. data/lib/rubysmith/cli/parsers/build.rb +101 -0
  27. data/lib/rubysmith/cli/parsers/core.rb +59 -0
  28. data/lib/rubysmith/cli/processors/build.rb +44 -0
  29. data/lib/rubysmith/cli/processors/config.rb +35 -0
  30. data/lib/rubysmith/cli/shell.rb +61 -0
  31. data/lib/rubysmith/identity.rb +11 -0
  32. data/lib/rubysmith/pathway.rb +37 -0
  33. data/lib/rubysmith/realm.rb +69 -0
  34. data/lib/rubysmith/renderers/erb.rb +29 -0
  35. data/lib/rubysmith/renderers/namespace.rb +47 -0
  36. data/lib/rubysmith/templates/%project_name%/.reek.yml.erb +3 -0
  37. data/lib/rubysmith/templates/%project_name%/.rubocop.yml.erb +7 -0
  38. data/lib/rubysmith/templates/%project_name%/.ruby-version.erb +1 -0
  39. data/lib/rubysmith/templates/%project_name%/CHANGES.adoc.erb +5 -0
  40. data/lib/rubysmith/templates/%project_name%/CHANGES.md.erb +5 -0
  41. data/lib/rubysmith/templates/%project_name%/CODE_OF_CONDUCT.adoc.erb +114 -0
  42. data/lib/rubysmith/templates/%project_name%/CODE_OF_CONDUCT.md.erb +115 -0
  43. data/lib/rubysmith/templates/%project_name%/CONTRIBUTING.adoc.erb +22 -0
  44. data/lib/rubysmith/templates/%project_name%/CONTRIBUTING.md.erb +22 -0
  45. data/lib/rubysmith/templates/%project_name%/Gemfile.erb +33 -0
  46. data/lib/rubysmith/templates/%project_name%/Guardfile.erb +5 -0
  47. data/lib/rubysmith/templates/%project_name%/LICENSE-apache.adoc.erb +162 -0
  48. data/lib/rubysmith/templates/%project_name%/LICENSE-apache.md.erb +162 -0
  49. data/lib/rubysmith/templates/%project_name%/LICENSE-mit.adoc.erb +20 -0
  50. data/lib/rubysmith/templates/%project_name%/LICENSE-mit.md.erb +20 -0
  51. data/lib/rubysmith/templates/%project_name%/README.adoc.erb +78 -0
  52. data/lib/rubysmith/templates/%project_name%/README.md.erb +66 -0
  53. data/lib/rubysmith/templates/%project_name%/Rakefile.erb +33 -0
  54. data/lib/rubysmith/templates/%project_name%/bin/console.erb +11 -0
  55. data/lib/rubysmith/templates/%project_name%/bin/guard.erb +6 -0
  56. data/lib/rubysmith/templates/%project_name%/bin/rubocop.erb +7 -0
  57. data/lib/rubysmith/templates/%project_name%/bin/setup.erb +8 -0
  58. data/lib/rubysmith/templates/%project_name%/lib/%project_name%.rb.erb +1 -0
  59. data/lib/rubysmith/templates/%project_name%/lib/%project_name%/identity.rb.erb +8 -0
  60. data/lib/rubysmith/templates/%project_name%/spec/spec_helper.rb.erb +34 -0
  61. data/lib/rubysmith/templates/%project_name%/spec/support/shared_contexts/temp_dir.rb.erb +9 -0
  62. data/lib/rubysmith/text/inserter.rb +31 -0
  63. metadata +367 -0
  64. metadata.gz.sig +0 -0
@@ -0,0 +1,22 @@
1
+ = Contributing
2
+
3
+ Thanks for taking an interest in this open source project. Your support and involvement is greatly
4
+ appreciated. The following details what you need to know in order to contribute.
5
+
6
+ == Code
7
+
8
+ . Read the project link:README.adoc[README] before starting.
9
+ . Fork and clone the `master` branch of this repository locally.
10
+ . Ensure there are no setup, usage, and/or test issues.
11
+ . Add tests for new functionality and ensure they pass.
12
+ . Submit a pull request, follow the instructions provided, and ensure the build passes.
13
+
14
+ == Issues
15
+
16
+ Submit an issue via the GitHub Issues tab (assuming one does not already exist) and follow the
17
+ instructions provided.
18
+
19
+ == Feedback
20
+
21
+ * Expect a response within one to three business days.
22
+ * Changes, alternatives, and/or improvements may be suggested upon review.
@@ -0,0 +1,22 @@
1
+ # Contributing
2
+
3
+ Thanks for taking an interest in this open source project. Your support and involvement is greatly
4
+ appreciated. The following details what you need to know in order to contribute.
5
+
6
+ ## Code
7
+
8
+ 1. Read the project README before starting.
9
+ 1. Fork and clone the `master` branch of this repository locally.
10
+ 1. Ensure there are no local setup, usage, and/or test issues.
11
+ 1. Add tests for new functionality and ensure they pass.
12
+ 1. Submit a pull request, follow the instructions provided, and ensure the build passes.
13
+
14
+ ## Issues
15
+
16
+ - Submit an issue via the GitHub Issues tab (assuming one does not already exist) and follow the
17
+ instructions provided.
18
+
19
+ ## Feedback
20
+
21
+ - Expect a response within one to three business days.
22
+ - Changes, alternatives, and/or improvements may be suggested upon review.
@@ -0,0 +1,33 @@
1
+ source "https://rubygems.org"
2
+
3
+ group :development do
4
+ <% if realm.build_bundler_audit %>
5
+ gem "bundler-audit", "~> 0.7"
6
+ <% end %>
7
+ <% if realm.build_git && realm.build_git_lint %>
8
+ gem "git-lint", "~> 1.0"
9
+ <% end %>
10
+ <% if realm.build_guard %>
11
+ gem "guard-rspec", "~> 4.7"
12
+ <% end %>
13
+ <% if realm.build_pry %>
14
+ gem "pry", "~> 0.13"
15
+ gem "pry-byebug", "~> 3.9"
16
+ <% end %>
17
+ gem "rake", "~> 13.0"
18
+ <% if realm.build_reek %>
19
+ gem "reek", "~> 6.0"
20
+ <% end %>
21
+ <% if realm.build_rspec %>
22
+ gem "rspec", "~> 3.9"
23
+ <% end %>
24
+ <% if realm.build_rubocop %>
25
+ gem "rubocop", "~> 0.92"
26
+ gem "rubocop-performance", "~> 1.8"
27
+ gem "rubocop-rake", "~> 0.5"
28
+ gem "rubocop-rspec", "~> 1.43"
29
+ <% end %>
30
+ <% if realm.build_simple_cov %>
31
+ gem "simplecov", "~> 0.19"
32
+ <% end %>
33
+ end
@@ -0,0 +1,5 @@
1
+ guard :rspec, cmd: "bundle exec rspec --format documentation" do
2
+ watch %r(^spec/.+_spec\.rb$)
3
+ watch(%r(^lib/(.+)\.rb$)) { |m| "spec/lib/#{m[1]}_spec.rb" }
4
+ watch("spec/spec_helper.rb") { "spec" }
5
+ end
@@ -0,0 +1,162 @@
1
+ = Apache License
2
+
3
+ Version 2.0, January 2004
4
+
5
+ http://www.apache.org/licenses
6
+
7
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
8
+
9
+ == 1. Definitions
10
+
11
+ "License" shall mean the terms and conditions for use, reproduction, and distribution as defined by
12
+ Sections 1 through 9 of this document.
13
+
14
+ "Licensor" shall mean the copyright owner or entity authorized by the copyright owner that is
15
+ granting the License.
16
+
17
+ "Legal Entity" shall mean the union of the acting entity and all other entities that control, are
18
+ controlled by, or are under common control with that entity. For the purposes of this definition,
19
+ "control" means (i) the power, direct or indirect, to cause the direction or management of such
20
+ entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
+ outstanding shares, or (iii) beneficial ownership of such entity.
22
+
23
+ "You" (or "Your") shall mean an individual or Legal Entity exercising permissions granted by this
24
+ License.
25
+
26
+ "Source" form shall mean the preferred form for making modifications, including but not limited to
27
+ software source code, documentation source, and configuration files.
28
+
29
+ "Object" form shall mean any form resulting from mechanical transformation or translation of a
30
+ Source form, including but not limited to compiled object code, generated documentation, and
31
+ conversions to other media types.
32
+
33
+ "Work" shall mean the work of authorship, whether in Source or Object form, made available under the
34
+ License, as indicated by a copyright notice that is included in or attached to the work (an example
35
+ is provided in the Appendix below).
36
+
37
+ "Derivative Works" shall mean any work, whether in Source or Object form, that is based on (or
38
+ derived from) the Work and for which the editorial revisions, annotations, elaborations, or other
39
+ modifications represent, as a whole, an original work of authorship. For the purposes of this
40
+ License, Derivative Works shall not include works that remain separable from, or merely link (or
41
+ bind by name) to the interfaces of, the Work and Derivative Works thereof.
42
+
43
+ "Contribution" shall mean any work of authorship, including the original version of the Work and any
44
+ modifications or additions to that Work or Derivative Works thereof, that is intentionally submitted
45
+ to Licensor for inclusion in the Work by the copyright owner or by an individual or Legal Entity
46
+ authorized to submit on behalf of the copyright owner. For the purposes of this definition,
47
+ "submitted" means any form of electronic, verbal, or written communication sent to the Licensor or
48
+ its representatives, including but not limited to communication on electronic mailing lists, source
49
+ code control systems, and issue tracking systems that are managed by, or on behalf of, the Licensor
50
+ for the purpose of discussing and improving the Work, but excluding communication that is
51
+ conspicuously marked or otherwise designated in writing by the copyright owner as "Not a
52
+ Contribution."
53
+
54
+ "Contributor" shall mean Licensor and any individual or Legal Entity on behalf of whom a
55
+ Contribution has been received by Licensor and subsequently incorporated within the Work.
56
+
57
+ == 2. Grant of Copyright License
58
+
59
+ Subject to the terms and conditions of this License, each Contributor hereby grants to You a
60
+ perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to
61
+ reproduce, prepare Derivative Works of, publicly display, publicly perform, sublicense, and
62
+ distribute the Work and such Derivative Works in Source or Object form.
63
+
64
+ == 3. Grant of Patent License
65
+
66
+ Subject to the terms and conditions of this License, each Contributor hereby grants to You a
67
+ perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this
68
+ section) patent license to make, have made, use, offer to sell, sell, import, and otherwise transfer
69
+ the Work, where such license applies only to those patent claims licensable by such Contributor that
70
+ are necessarily infringed by their Contribution(s) alone or by combination of their Contribution(s)
71
+ with the Work to which such Contribution(s) was submitted. If You institute patent litigation
72
+ against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Work or
73
+ a Contribution incorporated within the Work constitutes direct or contributory patent infringement,
74
+ then any patent licenses granted to You under this License for that Work shall terminate as of the
75
+ date such litigation is filed.
76
+
77
+ == 4. Redistribution
78
+
79
+ You may reproduce and distribute copies of the Work or Derivative Works thereof in any medium, with
80
+ or without modifications, and in Source or Object form, provided that You meet the following
81
+ conditions:
82
+
83
+ . You must give any other recipients of the Work or Derivative Works a copy of this License; and
84
+
85
+ . You must cause any modified files to carry prominent notices stating that You changed the files;
86
+ and
87
+
88
+ . You must retain, in the Source form of any Derivative Works that You distribute, all copyright,
89
+ patent, trademark, and attribution notices from the Source form of the Work, excluding those
90
+ notices that do not pertain to any part of the Derivative Works; and
91
+
92
+ . If the Work includes a "NOTICE" text file as part of its distribution, then any Derivative Works
93
+ that You distribute must include a readable copy of the attribution notices contained within such
94
+ NOTICE file, excluding those notices that do not pertain to any part of the Derivative Works, in
95
+ at least one of the following places: within a NOTICE text file distributed as part of the
96
+ Derivative Works; within the Source form or documentation, if provided along with the Derivative
97
+ Works; or, within a display generated by the Derivative Works, if and wherever such third-party
98
+ notices normally appear. The contents of the NOTICE file are for informational purposes only and
99
+ do not modify the License. You may add Your own attribution notices within Derivative Works that
100
+ You distribute, alongside or as an addendum to the NOTICE text from the Work, provided that such
101
+ additional attribution notices cannot be construed as modifying the License.
102
+
103
+ You may add Your own copyright statement to Your modifications and may provide additional or
104
+ different license terms and conditions for use, reproduction, or distribution of Your modifications,
105
+ or for any such Derivative Works as a whole, provided Your use, reproduction, and distribution of
106
+ the Work otherwise complies with the conditions stated in this License.
107
+
108
+ == 5. Submission of Contributions
109
+
110
+ Unless You explicitly state otherwise, any Contribution intentionally submitted for inclusion in the
111
+ Work by You to the Licensor shall be under the terms and conditions of this License, without any
112
+ additional terms or conditions. Notwithstanding the above, nothing herein shall supersede or modify
113
+ the terms of any separate license agreement you may have executed with Licensor regarding such
114
+ Contributions.
115
+
116
+ == 6. Trademarks
117
+
118
+ This License does not grant permission to use the trade names, trademarks, service marks, or product
119
+ names of the Licensor, except as required for reasonable and customary use in describing the origin
120
+ of the Work and reproducing the content of the NOTICE file.
121
+
122
+ == 7. Disclaimer of Warranty
123
+
124
+ Unless required by applicable law or agreed to in writing, Licensor provides the Work (and each
125
+ Contributor provides its Contributions) on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
126
+ KIND, either express or implied, including, without limitation, any warranties or conditions of
127
+ TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are solely
128
+ responsible for determining the appropriateness of using or redistributing the Work and assume any
129
+ risks associated with Your exercise of permissions under this License.
130
+
131
+ == 8. Limitation of Liability
132
+
133
+ In no event and under no legal theory, whether in tort (including negligence), contract, or
134
+ otherwise, unless required by applicable law (such as deliberate and grossly negligent acts) or
135
+ agreed to in writing, shall any Contributor be liable to You for damages, including any direct,
136
+ indirect, special, incidental, or consequential damages of any character arising as a result of this
137
+ License or out of the use or inability to use the Work (including but not limited to damages for
138
+ loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial
139
+ damages or losses), even if such Contributor has been advised of the possibility of such damages.
140
+
141
+ == 9. Accepting Warranty or Additional Liability
142
+
143
+ While redistributing the Work or Derivative Works thereof, You may choose to offer, and charge a fee
144
+ for, acceptance of support, warranty, indemnity, or other liability obligations and/or rights
145
+ consistent with this License. However, in accepting such obligations, You may act only on Your own
146
+ behalf and on Your sole responsibility, not on behalf of any other Contributor, and only if You
147
+ agree to indemnify, defend, and hold each Contributor harmless for any liability incurred by, or
148
+ claims asserted against, such Contributor by reason of your accepting any such warranty or
149
+ additional liability.
150
+
151
+ END OF TERMS AND CONDITIONS
152
+
153
+ Copyright <%= realm.now.strftime "%Y" %> link:<%= realm.author_url %>[<%= realm.author_name %>].
154
+
155
+ Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in
156
+ compliance with the License. You may obtain a link:https://www.apache.org/licenses/LICENSE-2.0[copy]
157
+ of the License.
158
+
159
+ Unless required by applicable law or agreed to in writing, software distributed under the License is
160
+ distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
161
+ implied. See the License for the specific language governing permissions and limitations under the
162
+ License.
@@ -0,0 +1,162 @@
1
+ # Apache License
2
+
3
+ Version 2.0, January 2004
4
+
5
+ http://www.apache.org/licenses
6
+
7
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
8
+
9
+ ## 1. Definitions
10
+
11
+ "License" shall mean the terms and conditions for use, reproduction, and distribution as defined by
12
+ Sections 1 through 9 of this document.
13
+
14
+ "Licensor" shall mean the copyright owner or entity authorized by the copyright owner that is
15
+ granting the License.
16
+
17
+ "Legal Entity" shall mean the union of the acting entity and all other entities that control, are
18
+ controlled by, or are under common control with that entity. For the purposes of this definition,
19
+ "control" means (i) the power, direct or indirect, to cause the direction or management of such
20
+ entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
+ outstanding shares, or (iii) beneficial ownership of such entity.
22
+
23
+ "You" (or "Your") shall mean an individual or Legal Entity exercising permissions granted by this
24
+ License.
25
+
26
+ "Source" form shall mean the preferred form for making modifications, including but not limited to
27
+ software source code, documentation source, and configuration files.
28
+
29
+ "Object" form shall mean any form resulting from mechanical transformation or translation of a
30
+ Source form, including but not limited to compiled object code, generated documentation, and
31
+ conversions to other media types.
32
+
33
+ "Work" shall mean the work of authorship, whether in Source or Object form, made available under the
34
+ License, as indicated by a copyright notice that is included in or attached to the work (an example
35
+ is provided in the Appendix below).
36
+
37
+ "Derivative Works" shall mean any work, whether in Source or Object form, that is based on (or
38
+ derived from) the Work and for which the editorial revisions, annotations, elaborations, or other
39
+ modifications represent, as a whole, an original work of authorship. For the purposes of this
40
+ License, Derivative Works shall not include works that remain separable from, or merely link (or
41
+ bind by name) to the interfaces of, the Work and Derivative Works thereof.
42
+
43
+ "Contribution" shall mean any work of authorship, including the original version of the Work and any
44
+ modifications or additions to that Work or Derivative Works thereof, that is intentionally submitted
45
+ to Licensor for inclusion in the Work by the copyright owner or by an individual or Legal Entity
46
+ authorized to submit on behalf of the copyright owner. For the purposes of this definition,
47
+ "submitted" means any form of electronic, verbal, or written communication sent to the Licensor or
48
+ its representatives, including but not limited to communication on electronic mailing lists, source
49
+ code control systems, and issue tracking systems that are managed by, or on behalf of, the Licensor
50
+ for the purpose of discussing and improving the Work, but excluding communication that is
51
+ conspicuously marked or otherwise designated in writing by the copyright owner as "Not a
52
+ Contribution."
53
+
54
+ "Contributor" shall mean Licensor and any individual or Legal Entity on behalf of whom a
55
+ Contribution has been received by Licensor and subsequently incorporated within the Work.
56
+
57
+ ## 2. Grant of Copyright License
58
+
59
+ Subject to the terms and conditions of this License, each Contributor hereby grants to You a
60
+ perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to
61
+ reproduce, prepare Derivative Works of, publicly display, publicly perform, sublicense, and
62
+ distribute the Work and such Derivative Works in Source or Object form.
63
+
64
+ ## 3. Grant of Patent License
65
+
66
+ Subject to the terms and conditions of this License, each Contributor hereby grants to You a
67
+ perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this
68
+ section) patent license to make, have made, use, offer to sell, sell, import, and otherwise transfer
69
+ the Work, where such license applies only to those patent claims licensable by such Contributor that
70
+ are necessarily infringed by their Contribution(s) alone or by combination of their Contribution(s)
71
+ with the Work to which such Contribution(s) was submitted. If You institute patent litigation
72
+ against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Work or
73
+ a Contribution incorporated within the Work constitutes direct or contributory patent infringement,
74
+ then any patent licenses granted to You under this License for that Work shall terminate as of the
75
+ date such litigation is filed.
76
+
77
+ ## 4. Redistribution
78
+
79
+ You may reproduce and distribute copies of the Work or Derivative Works thereof in any medium, with
80
+ or without modifications, and in Source or Object form, provided that You meet the following
81
+ conditions:
82
+
83
+ 1. You must give any other recipients of the Work or Derivative Works a copy of this License; and
84
+
85
+ 1. You must cause any modified files to carry prominent notices stating that You changed the files;
86
+ and
87
+
88
+ 1. You must retain, in the Source form of any Derivative Works that You distribute, all copyright,
89
+ patent, trademark, and attribution notices from the Source form of the Work, excluding those
90
+ notices that do not pertain to any part of the Derivative Works; and
91
+
92
+ 1. If the Work includes a "NOTICE" text file as part of its distribution, then any Derivative Works
93
+ that You distribute must include a readable copy of the attribution notices contained within such
94
+ NOTICE file, excluding those notices that do not pertain to any part of the Derivative Works, in
95
+ at least one of the following places: within a NOTICE text file distributed as part of the
96
+ Derivative Works; within the Source form or documentation, if provided along with the Derivative
97
+ Works; or, within a display generated by the Derivative Works, if and wherever such third-party
98
+ notices normally appear. The contents of the NOTICE file are for informational purposes only and
99
+ do not modify the License. You may add Your own attribution notices within Derivative Works that
100
+ You distribute, alongside or as an addendum to the NOTICE text from the Work, provided that such
101
+ additional attribution notices cannot be construed as modifying the License.
102
+
103
+ You may add Your own copyright statement to Your modifications and may provide additional or
104
+ different license terms and conditions for use, reproduction, or distribution of Your modifications,
105
+ or for any such Derivative Works as a whole, provided Your use, reproduction, and distribution of
106
+ the Work otherwise complies with the conditions stated in this License.
107
+
108
+ ## 5. Submission of Contributions
109
+
110
+ Unless You explicitly state otherwise, any Contribution intentionally submitted for inclusion in the
111
+ Work by You to the Licensor shall be under the terms and conditions of this License, without any
112
+ additional terms or conditions. Notwithstanding the above, nothing herein shall supersede or modify
113
+ the terms of any separate license agreement you may have executed with Licensor regarding such
114
+ Contributions.
115
+
116
+ ## 6. Trademarks
117
+
118
+ This License does not grant permission to use the trade names, trademarks, service marks, or product
119
+ names of the Licensor, except as required for reasonable and customary use in describing the origin
120
+ of the Work and reproducing the content of the NOTICE file.
121
+
122
+ ## 7. Disclaimer of Warranty
123
+
124
+ Unless required by applicable law or agreed to in writing, Licensor provides the Work (and each
125
+ Contributor provides its Contributions) on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
126
+ KIND, either express or implied, including, without limitation, any warranties or conditions of
127
+ TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are solely
128
+ responsible for determining the appropriateness of using or redistributing the Work and assume any
129
+ risks associated with Your exercise of permissions under this License.
130
+
131
+ ## 8. Limitation of Liability
132
+
133
+ In no event and under no legal theory, whether in tort (including negligence), contract, or
134
+ otherwise, unless required by applicable law (such as deliberate and grossly negligent acts) or
135
+ agreed to in writing, shall any Contributor be liable to You for damages, including any direct,
136
+ indirect, special, incidental, or consequential damages of any character arising as a result of this
137
+ License or out of the use or inability to use the Work (including but not limited to damages for
138
+ loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial
139
+ damages or losses), even if such Contributor has been advised of the possibility of such damages.
140
+
141
+ ## 9. Accepting Warranty or Additional Liability
142
+
143
+ While redistributing the Work or Derivative Works thereof, You may choose to offer, and charge a fee
144
+ for, acceptance of support, warranty, indemnity, or other liability obligations and/or rights
145
+ consistent with this License. However, in accepting such obligations, You may act only on Your own
146
+ behalf and on Your sole responsibility, not on behalf of any other Contributor, and only if You
147
+ agree to indemnify, defend, and hold each Contributor harmless for any liability incurred by, or
148
+ claims asserted against, such Contributor by reason of your accepting any such warranty or
149
+ additional liability.
150
+
151
+ END OF TERMS AND CONDITIONS
152
+
153
+ Copyright <%= realm.now.strftime "%Y" %> [<%= realm.author_name %>](<%= realm.author_url %>).
154
+
155
+ Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in
156
+ compliance with the License. You may obtain a [copy](https://www.apache.org/licenses/LICENSE-2.0) of
157
+ the License.
158
+
159
+ Unless required by applicable law or agreed to in writing, software distributed under the License is
160
+ distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
161
+ implied. See the License for the specific language governing permissions and limitations under the
162
+ License.
@@ -0,0 +1,20 @@
1
+ Copyright <%= realm.now.strftime "%Y" %> link:<%= realm.author_url %>[<%= realm.author_name %>].
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.
@@ -0,0 +1,20 @@
1
+ Copyright <%= realm.now.strftime "%Y" %> [<%= realm.author_name %>](<%= realm.author_url %>).
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.