minio 0.3.0-x64-mingw32

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 3b388dd98830064248c1c2a5ef4a1044d3dd29ffb2ddcaa03b96a204e3f5bdcd
4
+ data.tar.gz: '079005fc8b1a4cbfb012e65ae61ff713a07a27035030fd67fa8414531f9f7702'
5
+ SHA512:
6
+ metadata.gz: f2c61b567fb77bf3e44e245de9348b5209cc0b453e00c7fe42ef607df0a00ab07f022cfaccd2e1fa6ff365e7fb9d4c25fa7a7acb966a82b4e052a97861d2ce89
7
+ data.tar.gz: 1c2d9e9fb33b346ec85111db9a9650e5419c5eda56443830fe3c190c6ac00eb6d1fa7aabd2a9b177a14a533595444501729281709b63a71ef5b35ea007582691
data/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2024 Stephen Margheim
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
@@ -0,0 +1,665 @@
1
+ minio-ruby may redistribute executables from the https://github.com/minio/minio project
2
+
3
+ The license for that software can be found at https://github.com/minio/minio/blob/master/LICENSE which is reproduced here for your convenience:
4
+
5
+ GNU AFFERO GENERAL PUBLIC LICENSE
6
+ Version 3, 19 November 2007
7
+
8
+ Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/>
9
+ Everyone is permitted to copy and distribute verbatim copies
10
+ of this license document, but changing it is not allowed.
11
+
12
+ Preamble
13
+
14
+ The GNU Affero General Public License is a free, copyleft license for
15
+ software and other kinds of works, specifically designed to ensure
16
+ cooperation with the community in the case of network server software.
17
+
18
+ The licenses for most software and other practical works are designed
19
+ to take away your freedom to share and change the works. By contrast,
20
+ our General Public Licenses are intended to guarantee your freedom to
21
+ share and change all versions of a program--to make sure it remains free
22
+ software for all its users.
23
+
24
+ When we speak of free software, we are referring to freedom, not
25
+ price. Our General Public Licenses are designed to make sure that you
26
+ have the freedom to distribute copies of free software (and charge for
27
+ them if you wish), that you receive source code or can get it if you
28
+ want it, that you can change the software or use pieces of it in new
29
+ free programs, and that you know you can do these things.
30
+
31
+ Developers that use our General Public Licenses protect your rights
32
+ with two steps: (1) assert copyright on the software, and (2) offer
33
+ you this License which gives you legal permission to copy, distribute
34
+ and/or modify the software.
35
+
36
+ A secondary benefit of defending all users' freedom is that
37
+ improvements made in alternate versions of the program, if they
38
+ receive widespread use, become available for other developers to
39
+ incorporate. Many developers of free software are heartened and
40
+ encouraged by the resulting cooperation. However, in the case of
41
+ software used on network servers, this result may fail to come about.
42
+ The GNU General Public License permits making a modified version and
43
+ letting the public access it on a server without ever releasing its
44
+ source code to the public.
45
+
46
+ The GNU Affero General Public License is designed specifically to
47
+ ensure that, in such cases, the modified source code becomes available
48
+ to the community. It requires the operator of a network server to
49
+ provide the source code of the modified version running there to the
50
+ users of that server. Therefore, public use of a modified version, on
51
+ a publicly accessible server, gives the public access to the source
52
+ code of the modified version.
53
+
54
+ An older license, called the Affero General Public License and
55
+ published by Affero, was designed to accomplish similar goals. This is
56
+ a different license, not a version of the Affero GPL, but Affero has
57
+ released a new version of the Affero GPL which permits relicensing under
58
+ this license.
59
+
60
+ The precise terms and conditions for copying, distribution and
61
+ modification follow.
62
+
63
+ TERMS AND CONDITIONS
64
+
65
+ 0. Definitions.
66
+
67
+ "This License" refers to version 3 of the GNU Affero General Public License.
68
+
69
+ "Copyright" also means copyright-like laws that apply to other kinds of
70
+ works, such as semiconductor masks.
71
+
72
+ "The Program" refers to any copyrightable work licensed under this
73
+ License. Each licensee is addressed as "you". "Licensees" and
74
+ "recipients" may be individuals or organizations.
75
+
76
+ To "modify" a work means to copy from or adapt all or part of the work
77
+ in a fashion requiring copyright permission, other than the making of an
78
+ exact copy. The resulting work is called a "modified version" of the
79
+ earlier work or a work "based on" the earlier work.
80
+
81
+ A "covered work" means either the unmodified Program or a work based
82
+ on the Program.
83
+
84
+ To "propagate" a work means to do anything with it that, without
85
+ permission, would make you directly or secondarily liable for
86
+ infringement under applicable copyright law, except executing it on a
87
+ computer or modifying a private copy. Propagation includes copying,
88
+ distribution (with or without modification), making available to the
89
+ public, and in some countries other activities as well.
90
+
91
+ To "convey" a work means any kind of propagation that enables other
92
+ parties to make or receive copies. Mere interaction with a user through
93
+ a computer network, with no transfer of a copy, is not conveying.
94
+
95
+ An interactive user interface displays "Appropriate Legal Notices"
96
+ to the extent that it includes a convenient and prominently visible
97
+ feature that (1) displays an appropriate copyright notice, and (2)
98
+ tells the user that there is no warranty for the work (except to the
99
+ extent that warranties are provided), that licensees may convey the
100
+ work under this License, and how to view a copy of this License. If
101
+ the interface presents a list of user commands or options, such as a
102
+ menu, a prominent item in the list meets this criterion.
103
+
104
+ 1. Source Code.
105
+
106
+ The "source code" for a work means the preferred form of the work
107
+ for making modifications to it. "Object code" means any non-source
108
+ form of a work.
109
+
110
+ A "Standard Interface" means an interface that either is an official
111
+ standard defined by a recognized standards body, or, in the case of
112
+ interfaces specified for a particular programming language, one that
113
+ is widely used among developers working in that language.
114
+
115
+ The "System Libraries" of an executable work include anything, other
116
+ than the work as a whole, that (a) is included in the normal form of
117
+ packaging a Major Component, but which is not part of that Major
118
+ Component, and (b) serves only to enable use of the work with that
119
+ Major Component, or to implement a Standard Interface for which an
120
+ implementation is available to the public in source code form. A
121
+ "Major Component", in this context, means a major essential component
122
+ (kernel, window system, and so on) of the specific operating system
123
+ (if any) on which the executable work runs, or a compiler used to
124
+ produce the work, or an object code interpreter used to run it.
125
+
126
+ The "Corresponding Source" for a work in object code form means all
127
+ the source code needed to generate, install, and (for an executable
128
+ work) run the object code and to modify the work, including scripts to
129
+ control those activities. However, it does not include the work's
130
+ System Libraries, or general-purpose tools or generally available free
131
+ programs which are used unmodified in performing those activities but
132
+ which are not part of the work. For example, Corresponding Source
133
+ includes interface definition files associated with source files for
134
+ the work, and the source code for shared libraries and dynamically
135
+ linked subprograms that the work is specifically designed to require,
136
+ such as by intimate data communication or control flow between those
137
+ subprograms and other parts of the work.
138
+
139
+ The Corresponding Source need not include anything that users
140
+ can regenerate automatically from other parts of the Corresponding
141
+ Source.
142
+
143
+ The Corresponding Source for a work in source code form is that
144
+ same work.
145
+
146
+ 2. Basic Permissions.
147
+
148
+ All rights granted under this License are granted for the term of
149
+ copyright on the Program, and are irrevocable provided the stated
150
+ conditions are met. This License explicitly affirms your unlimited
151
+ permission to run the unmodified Program. The output from running a
152
+ covered work is covered by this License only if the output, given its
153
+ content, constitutes a covered work. This License acknowledges your
154
+ rights of fair use or other equivalent, as provided by copyright law.
155
+
156
+ You may make, run and propagate covered works that you do not
157
+ convey, without conditions so long as your license otherwise remains
158
+ in force. You may convey covered works to others for the sole purpose
159
+ of having them make modifications exclusively for you, or provide you
160
+ with facilities for running those works, provided that you comply with
161
+ the terms of this License in conveying all material for which you do
162
+ not control copyright. Those thus making or running the covered works
163
+ for you must do so exclusively on your behalf, under your direction
164
+ and control, on terms that prohibit them from making any copies of
165
+ your copyrighted material outside their relationship with you.
166
+
167
+ Conveying under any other circumstances is permitted solely under
168
+ the conditions stated below. Sublicensing is not allowed; section 10
169
+ makes it unnecessary.
170
+
171
+ 3. Protecting Users' Legal Rights From Anti-Circumvention Law.
172
+
173
+ No covered work shall be deemed part of an effective technological
174
+ measure under any applicable law fulfilling obligations under article
175
+ 11 of the WIPO copyright treaty adopted on 20 December 1996, or
176
+ similar laws prohibiting or restricting circumvention of such
177
+ measures.
178
+
179
+ When you convey a covered work, you waive any legal power to forbid
180
+ circumvention of technological measures to the extent such circumvention
181
+ is effected by exercising rights under this License with respect to
182
+ the covered work, and you disclaim any intention to limit operation or
183
+ modification of the work as a means of enforcing, against the work's
184
+ users, your or third parties' legal rights to forbid circumvention of
185
+ technological measures.
186
+
187
+ 4. Conveying Verbatim Copies.
188
+
189
+ You may convey verbatim copies of the Program's source code as you
190
+ receive it, in any medium, provided that you conspicuously and
191
+ appropriately publish on each copy an appropriate copyright notice;
192
+ keep intact all notices stating that this License and any
193
+ non-permissive terms added in accord with section 7 apply to the code;
194
+ keep intact all notices of the absence of any warranty; and give all
195
+ recipients a copy of this License along with the Program.
196
+
197
+ You may charge any price or no price for each copy that you convey,
198
+ and you may offer support or warranty protection for a fee.
199
+
200
+ 5. Conveying Modified Source Versions.
201
+
202
+ You may convey a work based on the Program, or the modifications to
203
+ produce it from the Program, in the form of source code under the
204
+ terms of section 4, provided that you also meet all of these conditions:
205
+
206
+ a) The work must carry prominent notices stating that you modified
207
+ it, and giving a relevant date.
208
+
209
+ b) The work must carry prominent notices stating that it is
210
+ released under this License and any conditions added under section
211
+ 7. This requirement modifies the requirement in section 4 to
212
+ "keep intact all notices".
213
+
214
+ c) You must license the entire work, as a whole, under this
215
+ License to anyone who comes into possession of a copy. This
216
+ License will therefore apply, along with any applicable section 7
217
+ additional terms, to the whole of the work, and all its parts,
218
+ regardless of how they are packaged. This License gives no
219
+ permission to license the work in any other way, but it does not
220
+ invalidate such permission if you have separately received it.
221
+
222
+ d) If the work has interactive user interfaces, each must display
223
+ Appropriate Legal Notices; however, if the Program has interactive
224
+ interfaces that do not display Appropriate Legal Notices, your
225
+ work need not make them do so.
226
+
227
+ A compilation of a covered work with other separate and independent
228
+ works, which are not by their nature extensions of the covered work,
229
+ and which are not combined with it such as to form a larger program,
230
+ in or on a volume of a storage or distribution medium, is called an
231
+ "aggregate" if the compilation and its resulting copyright are not
232
+ used to limit the access or legal rights of the compilation's users
233
+ beyond what the individual works permit. Inclusion of a covered work
234
+ in an aggregate does not cause this License to apply to the other
235
+ parts of the aggregate.
236
+
237
+ 6. Conveying Non-Source Forms.
238
+
239
+ You may convey a covered work in object code form under the terms
240
+ of sections 4 and 5, provided that you also convey the
241
+ machine-readable Corresponding Source under the terms of this License,
242
+ in one of these ways:
243
+
244
+ a) Convey the object code in, or embodied in, a physical product
245
+ (including a physical distribution medium), accompanied by the
246
+ Corresponding Source fixed on a durable physical medium
247
+ customarily used for software interchange.
248
+
249
+ b) Convey the object code in, or embodied in, a physical product
250
+ (including a physical distribution medium), accompanied by a
251
+ written offer, valid for at least three years and valid for as
252
+ long as you offer spare parts or customer support for that product
253
+ model, to give anyone who possesses the object code either (1) a
254
+ copy of the Corresponding Source for all the software in the
255
+ product that is covered by this License, on a durable physical
256
+ medium customarily used for software interchange, for a price no
257
+ more than your reasonable cost of physically performing this
258
+ conveying of source, or (2) access to copy the
259
+ Corresponding Source from a network server at no charge.
260
+
261
+ c) Convey individual copies of the object code with a copy of the
262
+ written offer to provide the Corresponding Source. This
263
+ alternative is allowed only occasionally and noncommercially, and
264
+ only if you received the object code with such an offer, in accord
265
+ with subsection 6b.
266
+
267
+ d) Convey the object code by offering access from a designated
268
+ place (gratis or for a charge), and offer equivalent access to the
269
+ Corresponding Source in the same way through the same place at no
270
+ further charge. You need not require recipients to copy the
271
+ Corresponding Source along with the object code. If the place to
272
+ copy the object code is a network server, the Corresponding Source
273
+ may be on a different server (operated by you or a third party)
274
+ that supports equivalent copying facilities, provided you maintain
275
+ clear directions next to the object code saying where to find the
276
+ Corresponding Source. Regardless of what server hosts the
277
+ Corresponding Source, you remain obligated to ensure that it is
278
+ available for as long as needed to satisfy these requirements.
279
+
280
+ e) Convey the object code using peer-to-peer transmission, provided
281
+ you inform other peers where the object code and Corresponding
282
+ Source of the work are being offered to the general public at no
283
+ charge under subsection 6d.
284
+
285
+ A separable portion of the object code, whose source code is excluded
286
+ from the Corresponding Source as a System Library, need not be
287
+ included in conveying the object code work.
288
+
289
+ A "User Product" is either (1) a "consumer product", which means any
290
+ tangible personal property which is normally used for personal, family,
291
+ or household purposes, or (2) anything designed or sold for incorporation
292
+ into a dwelling. In determining whether a product is a consumer product,
293
+ doubtful cases shall be resolved in favor of coverage. For a particular
294
+ product received by a particular user, "normally used" refers to a
295
+ typical or common use of that class of product, regardless of the status
296
+ of the particular user or of the way in which the particular user
297
+ actually uses, or expects or is expected to use, the product. A product
298
+ is a consumer product regardless of whether the product has substantial
299
+ commercial, industrial or non-consumer uses, unless such uses represent
300
+ the only significant mode of use of the product.
301
+
302
+ "Installation Information" for a User Product means any methods,
303
+ procedures, authorization keys, or other information required to install
304
+ and execute modified versions of a covered work in that User Product from
305
+ a modified version of its Corresponding Source. The information must
306
+ suffice to ensure that the continued functioning of the modified object
307
+ code is in no case prevented or interfered with solely because
308
+ modification has been made.
309
+
310
+ If you convey an object code work under this section in, or with, or
311
+ specifically for use in, a User Product, and the conveying occurs as
312
+ part of a transaction in which the right of possession and use of the
313
+ User Product is transferred to the recipient in perpetuity or for a
314
+ fixed term (regardless of how the transaction is characterized), the
315
+ Corresponding Source conveyed under this section must be accompanied
316
+ by the Installation Information. But this requirement does not apply
317
+ if neither you nor any third party retains the ability to install
318
+ modified object code on the User Product (for example, the work has
319
+ been installed in ROM).
320
+
321
+ The requirement to provide Installation Information does not include a
322
+ requirement to continue to provide support service, warranty, or updates
323
+ for a work that has been modified or installed by the recipient, or for
324
+ the User Product in which it has been modified or installed. Access to a
325
+ network may be denied when the modification itself materially and
326
+ adversely affects the operation of the network or violates the rules and
327
+ protocols for communication across the network.
328
+
329
+ Corresponding Source conveyed, and Installation Information provided,
330
+ in accord with this section must be in a format that is publicly
331
+ documented (and with an implementation available to the public in
332
+ source code form), and must require no special password or key for
333
+ unpacking, reading or copying.
334
+
335
+ 7. Additional Terms.
336
+
337
+ "Additional permissions" are terms that supplement the terms of this
338
+ License by making exceptions from one or more of its conditions.
339
+ Additional permissions that are applicable to the entire Program shall
340
+ be treated as though they were included in this License, to the extent
341
+ that they are valid under applicable law. If additional permissions
342
+ apply only to part of the Program, that part may be used separately
343
+ under those permissions, but the entire Program remains governed by
344
+ this License without regard to the additional permissions.
345
+
346
+ When you convey a copy of a covered work, you may at your option
347
+ remove any additional permissions from that copy, or from any part of
348
+ it. (Additional permissions may be written to require their own
349
+ removal in certain cases when you modify the work.) You may place
350
+ additional permissions on material, added by you to a covered work,
351
+ for which you have or can give appropriate copyright permission.
352
+
353
+ Notwithstanding any other provision of this License, for material you
354
+ add to a covered work, you may (if authorized by the copyright holders of
355
+ that material) supplement the terms of this License with terms:
356
+
357
+ a) Disclaiming warranty or limiting liability differently from the
358
+ terms of sections 15 and 16 of this License; or
359
+
360
+ b) Requiring preservation of specified reasonable legal notices or
361
+ author attributions in that material or in the Appropriate Legal
362
+ Notices displayed by works containing it; or
363
+
364
+ c) Prohibiting misrepresentation of the origin of that material, or
365
+ requiring that modified versions of such material be marked in
366
+ reasonable ways as different from the original version; or
367
+
368
+ d) Limiting the use for publicity purposes of names of licensors or
369
+ authors of the material; or
370
+
371
+ e) Declining to grant rights under trademark law for use of some
372
+ trade names, trademarks, or service marks; or
373
+
374
+ f) Requiring indemnification of licensors and authors of that
375
+ material by anyone who conveys the material (or modified versions of
376
+ it) with contractual assumptions of liability to the recipient, for
377
+ any liability that these contractual assumptions directly impose on
378
+ those licensors and authors.
379
+
380
+ All other non-permissive additional terms are considered "further
381
+ restrictions" within the meaning of section 10. If the Program as you
382
+ received it, or any part of it, contains a notice stating that it is
383
+ governed by this License along with a term that is a further
384
+ restriction, you may remove that term. If a license document contains
385
+ a further restriction but permits relicensing or conveying under this
386
+ License, you may add to a covered work material governed by the terms
387
+ of that license document, provided that the further restriction does
388
+ not survive such relicensing or conveying.
389
+
390
+ If you add terms to a covered work in accord with this section, you
391
+ must place, in the relevant source files, a statement of the
392
+ additional terms that apply to those files, or a notice indicating
393
+ where to find the applicable terms.
394
+
395
+ Additional terms, permissive or non-permissive, may be stated in the
396
+ form of a separately written license, or stated as exceptions;
397
+ the above requirements apply either way.
398
+
399
+ 8. Termination.
400
+
401
+ You may not propagate or modify a covered work except as expressly
402
+ provided under this License. Any attempt otherwise to propagate or
403
+ modify it is void, and will automatically terminate your rights under
404
+ this License (including any patent licenses granted under the third
405
+ paragraph of section 11).
406
+
407
+ However, if you cease all violation of this License, then your
408
+ license from a particular copyright holder is reinstated (a)
409
+ provisionally, unless and until the copyright holder explicitly and
410
+ finally terminates your license, and (b) permanently, if the copyright
411
+ holder fails to notify you of the violation by some reasonable means
412
+ prior to 60 days after the cessation.
413
+
414
+ Moreover, your license from a particular copyright holder is
415
+ reinstated permanently if the copyright holder notifies you of the
416
+ violation by some reasonable means, this is the first time you have
417
+ received notice of violation of this License (for any work) from that
418
+ copyright holder, and you cure the violation prior to 30 days after
419
+ your receipt of the notice.
420
+
421
+ Termination of your rights under this section does not terminate the
422
+ licenses of parties who have received copies or rights from you under
423
+ this License. If your rights have been terminated and not permanently
424
+ reinstated, you do not qualify to receive new licenses for the same
425
+ material under section 10.
426
+
427
+ 9. Acceptance Not Required for Having Copies.
428
+
429
+ You are not required to accept this License in order to receive or
430
+ run a copy of the Program. Ancillary propagation of a covered work
431
+ occurring solely as a consequence of using peer-to-peer transmission
432
+ to receive a copy likewise does not require acceptance. However,
433
+ nothing other than this License grants you permission to propagate or
434
+ modify any covered work. These actions infringe copyright if you do
435
+ not accept this License. Therefore, by modifying or propagating a
436
+ covered work, you indicate your acceptance of this License to do so.
437
+
438
+ 10. Automatic Licensing of Downstream Recipients.
439
+
440
+ Each time you convey a covered work, the recipient automatically
441
+ receives a license from the original licensors, to run, modify and
442
+ propagate that work, subject to this License. You are not responsible
443
+ for enforcing compliance by third parties with this License.
444
+
445
+ An "entity transaction" is a transaction transferring control of an
446
+ organization, or substantially all assets of one, or subdividing an
447
+ organization, or merging organizations. If propagation of a covered
448
+ work results from an entity transaction, each party to that
449
+ transaction who receives a copy of the work also receives whatever
450
+ licenses to the work the party's predecessor in interest had or could
451
+ give under the previous paragraph, plus a right to possession of the
452
+ Corresponding Source of the work from the predecessor in interest, if
453
+ the predecessor has it or can get it with reasonable efforts.
454
+
455
+ You may not impose any further restrictions on the exercise of the
456
+ rights granted or affirmed under this License. For example, you may
457
+ not impose a license fee, royalty, or other charge for exercise of
458
+ rights granted under this License, and you may not initiate litigation
459
+ (including a cross-claim or counterclaim in a lawsuit) alleging that
460
+ any patent claim is infringed by making, using, selling, offering for
461
+ sale, or importing the Program or any portion of it.
462
+
463
+ 11. Patents.
464
+
465
+ A "contributor" is a copyright holder who authorizes use under this
466
+ License of the Program or a work on which the Program is based. The
467
+ work thus licensed is called the contributor's "contributor version".
468
+
469
+ A contributor's "essential patent claims" are all patent claims
470
+ owned or controlled by the contributor, whether already acquired or
471
+ hereafter acquired, that would be infringed by some manner, permitted
472
+ by this License, of making, using, or selling its contributor version,
473
+ but do not include claims that would be infringed only as a
474
+ consequence of further modification of the contributor version. For
475
+ purposes of this definition, "control" includes the right to grant
476
+ patent sublicenses in a manner consistent with the requirements of
477
+ this License.
478
+
479
+ Each contributor grants you a non-exclusive, worldwide, royalty-free
480
+ patent license under the contributor's essential patent claims, to
481
+ make, use, sell, offer for sale, import and otherwise run, modify and
482
+ propagate the contents of its contributor version.
483
+
484
+ In the following three paragraphs, a "patent license" is any express
485
+ agreement or commitment, however denominated, not to enforce a patent
486
+ (such as an express permission to practice a patent or covenant not to
487
+ sue for patent infringement). To "grant" such a patent license to a
488
+ party means to make such an agreement or commitment not to enforce a
489
+ patent against the party.
490
+
491
+ If you convey a covered work, knowingly relying on a patent license,
492
+ and the Corresponding Source of the work is not available for anyone
493
+ to copy, free of charge and under the terms of this License, through a
494
+ publicly available network server or other readily accessible means,
495
+ then you must either (1) cause the Corresponding Source to be so
496
+ available, or (2) arrange to deprive yourself of the benefit of the
497
+ patent license for this particular work, or (3) arrange, in a manner
498
+ consistent with the requirements of this License, to extend the patent
499
+ license to downstream recipients. "Knowingly relying" means you have
500
+ actual knowledge that, but for the patent license, your conveying the
501
+ covered work in a country, or your recipient's use of the covered work
502
+ in a country, would infringe one or more identifiable patents in that
503
+ country that you have reason to believe are valid.
504
+
505
+ If, pursuant to or in connection with a single transaction or
506
+ arrangement, you convey, or propagate by procuring conveyance of, a
507
+ covered work, and grant a patent license to some of the parties
508
+ receiving the covered work authorizing them to use, propagate, modify
509
+ or convey a specific copy of the covered work, then the patent license
510
+ you grant is automatically extended to all recipients of the covered
511
+ work and works based on it.
512
+
513
+ A patent license is "discriminatory" if it does not include within
514
+ the scope of its coverage, prohibits the exercise of, or is
515
+ conditioned on the non-exercise of one or more of the rights that are
516
+ specifically granted under this License. You may not convey a covered
517
+ work if you are a party to an arrangement with a third party that is
518
+ in the business of distributing software, under which you make payment
519
+ to the third party based on the extent of your activity of conveying
520
+ the work, and under which the third party grants, to any of the
521
+ parties who would receive the covered work from you, a discriminatory
522
+ patent license (a) in connection with copies of the covered work
523
+ conveyed by you (or copies made from those copies), or (b) primarily
524
+ for and in connection with specific products or compilations that
525
+ contain the covered work, unless you entered into that arrangement,
526
+ or that patent license was granted, prior to 28 March 2007.
527
+
528
+ Nothing in this License shall be construed as excluding or limiting
529
+ any implied license or other defenses to infringement that may
530
+ otherwise be available to you under applicable patent law.
531
+
532
+ 12. No Surrender of Others' Freedom.
533
+
534
+ If conditions are imposed on you (whether by court order, agreement or
535
+ otherwise) that contradict the conditions of this License, they do not
536
+ excuse you from the conditions of this License. If you cannot convey a
537
+ covered work so as to satisfy simultaneously your obligations under this
538
+ License and any other pertinent obligations, then as a consequence you may
539
+ not convey it at all. For example, if you agree to terms that obligate you
540
+ to collect a royalty for further conveying from those to whom you convey
541
+ the Program, the only way you could satisfy both those terms and this
542
+ License would be to refrain entirely from conveying the Program.
543
+
544
+ 13. Remote Network Interaction; Use with the GNU General Public License.
545
+
546
+ Notwithstanding any other provision of this License, if you modify the
547
+ Program, your modified version must prominently offer all users
548
+ interacting with it remotely through a computer network (if your version
549
+ supports such interaction) an opportunity to receive the Corresponding
550
+ Source of your version by providing access to the Corresponding Source
551
+ from a network server at no charge, through some standard or customary
552
+ means of facilitating copying of software. This Corresponding Source
553
+ shall include the Corresponding Source for any work covered by version 3
554
+ of the GNU General Public License that is incorporated pursuant to the
555
+ following paragraph.
556
+
557
+ Notwithstanding any other provision of this License, you have
558
+ permission to link or combine any covered work with a work licensed
559
+ under version 3 of the GNU General Public License into a single
560
+ combined work, and to convey the resulting work. The terms of this
561
+ License will continue to apply to the part which is the covered work,
562
+ but the work with which it is combined will remain governed by version
563
+ 3 of the GNU General Public License.
564
+
565
+ 14. Revised Versions of this License.
566
+
567
+ The Free Software Foundation may publish revised and/or new versions of
568
+ the GNU Affero General Public License from time to time. Such new versions
569
+ will be similar in spirit to the present version, but may differ in detail to
570
+ address new problems or concerns.
571
+
572
+ Each version is given a distinguishing version number. If the
573
+ Program specifies that a certain numbered version of the GNU Affero General
574
+ Public License "or any later version" applies to it, you have the
575
+ option of following the terms and conditions either of that numbered
576
+ version or of any later version published by the Free Software
577
+ Foundation. If the Program does not specify a version number of the
578
+ GNU Affero General Public License, you may choose any version ever published
579
+ by the Free Software Foundation.
580
+
581
+ If the Program specifies that a proxy can decide which future
582
+ versions of the GNU Affero General Public License can be used, that proxy's
583
+ public statement of acceptance of a version permanently authorizes you
584
+ to choose that version for the Program.
585
+
586
+ Later license versions may give you additional or different
587
+ permissions. However, no additional obligations are imposed on any
588
+ author or copyright holder as a result of your choosing to follow a
589
+ later version.
590
+
591
+ 15. Disclaimer of Warranty.
592
+
593
+ THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
594
+ APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
595
+ HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
596
+ OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
597
+ THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
598
+ PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
599
+ IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
600
+ ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
601
+
602
+ 16. Limitation of Liability.
603
+
604
+ IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
605
+ WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
606
+ THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
607
+ GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
608
+ USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
609
+ DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
610
+ PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
611
+ EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
612
+ SUCH DAMAGES.
613
+
614
+ 17. Interpretation of Sections 15 and 16.
615
+
616
+ If the disclaimer of warranty and limitation of liability provided
617
+ above cannot be given local legal effect according to their terms,
618
+ reviewing courts shall apply local law that most closely approximates
619
+ an absolute waiver of all civil liability in connection with the
620
+ Program, unless a warranty or assumption of liability accompanies a
621
+ copy of the Program in return for a fee.
622
+
623
+ END OF TERMS AND CONDITIONS
624
+
625
+ How to Apply These Terms to Your New Programs
626
+
627
+ If you develop a new program, and you want it to be of the greatest
628
+ possible use to the public, the best way to achieve this is to make it
629
+ free software which everyone can redistribute and change under these terms.
630
+
631
+ To do so, attach the following notices to the program. It is safest
632
+ to attach them to the start of each source file to most effectively
633
+ state the exclusion of warranty; and each file should have at least
634
+ the "copyright" line and a pointer to where the full notice is found.
635
+
636
+ <one line to give the program's name and a brief idea of what it does.>
637
+ Copyright (C) <year> <name of author>
638
+
639
+ This program is free software: you can redistribute it and/or modify
640
+ it under the terms of the GNU Affero General Public License as published by
641
+ the Free Software Foundation, either version 3 of the License, or
642
+ (at your option) any later version.
643
+
644
+ This program is distributed in the hope that it will be useful,
645
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
646
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
647
+ GNU Affero General Public License for more details.
648
+
649
+ You should have received a copy of the GNU Affero General Public License
650
+ along with this program. If not, see <https://www.gnu.org/licenses/>.
651
+
652
+ Also add information on how to contact you by electronic and paper mail.
653
+
654
+ If your software can interact with users remotely through a computer
655
+ network, you should also make sure that it provides a way for users to
656
+ get its source. For example, if your program is a web application, its
657
+ interface could display a "Source" link that leads users to an archive
658
+ of the code. There are many ways you could offer source, and different
659
+ solutions will be better for different programs; see section 13 for the
660
+ specific requirements.
661
+
662
+ You should also get your employer (if you work as a programmer) or school,
663
+ if any, to sign a "copyright disclaimer" for the program, if necessary.
664
+ For more information on this, and how to apply and follow the GNU AGPL, see
665
+ <https://www.gnu.org/licenses/>.
data/README.md ADDED
@@ -0,0 +1,170 @@
1
+ # minio-ruby
2
+
3
+ [MinIO](https://min.io) is an open-source S3-compatible object store. This gem provides a Ruby interface to MinIO.
4
+
5
+ <p>
6
+ <a href="https://rubygems.org/gems/minio">
7
+ <img alt="GEM Version" src="https://img.shields.io/gem/v/minio?color=168AFE&include_prereleases&logo=ruby&logoColor=FE1616">
8
+ </a>
9
+ <a href="https://rubygems.org/gems/minio">
10
+ <img alt="GEM Downloads" src="https://img.shields.io/gem/dt/minio?color=168AFE&logo=ruby&logoColor=FE1616">
11
+ </a>
12
+ <a href="https://github.com/testdouble/standard">
13
+ <img alt="Ruby Style" src="https://img.shields.io/badge/style-standard-168AFE?logo=ruby&logoColor=FE1616" />
14
+ </a>
15
+ <a href="https://github.com/fractaledmind/minio-ruby/actions/workflows/main.yml">
16
+ <img alt="Tests" src="https://github.com/fractaledmind/minio-ruby/actions/workflows/main.yml/badge.svg" />
17
+ </a>
18
+ <a href="https://github.com/sponsors/fractaledmind">
19
+ <img alt="Sponsors" src="https://img.shields.io/github/sponsors/fractaledmind?color=eb4aaa&logo=GitHub%20Sponsors" />
20
+ </a>
21
+ <a href="https://ruby.social/@fractaledmind">
22
+ <img alt="Ruby.Social Follow" src="https://img.shields.io/mastodon/follow/109291299520066427?domain=https%3A%2F%2Fruby.social&label=%40fractaledmind&style=social">
23
+ </a>
24
+ <a href="https://twitter.com/fractaledmind">
25
+ <img alt="Twitter Follow" src="https://img.shields.io/twitter/url?label=%40fractaledmind&style=social&url=https%3A%2F%2Ftwitter.com%2Ffractaledmind">
26
+ </a>
27
+ </p>
28
+
29
+ ## Installation
30
+
31
+ Install the gem and add to the application's Gemfile by executing:
32
+
33
+ ```sh
34
+ bundle add minio
35
+ ```
36
+
37
+ If bundler is not being used to manage dependencies, install the gem by executing:
38
+
39
+ ```sh
40
+ gem install minio
41
+ ```
42
+
43
+ ### Using a local installation of `minio`
44
+
45
+ If you are not able to use the vendored standalone executables (for example, if you're on an unsupported platform), you can use a local installation of the `minio` executable by setting an environment variable named `MINIO_INSTALL_DIR` to the directory containing the executable.
46
+
47
+ For example, if you've installed `minio` so that the executable is found at `/usr/local/bin/minio`, then you should set your environment variable like so:
48
+
49
+ ``` sh
50
+ MINIO_INSTALL_DIR=/usr/local/bin
51
+ ```
52
+
53
+ This also works with relative paths. If you've installed into your app's directory at `./.bin/minio`:
54
+
55
+ ``` sh
56
+ MINIO_INSTALL_DIR=.bin
57
+ ```
58
+
59
+ ## Usage
60
+
61
+ ### Configuration
62
+
63
+ You can configure (if needed, this is optional) the `username` and `password` to secure the MinIO web dashboard. This Ruby interface permits you to use any method of storing secrets that you prefer. For example, you could store these secrets in Rails' encrypted credentials:
64
+
65
+ ```ruby
66
+ # config/initializers/minio.rb
67
+ minio_credentials = Rails.application.credentials.minio
68
+ Litestream.configure do |config|
69
+ config.username = minio_credentials.username
70
+ config.password = minio_credentials.password
71
+ end
72
+ ```
73
+
74
+ The default credentials that MinIO uses are `minioadmin` for both the username and password. If you are using the default credentials, you do not need to configure the `username` and `password` in the initializer, but you should absolutely change the default credentials in a production environment.
75
+
76
+ If you want, you can also configure the username and password via environment variables:
77
+
78
+ ```sh
79
+ export MINIO_ROOT_USER=frodo
80
+ export MINIO_ROOT_PASSWORD=ikeptmysecrets
81
+ ```
82
+
83
+ ### Running the server
84
+
85
+ You can start the MinIO server via the gem's rake task:
86
+
87
+ ```sh
88
+ bin/rails minio:server
89
+ # or
90
+ bundle exec rake minio:server
91
+ ```
92
+
93
+ If you need to pass arguments through the rake task to the underlying `minio` command, that can be done with argument forwarding:
94
+
95
+ ```sh
96
+ bin/rails minio:server -- --directory /mnt/data
97
+ ```
98
+
99
+ This example shows the special `--directory` option available on [the `server` command](https://min.io/docs/minio/linux/reference/minio-server/minio-server.html), which allows you to specify the directory where MinIO will store its data. By default, the gem will use the `storage/minio` directory in your Rails app.
100
+
101
+ The MinIO `server` command supports various additional options, which can be passed through the rake task:
102
+
103
+ ```sh
104
+ --config value specify server configuration via YAML configuration [$MINIO_CONFIG]
105
+ --address value bind to a specific ADDRESS:PORT, ADDRESS can be an IP or hostname (default: ":9000") [$MINIO_ADDRESS]
106
+ --console-address value bind to a specific ADDRESS:PORT for embedded Console UI, ADDRESS can be an IP or hostname [$MINIO_CONSOLE_ADDRESS]
107
+ --ftp value enable and configure an FTP(Secure) server
108
+ --sftp value enable and configure an SFTP server
109
+ --certs-dir value, -S value path to certs directory (default: "~/.minio/certs")
110
+ --quiet disable startup and info messages
111
+ --anonymous hide sensitive information from logging
112
+ --json output logs in JSON format
113
+ --help, -h show help
114
+ ```
115
+
116
+ ## Troubleshooting
117
+
118
+ Some common problems experienced by users ...
119
+
120
+ ### `ERROR: Cannot find the minio executable` for supported platform
121
+
122
+ Some users are reporting this error even when running on one of the supported native platforms:
123
+
124
+ * arm64-darwin (darwin-arm64)
125
+ * arm64-linux (linux-arm64)
126
+ * x86_64-darwin (darwin-amd64)
127
+ * x86_64-linux (linux-amd64)
128
+ * x86_64-windows (windows-amd64)
129
+
130
+ #### Check Bundler PLATFORMS
131
+
132
+ A possible cause of this is that Bundler has not been told to include native gems for your current platform. Please check your `Gemfile.lock` file to see whether your native platform is included in the `PLATFORMS` section. If necessary, run:
133
+
134
+ ``` sh
135
+ bundle lock --add-platform <platform-name>
136
+ ```
137
+
138
+ and re-bundle.
139
+
140
+ #### Check BUNDLE_FORCE_RUBY_PLATFORM
141
+
142
+ Another common cause of this is that Bundler is configured to always use the "ruby" platform via the `BUNDLE_FORCE_RUBY_PLATFORM` config parameter being set to `true`. Please remove this configuration:
143
+
144
+ ``` sh
145
+ bundle config unset force_ruby_platform
146
+ # or
147
+ bundle config set --local force_ruby_platform false
148
+ ```
149
+
150
+ and re-bundle.
151
+
152
+ See https://bundler.io/man/bundle-config.1.html for more information.
153
+
154
+ ## Development
155
+
156
+ After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake test` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
157
+
158
+ To install this gem onto your local machine, run `bundle exec rake install`. For maintainers, to release a new version, run `bin/release $VERSION`, which will create a git tag for the version, push git commits and tags, and push all of the platform-specific `.gem` files to [rubygems.org](https://rubygems.org).
159
+
160
+ ## Contributing
161
+
162
+ Bug reports and pull requests are welcome on GitHub at https://github.com/fractaledmind/minio-ruby. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [code of conduct](https://github.com/fractaledmind/minio-ruby/blob/main/CODE_OF_CONDUCT.md).
163
+
164
+ ## License
165
+
166
+ The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
167
+
168
+ ## Code of Conduct
169
+
170
+ Everyone interacting in the Sqlpkg::Ruby project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/fractaledmind/minio-ruby/blob/main/CODE_OF_CONDUCT.md).
data/Rakefile ADDED
@@ -0,0 +1,10 @@
1
+ # frozen_string_literal: true
2
+
3
+ require "bundler/gem_tasks"
4
+ require "minitest/test_task"
5
+
6
+ Minitest::TestTask.create
7
+
8
+ require "standard/rake"
9
+
10
+ task default: %i[test standard]
data/exe/minio ADDED
@@ -0,0 +1,13 @@
1
+ #! /usr/bin/env ruby
2
+ # because rubygems shims assume a gem's executables are Ruby
3
+
4
+ require "minio/commands"
5
+
6
+ begin
7
+ command = [MinIO::Commands.executable, *ARGV]
8
+
9
+ exec(*command)
10
+ rescue MinIO::Commands::UnsupportedPlatformException, MinIO::Commands::ExecutableNotFoundException => e
11
+ warn("ERROR: " + e.message)
12
+ exit 1
13
+ end
Binary file
@@ -0,0 +1,101 @@
1
+ require_relative "upstream"
2
+
3
+ module MinIO
4
+ module Commands
5
+ DEFAULT_DIR = File.expand_path(File.join(__dir__, "..", "..", "exe"))
6
+ GEM_NAME = "minio"
7
+
8
+ # raised when the host platform is not supported by upstream minio's binary releases
9
+ class UnsupportedPlatformException < StandardError
10
+ end
11
+
12
+ # raised when the minio executable could not be found where we expected it to be
13
+ class ExecutableNotFoundException < StandardError
14
+ end
15
+
16
+ # raised when MINIO_INSTALL_DIR does not exist
17
+ class DirectoryNotFoundException < StandardError
18
+ end
19
+
20
+ class << self
21
+ def platform
22
+ [:cpu, :os].map { |m| Gem::Platform.local.send(m) }.join("-")
23
+ end
24
+
25
+ def executable(exe_path: DEFAULT_DIR)
26
+ minio_install_dir = ENV["MINIO_INSTALL_DIR"]
27
+ if minio_install_dir
28
+ if File.directory?(minio_install_dir)
29
+ warn "NOTE: using MINIO_INSTALL_DIR to find minio executable: #{minio_install_dir}"
30
+ exe_path = minio_install_dir
31
+ exe_file = File.expand_path(File.join(minio_install_dir, "minio"))
32
+ else
33
+ raise DirectoryNotFoundException, <<~MESSAGE
34
+ MINIO_INSTALL_DIR is set to #{minio_install_dir}, but that directory does not exist.
35
+ MESSAGE
36
+ end
37
+ else
38
+ if MinIO::Upstream::NATIVE_PLATFORMS.keys.none? { |p| Gem::Platform.match_gem?(Gem::Platform.new(p), GEM_NAME) }
39
+ raise UnsupportedPlatformException, <<~MESSAGE
40
+ minio-ruby does not support the #{platform} platform
41
+ Please install minio following instructions at https://min.io/download?license=agpl
42
+ MESSAGE
43
+ end
44
+
45
+ exe_file = Dir.glob(File.expand_path(File.join(exe_path, "*", "minio"))).find do |f|
46
+ Gem::Platform.match_gem?(Gem::Platform.new(File.basename(File.dirname(f))), GEM_NAME)
47
+ end
48
+ end
49
+
50
+ if exe_file.nil? || !File.exist?(exe_file)
51
+ raise ExecutableNotFoundException, <<~MESSAGE
52
+ Cannot find the minio executable for #{platform} in #{exe_path}
53
+
54
+ If you're using bundler, please make sure you're on the latest bundler version:
55
+
56
+ gem install bundler
57
+ bundle update --bundler
58
+
59
+ Then make sure your lock file includes this platform by running:
60
+
61
+ bundle lock --add-platform #{platform}
62
+ bundle install
63
+
64
+ See `bundle lock --help` output for details.
65
+
66
+ If you're still seeing this message after taking those steps, try running
67
+ `bundle config` and ensure `force_ruby_platform` isn't set to `true`. See
68
+ https://github.com/fractaledmind/minio-ruby#check-bundle_force_ruby_platform
69
+ for more details.
70
+ MESSAGE
71
+ end
72
+
73
+ exe_file
74
+ end
75
+
76
+ def server(directory, async: false, **argv)
77
+ if MinIO.configuration
78
+ ENV["MINIO_ROOT_USER"] ||= MinIO.configuration.username
79
+ ENV["MINIO_ROOT_PASSWORD"] ||= MinIO.configuration.password
80
+ end
81
+
82
+ cmd = [executable, "server", *argv, directory].flatten.compact
83
+ puts cmd.inspect if ENV["DEBUG"]
84
+
85
+ run(cmd, async: async)
86
+ end
87
+
88
+ private
89
+
90
+ def run(cmd, async: false)
91
+ if async
92
+ # To release the resources of the Ruby process, just fork and exit.
93
+ # The forked process executes litestream and replaces itself.
94
+ exec(*cmd) if fork.nil?
95
+ else
96
+ `#{cmd.join(" ")}`
97
+ end
98
+ end
99
+ end
100
+ end
101
+ end
@@ -0,0 +1,12 @@
1
+ # frozen_string_literal: true
2
+
3
+ require "rails/railtie"
4
+
5
+ module MinIO
6
+ class Railtie < ::Rails::Railtie
7
+ # Load the `minio:*` Rake task into the host Rails app
8
+ rake_tasks do
9
+ load "tasks/minio_tasks.rake"
10
+ end
11
+ end
12
+ end
@@ -0,0 +1,16 @@
1
+ module MinIO
2
+ module Upstream
3
+ VERSION = "RELEASE.2024-04-28T17-53-50Z"
4
+
5
+ # rubygems platform name => upstream release filename
6
+ NATIVE_PLATFORMS = {
7
+ "arm64-darwin" => "darwin-arm64/minio.#{VERSION}",
8
+ "arm64-linux" => "linux-arm64/minio.#{VERSION}",
9
+ "aarch64-linux" => "linux-arm64/minio.#{VERSION}",
10
+ "x86_64-darwin" => "darwin-amd64/minio.#{VERSION}",
11
+ "x86_64-linux" => "linux-amd64/minio.#{VERSION}",
12
+ "x64-mingw32" => "windows-amd64/minio.#{VERSION}",
13
+ "x64-mingw-ucrt" => "windows-amd64/minio.#{VERSION}"
14
+ }
15
+ end
16
+ end
@@ -0,0 +1,3 @@
1
+ module MinIO
2
+ VERSION = "0.3.0"
3
+ end
data/lib/minio.rb ADDED
@@ -0,0 +1,24 @@
1
+ # frozen_string_literal: true
2
+
3
+ require_relative "minio/version"
4
+ require_relative "minio/commands"
5
+ require_relative "minio/upstream"
6
+ require_relative "minio/railtie" if defined?(::Rails::Railtie)
7
+
8
+ module MinIO
9
+ class << self
10
+ attr_accessor :configuration
11
+ end
12
+
13
+ def self.configure
14
+ self.configuration ||= Configuration.new
15
+ yield(configuration)
16
+ end
17
+
18
+ class Configuration
19
+ attr_accessor :username, :password
20
+
21
+ def initialize
22
+ end
23
+ end
24
+ end
@@ -0,0 +1,28 @@
1
+ namespace :minio do
2
+ desc "Print the ENV variables set for the MinIO commands, if any"
3
+ task env: :environment do
4
+ if MinIO.configuration.nil?
5
+ warn "You have not configured the MinIO gem with any values to generate ENV variables"
6
+ next
7
+ end
8
+
9
+ puts "MINIO_ROOT_USER=#{MinIO.configuration.username}"
10
+ puts "MINIO_ROOT_PASSWORD=#{MinIO.configuration.password}"
11
+
12
+ true
13
+ end
14
+
15
+ desc "Start the MinIO object storage server, e.g. rake minio:server -- --directory=storage/minio"
16
+ task server: :environment do
17
+ options = {}
18
+ if (separator_index = ARGV.index("--"))
19
+ ARGV.slice(separator_index + 1, ARGV.length)
20
+ .map { |pair| pair.split("=") }
21
+ .each { |opt| options[opt[0]] = opt[1] || nil }
22
+ end
23
+ directory = options.delete("--directory") || options.delete("-directory") || "storage/minio"
24
+ options.symbolize_keys!
25
+
26
+ MinIO::Commands.server(directory, async: true, **options)
27
+ end
28
+ end
metadata ADDED
@@ -0,0 +1,88 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: minio
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.3.0
5
+ platform: x64-mingw32
6
+ authors:
7
+ - Stephen Margheim
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2024-04-29 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: rubyzip
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: '0'
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ">="
25
+ - !ruby/object:Gem::Version
26
+ version: '0'
27
+ - !ruby/object:Gem::Dependency
28
+ name: rails
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ">="
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
41
+ description:
42
+ email:
43
+ - stephen.margheim@gmail.com
44
+ executables:
45
+ - minio
46
+ extensions: []
47
+ extra_rdoc_files: []
48
+ files:
49
+ - LICENSE
50
+ - LICENSE-DEPENDENCIES
51
+ - README.md
52
+ - Rakefile
53
+ - exe/minio
54
+ - exe/x64-mingw32/minio
55
+ - lib/minio.rb
56
+ - lib/minio/commands.rb
57
+ - lib/minio/railtie.rb
58
+ - lib/minio/upstream.rb
59
+ - lib/minio/version.rb
60
+ - lib/tasks/minio_tasks.rake
61
+ homepage: https://github.com/fractaledmind/minio-ruby
62
+ licenses:
63
+ - MIT
64
+ metadata:
65
+ homepage_uri: https://github.com/fractaledmind/minio-ruby
66
+ rubygems_mfa_required: 'true'
67
+ source_code_uri: https://github.com/fractaledmind/minio-ruby
68
+ changelog_uri: https://github.com/fractaledmind/minio-ruby/CHANGELOG.md
69
+ post_install_message:
70
+ rdoc_options: []
71
+ require_paths:
72
+ - lib
73
+ required_ruby_version: !ruby/object:Gem::Requirement
74
+ requirements:
75
+ - - ">="
76
+ - !ruby/object:Gem::Version
77
+ version: 3.0.0
78
+ required_rubygems_version: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - ">="
81
+ - !ruby/object:Gem::Version
82
+ version: '0'
83
+ requirements: []
84
+ rubygems_version: 3.5.1
85
+ signing_key:
86
+ specification_version: 4
87
+ summary: Integrate minio with the RubyGems infrastructure.
88
+ test_files: []