cfoundry 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
data/LICENSE CHANGED
@@ -1,3 +1,288 @@
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ http://www.apache.org/licenses/
4
+
5
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
+
7
+ 1. Definitions.
8
+
9
+ "License" shall mean the terms and conditions for use, reproduction,
10
+ and distribution as defined by Sections 1 through 9 of this document.
11
+
12
+ "Licensor" shall mean the copyright owner or entity authorized by
13
+ the copyright owner that is granting the License.
14
+
15
+ "Legal Entity" shall mean the union of the acting entity and all
16
+ other entities that control, are controlled by, or are under common
17
+ control with that entity. For the purposes of this definition,
18
+ "control" means (i) the power, direct or indirect, to cause the
19
+ direction or management of such entity, whether by contract or
20
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
+ outstanding shares, or (iii) beneficial ownership of such entity.
22
+
23
+ "You" (or "Your") shall mean an individual or Legal Entity
24
+ exercising permissions granted by this License.
25
+
26
+ "Source" form shall mean the preferred form for making modifications,
27
+ including but not limited to software source code, documentation
28
+ source, and configuration files.
29
+
30
+ "Object" form shall mean any form resulting from mechanical
31
+ transformation or translation of a Source form, including but
32
+ not limited to compiled object code, generated documentation,
33
+ and conversions to other media types.
34
+
35
+ "Work" shall mean the work of authorship, whether in Source or
36
+ Object form, made available under the License, as indicated by a
37
+ copyright notice that is included in or attached to the work
38
+ (an example is provided in the Appendix below).
39
+
40
+ "Derivative Works" shall mean any work, whether in Source or Object
41
+ form, that is based on (or derived from) the Work and for which the
42
+ editorial revisions, annotations, elaborations, or other modifications
43
+ represent, as a whole, an original work of authorship. For the purposes
44
+ of this License, Derivative Works shall not include works that remain
45
+ separable from, or merely link (or bind by name) to the interfaces of,
46
+ the Work and Derivative Works thereof.
47
+
48
+ "Contribution" shall mean any work of authorship, including
49
+ the original version of the Work and any modifications or additions
50
+ to that Work or Derivative Works thereof, that is intentionally
51
+ submitted to Licensor for inclusion in the Work by the copyright owner
52
+ or by an individual or Legal Entity authorized to submit on behalf of
53
+ the copyright owner. For the purposes of this definition, "submitted"
54
+ means any form of electronic, verbal, or written communication sent
55
+ to the Licensor or its representatives, including but not limited to
56
+ communication on electronic mailing lists, source code control systems,
57
+ and issue tracking systems that are managed by, or on behalf of, the
58
+ Licensor for the purpose of discussing and improving the Work, but
59
+ excluding communication that is conspicuously marked or otherwise
60
+ designated in writing by the copyright owner as "Not a Contribution."
61
+
62
+ "Contributor" shall mean Licensor and any individual or Legal Entity
63
+ on behalf of whom a Contribution has been received by Licensor and
64
+ subsequently incorporated within the Work.
65
+
66
+ 2. Grant of Copyright License. Subject to the terms and conditions of
67
+ this License, each Contributor hereby grants to You a perpetual,
68
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69
+ copyright license to reproduce, prepare Derivative Works of,
70
+ publicly display, publicly perform, sublicense, and distribute the
71
+ Work and such Derivative Works in Source or Object form.
72
+
73
+ 3. Grant of Patent License. Subject to the terms and conditions of
74
+ this License, each Contributor hereby grants to You a perpetual,
75
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76
+ (except as stated in this section) patent license to make, have made,
77
+ use, offer to sell, sell, import, and otherwise transfer the Work,
78
+ where such license applies only to those patent claims licensable
79
+ by such Contributor that are necessarily infringed by their
80
+ Contribution(s) alone or by combination of their Contribution(s)
81
+ with the Work to which such Contribution(s) was submitted. If You
82
+ institute patent litigation against any entity (including a
83
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
84
+ or a Contribution incorporated within the Work constitutes direct
85
+ or contributory patent infringement, then any patent licenses
86
+ granted to You under this License for that Work shall terminate
87
+ as of the date such litigation is filed.
88
+
89
+ 4. Redistribution. You may reproduce and distribute copies of the
90
+ Work or Derivative Works thereof in any medium, with or without
91
+ modifications, and in Source or Object form, provided that You
92
+ meet the following conditions:
93
+
94
+ (a) You must give any other recipients of the Work or
95
+ Derivative Works a copy of this License; and
96
+
97
+ (b) You must cause any modified files to carry prominent notices
98
+ stating that You changed the files; and
99
+
100
+ (c) You must retain, in the Source form of any Derivative Works
101
+ that You distribute, all copyright, patent, trademark, and
102
+ attribution notices from the Source form of the Work,
103
+ excluding those notices that do not pertain to any part of
104
+ the Derivative Works; and
105
+
106
+ (d) If the Work includes a "NOTICE" text file as part of its
107
+ distribution, then any Derivative Works that You distribute must
108
+ include a readable copy of the attribution notices contained
109
+ within such NOTICE file, excluding those notices that do not
110
+ pertain to any part of the Derivative Works, in at least one
111
+ of the following places: within a NOTICE text file distributed
112
+ as part of the Derivative Works; within the Source form or
113
+ documentation, if provided along with the Derivative Works; or,
114
+ within a display generated by the Derivative Works, if and
115
+ wherever such third-party notices normally appear. The contents
116
+ of the NOTICE file are for informational purposes only and
117
+ do not modify the License. You may add Your own attribution
118
+ notices within Derivative Works that You distribute, alongside
119
+ or as an addendum to the NOTICE text from the Work, provided
120
+ that such additional attribution notices cannot be construed
121
+ as modifying the License.
122
+
123
+ You may add Your own copyright statement to Your modifications and
124
+ may provide additional or different license terms and conditions
125
+ for use, reproduction, or distribution of Your modifications, or
126
+ for any such Derivative Works as a whole, provided Your use,
127
+ reproduction, and distribution of the Work otherwise complies with
128
+ the conditions stated in this License.
129
+
130
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
131
+ any Contribution intentionally submitted for inclusion in the Work
132
+ by You to the Licensor shall be under the terms and conditions of
133
+ this License, without any additional terms or conditions.
134
+ Notwithstanding the above, nothing herein shall supersede or modify
135
+ the terms of any separate license agreement you may have executed
136
+ with Licensor regarding such Contributions.
137
+
138
+ 6. Trademarks. This License does not grant permission to use the trade
139
+ names, trademarks, service marks, or product names of the Licensor,
140
+ except as required for reasonable and customary use in describing the
141
+ origin of the Work and reproducing the content of the NOTICE file.
142
+
143
+ 7. Disclaimer of Warranty. Unless required by applicable law or
144
+ agreed to in writing, Licensor provides the Work (and each
145
+ Contributor provides its Contributions) on an "AS IS" BASIS,
146
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147
+ implied, including, without limitation, any warranties or conditions
148
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149
+ PARTICULAR PURPOSE. You are solely responsible for determining the
150
+ appropriateness of using or redistributing the Work and assume any
151
+ risks associated with Your exercise of permissions under this License.
152
+
153
+ 8. Limitation of Liability. In no event and under no legal theory,
154
+ whether in tort (including negligence), contract, or otherwise,
155
+ unless required by applicable law (such as deliberate and grossly
156
+ negligent acts) or agreed to in writing, shall any Contributor be
157
+ liable to You for damages, including any direct, indirect, special,
158
+ incidental, or consequential damages of any character arising as a
159
+ result of this License or out of the use or inability to use the
160
+ Work (including but not limited to damages for loss of goodwill,
161
+ work stoppage, computer failure or malfunction, or any and all
162
+ other commercial damages or losses), even if such Contributor
163
+ has been advised of the possibility of such damages.
164
+
165
+ 9. Accepting Warranty or Additional Liability. While redistributing
166
+ the Work or Derivative Works thereof, You may choose to offer,
167
+ and charge a fee for, acceptance of support, warranty, indemnity,
168
+ or other liability obligations and/or rights consistent with this
169
+ License. However, in accepting such obligations, You may act only
170
+ on Your own behalf and on Your sole responsibility, not on behalf
171
+ of any other Contributor, and only if You agree to indemnify,
172
+ defend, and hold each Contributor harmless for any liability
173
+ incurred by, or claims asserted against, such Contributor by reason
174
+ of your accepting any such warranty or additional liability.
175
+
176
+ END OF TERMS AND CONDITIONS
177
+
178
+ APPENDIX: How to apply the Apache License to your work.
179
+
180
+ To apply the Apache License to your work, attach the following
181
+ boilerplate notice, with the fields enclosed by brackets "[]"
182
+ replaced with your own identifying information. (Don't include
183
+ the brackets!) The text should be enclosed in the appropriate
184
+ comment syntax for the file format. We also recommend that a
185
+ file or class name and description of purpose be included on the
186
+ same "printed page" as the copyright notice for easier
187
+ identification within third-party archives.
188
+
189
+ Copyright [yyyy] [name of copyright owner]
190
+
191
+ Licensed under the Apache License, Version 2.0 (the "License");
192
+ you may not use this file except in compliance with the License.
193
+ You may obtain a copy of the License at
194
+
195
+ http://www.apache.org/licenses/LICENSE-2.0
196
+
197
+ Unless required by applicable law or agreed to in writing, software
198
+ distributed under the License is distributed on an "AS IS" BASIS,
199
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200
+ See the License for the specific language governing permissions and
201
+ limitations under the License.
202
+
203
+ =======================================================================
204
+
205
+ VMC-Lib 1.0 GA:
206
+
207
+ VMC-Lib 1.0 includes a number of subcomponents with
208
+ separate copyright notices and license terms. The product that
209
+ includes this file does not necessarily use all the open source
210
+ subcomponents referred to below. Your use of the source
211
+ code for the these subcomponents is subject to the terms and
212
+ conditions of the following licenses.
213
+
214
+
215
+ SECTION 1: BSD-STYLE, MIT-STYLE, OR SIMILAR
216
+
217
+ >>> cf-0.1.4
218
+ >>> cfoundry-0.1.1
219
+ >>> diff-lcs-1.1.3
220
+ >>> interact-0.4.2
221
+ >>> manifests-vmc-plugin-0.1.0
222
+ >>> rest-client-1.6.7
223
+ >>> rspec-2.10.0
224
+ >>> rspec-core-2.10.0
225
+ >>> rspec-expectations-2.10.0
226
+ >>> rspec-mocks-2.10.1
227
+ >>> thor-0.14.6
228
+
229
+
230
+
231
+ SECTION 2: Ruby Clause-6
232
+
233
+ >>> json_pure-1.6.7
234
+ >>> mime-types-1.18
235
+ >>> rubyzip-0.9.8
236
+
237
+
238
+
239
+ APPENDIX. Standard License Files
240
+
241
+ >>> Ruby Clause-6
242
+
243
+
244
+
245
+ --------------- SECTION 1: BSD-STYLE, MIT-STYLE, OR SIMILAR STYLE LICENSES ----------
246
+
247
+ BSD-STYLE, MIT-STYLE, OR SIMILAR STYLE LICENSES are applicable to the following component(s).
248
+
249
+
250
+ >>> cf-0.1.4
251
+
252
+ Copyright (c)2012, Alex Suraci
253
+
254
+ All rights reserved.
255
+
256
+ Redistribution and use in source and binary forms, with or without
257
+ modification, are permitted provided that the following conditions are met:
258
+
259
+ * Redistributions of source code must retain the above copyright
260
+ notice, this list of conditions and the following disclaimer.
261
+
262
+ * Redistributions in binary form must reproduce the above
263
+ copyright notice, this list of conditions and the following
264
+ disclaimer in the documentation and/or other materials provided
265
+ with the distribution.
266
+
267
+ * Neither the name of Alex Suraci nor the names of other
268
+ contributors may be used to endorse or promote products derived
269
+ from this software without specific prior written permission.
270
+
271
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
272
+ "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
273
+ LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
274
+ A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
275
+ OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
276
+ SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
277
+ LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
278
+ DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
279
+ THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
280
+ (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
281
+ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
282
+
283
+
284
+ >>> cfoundry-0.1.1
285
+
1
286
  Copyright (c)2012, Alex Suraci
2
287
 
3
288
  All rights reserved.
@@ -28,3 +313,434 @@ DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
28
313
  THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
29
314
  (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
30
315
  OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
316
+
317
+
318
+ >>> diff-lcs-1.1.3
319
+
320
+ [PLEASE NOTE: VMWARE, INC. ELECTS TO USE AND DISTRIBUTE THIS COMPONENT UNDER THE TERMS OF THE MIT LICENSE. PLEASE SEE BELOW FOR THE FULL TEXT OF THE MIT LICENSE. THE ORIGINAL LICENSE TERMS ARE REPRODUCED BELOW ONLY AS A REFERENCE.]
321
+
322
+
323
+ == License
324
+
325
+ This software is available under three licenses: the GNU GPL version 2 (or at
326
+ your option, a later version), the Perl Artistic license, or the MIT license.
327
+ Note that my preference for licensing is the MIT license, but Algorithm::Diff
328
+ was dually originally licensed with the Perl Artistic and the GNU GPL ("the
329
+ same terms as Perl itself") and that the Ruby implementation hews pretty
330
+ closely to the Perl version, so I must maintain the additional licensing terms.
331
+
332
+ * Copyright 20042011 Austin Ziegler.
333
+ * Adapted from Algorithm::Diff (Perl) by Ned Konz and a Smalltalk versionby
334
+ Mario I. Wolczko <mario@wolczko.com>
335
+
336
+ === MIT License
337
+
338
+ Permission is hereby granted, free of charge, to any person obtaining a copy of
339
+ this software and associated documentation files (the "Software"), to deal in
340
+ the Software without restriction, including without limitation the rights to
341
+ use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
342
+ of the Software, and to permit persons to whom the Software is furnished to do
343
+ so, subject to the following conditions:
344
+
345
+ The above copyright notice and this permission notice shall be included in all
346
+ copies or substantial portions of the Software.
347
+
348
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
349
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
350
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
351
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
352
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
353
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
354
+ SOFTWARE.
355
+
356
+ === Perl Artistic License (version 2)
357
+ See the file docs/artistic.txt in the main distribution.
358
+
359
+ === GNU GPL version 2
360
+ See the file docs/COPYING.txt in the main distribution.
361
+
362
+
363
+ >>> interact-0.4.2
364
+
365
+ Copyright (c)2011, Alex Suraci
366
+
367
+ All rights reserved.
368
+
369
+ Redistribution and use in source and binary forms, with or without
370
+ modification, are permitted provided that the following conditions are met:
371
+
372
+ * Redistributions of source code must retain the above copyright
373
+ notice, this list of conditions and the following disclaimer.
374
+
375
+ * Redistributions in binary form must reproduce the above
376
+ copyright notice, this list of conditions and the following
377
+ disclaimer in the documentation and/or other materials provided
378
+ with the distribution.
379
+
380
+ * Neither the name of Alex Suraci nor the names of other
381
+ contributors may be used to endorse or promote products derived
382
+ from this software without specific prior written permission.
383
+
384
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
385
+ "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
386
+ LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
387
+ A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
388
+ OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
389
+ SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
390
+ LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
391
+ DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
392
+ THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
393
+ (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
394
+ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
395
+
396
+
397
+ >>> manifests-vmc-plugin-0.1.0
398
+
399
+ Copyright (c) 2012, Alex Suraci
400
+
401
+ All rights reserved.
402
+
403
+ Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
404
+
405
+ Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
406
+
407
+ Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
408
+
409
+ Neither the name of Alex Suraci nor the names of other contributors may be used to endorse or promote products derived from this software without specific prior written permission.
410
+
411
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
412
+
413
+
414
+ >>> rest-client-1.6.7
415
+
416
+ Released under the MIT License: http://www.opensource.org/licenses/mit-license.php
417
+
418
+ Copyright (c) 2003, 2004 Jim Weirich
419
+
420
+ Permission is hereby granted, free of charge, to any person obtaining
421
+ a copy of this software and associated documentation files (the
422
+ "Software"), to deal in the Software without restriction, including
423
+ without limitation the rights to use, copy, modify, merge, publish,
424
+ distribute, sublicense, and/or sell copies of the Software, and to
425
+ permit persons to whom the Software is furnished to do so, subject to
426
+ the following conditions:
427
+
428
+ The above copyright notice and this permission notice shall be
429
+ included in all copies or substantial portions of the Software.
430
+
431
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
432
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
433
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
434
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
435
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
436
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
437
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
438
+
439
+
440
+ >>> rspec-2.10.0
441
+
442
+ (The MIT License)
443
+
444
+ Copyright (c) 2009 Chad Humphries, David Chelimsky
445
+ Copyright (c) 2006 David Chelimsky, The RSpec Development Team
446
+ Copyright (c) 2005 Steven Baker
447
+
448
+ Permission is hereby granted, free of charge, to any person obtaining
449
+ a copy of this software and associated documentation files (the
450
+ "Software"), to deal in the Software without restriction, including
451
+ without limitation the rights to use, copy, modify, merge, publish,
452
+ distribute, sublicense, and/or sell copies of the Software, and to
453
+ permit persons to whom the Software is furnished to do so, subject to
454
+ the following conditions:
455
+
456
+ The above copyright notice and this permission notice shall be
457
+ included in all copies or substantial portions of the Software.
458
+
459
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
460
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
461
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
462
+ IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
463
+ CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
464
+ TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
465
+ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
466
+
467
+
468
+ >>> rspec-core-2.10.0
469
+
470
+ The MIT License
471
+
472
+ Copyright (c) 2009 Chad Humphries, David Chelimsky
473
+
474
+ Copyright (c) 2006 David Chelimsky, The RSpec Development Team
475
+
476
+ Copyright (c) 2005 Steven Baker
477
+
478
+ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
479
+
480
+ The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
481
+
482
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
483
+
484
+
485
+ >>> rspec-expectations-2.10.0
486
+
487
+ (The MIT License)
488
+
489
+ Copyright (c) 2006 David Chelimsky, The RSpec Development Team
490
+ Copyright (c) 2005 Steven Baker
491
+
492
+ Permission is hereby granted, free of charge, to any person obtaining
493
+ a copy of this software and associated documentation files (the
494
+ "Software"), to deal in the Software without restriction, including
495
+ without limitation the rights to use, copy, modify, merge, publish,
496
+ distribute, sublicense, and/or sell copies of the Software, and to
497
+ permit persons to whom the Software is furnished to do so, subject to
498
+ the following conditions:
499
+
500
+ The above copyright notice and this permission notice shall be
501
+ included in all copies or substantial portions of the Software.
502
+
503
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
504
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
505
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
506
+ IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
507
+ CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
508
+ TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
509
+ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
510
+
511
+
512
+ >>> rspec-mocks-2.10.1
513
+
514
+ (The MIT License)
515
+
516
+ Copyright (c) 2006 David Chelimsky, The RSpec Development Team
517
+ Copyright (c) 2005 Steven Baker
518
+
519
+ Permission is hereby granted, free of charge, to any person obtaining
520
+ a copy of this software and associated documentation files (the
521
+ "Software"), to deal in the Software without restriction, including
522
+ without limitation the rights to use, copy, modify, merge, publish,
523
+ distribute, sublicense, and/or sell copies of the Software, and to
524
+ permit persons to whom the Software is furnished to do so, subject to
525
+ the following conditions:
526
+
527
+ The above copyright notice and this permission notice shall be
528
+ included in all copies or substantial portions of the Software.
529
+
530
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
531
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
532
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
533
+ IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
534
+ CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
535
+ TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
536
+ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
537
+
538
+
539
+ >>> thor-0.14.6
540
+
541
+ Copyright (c) 2008 Yehuda Katz
542
+
543
+ Permission is hereby granted, free of charge, to any person obtaining
544
+ a copy of this software and associated documentation files (the
545
+ "Software"), to deal in the Software without restriction, including
546
+ without limitation the rights to use, copy, modify, merge, publish,
547
+ distribute, sublicense, and/or sell copies of the Software, and to
548
+ permit persons to whom the Software is furnished to do so, subject to
549
+ the following conditions:
550
+
551
+ The above copyright notice and this permission notice shall be
552
+ included in all copies or substantial portions of the Software.
553
+
554
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
555
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
556
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
557
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
558
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
559
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
560
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
561
+
562
+
563
+ --------------- SECTION 2: Ruby Clause-6 ----------
564
+
565
+ Ruby Clause-6 are applicable to the following component(s).
566
+
567
+
568
+ >>> json_pure-1.6.7
569
+
570
+ [PLEASE NOTE: VMWARE, INC. ELECTS TO USE AND DISTRIBUTE THIS COMPONENT UNDER THE TERMS OF THE RUBY LICENSE STATED BELOW. THE ORIGINAL LICENSE TERMS ARE REPRODUCED BELOW ONLY AS A REFERENCE.]
571
+
572
+
573
+ JSON-JRuby is copyrighted free software by Daniel Luz <mernen at gmail dot com>,
574
+ and is a derivative work of Florian Frank's json library <flori at ping dot de>.
575
+ You can redistribute it and/or modify it under either the terms of the GPL
576
+ version 2 (see the file GPL), or the conditions below:
577
+
578
+ 1. You may make and give away verbatim copies of the source form of the
579
+ software without restriction, provided that you duplicate all of the
580
+ original copyright notices and associated disclaimers.
581
+
582
+ 2. You may modify your copy of the software in any way, provided that
583
+ you do at least ONE of the following:
584
+
585
+ a) place your modifications in the Public Domain or otherwise
586
+ make them Freely Available, such as by posting said
587
+ modifications to Usenet or an equivalent medium, or by allowing
588
+ the author to include your modifications in the software.
589
+
590
+ b) use the modified software only within your corporation or
591
+ organization.
592
+
593
+ c) give non-standard binaries non-standard names, with
594
+ instructions on where to get the original software distribution.
595
+
596
+ d) make other distribution arrangements with the author.
597
+
598
+ 3. You may distribute the software in object code or binary form,
599
+ provided that you do at least ONE of the following:
600
+
601
+ a) distribute the binaries and library files of the software,
602
+ together with instructions (in the manual page or equivalent)
603
+ on where to get the original distribution.
604
+
605
+ b) accompany the distribution with the machine-readable source of
606
+ the software.
607
+
608
+ c) give non-standard binaries non-standard names, with
609
+ instructions on where to get the original software distribution.
610
+
611
+ d) make other distribution arrangements with the author.
612
+
613
+ 4. You may modify and include the part of the software into any other
614
+ software (possibly commercial). But some files in the distribution
615
+ are not written by the author, so that they are not under these terms.
616
+
617
+ For the list of those files and their copying conditions, see the
618
+ file LEGAL.
619
+
620
+ 5. The scripts and library files supplied as input to or produced as
621
+ output from the software do not automatically fall under the
622
+ copyright of the software, but belong to whomever generated them,
623
+ and may be sold commercially, and may be aggregated with this
624
+ software.
625
+
626
+ 6. THIS SOFTWARE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR
627
+ IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
628
+ WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
629
+ PURPOSE.
630
+
631
+
632
+ >>> mime-types-1.18
633
+
634
+ [PLEASE NOTE: VMWARE, INC. ELECTS TO USE AND DISTRIBUTE THIS COMPONENT UNDER THE TERMS OF THE RUBY LICENSE. PLEASE SEE THE APPENDIX TO REVIEW THE FULL TEXT OF RUBY LICENSE. THE ORIGINAL LICENSE TERMS ARE REPRODUCED BELOW ONLY AS A REFERENCE.]
635
+
636
+ == Licence
637
+
638
+ This software is available under a triple disjunctive licence:
639
+ {Ruby's licence}[http://www.ruby-lang.org/en/LICENSE.txt],
640
+ the
641
+ {Perl Artistic licence}[http://www.perl.com/pub/a/language/misc/Artistic.html],
642
+ or the {GNU GPL version 2}[http://www.gnu.org/licenses/old-licenses/gpl-2.0.html]
643
+ (or at your option, any later verison).
644
+
645
+ If you do not accept one of these licences, you may not use this software.
646
+
647
+ * Copyright 20032012 Austin Ziegler.
648
+
649
+
650
+ >>> rubyzip-0.9.8
651
+
652
+ Copyright (C) 2002, 2003 Thomas Sondergaard
653
+ rubyzip is free software; you can redistribute it and/or
654
+ modify it under the terms of the ruby license.
655
+
656
+
657
+ =============== APPENDIX. Standard License Files ==============
658
+
659
+
660
+
661
+ --------------- SECTION 1: Ruby Clause-6 -----------
662
+
663
+ Ruby is copyrighted free software by Yukihiro Matsumoto <matz@netlab.co.jp>.
664
+ You can redistribute it and/or modify it under either the terms of the GPL
665
+ (see COPYING.txt file), or the conditions below:
666
+
667
+ 1. You may make and give away verbatim copies of the source form of the
668
+ software without restriction, provided that you duplicate all of the
669
+ original copyright notices and associated disclaimers.
670
+
671
+
672
+ 2. You may modify your copy of the software in any way, provided that
673
+ you do at least ONE of the following:
674
+
675
+ a) place your modifications in the Public Domain or otherwise
676
+ make them Freely Available, such as by posting said
677
+ modifications to Usenet or an equivalent medium, or by allowing
678
+ the author to include your modifications in the software.
679
+
680
+ b) use the modified software only within your corporation or
681
+ organization.
682
+
683
+ c) rename any non-standard executables so the names do not conflict
684
+ with standard executables, which must also be provided.
685
+
686
+ d) make other distribution arrangements with the author.
687
+
688
+
689
+ 3. You may distribute the software in object code or executable
690
+ form, provided that you do at least ONE of the following:
691
+
692
+ a) distribute the executables and library files of the software,
693
+ together with instructions (in the manual page or equivalent)
694
+ on where to get the original distribution.
695
+
696
+ b) accompany the distribution with the machine-readable source of
697
+ the software.
698
+
699
+ c) give non-standard executables non-standard names, with
700
+ instructions on where to get the original software distribution.
701
+
702
+ d) make other distribution arrangements with the author.
703
+
704
+
705
+ 4. You may modify and include the part of the software into any other
706
+ software (possibly commercial). But some files in the distribution
707
+ are not written by the author, so that they are not under this terms.
708
+
709
+ They are gc.c(partly), utils.c(partly), regex.[ch], st.[ch] and some
710
+ files under the ./missing directory. See each file for the copying
711
+ condition.
712
+
713
+
714
+ 5. The scripts and library files supplied as input to or produced as
715
+ output from the software do not automatically fall under the
716
+ copyright of the software, but belong to whomever generated them,
717
+ and may be sold commercially, and may be aggregated with this
718
+ software.
719
+
720
+
721
+ 6. THIS SOFTWARE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR
722
+ IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
723
+ WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
724
+ PURPOSE.
725
+
726
+
727
+ ===========================================================================
728
+
729
+ To the extent any open source components are licensed under the
730
+ GPL and/or LGPL, or other similar licenses that require the
731
+ source code and/or modifications to source code to be made
732
+ available (as would be noted above), you may obtain a copy of
733
+ the source code corresponding to the binaries for such open
734
+ source components and modifications thereto, if any, (the
735
+ "Source Files"), by downloading the Source Files from VMware's website at
736
+ http://www.vmware.com/download/open_source.html, or by sending a request, with
737
+ your name and address to: VMware, Inc., 3401 Hillview Avenue,
738
+ Palo Alto, CA 94304,United States of America. All such
739
+ requests should clearly specify: OPEN SOURCE FILES REQUEST,
740
+ Attention General Counsel. VMware shall mail a copy of the
741
+ Source Files to you on a CD or equivalent physical medium. This
742
+ offer to obtain a copy of the Source Files is valid for three
743
+ years from the date you acquired this Software product. Alternatively,
744
+ the Source Files may accompany the VMware product.
745
+
746
+ [MAPLE-VMC10GAKV051412]
data/lib/cfoundry/app.rb CHANGED
@@ -130,6 +130,17 @@ module CFoundry
130
130
  end
