caliber 0.0.2 → 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: fcbfff3e2b314db53bde82862bc2e17938e77cba
4
- data.tar.gz: 5c0d72d76c96a801d1e63a7f14e86834419c5993
2
+ SHA256:
3
+ metadata.gz: 2e652040db1045a808b38dfe128922ea35444449272ca45aef5b2e53ab213c0a
4
+ data.tar.gz: 0160a0f1140cd287d2892d2de5602f9a8335bd472d94c56bf8930825eeca2d21
5
5
  SHA512:
6
- metadata.gz: 62a940259b028215ff71da20e3c40b76b96013cd1eac4dc991982de287f018276b7083592ab0ef77bf6c389c879ba0aa3582c0173fe8239e86aa0b3b9acb9648
7
- data.tar.gz: 9cf97d024b4fd4966b44f70bffbd2ab40d7beae26e37e5c5843a17fcb5c2548e738504fac58a30cc33b342c754253c144f6d178d6bdfced4f5f8fa7cedaf515d
6
+ metadata.gz: 632c895a9407a080ba3032e2026a49acfeafc493af53ba7a98223efba14fc382c81fc950e01d766c696f89cd0179a53a3b9692e1f43b3b059c746525ebc03aef
7
+ data.tar.gz: 8e403d96324623e23e9bbbb17bac2ec01c3ec8bb36991e2d75f116a5de24d8cccec6bb2b7cb125f6aa78af247cfad8dca91fb06fac7d877b757ae9a04e022430
checksums.yaml.gz.sig ADDED
Binary file
data/LICENSE.adoc ADDED
@@ -0,0 +1,214 @@
1
+ = HIPPOCRATIC LICENSE
2
+
3
+ *Version 3.0, October 2021*
4
+
5
+ https://firstdonoharm.dev
6
+
7
+ *TERMS AND CONDITIONS*
8
+
9
+ TERMS AND CONDITIONS FOR USE, COPY, MODIFICATION, PREPARATION OF DERIVATIVE WORK, REPRODUCTION, AND DISTRIBUTION:
10
+
11
+ == 1. DEFINITIONS
12
+
13
+ _This section defines certain terms used throughout this license agreement._
14
+
15
+ 1.1. "License" means the terms and conditions, as stated herein, for use, copy, modification, preparation of derivative work, reproduction, and distribution of Software (as defined below).
16
+
17
+ 1.2. "Licensor" means the copyright and/or patent owner or entity authorized by the copyright and/or patent owner that is granting the License.
18
+
19
+ 1.3. "Licensee" means the individual or entity exercising permissions granted by this License, including the use, copy, modification, preparation of derivative work, reproduction, and distribution of Software (as defined below).
20
+
21
+ 1.4. "Software" means any copyrighted work, including but not limited to software code, authored by Licensor and made available under this License.
22
+
23
+ 1.5. "Supply Chain" means the sequence of processes involved in the production and/or distribution of a commodity, good, or service offered by the Licensee.
24
+
25
+ 1.6. "Supply Chain Impacted Party" or "Supply Chain Impacted Parties" means any person(s) directly impacted by any of Licensee’s Supply Chain, including the practices of all persons or entities within the Supply Chain prior to a good or service reaching the Licensee.
26
+
27
+ 1.7. "Duty of Care" is defined by its use in tort law, delict law, and/or similar bodies of law closely related to tort and/or delict law, including without limitation, a requirement to act with the watchfulness, attention, caution, and prudence that a reasonable person in the same or similar circumstances would use towards any Supply Chain Impacted Party.
28
+
29
+ 1.8. "Worker" is defined to include any and all permanent, temporary, and agency workers, as well as piece-rate, salaried, hourly paid, legal young (minors), part-time, night, and migrant workers.
30
+
31
+ == 2. INTELLECTUAL PROPERTY GRANTS
32
+
33
+ _This section identifies intellectual property rights granted to a Licensee_.
34
+
35
+ 2.1. _Grant of Copyright License_: Subject to the terms and conditions of this License, Licensor hereby grants to Licensee a worldwide, non-exclusive, no-charge, royalty-free copyright license to use, copy, modify, prepare derivative work, reproduce, or distribute the Software, Licensor authored modified software, or other work derived from the Software.
36
+
37
+ 2.2 _Grant of Patent License_: Subject to the terms and conditions of this License, Licensor hereby grants Licensee a worldwide, non-exclusive, no-charge, royalty-free patent license to make, have made, use, offer to sell, sell, import, and otherwise transfer Software.
38
+
39
+ == 3. ETHICAL STANDARDS
40
+
41
+ _This section lists conditions the Licensee must comply with in order to have rights under this License._
42
+
43
+ The rights granted to the Licensee by this License are expressly made subject to the Licensee’s ongoing compliance with the following conditions:
44
+
45
+ 3.1. The Licensee SHALL NOT, whether directly or indirectly, through agents or assigns:
46
+
47
+ 3.1.1. Infringe upon any person’s right to life or security of person, engage in extrajudicial killings, or commit murder, without lawful cause +
48
+ (See Article 3, _United Nations Universal Declaration of Human Rights_; Article 6, _International Covenant on Civil and Political Rights_)
49
+
50
+ 3.1.2. Hold any person in slavery, servitude, or forced labor +
51
+ (See Article 4, _United Nations Universal Declaration of Human Rights_; Article 8, _International Covenant on Civil and Political Rights_);
52
+
53
+ 3.1.3. Contribute to the institution of slavery, slave trading, forced labor, or unlawful child labor +
54
+ (See Article 4, _United Nations Universal Declaration of Human Rights_; Article 8, _International Covenant on Civil and Political Rights_);
55
+
56
+ 3.1.4. Torture or subject any person to cruel, inhumane, or degrading treatment or punishment +
57
+ (See Article 5, _United Nations Universal Declaration of Human Rights_; Article 7, _International Covenant on Civil and Political Rights_);
58
+
59
+ 3.1.5. Discriminate on the basis of sex, gender, sexual orientation, race, ethnicity, nationality, religion, caste, age, medical disability or impairment, and/or any other like circumstances +
60
+ (See Article 7, _United Nations Universal Declaration of Human Rights_; Article 2, _International Covenant on Economic, Social and Cultural Rights_; Article 26, _International Covenant on Civil and Political Rights_);
61
+
62
+ 3.1.6. Prevent any person from exercising his/her/their right to seek an effective remedy by a competent court or national tribunal (including domestic judicial systems, international courts, arbitration bodies, and other adjudicating bodies) for actions violating the fundamental rights granted to him/her/them by applicable constitutions, applicable laws, or by this License +
63
+ (See Article 8, _United Nations Universal Declaration of Human Rights_; Articles 9 and 14, _International Covenant on Civil and Political Rights_);
64
+
65
+ 3.1.7. Subject any person to arbitrary arrest, detention, or exile +
66
+ (See Article 9, _United Nations Universal Declaration of Human Rights_; Article 9, _International Covenant on Civil and Political Rights_);
67
+
68
+ 3.1.8. Subject any person to arbitrary interference with a person’s privacy, family, home, or correspondence without the express written consent of the person +
69
+ (See Article 12, _United Nations Universal Declaration of Human Rights_; Article 17, _International Covenant on Civil and Political Rights_);
70
+
71
+ 3.1.9. Arbitrarily deprive any person of his/her/their property +
72
+ (See Article 17, _United Nations Universal Declaration of Human Rights_);
73
+
74
+ 3.1.10. Forcibly remove indigenous peoples from their lands or territories or take any action with the aim or effect of dispossessing indigenous peoples from their lands, territories, or resources, including without limitation the intellectual property or traditional knowledge of indigenous peoples, without the free, prior, and informed consent of indigenous peoples concerned +
75
+ (See Articles 8 and 10, _United Nations Declaration on the Rights of Indigenous Peoples_);
76
+
77
+ 3.1.11. Be an individual or entity, or a representative, agent, affiliate, successor, attorney, or assign of an individual or entity, on the FFI Solutions Carbon Underground 200 list;
78
+
79
+ 3.1.12. Commit ecocide:
80
+
81
+ 3.1.12.1 For the purpose of this section, "ecocide" means unlawful or wanton acts committed with knowledge that there is a substantial likelihood of severe and either widespread or long-term damage to the environment being caused by those acts;
82
+
83
+ 3.1.12.2 For the purpose of further defining ecocide and the terms contained in the previous paragraph:
84
+
85
+ 3.1.12.2.1. "Wanton" means with reckless disregard for damage which would be clearly excessive in relation to the social and economic benefits anticipated;
86
+
87
+ 3.1.12.2.2. "Severe" means damage which involves very serious adverse changes, disruption, or harm to any element of the environment, including grave impacts on human life or natural, cultural, or economic resources;
88
+
89
+ 3.1.12.2.3. "Widespread" means damage which extends beyond a limited geographic area, crosses state boundaries, or is suffered by an entire ecosystem or species or a large number of human beings;
90
+
91
+ 3.1.12.2.4. "Long-term" means damage which is irreversible or which cannot be redressed through natural recovery within a reasonable period of time; and
92
+
93
+ 3.1.12.2.5. "Environment" means the earth, its biosphere, cryosphere, lithosphere, hydrosphere, and atmosphere, as well as outer space
94
+
95
+ (See Section II, _Independent Expert Panel for the Legal Definition of Ecocide_, Stop Ecocide Foundation and the Promise Institute for Human Rights at UCLA School of Law, June 2021);
96
+
97
+ 3.1.13. Be an individual or entity, or a representative, agent, affiliate, successor, attorney, or assign of an individual or entity, that engages in fossil fuel or mineral exploration, extraction, development, or sale;
98
+
99
+ 3.1.14. Be an individual or entity, or a representative, agent, affiliate, successor, attorney, or assign of an individual or entity, identified by the Boycott, Divestment, Sanctions ("BDS") movement on its website (https://bdsmovement.net/ and https://bdsmovement.net/get-involved/what-to-boycott) as a target for boycott;
100
+
101
+ 3.1.15. Be an individual or entity that:
102
+
103
+ 3.1.15.1. engages in any commercial transactions with the Taliban; or
104
+
105
+ 3.1.15.2. is a representative, agent, affiliate, successor, attorney, or assign of the Taliban;
106
+
107
+ 3.1.16. Be an individual or entity that:
108
+
109
+ 3.1.16.1. engages in any commercial transactions with the Myanmar/Burmese military junta; or
110
+
111
+ 3.1.16.2. is a representative, agent, affiliate, successor, attorney, or assign of the Myanmar/Burmese government;
112
+
113
+ 3.1.17. Be an individual or entity, or a representative, agent, affiliate, successor, attorney, or assign of any individual or entity, that does business in, purchases goods from, or otherwise benefits from goods produced in the Xinjiang Uygur Autonomous Region of China;
114
+
115
+ 3.1.18. Be an individual or entity:
116
+
117
+ 3.1.18.1. which U.S. Customs and Border Protection (CBP) has currently issued a Withhold Release Order (WRO) or finding against based on reasonable suspicion of forced labor; or
118
+
119
+ 3.1.18.2. that is a representative, agent, affiliate, successor, attorney, or assign of an individual or entity that does business with an individual or entity which currently has a WRO or finding from CBP issued against it based on reasonable suspicion of forced labor;
120
+
121
+ 3.1.19. Be a government agency or multinational corporation, or a representative, agent, affiliate, successor, attorney, or assign of a government or multinational corporation, which participates in mass surveillance programs;
122
+
123
+ 3.1.20. Be an entity or a representative, agent, affiliate, successor, attorney, or assign of an entity which conducts military activities;
124
+
125
+ 3.1.21. Be an individual or entity, or a or a representative, agent, affiliate, successor, attorney, or assign of an individual or entity, that provides good or services to, or otherwise enters into any commercial contracts with, any local, state, or federal law enforcement agency;
126
+
127
+ 3.1.22. Be an individual or entity, or a or a representative, agent, affiliate, successor, attorney, or assign of an individual or entity, that broadcasts messages promoting killing, torture, or other forms of extreme violence;
128
+
129
+ 3.1.23. Interfere with Workers’ free exercise of the right to organize and associate +
130
+ (See Article 20, United Nations Universal Declaration of Human Rights; C087 - Freedom of Association and Protection of the Right to Organise Convention, 1948 (No. 87), International Labour Organization; Article 8, International Covenant on Economic, Social and Cultural Rights); and
131
+
132
+ 3.1.24. Harm the environment in a manner inconsistent with local, state, national, or international law.
133
+
134
+ 3.2. The Licensee SHALL:
135
+
136
+ 3.2.1. Only use social auditing mechanisms that adhere to Worker-Driven Social Responsibility Network’s Statement of Principles (https://wsr-network.org/what-is-wsr/statement-of-principles/) over traditional social auditing mechanisms, to the extent the Licensee uses any social auditing mechanisms at all;
137
+
138
+ 3.2.2. Ensure that if the Licensee has a Board of Directors, 30% of Licensee’s board seats are held by Workers paid no more than 200% of the compensation of the lowest paid Worker of the Licensee;
139
+
140
+ 3.2.3. Provide clear, accessible supply chain data to the public in accordance with the following conditions:
141
+
142
+ 3.2.3.1. All data will be on Licensee’s website and/or, to the extent Licensee is a representative, agent, affiliate, successor, attorney, subsidiary, or assign, on Licensee’s principal’s or parent’s website or some other online platform accessible to the public via an internet search on a common internet search engine; and
143
+
144
+ 3.2.3.2. Data published will include, where applicable, manufacturers, top tier suppliers, subcontractors, cooperatives, component parts producers, and farms;
145
+
146
+ 3.2.4. Provide equal pay for equal work where the performance of such work requires equal skill, effort, and responsibility, and which are performed under similar working conditions, except where such payment is made pursuant to:
147
+
148
+ 3.2.4.1. A seniority system;
149
+
150
+ 3.2.4.2. A merit system;
151
+
152
+ 3.2.4.3. A system which measures earnings by quantity or quality of production; or
153
+
154
+ 3.2.4.4. A differential based on any other factor other than sex, gender, sexual orientation, race, ethnicity, nationality, religion, caste, age, medical disability or impairment, and/or any other like circumstances +
155
+ (See 29 U.S.C.A. § 206(d)(1); Article 23, _United Nations Universal Declaration of Human Rights_; Article 7, _International Covenant on Economic, Social and Cultural Rights_; Article 26, _International Covenant on Civil and Political Rights_); and
156
+
157
+ 3.2.5. Allow for reasonable limitation of working hours and periodic holidays with pay +
158
+ (See Article 24, _United Nations Universal Declaration of Human Rights_; Article 7, _International Covenant on Economic, Social and Cultural Rights_).
159
+
160
+ == 4. SUPPLY CHAIN IMPACTED PARTIES
161
+
162
+ _This section identifies additional individuals or entities that a Licensee could harm as a result of violating the Ethical Standards section, the condition that the Licensee must voluntarily accept a Duty of Care for those individuals or entities, and the right to a private right of action that those individuals or entities possess as a result of violations of the Ethical Standards section._
163
+
164
+ 4.1. In addition to the above Ethical Standards, Licensee voluntarily accepts a Duty of Care for Supply Chain Impacted Parties of this License, including individuals and communities impacted by violations of the Ethical Standards. The Duty of Care is breached when a provision within the Ethical Standards section is violated by a Licensee, one of its successors or assigns, or by an individual or entity that exists within the Supply Chain prior to a good or service reaching the Licensee.
165
+
166
+ 4.2. Breaches of the Duty of Care, as stated within this section, shall create a private right of action, allowing any Supply Chain Impacted Party harmed by the Licensee to take legal action against the Licensee in accordance with applicable negligence laws, whether they be in tort law, delict law, and/or similar bodies of law closely related to tort and/or delict law, regardless if Licensee is directly responsible for the harms suffered by a Supply Chain Impacted Party. Nothing in this section shall be interpreted to include acts committed by individuals outside of the scope of his/her/their employment.
167
+
168
+ == 5. NOTICE
169
+
170
+ _This section explains when a Licensee must notify others of the License._
171
+
172
+ 5.1. _Distribution of Notice_: Licensee must ensure that everyone who receives a copy of or uses any part of Software from Licensee, with or without changes, also receives the License and the copyright notice included with Software (and if included by the Licensor, patent, trademark, and attribution notice). Licensee must ensure that License is prominently displayed so that any individual or entity seeking to download, copy, use, or otherwise receive any part of Software from Licensee is notified of this License and its terms and conditions. Licensee must cause any modified versions of the Software to carry prominent notices stating that Licensee changed the Software.
173
+
174
+ 5.2. _Modified Software_: Licensee is free to create modifications of the Software and distribute only the modified portion created by Licensee, however, any derivative work stemming from the Software or its code must be distributed pursuant to this License, including this Notice provision.
175
+
176
+ 5.3. _Recipients as Licensees_: Any individual or entity that uses, copies, modifies, reproduces, distributes, or prepares derivative work based upon the Software, all or part of the Software’s code, or a derivative work developed by using the Software, including a portion of its code, is a Licensee as defined above and is subject to the terms and conditions of this License.
177
+
178
+ == 6. REPRESENTATIONS AND WARRANTIES
179
+
180
+ 6.1. _Disclaimer of Warranty_: TO THE FULL EXTENT ALLOWED BY LAW, THIS SOFTWARE COMES "AS IS," WITHOUT ANY WARRANTY, EXPRESS OR IMPLIED, AND LICENSOR SHALL NOT BE LIABLE TO ANY PERSON OR ENTITY FOR ANY DAMAGES OR OTHER LIABILITY ARISING FROM, OUT OF, OR IN CONNECTION WITH THE SOFTWARE OR THIS LICENSE, UNDER ANY LEGAL CLAIM.
181
+
182
+ 6.2. _Limitation of Liability_: LICENSEE SHALL HOLD LICENSOR HARMLESS AGAINST ANY AND ALL CLAIMS, DEBTS, DUES, LIABILITIES, LIENS, CAUSES OF ACTION, DEMANDS, OBLIGATIONS, DISPUTES, DAMAGES, LOSSES, EXPENSES, ATTORNEYS’ FEES, COSTS, LIABILITIES, AND ALL OTHER CLAIMS OF EVERY KIND AND NATURE WHATSOEVER, WHETHER KNOWN OR UNKNOWN, ANTICIPATED OR UNANTICIPATED, FORESEEN OR UNFORESEEN, ACCRUED OR UNACCRUED, DISCLOSED OR UNDISCLOSED, ARISING OUT OF OR RELATING TO LICENSEE’S USE OF THE SOFTWARE. NOTHING IN THIS SECTION SHOULD BE INTERPRETED TO REQUIRE LICENSEE TO INDEMNIFY LICENSOR, NOR REQUIRE LICENSOR TO INDEMNIFY LICENSEE.
183
+
184
+ == 7. TERMINATION
185
+
186
+ 7.1. _Violations of Ethical Standards or Breaching Duty of Care_: If Licensee violates the Ethical Standards section or Licensee, or any other person or entity within the Supply Chain prior to a good or service reaching the Licensee, breaches its Duty of Care to Supply Chain Impacted Parties, Licensee must remedy the violation or harm caused by Licensee within 30 days of being notified of the violation or harm. If Licensee fails to remedy the violation or harm within 30 days, all rights in the Software granted to Licensee by License will be null and void as between Licensor and Licensee.
187
+
188
+ 7.2. _Failure of Notice_: If any person or entity notifies Licensee in writing that Licensee has not complied with the Notice section of this License, Licensee can keep this License by taking all practical steps to comply within 30 days after the notice of noncompliance. If Licensee does not do so, Licensee’s License (and all rights licensed hereunder) will end immediately.
189
+
190
+ 7.3. _Judicial Findings_: In the event Licensee is found by a civil, criminal, administrative, or other court of competent jurisdiction, or some other adjudicating body with legal authority, to have committed actions which are in violation of the Ethical Standards or Supply Chain Impacted Party sections of this License, all rights granted to Licensee by this License will terminate immediately.
191
+
192
+ 7.4. _Patent Litigation_: If Licensee institutes patent litigation against any entity (including a cross-claim or counterclaim in a suit) alleging that the Software, all or part of the Software’s code, or a derivative work developed using the Software, including a portion of its code, constitutes direct or contributory patent infringement, then any patent license, along with all other rights, granted to Licensee under this License will terminate as of the date such litigation is filed.
193
+
194
+ 7.5. _Additional Remedies_: Termination of the License by failing to remedy harms in no way prevents Licensor or Supply Chain Impacted Party from seeking appropriate remedies at law or in equity.
195
+
196
+ == 8. MISCELLANEOUS
197
+
198
+ 8.1. _Conditions_: Sections 3, 4.1, 5.1, 5.2, 7.1, 7.2, 7.3, and 7.4 are conditions of the rights granted to Licensee in the License.
199
+
200
+ 8.2. _Equitable Relief_: Licensor and any Supply Chain Impacted Party shall be entitled to equitable relief, including injunctive relief or specific performance of the terms hereof, in addition to any other remedy to which they are entitled at law or in equity.
201
+
202
+ 8.3. _Copyleft_: Modified software, source code, or other derivative work must be licensed, in its entirety, under the exact same conditions as this License.
203
+
204
+ 8.4. _Severability_: If any term or provision of this License is determined to be invalid, illegal, or unenforceable by a court of competent jurisdiction, any such determination of invalidity, illegality, or unenforceability shall not affect any other term or provision of this License or invalidate or render unenforceable such term or provision in any other jurisdiction. If the determination of invalidity, illegality, or unenforceability by a court of competent jurisdiction pertains to the terms or provisions contained in the Ethical Standards section of this License, all rights in the Software granted to Licensee shall be deemed null and void as between Licensor and Licensee.
205
+
206
+ 8.5. _Section Titles_: Section titles are solely written for organizational purposes and should not be used to interpret the language within each section.
207
+
208
+ 8.6. _Citations_: Citations are solely written to provide context for the source of the provisions in the Ethical Standards.
209
+
210
+ 8.7. _Section Summaries_: Some sections have a brief _italicized description_ which is provided for the sole purpose of briefly describing the section and should not be used to interpret the terms of the License.
211
+
212
+ 8.8. _Entire License_: This is the entire License between the Licensor and Licensee with respect to the claims released herein and that the consideration stated herein is the only consideration or compensation to be paid or exchanged between them for this License. This License cannot be modified or amended except in a writing signed by Licensor and Licensee.
213
+
214
+ 8.9. _Successors and Assigns_: This License shall be binding upon and inure to the benefit of the Licensor’s and Licensee’s respective heirs, successors, and assigns.
data/README.adoc ADDED
@@ -0,0 +1,117 @@
1
+ :toc: macro
2
+ :toclevels: 5
3
+ :figure-caption!:
4
+
5
+ = Caliber
6
+
7
+ This gem provides global link:https://docs.rubocop.org/rubocop[RuboCop] configurations for ensuring
8
+ high quality _and_ consistent software development practices.
9
+
10
+ toc::[]
11
+
12
+ == Features
13
+
14
+ * Provides a global configuration for the following code quality gems:
15
+ ** link:https://docs.rubocop.org/rubocop[Rubocop]
16
+ ** link:https://github.com/rubocop/rubocop-performance[RuboCop Performance]
17
+ ** link:https://github.com/rubocop/rubocop-rake[RuboCop Rake]
18
+ ** link:https://github.com/rubocop/rubocop-rspec[RuboCop RSpec]
19
+
20
+ == Requirements
21
+
22
+ * link:https://www.ruby-lang.org[Ruby]
23
+ * link:https://github.com/ruby/rake[Rake]
24
+ * link:https://rspec.info[RSpec]
25
+
26
+ == Setup
27
+
28
+ To install, run:
29
+
30
+ [source,bash]
31
+ ----
32
+ gem install caliber
33
+ ----
34
+
35
+ == Usage
36
+
37
+ This gem is designed to replace all of your Rubocop setup with only a single reference to this gem.
38
+ You'll want to start with your Gemfile by adding the following:
39
+
40
+ [source,ruby]
41
+ ----
42
+ group :code_quality do
43
+ gem "caliber"
44
+ end
45
+ ----
46
+
47
+ Then in your `.rubocop.yml` add the following to the top of the file:
48
+
49
+ [source,ruby]
50
+ ----
51
+ inherit_gem:
52
+ caliber: config/all.yml
53
+ ----
54
+
55
+ That's it!
56
+
57
+ == Customization
58
+
59
+ Should you not want everything that this gem offers, you can customize
60
+ the gem further by specifiying what you need:
61
+
62
+ [source,ruby]
63
+ ----
64
+ inherit_gem:
65
+ caliber:
66
+ - config/ruby.yml
67
+ - config/performance.yml
68
+ - config/rake.yml
69
+ - config/rspec.yml
70
+ ----
71
+
72
+ That above is what `config/all.yml` expands to but now you can mix and match how you like for your
73
+ needs.
74
+
75
+ == Development
76
+
77
+ To contribute, run:
78
+
79
+ [source,bash]
80
+ ----
81
+ git clone https://github.com/bkuhlmann/caliber.git
82
+ cd caliber
83
+ bin/setup
84
+ ----
85
+
86
+ You can also use the IRB console for direct access to all objects:
87
+
88
+ [source,bash]
89
+ ----
90
+ bin/console
91
+ ----
92
+
93
+ == Tests
94
+
95
+ To test, run:
96
+
97
+ [source,bash]
98
+ ----
99
+ bundle exec rake
100
+ ----
101
+
102
+ == link:https://www.alchemists.io/policies/license[License]
103
+
104
+ == link:https://www.alchemists.io/policies/security[Security]
105
+
106
+ == link:https://www.alchemists.io/policies/code_of_conduct[Code of Conduct]
107
+
108
+ == link:https://www.alchemists.io/policies/contributions[Contributions]
109
+
110
+ == link:https://www.alchemists.io/projects/code_quality/versions[Versions]
111
+
112
+ == link:https://www.alchemists.io/community[Community]
113
+
114
+ == Credits
115
+
116
+ * Built with link:https://www.alchemists.io/projects/gemsmith[Gemsmith].
117
+ * Engineered by link:https://www.alchemists.io/team/brooke_kuhlmann[Brooke Kuhlmann].
data/caliber.gemspec CHANGED
@@ -1,26 +1,33 @@
1
+ # frozen_string_literal: true
1
2
 
2
- # -*- encoding: utf-8 -*-
3
- lib = File.expand_path('../lib', __FILE__)
4
- $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
5
- require 'caliber/version'
3
+ Gem::Specification.new do |spec|
4
+ spec.name = "caliber"
5
+ spec.version = "0.1.0"
6
+ spec.authors = ["Brooke Kuhlmann"]
7
+ spec.email = ["brooke@alchemists.io"]
8
+ spec.homepage = "https://www.alchemists.io/projects/caliber"
9
+ spec.summary = "Provides a high quality style guide and configuration for your projects."
10
+ spec.license = "Hippocratic-3.0"
6
11
 
7
- Gem::Specification.new do |gem|
8
- gem.name = "caliber"
9
- gem.version = Caliber::VERSION
10
- gem.authors = ["Anton Katunin"]
11
- gem.email = ["katunin.anton+rubygems@gmail.com"]
12
- gem.description = %q{Caliber is a Rails engine that shows css classes}
13
- gem.summary = %q{Caliber is a Rails engine that shows css classes.}
14
- gem.homepage = "https://github.com/antulik/caliber"
15
- gem.license = "MIT"
12
+ spec.metadata = {
13
+ "bug_tracker_uri" => "https://github.com/bkuhlmann/caliber/issues",
14
+ "changelog_uri" => "https://www.alchemists.io/projects/caliber/versions",
15
+ "documentation_uri" => "https://www.alchemists.io/projects/caliber",
16
+ "label" => "Caliber",
17
+ "rubygems_mfa_required" => "true",
18
+ "source_code_uri" => "https://github.com/bkuhlmann/caliber"
19
+ }
16
20
 
17
- gem.files = `git ls-files`.split($/)
18
- gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
19
- gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
20
- gem.require_paths = ["lib"]
21
+ spec.signing_key = Gem.default_key_path
22
+ spec.cert_chain = [Gem.default_cert_path]
21
23
 
22
- gem.add_dependency "rails", ">= 3.2"
23
- gem.add_dependency "css_parser", ">= 1.3.5"
24
+ spec.required_ruby_version = "~> 3.1"
25
+ spec.add_dependency "refinements", "~> 9.1"
26
+ spec.add_dependency "rubocop", "~> 1.25"
27
+ spec.add_dependency "rubocop-performance", "~> 1.12"
28
+ spec.add_dependency "rubocop-rake", "~> 0.6"
29
+ spec.add_dependency "rubocop-rspec", "~> 2.6"
24
30
 
25
- gem.add_development_dependency "rake"
26
- end
31
+ spec.extra_rdoc_files = Dir["README*", "LICENSE*"]
32
+ spec.files = Dir["*.gemspec", "config/**/*", "lib/**/*"]
33
+ end
data/config/all.yml ADDED
@@ -0,0 +1,5 @@
1
+ inherit_from:
2
+ - ruby.yml
3
+ - rake.yml
4
+ - performance.yml
5
+ - rspec.yml
@@ -0,0 +1,42 @@
1
+ require: rubocop-performance
2
+
3
+ Performance/AncestorsInclude:
4
+ Enabled: true
5
+ Performance/BigDecimalWithNumericArgument:
6
+ Enabled: true
7
+ Performance/BlockGivenWithExplicitBlock:
8
+ Enabled: true
9
+ Performance/CollectionLiteralInLoop:
10
+ Enabled: true
11
+ Performance/ConcurrentMonotonicTime:
12
+ Enabled: true
13
+ Performance/ConstantRegexp:
14
+ Enabled: true
15
+ Performance/IoReadlines:
16
+ Enabled: true
17
+ Performance/MapCompact:
18
+ Enabled: true
19
+ Performance/MethodObjectAsBlock:
20
+ Enabled: true
21
+ Performance/OpenStruct:
22
+ Enabled: true
23
+ Performance/RedundantEqualityComparisonBlock:
24
+ Enabled: true
25
+ Performance/RedundantSortBlock:
26
+ Enabled: true
27
+ Performance/RedundantSplitRegexpArgument:
28
+ Enabled: true
29
+ Performance/RedundantStringChars:
30
+ Enabled: true
31
+ Performance/ReverseFirst:
32
+ Enabled: true
33
+ Performance/SortReverse:
34
+ Enabled: true
35
+ Performance/StringIdentifierArgument:
36
+ Enabled: true
37
+ Performance/Squeeze:
38
+ Enabled: true
39
+ Performance/StringInclude:
40
+ Enabled: true
41
+ Performance/Sum:
42
+ Enabled: true
data/config/rake.yml ADDED
@@ -0,0 +1 @@
1
+ require: rubocop-rake
data/config/rspec.yml ADDED
@@ -0,0 +1,47 @@
1
+ require: rubocop-rspec
2
+
3
+ RSpec/ContextWording:
4
+ Prefixes:
5
+ - when
6
+ - with
7
+ - without
8
+ RSpec/DescribeClass:
9
+ IgnoredMetadata:
10
+ type:
11
+ - feature
12
+ - request
13
+ - task
14
+ RSpec/DescribedClassModuleWrapping:
15
+ Enabled: true
16
+ RSpec/Dialect:
17
+ Enabled: true
18
+ PreferredMethods:
19
+ append_after: after
20
+ append_before: before
21
+ example: it
22
+ example_group: context
23
+ expect_any_instance_of: expect
24
+ is_expected: expect
25
+ its: it
26
+ let!: let
27
+ prepend_after: after
28
+ prepend_before: before
29
+ shared_examples_for: shared_examples
30
+ specify: it
31
+ subject!: subject
32
+ RSpec/ExampleLength:
33
+ Max: 10
34
+ RSpec/ExcessiveDocstringSpacing:
35
+ Enabled: true
36
+ RSpec/FactoryBot/SyntaxMethods:
37
+ Enabled: false
38
+ RSpec/IdenticalEqualityAssertion:
39
+ Enabled: true
40
+ RSpec/NamedSubject:
41
+ IgnoreSharedExamples: false
42
+ RSpec/Rails/AvoidSetupHook:
43
+ Enabled: true
44
+ RSpec/StubbedMock:
45
+ Enabled: true
46
+ RSpec/SubjectDeclaration:
47
+ Enabled: true