sublime_text_kit 12.3.0 → 13.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data/LICENSE.adoc +134 -214
- data/lib/sublime_text_kit/cli/actions/config.rb +5 -7
- data/lib/sublime_text_kit/cli/actions/container.rb +24 -0
- data/lib/sublime_text_kit/cli/actions/import.rb +11 -0
- data/lib/sublime_text_kit/cli/actions/metadata.rb +6 -7
- data/lib/sublime_text_kit/cli/actions/session.rb +6 -5
- data/lib/sublime_text_kit/cli/actions/snippets.rb +10 -17
- data/lib/sublime_text_kit/cli/actions/update.rb +7 -7
- data/lib/sublime_text_kit/cli/parser.rb +10 -7
- data/lib/sublime_text_kit/cli/parsers/core.rb +10 -6
- data/lib/sublime_text_kit/cli/shell.rb +19 -32
- data/lib/sublime_text_kit/container.rb +3 -25
- data/lib/sublime_text_kit/import.rb +5 -0
- data/lib/sublime_text_kit/sessions/rebuilder.rb +2 -8
- data/lib/sublime_text_kit/snippets/collector.rb +5 -5
- data/lib/sublime_text_kit/snippets/printer.rb +25 -0
- data/sublime_text_kit.gemspec +6 -5
- data.tar.gz.sig +0 -0
- metadata +40 -24
- metadata.gz.sig +0 -0
- data/lib/sublime_text_kit/snippets/printers/ascii_doc.rb +0 -27
- data/lib/sublime_text_kit/snippets/printers/markdown.rb +0 -27
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b06454b8e8a8f1beb6e5b093b094f2b30345055b501b802fe0626930257d9597
|
4
|
+
data.tar.gz: 1a36ef68cd7ec415be40e175ce47de7f8f6044a063b49bf2f01db682400ac0c4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 381bc7bf3a0dfebae84c38fc7795a3377fb8c2e51d2f3c7df1872d2d857661f535f024554b2369d950afe2429524a7edb925263b4c0c16ec50e720858917fbe0
|
7
|
+
data.tar.gz: 93a7ebe7006e32913e58b6422884b5890d2568ab145ed62470ce11f5d8ded734194961097f5fdf08227df468d3487c577a1b6a6a2913b8057bb906156665ee1b
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data/LICENSE.adoc
CHANGED
@@ -1,214 +1,134 @@
|
|
1
|
-
=
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
(
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
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.
|
1
|
+
= Hippocratic License
|
2
|
+
|
3
|
+
Version: 2.1.0.
|
4
|
+
|
5
|
+
Purpose. The purpose of this License is for the Licensor named above to
|
6
|
+
permit the Licensee (as defined below) broad permission, if consistent
|
7
|
+
with Human Rights Laws and Human Rights Principles (as each is defined
|
8
|
+
below), to use and work with the Software (as defined below) within the
|
9
|
+
full scope of Licensor’s copyright and patent rights, if any, in the
|
10
|
+
Software, while ensuring attribution and protecting the Licensor from
|
11
|
+
liability.
|
12
|
+
|
13
|
+
Permission and Conditions. The Licensor grants permission by this
|
14
|
+
license ("License"), free of charge, to the extent of Licensor’s
|
15
|
+
rights under applicable copyright and patent law, to any person or
|
16
|
+
entity (the "Licensee") obtaining a copy of this software and
|
17
|
+
associated documentation files (the "Software"), to do everything with
|
18
|
+
the Software that would otherwise infringe (i) the Licensor’s copyright
|
19
|
+
in the Software or (ii) any patent claims to the Software that the
|
20
|
+
Licensor can license or becomes able to license, subject to all of the
|
21
|
+
following terms and conditions:
|
22
|
+
|
23
|
+
* Acceptance. This License is automatically offered to every person and
|
24
|
+
entity subject to its terms and conditions. Licensee accepts this
|
25
|
+
License and agrees to its terms and conditions by taking any action with
|
26
|
+
the Software that, absent this License, would infringe any intellectual
|
27
|
+
property right held by Licensor.
|
28
|
+
* Notice. Licensee must ensure that everyone who gets a copy of any part
|
29
|
+
of this Software from Licensee, with or without changes, also receives
|
30
|
+
the License and the above copyright notice (and if included by the
|
31
|
+
Licensor, patent, trademark and attribution notice). Licensee must cause
|
32
|
+
any modified versions of the Software to carry prominent notices stating
|
33
|
+
that Licensee changed the Software. For clarity, although Licensee is
|
34
|
+
free to create modifications of the Software and distribute only the
|
35
|
+
modified portion created by Licensee with additional or different terms,
|
36
|
+
the portion of the Software not modified must be distributed pursuant to
|
37
|
+
this License. If anyone notifies Licensee in writing that Licensee has
|
38
|
+
not complied with this Notice section, Licensee can keep this License by
|
39
|
+
taking all practical steps to comply within 30 days after the notice. If
|
40
|
+
Licensee does not do so, Licensee’s License (and all rights licensed
|
41
|
+
hereunder) shall end immediately.
|
42
|
+
* Compliance with Human Rights Principles and Human Rights Laws.
|
43
|
+
[arabic]
|
44
|
+
. Human Rights Principles.
|
45
|
+
[loweralpha]
|
46
|
+
.. Licensee is advised to consult the articles of the United Nations
|
47
|
+
Universal Declaration of Human Rights and the United Nations Global
|
48
|
+
Compact that define recognized principles of international human rights
|
49
|
+
(the "Human Rights Principles"). Licensee shall use the Software in a
|
50
|
+
manner consistent with Human Rights Principles.
|
51
|
+
.. Unless the Licensor and Licensee agree otherwise, any dispute,
|
52
|
+
controversy, or claim arising out of or relating to (i) Section 1(a)
|
53
|
+
regarding Human Rights Principles, including the breach of Section 1(a),
|
54
|
+
termination of this License for breach of the Human Rights Principles,
|
55
|
+
or invalidity of Section 1(a) or (ii) a determination of whether any Law
|
56
|
+
is consistent or in conflict with Human Rights Principles pursuant to
|
57
|
+
Section 2, below, shall be settled by arbitration in accordance with the
|
58
|
+
Hague Rules on Business and Human Rights Arbitration (the "Rules");
|
59
|
+
provided, however, that Licensee may elect not to participate in such
|
60
|
+
arbitration, in which event this License (and all rights licensed
|
61
|
+
hereunder) shall end immediately. The number of arbitrators shall be one
|
62
|
+
unless the Rules require otherwise.
|
63
|
+
+
|
64
|
+
Unless both the Licensor and Licensee agree to the contrary: (1) All
|
65
|
+
documents and information concerning the arbitration shall be public and
|
66
|
+
may be disclosed by any party; (2) The repository referred to under
|
67
|
+
Article 43 of the Rules shall make available to the public in a timely
|
68
|
+
manner all documents concerning the arbitration which are communicated
|
69
|
+
to it, including all submissions of the parties, all evidence admitted
|
70
|
+
into the record of the proceedings, all transcripts or other recordings
|
71
|
+
of hearings and all orders, decisions and awards of the arbitral
|
72
|
+
tribunal, subject only to the arbitral tribunal’s powers to take such
|
73
|
+
measures as may be necessary to safeguard the integrity of the arbitral
|
74
|
+
process pursuant to Articles 18, 33, 41 and 42 of the Rules; and (3)
|
75
|
+
Article 26(6) of the Rules shall not apply.
|
76
|
+
. Human Rights Laws. The Software shall not be used by any person or
|
77
|
+
entity for any systems, activities, or other uses that violate any Human
|
78
|
+
Rights Laws. "Human Rights Laws" means any applicable laws,
|
79
|
+
regulations, or rules (collectively, "Laws") that protect human,
|
80
|
+
civil, labor, privacy, political, environmental, security, economic, due
|
81
|
+
process, or similar rights; provided, however, that such Laws are
|
82
|
+
consistent and not in conflict with Human Rights Principles (a dispute
|
83
|
+
over the consistency or a conflict between Laws and Human Rights
|
84
|
+
Principles shall be determined by arbitration as stated above). Where
|
85
|
+
the Human Rights Laws of more than one jurisdiction are applicable or in
|
86
|
+
conflict with respect to the use of the Software, the Human Rights Laws
|
87
|
+
that are most protective of the individuals or groups harmed shall
|
88
|
+
apply.
|
89
|
+
. Indemnity. Licensee shall hold harmless and indemnify Licensor (and
|
90
|
+
any other contributor) against all losses, damages, liabilities,
|
91
|
+
deficiencies, claims, actions, judgments, settlements, interest, awards,
|
92
|
+
penalties, fines, costs, or expenses of whatever kind, including
|
93
|
+
Licensor’s reasonable attorneys’ fees, arising out of or relating to
|
94
|
+
Licensee’s use of the Software in violation of Human Rights Laws or
|
95
|
+
Human Rights Principles.
|
96
|
+
* Failure to Comply. Any failure of Licensee to act according to the
|
97
|
+
terms and conditions of this License is both a breach of the License and
|
98
|
+
an infringement of the intellectual property rights of the Licensor
|
99
|
+
(subject to exceptions under Laws, e.g., fair use). In the event of a
|
100
|
+
breach or infringement, the terms and conditions of this License may be
|
101
|
+
enforced by Licensor under the Laws of any jurisdiction to which
|
102
|
+
Licensee is subject. Licensee also agrees that the Licensor may enforce
|
103
|
+
the terms and conditions of this License against Licensee through
|
104
|
+
specific performance (or similar remedy under Laws) to the extent
|
105
|
+
permitted by Laws. For clarity, except in the event of a breach of this
|
106
|
+
License, infringement, or as otherwise stated in this License, Licensor
|
107
|
+
may not terminate this License with Licensee.
|
108
|
+
* Enforceability and Interpretation. If any term or provision of this
|
109
|
+
License is determined to be invalid, illegal, or unenforceable by a
|
110
|
+
court of competent jurisdiction, then such invalidity, illegality, or
|
111
|
+
unenforceability shall not affect any other term or provision of this
|
112
|
+
License or invalidate or render unenforceable such term or provision in
|
113
|
+
any other jurisdiction; provided, however, subject to a court
|
114
|
+
modification pursuant to the immediately following sentence, if any term
|
115
|
+
or provision of this License pertaining to Human Rights Laws or Human
|
116
|
+
Rights Principles is deemed invalid, illegal, or unenforceable against
|
117
|
+
Licensee by a court of competent jurisdiction, all rights in the
|
118
|
+
Software granted to Licensee shall be deemed null and void as between
|
119
|
+
Licensor and Licensee. Upon a determination that any term or provision
|
120
|
+
is invalid, illegal, or unenforceable, to the extent permitted by Laws,
|
121
|
+
the court may modify this License to affect the original purpose that
|
122
|
+
the Software be used in compliance with Human Rights Principles and
|
123
|
+
Human Rights Laws as closely as possible. The language in this License
|
124
|
+
shall be interpreted as to its fair meaning and not strictly for or
|
125
|
+
against any party.
|
126
|
+
* Disclaimer. TO THE FULL EXTENT ALLOWED BY LAW, THIS SOFTWARE COMES
|
127
|
+
"AS IS," WITHOUT ANY WARRANTY, EXPRESS OR IMPLIED, AND LICENSOR AND
|
128
|
+
ANY OTHER CONTRIBUTOR SHALL NOT BE LIABLE TO ANYONE FOR ANY DAMAGES OR
|
129
|
+
OTHER LIABILITY ARISING FROM, OUT OF, OR IN CONNECTION WITH THE SOFTWARE
|
130
|
+
OR THIS LICENSE, UNDER ANY KIND OF LEGAL CLAIM.
|
131
|
+
|
132
|
+
This Hippocratic License is an link:https://ethicalsource.dev[Ethical Source license] and is offered
|
133
|
+
for use by licensors and licensees at their own risk, on an "AS IS" basis, and with no warranties
|
134
|
+
express or implied, to the maximum extent permitted by Laws.
|
@@ -5,9 +5,11 @@ module SublimeTextKit
|
|
5
5
|
module Actions
|
6
6
|
# Handles gem configuration action.
|
7
7
|
class Config
|
8
|
-
|
8
|
+
include SublimeTextKit::Import[:kernel, :logger]
|
9
|
+
|
10
|
+
def initialize configuration: Configuration::Loader::CLIENT, **dependencies
|
11
|
+
super(**dependencies)
|
9
12
|
@configuration = configuration
|
10
|
-
@container = container
|
11
13
|
end
|
12
14
|
|
13
15
|
def call action
|
@@ -20,15 +22,11 @@ module SublimeTextKit
|
|
20
22
|
|
21
23
|
private
|
22
24
|
|
23
|
-
attr_reader :configuration
|
25
|
+
attr_reader :configuration
|
24
26
|
|
25
27
|
def edit = kernel.system("$EDITOR #{configuration.current}")
|
26
28
|
|
27
29
|
def view = kernel.system("cat #{configuration.current}")
|
28
|
-
|
29
|
-
def kernel = container[__method__]
|
30
|
-
|
31
|
-
def logger = container[__method__]
|
32
30
|
end
|
33
31
|
end
|
34
32
|
end
|
@@ -0,0 +1,24 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require "dry/container"
|
4
|
+
|
5
|
+
module SublimeTextKit
|
6
|
+
module CLI
|
7
|
+
module Actions
|
8
|
+
# Provides a single container with application and action specific dependencies.
|
9
|
+
module Container
|
10
|
+
extend Dry::Container::Mixin
|
11
|
+
|
12
|
+
config.registry = ->(container, key, value, _options) { container[key.to_s] = value }
|
13
|
+
|
14
|
+
merge SublimeTextKit::Container
|
15
|
+
|
16
|
+
register(:config) { Actions::Config.new }
|
17
|
+
register(:metadata) { Actions::Metadata.new }
|
18
|
+
register(:session) { Actions::Session.new }
|
19
|
+
register(:snippets) { Actions::Snippets.new }
|
20
|
+
register(:update) { Actions::Update.new }
|
21
|
+
end
|
22
|
+
end
|
23
|
+
end
|
24
|
+
end
|
@@ -7,11 +7,14 @@ module SublimeTextKit
|
|
7
7
|
module Actions
|
8
8
|
# Handles metadata action.
|
9
9
|
class Metadata
|
10
|
+
include SublimeTextKit::Import[:configuration, :logger]
|
11
|
+
|
10
12
|
using Refinements::Pathnames
|
11
13
|
|
12
|
-
def initialize handler: SublimeTextKit::Metadata::Handler,
|
14
|
+
def initialize handler: SublimeTextKit::Metadata::Handler, **dependencies
|
15
|
+
super(**dependencies)
|
16
|
+
|
13
17
|
@handler = handler
|
14
|
-
@container = container
|
15
18
|
end
|
16
19
|
|
17
20
|
def call kind
|
@@ -25,7 +28,7 @@ module SublimeTextKit
|
|
25
28
|
|
26
29
|
private
|
27
30
|
|
28
|
-
attr_reader :handler
|
31
|
+
attr_reader :handler
|
29
32
|
|
30
33
|
def create
|
31
34
|
logger.info "Creating metadata in #{metadata_dir}..."
|
@@ -53,10 +56,6 @@ module SublimeTextKit
|
|
53
56
|
end
|
54
57
|
|
55
58
|
def metadata_dir = Pathname(configuration.metadata_dir).expand_path
|
56
|
-
|
57
|
-
def configuration = container[__method__]
|
58
|
-
|
59
|
-
def logger = container[__method__]
|
60
59
|
end
|
61
60
|
end
|
62
61
|
end
|
@@ -5,9 +5,12 @@ module SublimeTextKit
|
|
5
5
|
module Actions
|
6
6
|
# Handles session action.
|
7
7
|
class Session
|
8
|
-
|
8
|
+
include SublimeTextKit::Import[:logger]
|
9
|
+
|
10
|
+
def initialize rebuilder: Sessions::Rebuilder.new, **dependencies
|
11
|
+
super(**dependencies)
|
12
|
+
|
9
13
|
@rebuilder = rebuilder
|
10
|
-
@container = container
|
11
14
|
end
|
12
15
|
|
13
16
|
def call
|
@@ -17,9 +20,7 @@ module SublimeTextKit
|
|
17
20
|
|
18
21
|
private
|
19
22
|
|
20
|
-
attr_reader :rebuilder
|
21
|
-
|
22
|
-
def logger = container[__method__]
|
23
|
+
attr_reader :rebuilder
|
23
24
|
end
|
24
25
|
end
|
25
26
|
end
|
@@ -5,31 +5,24 @@ module SublimeTextKit
|
|
5
5
|
module Actions
|
6
6
|
# Handles snippets action.
|
7
7
|
class Snippets
|
8
|
-
|
9
|
-
ascii_doc: SublimeTextKit::Snippets::Printers::ASCIIDoc.new,
|
10
|
-
markdown: SublimeTextKit::Snippets::Printers::Markdown.new
|
11
|
-
}.freeze
|
8
|
+
include SublimeTextKit::Import[:configuration, :logger]
|
12
9
|
|
13
|
-
def initialize
|
14
|
-
|
15
|
-
@
|
10
|
+
def initialize printer: SublimeTextKit::Snippets::Printer.new, **dependencies
|
11
|
+
super(**dependencies)
|
12
|
+
@printer = printer
|
16
13
|
end
|
17
14
|
|
18
15
|
def call kind
|
19
|
-
|
20
|
-
|
21
|
-
|
16
|
+
case kind
|
17
|
+
when :ascii_doc then printer.call "*"
|
18
|
+
when :markdown then printer.call "-"
|
19
|
+
else logger.error { "Invalid snippet format: #{kind}. Use ascii_doc or markdown." }
|
20
|
+
end
|
22
21
|
end
|
23
22
|
|
24
23
|
private
|
25
24
|
|
26
|
-
attr_reader :
|
27
|
-
|
28
|
-
def formats = printers.keys.join(" or ")
|
29
|
-
|
30
|
-
def configuration = container[__method__]
|
31
|
-
|
32
|
-
def logger = container[__method__]
|
25
|
+
attr_reader :printer
|
33
26
|
end
|
34
27
|
end
|
35
28
|
end
|
@@ -5,12 +5,16 @@ module SublimeTextKit
|
|
5
5
|
module Actions
|
6
6
|
# Handles update action.
|
7
7
|
class Update
|
8
|
+
include SublimeTextKit::Import[:configuration, :logger]
|
9
|
+
|
8
10
|
def initialize metadata: SublimeTextKit::Metadata::Handler,
|
9
11
|
session: Sessions::Rebuilder.new,
|
10
|
-
|
12
|
+
**dependencies
|
13
|
+
|
14
|
+
super(**dependencies)
|
15
|
+
|
11
16
|
@metadata = metadata
|
12
17
|
@session = session
|
13
|
-
@container = container
|
14
18
|
end
|
15
19
|
|
16
20
|
def call
|
@@ -22,7 +26,7 @@ module SublimeTextKit
|
|
22
26
|
|
23
27
|
private
|
24
28
|
|
25
|
-
attr_reader :metadata, :session
|
29
|
+
attr_reader :metadata, :session
|
26
30
|
|
27
31
|
def create_metadata
|
28
32
|
configuration.project_dirs.each do |directory|
|
@@ -32,10 +36,6 @@ module SublimeTextKit
|
|
32
36
|
end
|
33
37
|
|
34
38
|
def metadata_dir = Pathname(configuration.metadata_dir).expand_path
|
35
|
-
|
36
|
-
def configuration = container[__method__]
|
37
|
-
|
38
|
-
def logger = container[__method__]
|
39
39
|
end
|
40
40
|
end
|
41
41
|
end
|
@@ -6,27 +6,30 @@ module SublimeTextKit
|
|
6
6
|
module CLI
|
7
7
|
# Assembles and parses all Command Line Interface (CLI) options.
|
8
8
|
class Parser
|
9
|
+
include Import[:configuration]
|
10
|
+
|
9
11
|
CLIENT = OptionParser.new nil, 40, " "
|
10
12
|
|
11
|
-
def initialize
|
12
|
-
|
13
|
-
|
14
|
-
|
13
|
+
def initialize section: Parsers::Core,
|
14
|
+
client: CLIENT,
|
15
|
+
**dependencies
|
16
|
+
super(**dependencies)
|
15
17
|
@section = section
|
16
18
|
@client = client
|
19
|
+
@configuration_duplicate = configuration.dup
|
17
20
|
end
|
18
21
|
|
19
22
|
def call arguments = []
|
20
|
-
section.call
|
23
|
+
section.call configuration_duplicate, client: client
|
21
24
|
client.parse arguments
|
22
|
-
|
25
|
+
configuration_duplicate.freeze
|
23
26
|
end
|
24
27
|
|
25
28
|
def to_s = client.to_s
|
26
29
|
|
27
30
|
private
|
28
31
|
|
29
|
-
attr_reader :
|
32
|
+
attr_reader :section, :client, :configuration_duplicate
|
30
33
|
end
|
31
34
|
end
|
32
35
|
end
|
@@ -7,16 +7,20 @@ module SublimeTextKit
|
|
7
7
|
module Parsers
|
8
8
|
# Handles parsing of Command Line Interface (CLI) core options.
|
9
9
|
class Core
|
10
|
+
include Import[:specification]
|
11
|
+
|
10
12
|
using Refinements::Structs
|
11
13
|
|
12
14
|
def self.call(...) = new(...).call
|
13
15
|
|
14
16
|
def initialize configuration = Container[:configuration],
|
15
17
|
client: Parser::CLIENT,
|
16
|
-
|
18
|
+
**dependencies
|
19
|
+
|
20
|
+
super(**dependencies)
|
21
|
+
|
17
22
|
@configuration = configuration
|
18
23
|
@client = client
|
19
|
-
@container = container
|
20
24
|
end
|
21
25
|
|
22
26
|
def call arguments = []
|
@@ -29,7 +33,7 @@ module SublimeTextKit
|
|
29
33
|
|
30
34
|
private
|
31
35
|
|
32
|
-
attr_reader :configuration, :client
|
36
|
+
attr_reader :configuration, :client
|
33
37
|
|
34
38
|
def collate = private_methods.sort.grep(/add_/).each { |method| __send__ method }
|
35
39
|
|
@@ -67,9 +71,9 @@ module SublimeTextKit
|
|
67
71
|
"--snippets [FORMAT]",
|
68
72
|
%i[markdown ascii_doc],
|
69
73
|
"View snippets. Formats: markdown or ascii_doc. " \
|
70
|
-
"Default: #{
|
74
|
+
"Default: #{snippets_format}."
|
71
75
|
) do |kind|
|
72
|
-
configuration.merge! action_snippets: true, snippets_format: kind
|
76
|
+
configuration.merge! action_snippets: true, snippets_format: kind || snippets_format
|
73
77
|
end
|
74
78
|
end
|
75
79
|
|
@@ -95,7 +99,7 @@ module SublimeTextKit
|
|
95
99
|
end
|
96
100
|
end
|
97
101
|
|
98
|
-
def
|
102
|
+
def snippets_format = configuration.snippets_format
|
99
103
|
end
|
100
104
|
end
|
101
105
|
end
|
@@ -4,18 +4,19 @@ module SublimeTextKit
|
|
4
4
|
module CLI
|
5
5
|
# The main Command Line Interface (CLI) object.
|
6
6
|
class Shell
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
7
|
+
include Actions::Import[
|
8
|
+
:specification,
|
9
|
+
:logger,
|
10
|
+
:config,
|
11
|
+
:metadata,
|
12
|
+
:session,
|
13
|
+
:snippets,
|
14
|
+
:update
|
15
|
+
]
|
16
|
+
|
17
|
+
def initialize parser: Parser.new, **dependencies
|
18
|
+
super(**dependencies)
|
16
19
|
@parser = parser
|
17
|
-
@actions = actions
|
18
|
-
@container = container
|
19
20
|
end
|
20
21
|
|
21
22
|
def call arguments = []
|
@@ -26,35 +27,21 @@ module SublimeTextKit
|
|
26
27
|
|
27
28
|
private
|
28
29
|
|
29
|
-
attr_reader :parser
|
30
|
+
attr_reader :parser
|
30
31
|
|
31
32
|
def perform configuration
|
32
33
|
case configuration
|
33
|
-
in action_config: Symbol => action then config action
|
34
|
-
in action_metadata: Symbol => kind then metadata kind
|
35
|
-
in action_session: true then session
|
36
|
-
in action_snippets: true then snippets configuration
|
37
|
-
in action_update: true then update
|
34
|
+
in action_config: Symbol => action then config.call action
|
35
|
+
in action_metadata: Symbol => kind then metadata.call kind
|
36
|
+
in action_session: true then session.call
|
37
|
+
in action_snippets: true then snippets.call configuration.snippets_format
|
38
|
+
in action_update: true then update.call
|
38
39
|
in action_version: true then logger.info { specification.labeled_version }
|
39
40
|
else usage
|
40
41
|
end
|
41
42
|
end
|
42
43
|
|
43
|
-
def
|
44
|
-
|
45
|
-
def metadata(kind) = actions.fetch(__method__).call(kind)
|
46
|
-
|
47
|
-
def session = actions.fetch(__method__).call
|
48
|
-
|
49
|
-
def snippets(configuration) = actions.fetch(__method__).call(configuration.snippets_format)
|
50
|
-
|
51
|
-
def update = actions.fetch(__method__).call
|
52
|
-
|
53
|
-
def usage = logger.unknown { parser.to_s }
|
54
|
-
|
55
|
-
def specification = container[__method__]
|
56
|
-
|
57
|
-
def logger = container[__method__]
|
44
|
+
def usage = logger.any { parser.to_s }
|
58
45
|
end
|
59
46
|
end
|
60
47
|
end
|
@@ -1,8 +1,7 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
require "
|
4
|
-
require "
|
5
|
-
require "pastel"
|
3
|
+
require "cogger"
|
4
|
+
require "dry/container"
|
6
5
|
require "spek"
|
7
6
|
|
8
7
|
module SublimeTextKit
|
@@ -12,28 +11,7 @@ module SublimeTextKit
|
|
12
11
|
|
13
12
|
register(:configuration) { Configuration::Loader.call }
|
14
13
|
register(:specification) { Spek::Loader.call "#{__dir__}/../../sublime_text_kit.gemspec" }
|
15
|
-
register(:colorizer) { Pastel.new enabled: $stdout.tty? }
|
16
14
|
register(:kernel) { Kernel }
|
17
|
-
|
18
|
-
register :log_colors do
|
19
|
-
{
|
20
|
-
"DEBUG" => self[:colorizer].white.detach,
|
21
|
-
"INFO" => self[:colorizer].green.detach,
|
22
|
-
"WARN" => self[:colorizer].yellow.detach,
|
23
|
-
"ERROR" => self[:colorizer].red.detach,
|
24
|
-
"FATAL" => self[:colorizer].white.bold.on_red.detach,
|
25
|
-
"ANY" => self[:colorizer].white.bold.detach
|
26
|
-
}
|
27
|
-
end
|
28
|
-
|
29
|
-
register :logger do
|
30
|
-
Logger.new $stdout,
|
31
|
-
level: Logger.const_get(ENV.fetch("LOG_LEVEL", "INFO")),
|
32
|
-
formatter: (
|
33
|
-
lambda do |severity, _at, _name, message|
|
34
|
-
self[:log_colors][severity].call "#{message}\n"
|
35
|
-
end
|
36
|
-
)
|
37
|
-
end
|
15
|
+
register(:logger) { Cogger::Client.new }
|
38
16
|
end
|
39
17
|
end
|
@@ -7,11 +7,9 @@ module SublimeTextKit
|
|
7
7
|
module Sessions
|
8
8
|
# Manages the rebuilding of session information.
|
9
9
|
class Rebuilder
|
10
|
-
|
10
|
+
include Import[:configuration]
|
11
11
|
|
12
|
-
|
13
|
-
@container = container
|
14
|
-
end
|
12
|
+
using Refinements::Pathnames
|
15
13
|
|
16
14
|
def call
|
17
15
|
session = read
|
@@ -28,8 +26,6 @@ module SublimeTextKit
|
|
28
26
|
|
29
27
|
private
|
30
28
|
|
31
|
-
attr_reader :container
|
32
|
-
|
33
29
|
def read = source_path.exist? ? JSON(source_path.read) : {}
|
34
30
|
|
35
31
|
def write(json) = JSON.dump(json).then { |content| source_path.write content }
|
@@ -37,8 +33,6 @@ module SublimeTextKit
|
|
37
33
|
def metadata_dir = configuration.metadata_dir
|
38
34
|
|
39
35
|
def source_path = configuration.session_path
|
40
|
-
|
41
|
-
def configuration = container[__method__]
|
42
36
|
end
|
43
37
|
end
|
44
38
|
end
|
@@ -6,11 +6,13 @@ module SublimeTextKit
|
|
6
6
|
module Snippets
|
7
7
|
# Collects and loads all snippets into memory for further processing.
|
8
8
|
class Collector
|
9
|
+
include Import[:configuration]
|
10
|
+
|
9
11
|
using Refinements::Pathnames
|
10
12
|
|
11
|
-
def initialize reader: Reader.new,
|
13
|
+
def initialize reader: Reader.new, **dependencies
|
14
|
+
super(**dependencies)
|
12
15
|
@reader = reader
|
13
|
-
@container = container
|
14
16
|
end
|
15
17
|
|
16
18
|
def call
|
@@ -22,9 +24,7 @@ module SublimeTextKit
|
|
22
24
|
|
23
25
|
private
|
24
26
|
|
25
|
-
|
26
|
-
|
27
|
-
attr_reader :reader, :container
|
27
|
+
attr_reader :reader
|
28
28
|
end
|
29
29
|
end
|
30
30
|
end
|
@@ -0,0 +1,25 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module SublimeTextKit
|
4
|
+
module Snippets
|
5
|
+
# Prints snippets as a list.
|
6
|
+
class Printer
|
7
|
+
include Import[:logger]
|
8
|
+
|
9
|
+
def initialize collector: Collector.new, **dependencies
|
10
|
+
super(**dependencies)
|
11
|
+
@collector = collector
|
12
|
+
end
|
13
|
+
|
14
|
+
def call bullet
|
15
|
+
collector.call.each do |snippet|
|
16
|
+
logger.info "#{bullet} #{snippet.description} - `#{snippet.trigger}`"
|
17
|
+
end
|
18
|
+
end
|
19
|
+
|
20
|
+
private
|
21
|
+
|
22
|
+
attr_reader :collector
|
23
|
+
end
|
24
|
+
end
|
25
|
+
end
|
data/sublime_text_kit.gemspec
CHANGED
@@ -2,12 +2,12 @@
|
|
2
2
|
|
3
3
|
Gem::Specification.new do |spec|
|
4
4
|
spec.name = "sublime_text_kit"
|
5
|
-
spec.version = "
|
5
|
+
spec.version = "13.0.0"
|
6
6
|
spec.authors = ["Brooke Kuhlmann"]
|
7
7
|
spec.email = ["brooke@alchemists.io"]
|
8
8
|
spec.homepage = "https://www.alchemists.io/projects/sublime_text_kit"
|
9
9
|
spec.summary = "A command line interface for managing Sublime Text metadata."
|
10
|
-
spec.license = "Hippocratic-
|
10
|
+
spec.license = "Hippocratic-2.1"
|
11
11
|
|
12
12
|
spec.metadata = {
|
13
13
|
"bug_tracker_uri" => "https://github.com/bkuhlmann/sublime_text_kit/issues",
|
@@ -22,11 +22,12 @@ Gem::Specification.new do |spec|
|
|
22
22
|
spec.cert_chain = [Gem.default_cert_path]
|
23
23
|
|
24
24
|
spec.required_ruby_version = "~> 3.1"
|
25
|
-
spec.add_dependency "
|
26
|
-
spec.add_dependency "
|
25
|
+
spec.add_dependency "auto_injector", "~> 0.4"
|
26
|
+
spec.add_dependency "cogger", "~> 0.0"
|
27
|
+
spec.add_dependency "dry-container", "~> 0.9"
|
27
28
|
spec.add_dependency "refinements", "~> 9.2"
|
28
29
|
spec.add_dependency "runcom", "~> 8.2"
|
29
|
-
spec.add_dependency "spek", "~> 0.
|
30
|
+
spec.add_dependency "spek", "~> 0.2"
|
30
31
|
spec.add_dependency "zeitwerk", "~> 2.5"
|
31
32
|
|
32
33
|
spec.bindir = "exe"
|
data.tar.gz.sig
CHANGED
Binary file
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sublime_text_kit
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 13.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Brooke Kuhlmann
|
@@ -10,9 +10,9 @@ bindir: exe
|
|
10
10
|
cert_chain:
|
11
11
|
- |
|
12
12
|
-----BEGIN CERTIFICATE-----
|
13
|
-
MIIC/
|
14
|
-
|
15
|
-
|
13
|
+
MIIC/jCCAeagAwIBAgIBBTANBgkqhkiG9w0BAQsFADAlMSMwIQYDVQQDDBpicm9v
|
14
|
+
a2UvREM9YWxjaGVtaXN0cy9EQz1pbzAeFw0yMjAzMTkxNzI0MzJaFw0yMzAzMTkx
|
15
|
+
NzI0MzJaMCUxIzAhBgNVBAMMGmJyb29rZS9EQz1hbGNoZW1pc3RzL0RDPWlvMIIB
|
16
16
|
IjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA6l1qpXTiomH1RfMRloyw7MiE
|
17
17
|
xyVx/x8Yc3EupdH7uhNaTXQGyORN6aOY//1QXXMHIZ9tW74nZLhesWMSUMYy0XhB
|
18
18
|
brs+KkurHnc9FnEJAbG7ebGvl/ncqZt72nQvaxpDxvuCBHgJAz+8i5wl6FhLw+oT
|
@@ -20,44 +20,58 @@ cert_chain:
|
|
20
20
|
D5vkU0YlAm1r98BymuJlcQ1qdkVEI1d48ph4kcS0S0nv1RiuyVb6TCAR3Nu3VaVq
|
21
21
|
3fPzZKJLZBx67UvXdbdicWPiUR75elI4PXpLIic3xytaF52ZJYyKZCNZJhNwfQID
|
22
22
|
AQABozkwNzAJBgNVHRMEAjAAMAsGA1UdDwQEAwIEsDAdBgNVHQ4EFgQU0nzow9vc
|
23
|
-
2CdikiiE3fJhP/
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
23
|
+
2CdikiiE3fJhP/gY4ggwDQYJKoZIhvcNAQELBQADggEBAJbbNyWzFjqUNVPPCUCo
|
24
|
+
IMrhDa9xf1xkORXNYYbmXgoxRy/KyNbUr+jgEEoWJAm9GXlcqxxWAUI6pK/i4/Qi
|
25
|
+
X6rPFEFmeObDOHNvuqy8Hd6AYsu+kP94U/KJhe9wnWGMmGoNKJNU3EkW3jM/osSl
|
26
|
+
+JRxiH5t4WtnDiVyoYl5nYC02rYdjJkG6VMxDymXTqn7u6HhYgZkGujq1UPar8x2
|
27
|
+
hNIWJblDKKSu7hA2d6+kUthuYo13o1sg1Da/AEDg0hoZSUvhqDEF5Hy232qb3pDt
|
28
|
+
CxDe2+VuChj4I1nvIHdu+E6XoEVlanUPKmSg6nddhkKn2gC45Kyzh6FZqnzH/CRp
|
29
|
+
RFE=
|
30
30
|
-----END CERTIFICATE-----
|
31
|
-
date: 2022-
|
31
|
+
date: 2022-04-09 00:00:00.000000000 Z
|
32
32
|
dependencies:
|
33
33
|
- !ruby/object:Gem::Dependency
|
34
|
-
name:
|
34
|
+
name: auto_injector
|
35
35
|
requirement: !ruby/object:Gem::Requirement
|
36
36
|
requirements:
|
37
37
|
- - "~>"
|
38
38
|
- !ruby/object:Gem::Version
|
39
|
-
version: '0.
|
39
|
+
version: '0.4'
|
40
40
|
type: :runtime
|
41
41
|
prerelease: false
|
42
42
|
version_requirements: !ruby/object:Gem::Requirement
|
43
43
|
requirements:
|
44
44
|
- - "~>"
|
45
45
|
- !ruby/object:Gem::Version
|
46
|
-
version: '0.
|
46
|
+
version: '0.4'
|
47
47
|
- !ruby/object:Gem::Dependency
|
48
|
-
name:
|
48
|
+
name: cogger
|
49
49
|
requirement: !ruby/object:Gem::Requirement
|
50
50
|
requirements:
|
51
51
|
- - "~>"
|
52
52
|
- !ruby/object:Gem::Version
|
53
|
-
version: '0.
|
53
|
+
version: '0.0'
|
54
54
|
type: :runtime
|
55
55
|
prerelease: false
|
56
56
|
version_requirements: !ruby/object:Gem::Requirement
|
57
57
|
requirements:
|
58
58
|
- - "~>"
|
59
59
|
- !ruby/object:Gem::Version
|
60
|
-
version: '0.
|
60
|
+
version: '0.0'
|
61
|
+
- !ruby/object:Gem::Dependency
|
62
|
+
name: dry-container
|
63
|
+
requirement: !ruby/object:Gem::Requirement
|
64
|
+
requirements:
|
65
|
+
- - "~>"
|
66
|
+
- !ruby/object:Gem::Version
|
67
|
+
version: '0.9'
|
68
|
+
type: :runtime
|
69
|
+
prerelease: false
|
70
|
+
version_requirements: !ruby/object:Gem::Requirement
|
71
|
+
requirements:
|
72
|
+
- - "~>"
|
73
|
+
- !ruby/object:Gem::Version
|
74
|
+
version: '0.9'
|
61
75
|
- !ruby/object:Gem::Dependency
|
62
76
|
name: refinements
|
63
77
|
requirement: !ruby/object:Gem::Requirement
|
@@ -92,14 +106,14 @@ dependencies:
|
|
92
106
|
requirements:
|
93
107
|
- - "~>"
|
94
108
|
- !ruby/object:Gem::Version
|
95
|
-
version: '0.
|
109
|
+
version: '0.2'
|
96
110
|
type: :runtime
|
97
111
|
prerelease: false
|
98
112
|
version_requirements: !ruby/object:Gem::Requirement
|
99
113
|
requirements:
|
100
114
|
- - "~>"
|
101
115
|
- !ruby/object:Gem::Version
|
102
|
-
version: '0.
|
116
|
+
version: '0.2'
|
103
117
|
- !ruby/object:Gem::Dependency
|
104
118
|
name: zeitwerk
|
105
119
|
requirement: !ruby/object:Gem::Requirement
|
@@ -129,6 +143,8 @@ files:
|
|
129
143
|
- exe/sublime_text_kit
|
130
144
|
- lib/sublime_text_kit.rb
|
131
145
|
- lib/sublime_text_kit/cli/actions/config.rb
|
146
|
+
- lib/sublime_text_kit/cli/actions/container.rb
|
147
|
+
- lib/sublime_text_kit/cli/actions/import.rb
|
132
148
|
- lib/sublime_text_kit/cli/actions/metadata.rb
|
133
149
|
- lib/sublime_text_kit/cli/actions/session.rb
|
134
150
|
- lib/sublime_text_kit/cli/actions/snippets.rb
|
@@ -140,6 +156,7 @@ files:
|
|
140
156
|
- lib/sublime_text_kit/configuration/defaults.yml
|
141
157
|
- lib/sublime_text_kit/configuration/loader.rb
|
142
158
|
- lib/sublime_text_kit/container.rb
|
159
|
+
- lib/sublime_text_kit/import.rb
|
143
160
|
- lib/sublime_text_kit/metadata/handler.rb
|
144
161
|
- lib/sublime_text_kit/metadata/pathway.rb
|
145
162
|
- lib/sublime_text_kit/metadata/serializers/project.rb
|
@@ -147,13 +164,12 @@ files:
|
|
147
164
|
- lib/sublime_text_kit/sessions/rebuilder.rb
|
148
165
|
- lib/sublime_text_kit/snippets/collector.rb
|
149
166
|
- lib/sublime_text_kit/snippets/model.rb
|
150
|
-
- lib/sublime_text_kit/snippets/
|
151
|
-
- lib/sublime_text_kit/snippets/printers/markdown.rb
|
167
|
+
- lib/sublime_text_kit/snippets/printer.rb
|
152
168
|
- lib/sublime_text_kit/snippets/reader.rb
|
153
169
|
- sublime_text_kit.gemspec
|
154
170
|
homepage: https://www.alchemists.io/projects/sublime_text_kit
|
155
171
|
licenses:
|
156
|
-
- Hippocratic-
|
172
|
+
- Hippocratic-2.1
|
157
173
|
metadata:
|
158
174
|
bug_tracker_uri: https://github.com/bkuhlmann/sublime_text_kit/issues
|
159
175
|
changelog_uri: https://www.alchemists.io/projects/sublime_text_kit/versions
|
@@ -176,7 +192,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
176
192
|
- !ruby/object:Gem::Version
|
177
193
|
version: '0'
|
178
194
|
requirements: []
|
179
|
-
rubygems_version: 3.3.
|
195
|
+
rubygems_version: 3.3.11
|
180
196
|
signing_key:
|
181
197
|
specification_version: 4
|
182
198
|
summary: A command line interface for managing Sublime Text metadata.
|
metadata.gz.sig
CHANGED
Binary file
|
@@ -1,27 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
module SublimeTextKit
|
4
|
-
module Snippets
|
5
|
-
module Printers
|
6
|
-
# Prints snippets in ASCII Doc format.
|
7
|
-
class ASCIIDoc
|
8
|
-
def initialize collector: Collector.new, container: Container
|
9
|
-
@collector = collector
|
10
|
-
@container = container
|
11
|
-
end
|
12
|
-
|
13
|
-
def call
|
14
|
-
collector.call.each do |snippet|
|
15
|
-
logger.info "* #{snippet.description} - `#{snippet.trigger}`"
|
16
|
-
end
|
17
|
-
end
|
18
|
-
|
19
|
-
private
|
20
|
-
|
21
|
-
attr_reader :collector, :container
|
22
|
-
|
23
|
-
def logger = container[__method__]
|
24
|
-
end
|
25
|
-
end
|
26
|
-
end
|
27
|
-
end
|
@@ -1,27 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
module SublimeTextKit
|
4
|
-
module Snippets
|
5
|
-
module Printers
|
6
|
-
# Prints snippets in Markdown format.
|
7
|
-
class Markdown
|
8
|
-
def initialize collector: Collector.new, container: Container
|
9
|
-
@collector = collector
|
10
|
-
@container = container
|
11
|
-
end
|
12
|
-
|
13
|
-
def call
|
14
|
-
collector.call.each do |snippet|
|
15
|
-
logger.info "- #{snippet.description} - `#{snippet.trigger}`"
|
16
|
-
end
|
17
|
-
end
|
18
|
-
|
19
|
-
private
|
20
|
-
|
21
|
-
attr_reader :collector, :container
|
22
|
-
|
23
|
-
def logger = container[__method__]
|
24
|
-
end
|
25
|
-
end
|
26
|
-
end
|
27
|
-
end
|