131
131
  end
132
132
 
133
+ def uri
134
+ uris[0]
135
+ end
136
+
137
+ def uri=(x)
138
+ self.uris = [x]
139
+ end
140
+
141
+ alias :url :uri
142
+ alias :url= :uri=
143
+
133
144
  def framework
134
145
  manifest["staging"]["framework"] ||
135
146
  manifest["staging"]["model"]
@@ -227,9 +238,9 @@ module CFoundry
227
238
 
228
239
  resources = determine_resources(tmpdir) if check_resources
229
240
 
230
- CFoundry::Zip.pack(tmpdir, zipfile)
241
+ packed = CFoundry::Zip.pack(tmpdir, zipfile)
231
242
 
232
- @client.rest.upload_app(@name, zipfile, resources || [])
243
+ @client.rest.upload_app(@name, packed && zipfile, resources || [])
233
244
  ensure
234
245
  FileUtils.rm_f(zipfile) if zipfile
235
246
  FileUtils.rm_rf(tmpdir) if tmpdir
@@ -238,7 +249,7 @@ module CFoundry
238
249
  private
239
250
 
240
251
  def prepare_package(path, to)
241
- if path =~ /\.(war|zip)$/
252
+ if path =~ /\.(jar|war|zip)$/
242
253
  CFoundry::Zip.unpack(path, to)
243
254
  elsif war_file = Dir.glob("#{path}/*.war").first
244
255
  CFoundry::Zip.unpack(war_file, to)
@@ -24,6 +24,14 @@ module CFoundry
24
24
  @rest.proxy = x
25
25
  end
26
26
 
27
+ def trace
28
+ @rest.trace
29
+ end
30
+
31
+ def trace=(x)
32
+ @rest.trace = x
33
+ end
34
+
27
35
 
28
36
  # Cloud metadata
29
37
  def info
@@ -6,7 +6,7 @@ require "cfoundry/errors"
6
6
 
7
7
  module CFoundry
8
8
  class RESTClient
9
- attr_accessor :target, :token, :proxy
9
+ attr_accessor :target, :token, :proxy, :trace
10
10
 
11
11
  def initialize(
12
12
  target = "http://api.cloudfoundry.com",
@@ -97,13 +97,15 @@ module CFoundry
97
97
  payload = {
98
98
  :_method => "put",
99
99
  :resources => resources.to_json,
100
+ :multipart => true,
100
101
  :application =>
101
102
  if zipfile.is_a? File
102
103
  zipfile
103
- else
104
+ elsif zipfile.is_a? String
104
105
  File.new(zipfile, "rb")
105
106
  end
106
107
  }
108
+
107
109
  post(payload, "apps", name, "application")
108
110
  rescue RestClient::ServerBrokeConnection
109
111
  retry
@@ -144,9 +146,8 @@ module CFoundry
144
146
 
145
147
  json = req.delete :json
146
148
 
147
- trace = false
148
149
  RestClient::Request.execute(req) do |response, request|
149
- if trace
150
+ if @trace
150
151
  puts '>>>'
151
152
  puts "PROXY: #{RestClient.proxy}" if RestClient.proxy
152
153
  puts "REQUEST: #{req[:method]} #{req[:url]}"
@@ -1,3 +1,3 @@
1
1
  module CFoundry
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  end
data/lib/cfoundry/zip.rb CHANGED
@@ -33,11 +33,16 @@ module CFoundry
33
33
  end
34
34
 
35
35
  def pack(dir, zipfile)
36
+ files = files_to_pack(dir)
37
+ return false if files.empty?
38
+
36
39
  ::Zip::ZipFile.open(zipfile, true) do |zf|
37
- files_to_pack(dir).each do |f|
40
+ files.each do |f|
38
41
  zf.add(f.sub("#{dir}/",''), f)
39
42
  end
40
43
  end
44
+
45
+ true
41
46
  end
42
47
  end
43
48
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cfoundry
3
3
  version: !ruby/object:Gem::Version
4
- hash: 25
4
+ hash: 31
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 1
10
- version: 0.1.1
9
+ - 2
10
+ version: 0.1.2
11
11
  platform: ruby
12
12
  authors:
13
13
  - Alex Suraci
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2012-05-08 00:00:00 Z
18
+ date: 2012-05-23 00:00:00 Z
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
21
21
  name: rest-client
@@ -105,18 +105,18 @@ extra_rdoc_files: []
105
105
  files:
106
106
  - LICENSE
107
107
  - Rakefile
108
- - lib/cfoundry/app.rb
109
- - lib/cfoundry/client.rb
110
108
  - lib/cfoundry/errors.rb
111
109
  - lib/cfoundry/restclient.rb
110
+ - lib/cfoundry/client.rb
111
+ - lib/cfoundry/zip.rb
112
+ - lib/cfoundry/app.rb
112
113
  - lib/cfoundry/service.rb
113
- - lib/cfoundry/user.rb
114
114
  - lib/cfoundry/version.rb
115
- - lib/cfoundry/zip.rb
115
+ - lib/cfoundry/user.rb
116
116
  - lib/cfoundry.rb
117
117
  - spec/client_spec.rb
118
- - spec/helpers.rb
119
118
  - spec/Rakefile
119
+ - spec/helpers.rb
120
120
  homepage: http://cloudfoundry.com/
121
121
  licenses: []
122
122
 
@@ -146,11 +146,11 @@ required_rubygems_version: !ruby/object:Gem::Requirement
146
146
  requirements: []
147
147
 
148
148
  rubyforge_project: cfoundry
149
- rubygems_version: 1.8.23
149
+ rubygems_version: 1.8.24
150
150
  signing_key:
151
151
  specification_version: 3
152
152
  summary: High-level library for working with the Cloud Foundry API.
153
153
  test_files:
154
154
  - spec/client_spec.rb
155
- - spec/helpers.rb
156
155
  - spec/Rakefile
156
+ - spec/helpers.rb