Merge lp:~useful-lenses-team/unity-lens-rubygems/language-support into lp:~useful-lenses-team/unity-lens-rubygems/trunk
- language-support
- Merge into trunk
Proposed by
Constantinos Koniaris
Status: | Merged |
---|---|
Approved by: | Constantinos Koniaris |
Approved revision: | 26 |
Merged at revision: | 20 |
Proposed branch: | lp:~useful-lenses-team/unity-lens-rubygems/language-support |
Merge into: | lp:~useful-lenses-team/unity-lens-rubygems/trunk |
Diff against target: |
2326 lines (+1480/-671) 21 files modified
.quickly (+5/-1) AUTHORS (+1/-1) COPYING (+674/-0) bin/rgems (+0/-31) bin/unity-lens-rubygems (+42/-0) debian/changelog (+4/-1) debian/control (+6/-5) debian/copyright (+7/-5) po/en_GB.po (+39/-0) po/unity-lens-rubygems.pot (+38/-0) rgems.lens (+0/-11) rgems/__init__.py (+0/-66) rgems/rgemsconfig.py (+0/-59) rubygems.lens (+11/-0) setup.py (+31/-17) unity-lens-rgems.service (+0/-3) unity-lens-rgems.svg (+0/-471) unity-lens-rubygems.service (+3/-0) unity-lens-rubygems.svg (+471/-0) unity_lens_rubygems/__init__.py (+75/-0) unity_lens_rubygems/unity_lens_rubygemsconfig.py (+73/-0) |
To merge this branch: | bzr merge lp:~useful-lenses-team/unity-lens-rubygems/language-support |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Constantinos Koniaris | Approve | ||
Review via email: mp+129975@code.launchpad.net |
Commit message
Description of the change
Now, it should work :/
To post a comment you must log in.
Preview Diff
[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1 | === modified file '.quickly' |
2 | --- .quickly 2012-09-27 22:38:48 +0000 |
3 | +++ .quickly 2012-10-16 20:02:20 +0000 |
4 | @@ -1,4 +1,8 @@ |
5 | -project = rgems |
6 | +project = unity-lens-rubygems |
7 | version = 12.04 |
8 | template = unity-lens |
9 | version_ubuntu-application = 12.04 |
10 | +lp_id = unity-lens-rubygems |
11 | +target_distribution = precise |
12 | +ppa = useful-lenses-team/ppa |
13 | +bzrbranch = lp:~useful-lenses-team/unity-lens-rubygems/trunk |
14 | |
15 | === modified file 'AUTHORS' |
16 | --- AUTHORS 2012-10-13 19:18:42 +0000 |
17 | +++ AUTHORS 2012-10-16 20:02:20 +0000 |
18 | @@ -1,1 +1,1 @@ |
19 | -Copyright (C) 2012 Marios Antonouiou <marios.ant@qboss.eu> |
20 | +Copyright (C) 2012 Marios Antonoudiou <marios.ant@qboss.eu> |
21 | |
22 | === added file 'COPYING' |
23 | --- COPYING 1970-01-01 00:00:00 +0000 |
24 | +++ COPYING 2012-10-16 20:02:20 +0000 |
25 | @@ -0,0 +1,674 @@ |
26 | + GNU GENERAL PUBLIC LICENSE |
27 | + Version 3, 29 June 2007 |
28 | + |
29 | + Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/> |
30 | + Everyone is permitted to copy and distribute verbatim copies |
31 | + of this license document, but changing it is not allowed. |
32 | + |
33 | + Preamble |
34 | + |
35 | + The GNU General Public License is a free, copyleft license for |
36 | +software and other kinds of works. |
37 | + |
38 | + The licenses for most software and other practical works are designed |
39 | +to take away your freedom to share and change the works. By contrast, |
40 | +the GNU General Public License is intended to guarantee your freedom to |
41 | +share and change all versions of a program--to make sure it remains free |
42 | +software for all its users. We, the Free Software Foundation, use the |
43 | +GNU General Public License for most of our software; it applies also to |
44 | +any other work released this way by its authors. You can apply it to |
45 | +your programs, too. |
46 | + |
47 | + When we speak of free software, we are referring to freedom, not |
48 | +price. Our General Public Licenses are designed to make sure that you |
49 | +have the freedom to distribute copies of free software (and charge for |
50 | +them if you wish), that you receive source code or can get it if you |
51 | +want it, that you can change the software or use pieces of it in new |
52 | +free programs, and that you know you can do these things. |
53 | + |
54 | + To protect your rights, we need to prevent others from denying you |
55 | +these rights or asking you to surrender the rights. Therefore, you have |
56 | +certain responsibilities if you distribute copies of the software, or if |
57 | +you modify it: responsibilities to respect the freedom of others. |
58 | + |
59 | + For example, if you distribute copies of such a program, whether |
60 | +gratis or for a fee, you must pass on to the recipients the same |
61 | +freedoms that you received. You must make sure that they, too, receive |
62 | +or can get the source code. And you must show them these terms so they |
63 | +know their rights. |
64 | + |
65 | + Developers that use the GNU GPL protect your rights with two steps: |
66 | +(1) assert copyright on the software, and (2) offer you this License |
67 | +giving you legal permission to copy, distribute and/or modify it. |
68 | + |
69 | + For the developers' and authors' protection, the GPL clearly explains |
70 | +that there is no warranty for this free software. For both users' and |
71 | +authors' sake, the GPL requires that modified versions be marked as |
72 | +changed, so that their problems will not be attributed erroneously to |
73 | +authors of previous versions. |
74 | + |
75 | + Some devices are designed to deny users access to install or run |
76 | +modified versions of the software inside them, although the manufacturer |
77 | +can do so. This is fundamentally incompatible with the aim of |
78 | +protecting users' freedom to change the software. The systematic |
79 | +pattern of such abuse occurs in the area of products for individuals to |
80 | +use, which is precisely where it is most unacceptable. Therefore, we |
81 | +have designed this version of the GPL to prohibit the practice for those |
82 | +products. If such problems arise substantially in other domains, we |
83 | +stand ready to extend this provision to those domains in future versions |
84 | +of the GPL, as needed to protect the freedom of users. |
85 | + |
86 | + Finally, every program is threatened constantly by software patents. |
87 | +States should not allow patents to restrict development and use of |
88 | +software on general-purpose computers, but in those that do, we wish to |
89 | +avoid the special danger that patents applied to a free program could |
90 | +make it effectively proprietary. To prevent this, the GPL assures that |
91 | +patents cannot be used to render the program non-free. |
92 | + |
93 | + The precise terms and conditions for copying, distribution and |
94 | +modification follow. |
95 | + |
96 | + TERMS AND CONDITIONS |
97 | + |
98 | + 0. Definitions. |
99 | + |
100 | + "This License" refers to version 3 of the GNU General Public License. |
101 | + |
102 | + "Copyright" also means copyright-like laws that apply to other kinds of |
103 | +works, such as semiconductor masks. |
104 | + |
105 | + "The Program" refers to any copyrightable work licensed under this |
106 | +License. Each licensee is addressed as "you". "Licensees" and |
107 | +"recipients" may be individuals or organizations. |
108 | + |
109 | + To "modify" a work means to copy from or adapt all or part of the work |
110 | +in a fashion requiring copyright permission, other than the making of an |
111 | +exact copy. The resulting work is called a "modified version" of the |
112 | +earlier work or a work "based on" the earlier work. |
113 | + |
114 | + A "covered work" means either the unmodified Program or a work based |
115 | +on the Program. |
116 | + |
117 | + To "propagate" a work means to do anything with it that, without |
118 | +permission, would make you directly or secondarily liable for |
119 | +infringement under applicable copyright law, except executing it on a |
120 | +computer or modifying a private copy. Propagation includes copying, |
121 | +distribution (with or without modification), making available to the |
122 | +public, and in some countries other activities as well. |
123 | + |
124 | + To "convey" a work means any kind of propagation that enables other |
125 | +parties to make or receive copies. Mere interaction with a user through |
126 | +a computer network, with no transfer of a copy, is not conveying. |
127 | + |
128 | + An interactive user interface displays "Appropriate Legal Notices" |
129 | +to the extent that it includes a convenient and prominently visible |
130 | +feature that (1) displays an appropriate copyright notice, and (2) |
131 | +tells the user that there is no warranty for the work (except to the |
132 | +extent that warranties are provided), that licensees may convey the |
133 | +work under this License, and how to view a copy of this License. If |
134 | +the interface presents a list of user commands or options, such as a |
135 | +menu, a prominent item in the list meets this criterion. |
136 | + |
137 | + 1. Source Code. |
138 | + |
139 | + The "source code" for a work means the preferred form of the work |
140 | +for making modifications to it. "Object code" means any non-source |
141 | +form of a work. |
142 | + |
143 | + A "Standard Interface" means an interface that either is an official |
144 | +standard defined by a recognized standards body, or, in the case of |
145 | +interfaces specified for a particular programming language, one that |
146 | +is widely used among developers working in that language. |
147 | + |
148 | + The "System Libraries" of an executable work include anything, other |
149 | +than the work as a whole, that (a) is included in the normal form of |
150 | +packaging a Major Component, but which is not part of that Major |
151 | +Component, and (b) serves only to enable use of the work with that |
152 | +Major Component, or to implement a Standard Interface for which an |
153 | +implementation is available to the public in source code form. A |
154 | +"Major Component", in this context, means a major essential component |
155 | +(kernel, window system, and so on) of the specific operating system |
156 | +(if any) on which the executable work runs, or a compiler used to |
157 | +produce the work, or an object code interpreter used to run it. |
158 | + |
159 | + The "Corresponding Source" for a work in object code form means all |
160 | +the source code needed to generate, install, and (for an executable |
161 | +work) run the object code and to modify the work, including scripts to |
162 | +control those activities. However, it does not include the work's |
163 | +System Libraries, or general-purpose tools or generally available free |
164 | +programs which are used unmodified in performing those activities but |
165 | +which are not part of the work. For example, Corresponding Source |
166 | +includes interface definition files associated with source files for |
167 | +the work, and the source code for shared libraries and dynamically |
168 | +linked subprograms that the work is specifically designed to require, |
169 | +such as by intimate data communication or control flow between those |
170 | +subprograms and other parts of the work. |
171 | + |
172 | + The Corresponding Source need not include anything that users |
173 | +can regenerate automatically from other parts of the Corresponding |
174 | +Source. |
175 | + |
176 | + The Corresponding Source for a work in source code form is that |
177 | +same work. |
178 | + |
179 | + 2. Basic Permissions. |
180 | + |
181 | + All rights granted under this License are granted for the term of |
182 | +copyright on the Program, and are irrevocable provided the stated |
183 | +conditions are met. This License explicitly affirms your unlimited |
184 | +permission to run the unmodified Program. The output from running a |
185 | +covered work is covered by this License only if the output, given its |
186 | +content, constitutes a covered work. This License acknowledges your |
187 | +rights of fair use or other equivalent, as provided by copyright law. |
188 | + |
189 | + You may make, run and propagate covered works that you do not |
190 | +convey, without conditions so long as your license otherwise remains |
191 | +in force. You may convey covered works to others for the sole purpose |
192 | +of having them make modifications exclusively for you, or provide you |
193 | +with facilities for running those works, provided that you comply with |
194 | +the terms of this License in conveying all material for which you do |
195 | +not control copyright. Those thus making or running the covered works |
196 | +for you must do so exclusively on your behalf, under your direction |
197 | +and control, on terms that prohibit them from making any copies of |
198 | +your copyrighted material outside their relationship with you. |
199 | + |
200 | + Conveying under any other circumstances is permitted solely under |
201 | +the conditions stated below. Sublicensing is not allowed; section 10 |
202 | +makes it unnecessary. |
203 | + |
204 | + 3. Protecting Users' Legal Rights From Anti-Circumvention Law. |
205 | + |
206 | + No covered work shall be deemed part of an effective technological |
207 | +measure under any applicable law fulfilling obligations under article |
208 | +11 of the WIPO copyright treaty adopted on 20 December 1996, or |
209 | +similar laws prohibiting or restricting circumvention of such |
210 | +measures. |
211 | + |
212 | + When you convey a covered work, you waive any legal power to forbid |
213 | +circumvention of technological measures to the extent such circumvention |
214 | +is effected by exercising rights under this License with respect to |
215 | +the covered work, and you disclaim any intention to limit operation or |
216 | +modification of the work as a means of enforcing, against the work's |
217 | +users, your or third parties' legal rights to forbid circumvention of |
218 | +technological measures. |
219 | + |
220 | + 4. Conveying Verbatim Copies. |
221 | + |
222 | + You may convey verbatim copies of the Program's source code as you |
223 | +receive it, in any medium, provided that you conspicuously and |
224 | +appropriately publish on each copy an appropriate copyright notice; |
225 | +keep intact all notices stating that this License and any |
226 | +non-permissive terms added in accord with section 7 apply to the code; |
227 | +keep intact all notices of the absence of any warranty; and give all |
228 | +recipients a copy of this License along with the Program. |
229 | + |
230 | + You may charge any price or no price for each copy that you convey, |
231 | +and you may offer support or warranty protection for a fee. |
232 | + |
233 | + 5. Conveying Modified Source Versions. |
234 | + |
235 | + You may convey a work based on the Program, or the modifications to |
236 | +produce it from the Program, in the form of source code under the |
237 | +terms of section 4, provided that you also meet all of these conditions: |
238 | + |
239 | + a) The work must carry prominent notices stating that you modified |
240 | + it, and giving a relevant date. |
241 | + |
242 | + b) The work must carry prominent notices stating that it is |
243 | + released under this License and any conditions added under section |
244 | + 7. This requirement modifies the requirement in section 4 to |
245 | + "keep intact all notices". |
246 | + |
247 | + c) You must license the entire work, as a whole, under this |
248 | + License to anyone who comes into possession of a copy. This |
249 | + License will therefore apply, along with any applicable section 7 |
250 | + additional terms, to the whole of the work, and all its parts, |
251 | + regardless of how they are packaged. This License gives no |
252 | + permission to license the work in any other way, but it does not |
253 | + invalidate such permission if you have separately received it. |
254 | + |
255 | + d) If the work has interactive user interfaces, each must display |
256 | + Appropriate Legal Notices; however, if the Program has interactive |
257 | + interfaces that do not display Appropriate Legal Notices, your |
258 | + work need not make them do so. |
259 | + |
260 | + A compilation of a covered work with other separate and independent |
261 | +works, which are not by their nature extensions of the covered work, |
262 | +and which are not combined with it such as to form a larger program, |
263 | +in or on a volume of a storage or distribution medium, is called an |
264 | +"aggregate" if the compilation and its resulting copyright are not |
265 | +used to limit the access or legal rights of the compilation's users |
266 | +beyond what the individual works permit. Inclusion of a covered work |
267 | +in an aggregate does not cause this License to apply to the other |
268 | +parts of the aggregate. |
269 | + |
270 | + 6. Conveying Non-Source Forms. |
271 | + |
272 | + You may convey a covered work in object code form under the terms |
273 | +of sections 4 and 5, provided that you also convey the |
274 | +machine-readable Corresponding Source under the terms of this License, |
275 | +in one of these ways: |
276 | + |
277 | + a) Convey the object code in, or embodied in, a physical product |
278 | + (including a physical distribution medium), accompanied by the |
279 | + Corresponding Source fixed on a durable physical medium |
280 | + customarily used for software interchange. |
281 | + |
282 | + b) Convey the object code in, or embodied in, a physical product |
283 | + (including a physical distribution medium), accompanied by a |
284 | + written offer, valid for at least three years and valid for as |
285 | + long as you offer spare parts or customer support for that product |
286 | + model, to give anyone who possesses the object code either (1) a |
287 | + copy of the Corresponding Source for all the software in the |
288 | + product that is covered by this License, on a durable physical |
289 | + medium customarily used for software interchange, for a price no |
290 | + more than your reasonable cost of physically performing this |
291 | + conveying of source, or (2) access to copy the |
292 | + Corresponding Source from a network server at no charge. |
293 | + |
294 | + c) Convey individual copies of the object code with a copy of the |
295 | + written offer to provide the Corresponding Source. This |
296 | + alternative is allowed only occasionally and noncommercially, and |
297 | + only if you received the object code with such an offer, in accord |
298 | + with subsection 6b. |
299 | + |
300 | + d) Convey the object code by offering access from a designated |
301 | + place (gratis or for a charge), and offer equivalent access to the |
302 | + Corresponding Source in the same way through the same place at no |
303 | + further charge. You need not require recipients to copy the |
304 | + Corresponding Source along with the object code. If the place to |
305 | + copy the object code is a network server, the Corresponding Source |
306 | + may be on a different server (operated by you or a third party) |
307 | + that supports equivalent copying facilities, provided you maintain |
308 | + clear directions next to the object code saying where to find the |
309 | + Corresponding Source. Regardless of what server hosts the |
310 | + Corresponding Source, you remain obligated to ensure that it is |
311 | + available for as long as needed to satisfy these requirements. |
312 | + |
313 | + e) Convey the object code using peer-to-peer transmission, provided |
314 | + you inform other peers where the object code and Corresponding |
315 | + Source of the work are being offered to the general public at no |
316 | + charge under subsection 6d. |
317 | + |
318 | + A separable portion of the object code, whose source code is excluded |
319 | +from the Corresponding Source as a System Library, need not be |
320 | +included in conveying the object code work. |
321 | + |
322 | + A "User Product" is either (1) a "consumer product", which means any |
323 | +tangible personal property which is normally used for personal, family, |
324 | +or household purposes, or (2) anything designed or sold for incorporation |
325 | +into a dwelling. In determining whether a product is a consumer product, |
326 | +doubtful cases shall be resolved in favor of coverage. For a particular |
327 | +product received by a particular user, "normally used" refers to a |
328 | +typical or common use of that class of product, regardless of the status |
329 | +of the particular user or of the way in which the particular user |
330 | +actually uses, or expects or is expected to use, the product. A product |
331 | +is a consumer product regardless of whether the product has substantial |
332 | +commercial, industrial or non-consumer uses, unless such uses represent |
333 | +the only significant mode of use of the product. |
334 | + |
335 | + "Installation Information" for a User Product means any methods, |
336 | +procedures, authorization keys, or other information required to install |
337 | +and execute modified versions of a covered work in that User Product from |
338 | +a modified version of its Corresponding Source. The information must |
339 | +suffice to ensure that the continued functioning of the modified object |
340 | +code is in no case prevented or interfered with solely because |
341 | +modification has been made. |
342 | + |
343 | + If you convey an object code work under this section in, or with, or |
344 | +specifically for use in, a User Product, and the conveying occurs as |
345 | +part of a transaction in which the right of possession and use of the |
346 | +User Product is transferred to the recipient in perpetuity or for a |
347 | +fixed term (regardless of how the transaction is characterized), the |
348 | +Corresponding Source conveyed under this section must be accompanied |
349 | +by the Installation Information. But this requirement does not apply |
350 | +if neither you nor any third party retains the ability to install |
351 | +modified object code on the User Product (for example, the work has |
352 | +been installed in ROM). |
353 | + |
354 | + The requirement to provide Installation Information does not include a |
355 | +requirement to continue to provide support service, warranty, or updates |
356 | +for a work that has been modified or installed by the recipient, or for |
357 | +the User Product in which it has been modified or installed. Access to a |
358 | +network may be denied when the modification itself materially and |
359 | +adversely affects the operation of the network or violates the rules and |
360 | +protocols for communication across the network. |
361 | + |
362 | + Corresponding Source conveyed, and Installation Information provided, |
363 | +in accord with this section must be in a format that is publicly |
364 | +documented (and with an implementation available to the public in |
365 | +source code form), and must require no special password or key for |
366 | +unpacking, reading or copying. |
367 | + |
368 | + 7. Additional Terms. |
369 | + |
370 | + "Additional permissions" are terms that supplement the terms of this |
371 | +License by making exceptions from one or more of its conditions. |
372 | +Additional permissions that are applicable to the entire Program shall |
373 | +be treated as though they were included in this License, to the extent |
374 | +that they are valid under applicable law. If additional permissions |
375 | +apply only to part of the Program, that part may be used separately |
376 | +under those permissions, but the entire Program remains governed by |
377 | +this License without regard to the additional permissions. |
378 | + |
379 | + When you convey a copy of a covered work, you may at your option |
380 | +remove any additional permissions from that copy, or from any part of |
381 | +it. (Additional permissions may be written to require their own |
382 | +removal in certain cases when you modify the work.) You may place |
383 | +additional permissions on material, added by you to a covered work, |
384 | +for which you have or can give appropriate copyright permission. |
385 | + |
386 | + Notwithstanding any other provision of this License, for material you |
387 | +add to a covered work, you may (if authorized by the copyright holders of |
388 | +that material) supplement the terms of this License with terms: |
389 | + |
390 | + a) Disclaiming warranty or limiting liability differently from the |
391 | + terms of sections 15 and 16 of this License; or |
392 | + |
393 | + b) Requiring preservation of specified reasonable legal notices or |
394 | + author attributions in that material or in the Appropriate Legal |
395 | + Notices displayed by works containing it; or |
396 | + |
397 | + c) Prohibiting misrepresentation of the origin of that material, or |
398 | + requiring that modified versions of such material be marked in |
399 | + reasonable ways as different from the original version; or |
400 | + |
401 | + d) Limiting the use for publicity purposes of names of licensors or |
402 | + authors of the material; or |
403 | + |
404 | + e) Declining to grant rights under trademark law for use of some |
405 | + trade names, trademarks, or service marks; or |
406 | + |
407 | + f) Requiring indemnification of licensors and authors of that |
408 | + material by anyone who conveys the material (or modified versions of |
409 | + it) with contractual assumptions of liability to the recipient, for |
410 | + any liability that these contractual assumptions directly impose on |
411 | + those licensors and authors. |
412 | + |
413 | + All other non-permissive additional terms are considered "further |
414 | +restrictions" within the meaning of section 10. If the Program as you |
415 | +received it, or any part of it, contains a notice stating that it is |
416 | +governed by this License along with a term that is a further |
417 | +restriction, you may remove that term. If a license document contains |
418 | +a further restriction but permits relicensing or conveying under this |
419 | +License, you may add to a covered work material governed by the terms |
420 | +of that license document, provided that the further restriction does |
421 | +not survive such relicensing or conveying. |
422 | + |
423 | + If you add terms to a covered work in accord with this section, you |
424 | +must place, in the relevant source files, a statement of the |
425 | +additional terms that apply to those files, or a notice indicating |
426 | +where to find the applicable terms. |
427 | + |
428 | + Additional terms, permissive or non-permissive, may be stated in the |
429 | +form of a separately written license, or stated as exceptions; |
430 | +the above requirements apply either way. |
431 | + |
432 | + 8. Termination. |
433 | + |
434 | + You may not propagate or modify a covered work except as expressly |
435 | +provided under this License. Any attempt otherwise to propagate or |
436 | +modify it is void, and will automatically terminate your rights under |
437 | +this License (including any patent licenses granted under the third |
438 | +paragraph of section 11). |
439 | + |
440 | + However, if you cease all violation of this License, then your |
441 | +license from a particular copyright holder is reinstated (a) |
442 | +provisionally, unless and until the copyright holder explicitly and |
443 | +finally terminates your license, and (b) permanently, if the copyright |
444 | +holder fails to notify you of the violation by some reasonable means |
445 | +prior to 60 days after the cessation. |
446 | + |
447 | + Moreover, your license from a particular copyright holder is |
448 | +reinstated permanently if the copyright holder notifies you of the |
449 | +violation by some reasonable means, this is the first time you have |
450 | +received notice of violation of this License (for any work) from that |
451 | +copyright holder, and you cure the violation prior to 30 days after |
452 | +your receipt of the notice. |
453 | + |
454 | + Termination of your rights under this section does not terminate the |
455 | +licenses of parties who have received copies or rights from you under |
456 | +this License. If your rights have been terminated and not permanently |
457 | +reinstated, you do not qualify to receive new licenses for the same |
458 | +material under section 10. |
459 | + |
460 | + 9. Acceptance Not Required for Having Copies. |
461 | + |
462 | + You are not required to accept this License in order to receive or |
463 | +run a copy of the Program. Ancillary propagation of a covered work |
464 | +occurring solely as a consequence of using peer-to-peer transmission |
465 | +to receive a copy likewise does not require acceptance. However, |
466 | +nothing other than this License grants you permission to propagate or |
467 | +modify any covered work. These actions infringe copyright if you do |
468 | +not accept this License. Therefore, by modifying or propagating a |
469 | +covered work, you indicate your acceptance of this License to do so. |
470 | + |
471 | + 10. Automatic Licensing of Downstream Recipients. |
472 | + |
473 | + Each time you convey a covered work, the recipient automatically |
474 | +receives a license from the original licensors, to run, modify and |
475 | +propagate that work, subject to this License. You are not responsible |
476 | +for enforcing compliance by third parties with this License. |
477 | + |
478 | + An "entity transaction" is a transaction transferring control of an |
479 | +organization, or substantially all assets of one, or subdividing an |
480 | +organization, or merging organizations. If propagation of a covered |
481 | +work results from an entity transaction, each party to that |
482 | +transaction who receives a copy of the work also receives whatever |
483 | +licenses to the work the party's predecessor in interest had or could |
484 | +give under the previous paragraph, plus a right to possession of the |
485 | +Corresponding Source of the work from the predecessor in interest, if |
486 | +the predecessor has it or can get it with reasonable efforts. |
487 | + |
488 | + You may not impose any further restrictions on the exercise of the |
489 | +rights granted or affirmed under this License. For example, you may |
490 | +not impose a license fee, royalty, or other charge for exercise of |
491 | +rights granted under this License, and you may not initiate litigation |
492 | +(including a cross-claim or counterclaim in a lawsuit) alleging that |
493 | +any patent claim is infringed by making, using, selling, offering for |
494 | +sale, or importing the Program or any portion of it. |
495 | + |
496 | + 11. Patents. |
497 | + |
498 | + A "contributor" is a copyright holder who authorizes use under this |
499 | +License of the Program or a work on which the Program is based. The |
500 | +work thus licensed is called the contributor's "contributor version". |
501 | + |
502 | + A contributor's "essential patent claims" are all patent claims |
503 | +owned or controlled by the contributor, whether already acquired or |
504 | +hereafter acquired, that would be infringed by some manner, permitted |
505 | +by this License, of making, using, or selling its contributor version, |
506 | +but do not include claims that would be infringed only as a |
507 | +consequence of further modification of the contributor version. For |
508 | +purposes of this definition, "control" includes the right to grant |
509 | +patent sublicenses in a manner consistent with the requirements of |
510 | +this License. |
511 | + |
512 | + Each contributor grants you a non-exclusive, worldwide, royalty-free |
513 | +patent license under the contributor's essential patent claims, to |
514 | +make, use, sell, offer for sale, import and otherwise run, modify and |
515 | +propagate the contents of its contributor version. |
516 | + |
517 | + In the following three paragraphs, a "patent license" is any express |
518 | +agreement or commitment, however denominated, not to enforce a patent |
519 | +(such as an express permission to practice a patent or covenant not to |
520 | +sue for patent infringement). To "grant" such a patent license to a |
521 | +party means to make such an agreement or commitment not to enforce a |
522 | +patent against the party. |
523 | + |
524 | + If you convey a covered work, knowingly relying on a patent license, |
525 | +and the Corresponding Source of the work is not available for anyone |
526 | +to copy, free of charge and under the terms of this License, through a |
527 | +publicly available network server or other readily accessible means, |
528 | +then you must either (1) cause the Corresponding Source to be so |
529 | +available, or (2) arrange to deprive yourself of the benefit of the |
530 | +patent license for this particular work, or (3) arrange, in a manner |
531 | +consistent with the requirements of this License, to extend the patent |
532 | +license to downstream recipients. "Knowingly relying" means you have |
533 | +actual knowledge that, but for the patent license, your conveying the |
534 | +covered work in a country, or your recipient's use of the covered work |
535 | +in a country, would infringe one or more identifiable patents in that |
536 | +country that you have reason to believe are valid. |
537 | + |
538 | + If, pursuant to or in connection with a single transaction or |
539 | +arrangement, you convey, or propagate by procuring conveyance of, a |
540 | +covered work, and grant a patent license to some of the parties |
541 | +receiving the covered work authorizing them to use, propagate, modify |
542 | +or convey a specific copy of the covered work, then the patent license |
543 | +you grant is automatically extended to all recipients of the covered |
544 | +work and works based on it. |
545 | + |
546 | + A patent license is "discriminatory" if it does not include within |
547 | +the scope of its coverage, prohibits the exercise of, or is |
548 | +conditioned on the non-exercise of one or more of the rights that are |
549 | +specifically granted under this License. You may not convey a covered |
550 | +work if you are a party to an arrangement with a third party that is |
551 | +in the business of distributing software, under which you make payment |
552 | +to the third party based on the extent of your activity of conveying |
553 | +the work, and under which the third party grants, to any of the |
554 | +parties who would receive the covered work from you, a discriminatory |
555 | +patent license (a) in connection with copies of the covered work |
556 | +conveyed by you (or copies made from those copies), or (b) primarily |
557 | +for and in connection with specific products or compilations that |
558 | +contain the covered work, unless you entered into that arrangement, |
559 | +or that patent license was granted, prior to 28 March 2007. |
560 | + |
561 | + Nothing in this License shall be construed as excluding or limiting |
562 | +any implied license or other defenses to infringement that may |
563 | +otherwise be available to you under applicable patent law. |
564 | + |
565 | + 12. No Surrender of Others' Freedom. |
566 | + |
567 | + If conditions are imposed on you (whether by court order, agreement or |
568 | +otherwise) that contradict the conditions of this License, they do not |
569 | +excuse you from the conditions of this License. If you cannot convey a |
570 | +covered work so as to satisfy simultaneously your obligations under this |
571 | +License and any other pertinent obligations, then as a consequence you may |
572 | +not convey it at all. For example, if you agree to terms that obligate you |
573 | +to collect a royalty for further conveying from those to whom you convey |
574 | +the Program, the only way you could satisfy both those terms and this |
575 | +License would be to refrain entirely from conveying the Program. |
576 | + |
577 | + 13. Use with the GNU Affero General Public License. |
578 | + |
579 | + Notwithstanding any other provision of this License, you have |
580 | +permission to link or combine any covered work with a work licensed |
581 | +under version 3 of the GNU Affero General Public License into a single |
582 | +combined work, and to convey the resulting work. The terms of this |
583 | +License will continue to apply to the part which is the covered work, |
584 | +but the special requirements of the GNU Affero General Public License, |
585 | +section 13, concerning interaction through a network will apply to the |
586 | +combination as such. |
587 | + |
588 | + 14. Revised Versions of this License. |
589 | + |
590 | + The Free Software Foundation may publish revised and/or new versions of |
591 | +the GNU General Public License from time to time. Such new versions will |
592 | +be similar in spirit to the present version, but may differ in detail to |
593 | +address new problems or concerns. |
594 | + |
595 | + Each version is given a distinguishing version number. If the |
596 | +Program specifies that a certain numbered version of the GNU General |
597 | +Public License "or any later version" applies to it, you have the |
598 | +option of following the terms and conditions either of that numbered |
599 | +version or of any later version published by the Free Software |
600 | +Foundation. If the Program does not specify a version number of the |
601 | +GNU General Public License, you may choose any version ever published |
602 | +by the Free Software Foundation. |
603 | + |
604 | + If the Program specifies that a proxy can decide which future |
605 | +versions of the GNU General Public License can be used, that proxy's |
606 | +public statement of acceptance of a version permanently authorizes you |
607 | +to choose that version for the Program. |
608 | + |
609 | + Later license versions may give you additional or different |
610 | +permissions. However, no additional obligations are imposed on any |
611 | +author or copyright holder as a result of your choosing to follow a |
612 | +later version. |
613 | + |
614 | + 15. Disclaimer of Warranty. |
615 | + |
616 | + THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY |
617 | +APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT |
618 | +HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY |
619 | +OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, |
620 | +THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR |
621 | +PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM |
622 | +IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF |
623 | +ALL NECESSARY SERVICING, REPAIR OR CORRECTION. |
624 | + |
625 | + 16. Limitation of Liability. |
626 | + |
627 | + IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING |
628 | +WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS |
629 | +THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY |
630 | +GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE |
631 | +USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF |
632 | +DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD |
633 | +PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), |
634 | +EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF |
635 | +SUCH DAMAGES. |
636 | + |
637 | + 17. Interpretation of Sections 15 and 16. |
638 | + |
639 | + If the disclaimer of warranty and limitation of liability provided |
640 | +above cannot be given local legal effect according to their terms, |
641 | +reviewing courts shall apply local law that most closely approximates |
642 | +an absolute waiver of all civil liability in connection with the |
643 | +Program, unless a warranty or assumption of liability accompanies a |
644 | +copy of the Program in return for a fee. |
645 | + |
646 | + END OF TERMS AND CONDITIONS |
647 | + |
648 | + How to Apply These Terms to Your New Programs |
649 | + |
650 | + If you develop a new program, and you want it to be of the greatest |
651 | +possible use to the public, the best way to achieve this is to make it |
652 | +free software which everyone can redistribute and change under these terms. |
653 | + |
654 | + To do so, attach the following notices to the program. It is safest |
655 | +to attach them to the start of each source file to most effectively |
656 | +state the exclusion of warranty; and each file should have at least |
657 | +the "copyright" line and a pointer to where the full notice is found. |
658 | + |
659 | + <one line to give the program's name and a brief idea of what it does.> |
660 | + Copyright (C) <year> <name of author> |
661 | + |
662 | + This program is free software: you can redistribute it and/or modify |
663 | + it under the terms of the GNU General Public License as published by |
664 | + the Free Software Foundation, either version 3 of the License, or |
665 | + (at your option) any later version. |
666 | + |
667 | + This program is distributed in the hope that it will be useful, |
668 | + but WITHOUT ANY WARRANTY; without even the implied warranty of |
669 | + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
670 | + GNU General Public License for more details. |
671 | + |
672 | + You should have received a copy of the GNU General Public License |
673 | + along with this program. If not, see <http://www.gnu.org/licenses/>. |
674 | + |
675 | +Also add information on how to contact you by electronic and paper mail. |
676 | + |
677 | + If the program does terminal interaction, make it output a short |
678 | +notice like this when it starts in an interactive mode: |
679 | + |
680 | + <program> Copyright (C) <year> <name of author> |
681 | + This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'. |
682 | + This is free software, and you are welcome to redistribute it |
683 | + under certain conditions; type `show c' for details. |
684 | + |
685 | +The hypothetical commands `show w' and `show c' should show the appropriate |
686 | +parts of the General Public License. Of course, your program's commands |
687 | +might be different; for a GUI interface, you would use an "about box". |
688 | + |
689 | + You should also get your employer (if you work as a programmer) or school, |
690 | +if any, to sign a "copyright disclaimer" for the program, if necessary. |
691 | +For more information on this, and how to apply and follow the GNU GPL, see |
692 | +<http://www.gnu.org/licenses/>. |
693 | + |
694 | + The GNU General Public License does not permit incorporating your program |
695 | +into proprietary programs. If your program is a subroutine library, you |
696 | +may consider it more useful to permit linking proprietary applications with |
697 | +the library. If this is what you want to do, use the GNU Lesser General |
698 | +Public License instead of this License. But first, please read |
699 | +<http://www.gnu.org/philosophy/why-not-lgpl.html>. |
700 | |
701 | === removed file 'bin/rgems' |
702 | --- bin/rgems 2012-10-13 19:18:42 +0000 |
703 | +++ bin/rgems 1970-01-01 00:00:00 +0000 |
704 | @@ -1,31 +0,0 @@ |
705 | -#!/usr/bin/python |
706 | -# -*- Mode: Python; coding: utf-8; indent-tabs-mode: nil; tab-width: 4 -*- |
707 | -### BEGIN LICENSE |
708 | -# This file is in the public domain |
709 | -### END LICENSE |
710 | - |
711 | -import os |
712 | -import sys |
713 | - |
714 | -from singlet.utils import run_lens |
715 | - |
716 | -# Add project root directory (enable symlink, and trunk execution). |
717 | -PROJECT_ROOT_DIRECTORY = os.path.abspath( |
718 | - os.path.dirname(os.path.dirname(os.path.realpath(sys.argv[0])))) |
719 | - |
720 | -python_path = [] |
721 | -if os.path.abspath(__file__).startswith('/opt'): |
722 | - syspath = sys.path[:] # copy to avoid infinite loop in pending objects |
723 | - for path in syspath: |
724 | - opt_path = path.replace('/usr', '/opt/extras.ubuntu.com/rgems') |
725 | - python_path.insert(0, opt_path) |
726 | - sys.path.insert(0, opt_path) |
727 | -if (os.path.exists(os.path.join(PROJECT_ROOT_DIRECTORY, 'rgems')) |
728 | - and PROJECT_ROOT_DIRECTORY not in sys.path): |
729 | - python_path.insert(0, PROJECT_ROOT_DIRECTORY) |
730 | - sys.path.insert(0, PROJECT_ROOT_DIRECTORY) |
731 | -if python_path: |
732 | - os.putenv('PYTHONPATH', "%s:%s" % (os.getenv('PYTHONPATH', ''), ':'.join(python_path))) # for subprocesses |
733 | - |
734 | -from rgems import RgemsLens |
735 | -run_lens(RgemsLens, sys.argv) |
736 | |
737 | === added file 'bin/unity-lens-rubygems' |
738 | --- bin/unity-lens-rubygems 1970-01-01 00:00:00 +0000 |
739 | +++ bin/unity-lens-rubygems 2012-10-16 20:02:20 +0000 |
740 | @@ -0,0 +1,42 @@ |
741 | +#!/usr/bin/python |
742 | +# -*- Mode: Python; coding: utf-8; indent-tabs-mode: nil; tab-width: 4 -*- |
743 | +### BEGIN LICENSE |
744 | +# Copyright (C) 2012 Marios Antonoudiou <marios.ant@qboss.eu> |
745 | +# This program is free software: you can redistribute it and/or modify it |
746 | +# under the terms of the GNU General Public License version 3, as published |
747 | +# by the Free Software Foundation. |
748 | +# |
749 | +# This program is distributed in the hope that it will be useful, but |
750 | +# WITHOUT ANY WARRANTY; without even the implied warranties of |
751 | +# MERCHANTABILITY, SATISFACTORY QUALITY, or FITNESS FOR A PARTICULAR |
752 | +# PURPOSE. See the GNU General Public License for more details. |
753 | +# |
754 | +# You should have received a copy of the GNU General Public License along |
755 | +# with this program. If not, see <http://www.gnu.org/licenses/>. |
756 | +### END LICENSE |
757 | + |
758 | +import os |
759 | +import sys |
760 | + |
761 | +from singlet.utils import run_lens |
762 | + |
763 | +# Add project root directory (enable symlink, and trunk execution). |
764 | +PROJECT_ROOT_DIRECTORY = os.path.abspath( |
765 | + os.path.dirname(os.path.dirname(os.path.realpath(sys.argv[0])))) |
766 | + |
767 | +python_path = [] |
768 | +if os.path.abspath(__file__).startswith('/opt'): |
769 | + syspath = sys.path[:] # copy to avoid infinite loop in pending objects |
770 | + for path in syspath: |
771 | + opt_path = path.replace('/usr', '/opt/extras.ubuntu.com/unity-lens-rubygems') |
772 | + python_path.insert(0, opt_path) |
773 | + sys.path.insert(0, opt_path) |
774 | +if (os.path.exists(os.path.join(PROJECT_ROOT_DIRECTORY, 'unity_lens_rubygems')) |
775 | + and PROJECT_ROOT_DIRECTORY not in sys.path): |
776 | + python_path.insert(0, PROJECT_ROOT_DIRECTORY) |
777 | + sys.path.insert(0, PROJECT_ROOT_DIRECTORY) |
778 | +if python_path: |
779 | + os.putenv('PYTHONPATH', "%s:%s" % (os.getenv('PYTHONPATH', ''), ':'.join(python_path))) # for subprocesses |
780 | + |
781 | +from unity_lens_rubygems import RubygemsLens |
782 | +run_lens(RubygemsLens, sys.argv) |
783 | |
784 | === modified file 'debian/changelog' |
785 | --- debian/changelog 2012-10-06 11:49:18 +0000 |
786 | +++ debian/changelog 2012-10-16 20:02:20 +0000 |
787 | @@ -1,5 +1,8 @@ |
788 | rgems (0.1) precise; urgency=low |
789 | |
790 | + [ Mario ] |
791 | * Initial release. |
792 | |
793 | - -- Mario <aouaou@super-desktop> Sat, 06 Oct 2012 14:48:55 +0300 |
794 | + [ Costas ] |
795 | + |
796 | + -- Costas <kostkon@mini2ten> Mon, 15 Oct 2012 01:48:33 +0100 |
797 | |
798 | === modified file 'debian/control' |
799 | --- debian/control 2012-10-06 11:49:18 +0000 |
800 | +++ debian/control 2012-10-16 20:02:20 +0000 |
801 | @@ -1,17 +1,18 @@ |
802 | -Source: rgems |
803 | +Source: unity-lens-rubygems |
804 | Section: python |
805 | Priority: extra |
806 | Build-Depends: debhelper (>= 8), |
807 | python (>= 2.6.6-3~), |
808 | python-distutils-extra (>= 2.10) |
809 | -Maintainer: UNKNOWN <UNKNOWN> |
810 | +Maintainer: Marios Antontoudiou <marios.ant@qboss.eu> |
811 | Standards-Version: 3.9.3 |
812 | X-Python-Version: >= 2.6 |
813 | |
814 | -Package: rgems |
815 | +Package: unity-lens-rubygems |
816 | Architecture: all |
817 | Depends: ${misc:Depends}, |
818 | ${python:Depends}, |
819 | python-unity-singlet |
820 | -Description: UNKNOWN |
821 | - UNKNOWN |
822 | +Description: Lens that searches for Ruby gems. |
823 | + Lens that searches rubygems.org for available Ruby gems and your local |
824 | + system for gems that are already installed. |
825 | |
826 | === modified file 'debian/copyright' |
827 | --- debian/copyright 2012-10-06 11:49:18 +0000 |
828 | +++ debian/copyright 2012-10-16 20:02:20 +0000 |
829 | @@ -1,8 +1,10 @@ |
830 | Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ |
831 | -Upstream-Name: rgems |
832 | -Upstream-Contact: UNKNOWN <UNKNOWN> |
833 | -Source: UNKNOWN |
834 | +Upstream-Name: unity-lens-rubygems |
835 | +Upstream-Contact: Marios Antontoudiou <marios.ant@qboss.eu> |
836 | +Source: https://launchpad.net/unity-lens-rubygems |
837 | |
838 | Files: * |
839 | -Copyright: (C) 2012 Marios Antonouiou <marios.ant@qboss.eu> |
840 | -License: UNKNOWN |
841 | +Copyright: (C) 2012 Marios Antonoudiou <marios.ant@qboss.eu> |
842 | +License: GPL-3 |
843 | + The full text of the GPL is distributed in |
844 | + /usr/share/common-licenses/GPL-3 on Debian systems. |
845 | |
846 | === added directory 'po' |
847 | === added file 'po/en_GB.po' |
848 | --- po/en_GB.po 1970-01-01 00:00:00 +0000 |
849 | +++ po/en_GB.po 2012-10-16 20:02:20 +0000 |
850 | @@ -0,0 +1,39 @@ |
851 | +# English translations for PACKAGE package |
852 | +# English (United Kingdom) translations for PACKAGE package. |
853 | +# Copyright (C) 2012 THE PACKAGE'S COPYRIGHT HOLDER |
854 | +# This file is distributed under the same license as the PACKAGE package. |
855 | +# Constantinos Koniaris <kostas291@yahoo.com>, 2012. |
856 | +# |
857 | +msgid "" |
858 | +msgstr "" |
859 | +"Project-Id-Version: PACKAGE VERSION\n" |
860 | +"Report-Msgid-Bugs-To: \n" |
861 | +"POT-Creation-Date: 2012-10-15 04:01+0100\n" |
862 | +"PO-Revision-Date: 2012-10-15 04:07+0100\n" |
863 | +"Last-Translator: Constantinos Koniaris <kostas291@yahoo.com>\n" |
864 | +"Language-Team: English (British)\n" |
865 | +"Language: en_GB\n" |
866 | +"MIME-Version: 1.0\n" |
867 | +"Content-Type: text/plain; charset=UTF-8\n" |
868 | +"Content-Transfer-Encoding: 8bit\n" |
869 | +"Plural-Forms: nplurals=2; plural=(n != 1);\n" |
870 | + |
871 | +#: __init__.py:20 |
872 | +msgid "Rubygems Lens" |
873 | +msgstr "Rubygems Lens" |
874 | + |
875 | +#: __init__.py:21 |
876 | +msgid "Search Rubygems" |
877 | +msgstr "Search Rubygems" |
878 | + |
879 | +#: __init__.py:25 |
880 | +msgid "Available Rubygems" |
881 | +msgstr "Available Rubygems" |
882 | + |
883 | +#: __init__.py:26 |
884 | +msgid "Installed Rubygems" |
885 | +msgstr "Installed Rubygems" |
886 | + |
887 | +#: __init__.py:73 |
888 | +msgid "Locally installed rubygem" |
889 | +msgstr "Locally installed rubygem" |
890 | |
891 | === added file 'po/unity-lens-rubygems.pot' |
892 | --- po/unity-lens-rubygems.pot 1970-01-01 00:00:00 +0000 |
893 | +++ po/unity-lens-rubygems.pot 2012-10-16 20:02:20 +0000 |
894 | @@ -0,0 +1,38 @@ |
895 | +# SOME DESCRIPTIVE TITLE. |
896 | +# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER |
897 | +# This file is distributed under the same license as the PACKAGE package. |
898 | +# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR. |
899 | +# |
900 | +#, fuzzy |
901 | +msgid "" |
902 | +msgstr "" |
903 | +"Project-Id-Version: PACKAGE VERSION\n" |
904 | +"Report-Msgid-Bugs-To: \n" |
905 | +"POT-Creation-Date: 2012-10-15 04:01+0100\n" |
906 | +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" |
907 | +"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" |
908 | +"Language-Team: LANGUAGE <LL@li.org>\n" |
909 | +"Language: \n" |
910 | +"MIME-Version: 1.0\n" |
911 | +"Content-Type: text/plain; charset=CHARSET\n" |
912 | +"Content-Transfer-Encoding: 8bit\n" |
913 | + |
914 | +#: __init__.py:20 |
915 | +msgid "Rubygems Lens" |
916 | +msgstr "" |
917 | + |
918 | +#: __init__.py:21 |
919 | +msgid "Search Rubygems" |
920 | +msgstr "" |
921 | + |
922 | +#: __init__.py:25 |
923 | +msgid "Available Rubygems" |
924 | +msgstr "" |
925 | + |
926 | +#: __init__.py:26 |
927 | +msgid "Installed Rubygems" |
928 | +msgstr "" |
929 | + |
930 | +#: __init__.py:73 |
931 | +msgid "Locally installed rubygem" |
932 | +msgstr "" |
933 | |
934 | === removed directory 'rgems' |
935 | === removed file 'rgems.lens' |
936 | --- rgems.lens 2012-10-13 19:18:42 +0000 |
937 | +++ rgems.lens 1970-01-01 00:00:00 +0000 |
938 | @@ -1,11 +0,0 @@ |
939 | -[Lens] |
940 | -DBusName=unity.singlet.lens.rgems |
941 | -DBusPath=/unity/singlet/lens/rgems |
942 | -Name=Rubygems |
943 | -Icon=/usr/share/unity/lenses/rgems/unity-lens-rgems.svg |
944 | -Description=Rubygems Lens |
945 | -SearchHint=Search Rubygems |
946 | -#Shortcut=c |
947 | - |
948 | -[Desktop Entry] |
949 | -X-Ubuntu-Gettext-Domain=rgems |
950 | |
951 | === removed file 'rgems/__init__.py' |
952 | --- rgems/__init__.py 2012-10-13 19:18:42 +0000 |
953 | +++ rgems/__init__.py 1970-01-01 00:00:00 +0000 |
954 | @@ -1,66 +0,0 @@ |
955 | -import urllib2 |
956 | -import json |
957 | - |
958 | -import logging |
959 | -import optparse |
960 | -import subprocess |
961 | - |
962 | -import gettext |
963 | -from gettext import gettext as _ |
964 | -gettext.textdomain('rgems') |
965 | - |
966 | -from singlet.lens import SingleScopeLens, IconViewCategory, ListViewCategory |
967 | - |
968 | -from rgemsconfig import * |
969 | - |
970 | -class RgemsLens(SingleScopeLens): |
971 | - |
972 | - class Meta: |
973 | - name = 'rgems' |
974 | - description = 'Rubygems Lens' |
975 | - search_hint = 'Search Rubygems' |
976 | - icon = 'unity-lens-rubygems.png' |
977 | - search_on_blank = False |
978 | - |
979 | - available_rgems_category = ListViewCategory("Available Rubygems", 'text-x-ruby') |
980 | - installed_rgems_category = IconViewCategory("Installed Rubygems", 'text-x-ruby') |
981 | - |
982 | - def gem_search_query(self, search): |
983 | - gems_api_url = "https://rubygems.org/api/v1" |
984 | - try: |
985 | - data = json.load(urllib2.urlopen("%s/search.json?query=%s"%(gems_api_url,search))) |
986 | - return data |
987 | - except Exception: |
988 | - return [] |
989 | - |
990 | - def gem_installed_query(self, search): |
991 | - try: |
992 | - new_data = [] |
993 | - data = subprocess.check_output(["gem", "search", search], universal_newlines=True).splitlines() |
994 | - |
995 | - for line in data: |
996 | - if len(line) > 0 and "local gems" not in line.lower(): |
997 | - new_data.append(line.split(" ")[0]) |
998 | - return new_data |
999 | - except Exception: |
1000 | - return [] |
1001 | - |
1002 | - def search(self, search, results): |
1003 | - for gem in self.gem_search_query(search): |
1004 | - results.append(gem["homepage_uri"], |
1005 | - "applications-ruby", |
1006 | - self.available_rgems_category, |
1007 | - "text/html", |
1008 | - gem["name"], |
1009 | - gem["info"], |
1010 | - gem["homepage_uri"]) |
1011 | - |
1012 | - for gem in self.gem_installed_query(search): |
1013 | - results.append("http://rubygems.org/gems/%s" % gem, |
1014 | - "applications-ruby", |
1015 | - self.installed_rgems_category, |
1016 | - "text/html", |
1017 | - gem, |
1018 | - "Locally installed rubygem", |
1019 | - "http://rubygems.org/gems/%s" % gem) |
1020 | - pass |
1021 | |
1022 | === removed file 'rgems/rgemsconfig.py' |
1023 | --- rgems/rgemsconfig.py 2012-10-13 19:18:42 +0000 |
1024 | +++ rgems/rgemsconfig.py 1970-01-01 00:00:00 +0000 |
1025 | @@ -1,59 +0,0 @@ |
1026 | -# -*- Mode: Python; coding: utf-8; indent-tabs-mode: nil; tab-width: 4 -*- |
1027 | -### BEGIN LICENSE |
1028 | -# This file is in the public domain |
1029 | -### END LICENSE |
1030 | - |
1031 | -# THIS IS Rgems CONFIGURATION FILE |
1032 | -# YOU CAN PUT THERE SOME GLOBAL VALUE |
1033 | -# Do not touch unless you know what you're doing. |
1034 | -# you're warned :) |
1035 | - |
1036 | -__all__ = [ |
1037 | - 'project_path_not_found', |
1038 | - 'get_data_file', |
1039 | - 'get_data_path', |
1040 | - ] |
1041 | - |
1042 | -# Where your project will look for your data (for instance, images and ui |
1043 | -# files). By default, this is ../data, relative your trunk layout |
1044 | -__rgems_data_directory__ = '../data/' |
1045 | -__license__ = '' |
1046 | -__version__ = 'VERSION' |
1047 | - |
1048 | -import os |
1049 | - |
1050 | -import gettext |
1051 | -from gettext import gettext as _ |
1052 | -gettext.textdomain('rgems') |
1053 | - |
1054 | -class project_path_not_found(Exception): |
1055 | - """Raised when we can't find the project directory.""" |
1056 | - |
1057 | - |
1058 | -def get_data_file(*path_segments): |
1059 | - """Get the full path to a data file. |
1060 | - |
1061 | - Returns the path to a file underneath the data directory (as defined by |
1062 | - `get_data_path`). Equivalent to os.path.join(get_data_path(), |
1063 | - *path_segments). |
1064 | - """ |
1065 | - return os.path.join(get_data_path(), *path_segments) |
1066 | - |
1067 | - |
1068 | -def get_data_path(): |
1069 | - """Retrieve rgems data path |
1070 | - |
1071 | - This path is by default <rgems_lib_path>/../data/ in trunk |
1072 | - and /usr/share/rgems in an installed version but this path |
1073 | - is specified at installation time. |
1074 | - """ |
1075 | - |
1076 | - # Get pathname absolute or relative. |
1077 | - path = os.path.join( |
1078 | - os.path.dirname(__file__), __rgems_data_directory__) |
1079 | - |
1080 | - abs_data_path = os.path.abspath(path) |
1081 | - if not os.path.exists(abs_data_path): |
1082 | - raise project_path_not_found |
1083 | - |
1084 | - return abs_data_path |
1085 | \ No newline at end of file |
1086 | |
1087 | === added file 'rubygems.lens' |
1088 | --- rubygems.lens 1970-01-01 00:00:00 +0000 |
1089 | +++ rubygems.lens 2012-10-16 20:02:20 +0000 |
1090 | @@ -0,0 +1,11 @@ |
1091 | +[Lens] |
1092 | +DBusName=unity.singlet.lens.rubygems |
1093 | +DBusPath=/unity/singlet/lens/rubygems |
1094 | +Name=Rubygems |
1095 | +Icon=/usr/share/unity/lenses/rubygems/unity-lens-rubygems.svg |
1096 | +Description=Rubygems Lens |
1097 | +SearchHint=Search Rubygems |
1098 | +#Shortcut=c |
1099 | + |
1100 | +[Desktop Entry] |
1101 | +X-Ubuntu-Gettext-Domain=unity-lens-rubygems |
1102 | |
1103 | === modified file 'setup.py' |
1104 | --- setup.py 2012-10-13 19:18:42 +0000 |
1105 | +++ setup.py 2012-10-16 20:02:20 +0000 |
1106 | @@ -1,7 +1,18 @@ |
1107 | #!/usr/bin/env python |
1108 | # -*- Mode: Python; coding: utf-8; indent-tabs-mode: nil; tab-width: 4 -*- |
1109 | ### BEGIN LICENSE |
1110 | -# This file is in the public domain |
1111 | +# Copyright (C) 2012 Marios Antonoudiou <marios.ant@qboss.eu> |
1112 | +# This program is free software: you can redistribute it and/or modify it |
1113 | +# under the terms of the GNU General Public License version 3, as published |
1114 | +# by the Free Software Foundation. |
1115 | +# |
1116 | +# This program is distributed in the hope that it will be useful, but |
1117 | +# WITHOUT ANY WARRANTY; without even the implied warranties of |
1118 | +# MERCHANTABILITY, SATISFACTORY QUALITY, or FITNESS FOR A PARTICULAR |
1119 | +# PURPOSE. See the GNU General Public License for more details. |
1120 | +# |
1121 | +# You should have received a copy of the GNU General Public License along |
1122 | +# with this program. If not, see <http://www.gnu.org/licenses/>. |
1123 | ### END LICENSE |
1124 | |
1125 | ###################### DO NOT TOUCH THIS (HEAD TO THE SECOND PART) ###################### |
1126 | @@ -13,7 +24,7 @@ |
1127 | import DistUtilsExtra.auto |
1128 | from DistUtilsExtra.command import build_extra |
1129 | except ImportError: |
1130 | - print >> sys.stderr, 'To build rgems you need https://launchpad.net/python-distutils-extra' |
1131 | + print >> sys.stderr, 'To build unity-lens-rubygems you need https://launchpad.net/python-distutils-extra' |
1132 | sys.exit(1) |
1133 | assert DistUtilsExtra.auto.__version__ >= '2.18', 'needs DistUtilsExtra.auto >= 2.18' |
1134 | |
1135 | @@ -21,7 +32,7 @@ |
1136 | |
1137 | oldvalues = {} |
1138 | try: |
1139 | - fin = file('rgems/rgemsconfig.py', 'r') |
1140 | + fin = file('unity_lens_rubygems/unity_lens_rubygemsconfig.py', 'r') |
1141 | fout = file(fin.name + '.new', 'w') |
1142 | |
1143 | for line in fin: |
1144 | @@ -36,14 +47,14 @@ |
1145 | fin.close() |
1146 | os.rename(fout.name, fin.name) |
1147 | except (OSError, IOError), e: |
1148 | - print ("ERROR: Can't find rgems/rgemsconfig.py") |
1149 | + print ("ERROR: Can't find unity_lens_rubygems/unity_lens_rubygemsconfig.py") |
1150 | sys.exit(1) |
1151 | return oldvalues |
1152 | |
1153 | |
1154 | class InstallAndUpdateDataDirectory(DistUtilsExtra.auto.install_auto): |
1155 | def run(self): |
1156 | - values = {'__rgems_data_directory__': "'%s'" % (self.prefix + '/share/rgems/'), |
1157 | + values = {'__unity_lens_rubygems_data_directory__': "'%s'" % (self.prefix + '/share/unity-lens-rubygems/'), |
1158 | '__version__': "'%s'" % (self.distribution.get_version())} |
1159 | previous_values = update_config(values) |
1160 | DistUtilsExtra.auto.install_auto.run(self) |
1161 | @@ -56,19 +67,22 @@ |
1162 | ################################################################################## |
1163 | |
1164 | DistUtilsExtra.auto.setup( |
1165 | - name='rgems', |
1166 | - version='0.1', |
1167 | - #license='GPL-3', |
1168 | - #author='Your Name', |
1169 | - #author_email='email@ubuntu.com', |
1170 | - #description='UI for managing …', |
1171 | - #long_description='Here a longer description', |
1172 | - #url='https://launchpad.net/rgems', |
1173 | + name='unity-lens-rubygems', |
1174 | + version='0.2', |
1175 | + license='GPL-3', |
1176 | + author='Marios Antontoudiou', |
1177 | + author_email='marios.ant@qboss.eu', |
1178 | + description='Lens that searches for Ruby gems.', |
1179 | + long_description='Lens that searches rubygems.org' |
1180 | + ' for available Ruby gems and' |
1181 | + ' your local system for gems that' |
1182 | + ' are already installed.', |
1183 | + url='https://launchpad.net/unity-lens-rubygems', |
1184 | data_files=[ |
1185 | - ('share/unity/lenses/rgems', ['rgems.lens']), |
1186 | - ('share/dbus-1/services', ['unity-lens-rgems.service']), |
1187 | - ('share/unity/lenses/rgems', ['unity-lens-rgems.svg']), |
1188 | - ('bin', ['bin/rgems']), |
1189 | + ('share/unity/lenses/rubygems', ['rubygems.lens']), |
1190 | + ('share/dbus-1/services', ['unity-lens-rubygems.service']), |
1191 | + ('share/unity/lenses/rubygems', ['unity-lens-rubygems.svg']), |
1192 | + ('bin', ['bin/unity-lens-rubygems']), |
1193 | ], |
1194 | cmdclass={"build": build_extra.build_extra, 'install': InstallAndUpdateDataDirectory} |
1195 | ) |
1196 | |
1197 | === removed file 'unity-lens-rgems.png' |
1198 | Binary files unity-lens-rgems.png 2012-10-13 19:18:42 +0000 and unity-lens-rgems.png 1970-01-01 00:00:00 +0000 differ |
1199 | === removed file 'unity-lens-rgems.service' |
1200 | --- unity-lens-rgems.service 2012-10-13 19:18:42 +0000 |
1201 | +++ unity-lens-rgems.service 1970-01-01 00:00:00 +0000 |
1202 | @@ -1,3 +0,0 @@ |
1203 | -[D-BUS Service] |
1204 | -Name=unity.singlet.lens.rgems |
1205 | -Exec=/usr/bin/rgems |
1206 | |
1207 | === removed file 'unity-lens-rgems.svg' |
1208 | --- unity-lens-rgems.svg 2012-10-13 19:18:42 +0000 |
1209 | +++ unity-lens-rgems.svg 1970-01-01 00:00:00 +0000 |
1210 | @@ -1,471 +0,0 @@ |
1211 | -<?xml version="1.0" encoding="UTF-8" standalone="no"?> |
1212 | -<!-- Created with Inkscape (http://www.inkscape.org/) --> |
1213 | - |
1214 | -<svg |
1215 | - xmlns:dc="http://purl.org/dc/elements/1.1/" |
1216 | - xmlns:cc="http://creativecommons.org/ns#" |
1217 | - xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" |
1218 | - xmlns:svg="http://www.w3.org/2000/svg" |
1219 | - xmlns="http://www.w3.org/2000/svg" |
1220 | - xmlns:xlink="http://www.w3.org/1999/xlink" |
1221 | - xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd" |
1222 | - xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape" |
1223 | - id="svg2521" |
1224 | - height="48" |
1225 | - width="48" |
1226 | - version="1.0" |
1227 | - inkscape:version="0.48.3.1 r9886" |
1228 | - sodipodi:docname="unity-lens-rgems.svg"> |
1229 | - <metadata |
1230 | - id="metadata93"> |
1231 | - <rdf:RDF> |
1232 | - <cc:Work |
1233 | - rdf:about=""> |
1234 | - <dc:format>image/svg+xml</dc:format> |
1235 | - <dc:type |
1236 | - rdf:resource="http://purl.org/dc/dcmitype/StillImage" /> |
1237 | - </cc:Work> |
1238 | - </rdf:RDF> |
1239 | - </metadata> |
1240 | - <sodipodi:namedview |
1241 | - pagecolor="#ffffff" |
1242 | - bordercolor="#666666" |
1243 | - borderopacity="1" |
1244 | - objecttolerance="10" |
1245 | - gridtolerance="10" |
1246 | - guidetolerance="10" |
1247 | - inkscape:pageopacity="0" |
1248 | - inkscape:pageshadow="2" |
1249 | - inkscape:window-width="640" |
1250 | - inkscape:window-height="480" |
1251 | - id="namedview91" |
1252 | - showgrid="false" |
1253 | - inkscape:zoom="0.61458333" |
1254 | - inkscape:cx="-108.66365" |
1255 | - inkscape:cy="-3.7602771" |
1256 | - inkscape:window-x="117" |
1257 | - inkscape:window-y="138" |
1258 | - inkscape:window-maximized="0" |
1259 | - inkscape:current-layer="layer1" /> |
1260 | - <defs |
1261 | - id="defs2523"> |
1262 | - <linearGradient |
1263 | - id="linearGradient2647" |
1264 | - y2="609.51" |
1265 | - gradientUnits="userSpaceOnUse" |
1266 | - x2="302.86" |
1267 | - gradientTransform="matrix(.067325 0 0 0.0147 -.34114 37.04)" |
1268 | - y1="366.65" |
1269 | - x1="302.86"> |
1270 | - <stop |
1271 | - id="stop5050" |
1272 | - style="stop-opacity:0" |
1273 | - offset="0" /> |
1274 | - <stop |
1275 | - id="stop5056" |
1276 | - offset=".5" /> |
1277 | - <stop |
1278 | - id="stop5052" |
1279 | - style="stop-opacity:0" |
1280 | - offset="1" /> |
1281 | - </linearGradient> |
1282 | - <radialGradient |
1283 | - id="radialGradient2644" |
1284 | - xlink:href="#linearGradient5060" |
1285 | - gradientUnits="userSpaceOnUse" |
1286 | - cy="486.65" |
1287 | - cx="605.71" |
1288 | - gradientTransform="matrix(-.023040 0 0 0.0147 21.623 37.04)" |
1289 | - r="117.14" /> |
1290 | - <linearGradient |
1291 | - id="linearGradient5060"> |
1292 | - <stop |
1293 | - id="stop5062" |
1294 | - offset="0" /> |
1295 | - <stop |
1296 | - id="stop5064" |
1297 | - style="stop-opacity:0" |
1298 | - offset="1" /> |
1299 | - </linearGradient> |
1300 | - <radialGradient |
1301 | - id="radialGradient2641" |
1302 | - xlink:href="#linearGradient5060" |
1303 | - gradientUnits="userSpaceOnUse" |
1304 | - cy="486.65" |
1305 | - cx="605.71" |
1306 | - gradientTransform="matrix(.023040 0 0 0.0147 26.361 37.04)" |
1307 | - r="117.14" /> |
1308 | - <linearGradient |
1309 | - id="linearGradient2638" |
1310 | - y2="2.9062" |
1311 | - xlink:href="#linearGradient3104" |
1312 | - gradientUnits="userSpaceOnUse" |
1313 | - x2="-51.786" |
1314 | - gradientTransform="matrix(.80750 0 0 .89483 59.41 -2.9806)" |
1315 | - y1="50.786" |
1316 | - x1="-51.786" /> |
1317 | - <linearGradient |
1318 | - id="linearGradient2636" |
1319 | - y2="47.013" |
1320 | - gradientUnits="userSpaceOnUse" |
1321 | - x2="25.132" |
1322 | - gradientTransform="matrix(1 0 0 .95617 -1.0065e-7 -1.9149)" |
1323 | - y1=".98521" |
1324 | - x1="25.132"> |
1325 | - <stop |
1326 | - id="stop3602" |
1327 | - style="stop-color:#f4f4f4" |
1328 | - offset="0" /> |
1329 | - <stop |
1330 | - id="stop3604" |
1331 | - style="stop-color:#dbdbdb" |
1332 | - offset="1" /> |
1333 | - </linearGradient> |
1334 | - <radialGradient |
1335 | - id="radialGradient2633" |
1336 | - gradientUnits="userSpaceOnUse" |
1337 | - cy="112.3" |
1338 | - cx="102" |
1339 | - gradientTransform="matrix(.36170 0 0 -.39078 .85106 47.517)" |
1340 | - r="139.56"> |
1341 | - <stop |
1342 | - id="stop41" |
1343 | - style="stop-color:#b7b8b9" |
1344 | - offset="0" /> |
1345 | - <stop |
1346 | - id="stop47" |
1347 | - style="stop-color:#ececec" |
1348 | - offset=".18851" /> |
1349 | - <stop |
1350 | - id="stop49" |
1351 | - style="stop-color:#fafafa;stop-opacity:0" |
1352 | - offset=".25718" /> |
1353 | - <stop |
1354 | - id="stop51" |
1355 | - style="stop-color:#fff;stop-opacity:0" |
1356 | - offset=".30111" /> |
1357 | - <stop |
1358 | - id="stop53" |
1359 | - style="stop-color:#fafafa;stop-opacity:0" |
1360 | - offset=".53130" /> |
1361 | - <stop |
1362 | - id="stop55" |
1363 | - style="stop-color:#ebecec;stop-opacity:0" |
1364 | - offset=".84490" /> |
1365 | - <stop |
1366 | - id="stop57" |
1367 | - style="stop-color:#e1e2e3;stop-opacity:0" |
1368 | - offset="1" /> |
1369 | - </radialGradient> |
1370 | - <linearGradient |
1371 | - id="linearGradient2630" |
1372 | - y2="46.017" |
1373 | - gradientUnits="userSpaceOnUse" |
1374 | - x2="24" |
1375 | - gradientTransform="matrix(1 0 0 .97778 0 -.96667)" |
1376 | - y1="2" |
1377 | - x1="24"> |
1378 | - <stop |
1379 | - id="stop3213" |
1380 | - style="stop-color:#fff" |
1381 | - offset="0" /> |
1382 | - <stop |
1383 | - id="stop3215" |
1384 | - style="stop-color:#fff;stop-opacity:0" |
1385 | - offset="1" /> |
1386 | - </linearGradient> |
1387 | - <linearGradient |
1388 | - id="linearGradient3104"> |
1389 | - <stop |
1390 | - id="stop3106" |
1391 | - style="stop-color:#aaa" |
1392 | - offset="0" /> |
1393 | - <stop |
1394 | - id="stop3108" |
1395 | - style="stop-color:#c8c8c8" |
1396 | - offset="1" /> |
1397 | - </linearGradient> |
1398 | - <linearGradient |
1399 | - id="linearGradient2627" |
1400 | - y2="-.027397" |
1401 | - xlink:href="#linearGradient3104" |
1402 | - gradientUnits="userSpaceOnUse" |
1403 | - x2="17.425" |
1404 | - y1="44.873" |
1405 | - x1="17.425" /> |
1406 | - <radialGradient |
1407 | - id="radialGradient2624" |
1408 | - gradientUnits="userSpaceOnUse" |
1409 | - cy="63.965" |
1410 | - cx="15.116" |
1411 | - gradientTransform="matrix(1.1583 0 0 .53281 7.0469 -3.6289)" |
1412 | - r="12.289"> |
1413 | - <stop |
1414 | - id="stop4116" |
1415 | - offset="0" /> |
1416 | - <stop |
1417 | - id="stop4118" |
1418 | - style="stop-opacity:0" |
1419 | - offset="1" /> |
1420 | - </radialGradient> |
1421 | - <linearGradient |
1422 | - id="linearGradient2621" |
1423 | - y2="33" |
1424 | - gradientUnits="userSpaceOnUse" |
1425 | - x2="35" |
1426 | - gradientTransform="matrix(.99963 .027030 -.027030 .99963 .44178 .52590)" |
1427 | - y1="26.33" |
1428 | - x1="27.041"> |
1429 | - <stop |
1430 | - id="stop5857" |
1431 | - style="stop-color:#d63233" |
1432 | - offset="0" /> |
1433 | - <stop |
1434 | - id="stop5859" |
1435 | - style="stop-color:#fd9283" |
1436 | - offset="1" /> |
1437 | - </linearGradient> |
1438 | - <linearGradient |
1439 | - id="linearGradient2617" |
1440 | - y2="34.206" |
1441 | - gradientUnits="userSpaceOnUse" |
1442 | - x2="99.67" |
1443 | - gradientTransform="matrix(.89539 .82894 -.85997 .93268 -33.467 -84.904)" |
1444 | - y1="34.202" |
1445 | - x1="96.715"> |
1446 | - <stop |
1447 | - id="stop5377" |
1448 | - style="stop-color:#9c3f2f" |
1449 | - offset="0" /> |
1450 | - <stop |
1451 | - id="stop5379" |
1452 | - style="stop-color:#9a3422;stop-opacity:0" |
1453 | - offset="1" /> |
1454 | - </linearGradient> |
1455 | - <radialGradient |
1456 | - id="radialGradient2615" |
1457 | - gradientUnits="userSpaceOnUse" |
1458 | - cy="31.685" |
1459 | - cx="93.541" |
1460 | - gradientTransform="matrix(.79944 .72899 -1.3799 1.5182 -8.0188 -94.108)" |
1461 | - r="6.8496"> |
1462 | - <stop |
1463 | - id="stop5371" |
1464 | - style="stop-color:#d44228" |
1465 | - offset="0" /> |
1466 | - <stop |
1467 | - id="stop5373" |
1468 | - style="stop-color:#bc3c31" |
1469 | - offset="1" /> |
1470 | - </radialGradient> |
1471 | - <linearGradient |
1472 | - id="linearGradient2612" |
1473 | - y2="35.208" |
1474 | - gradientUnits="userSpaceOnUse" |
1475 | - x2="83.625" |
1476 | - gradientTransform="matrix(1.087 -.012479 .012479 1.087 -76.925 -10.137)" |
1477 | - y1="38.323" |
1478 | - x1="83.625"> |
1479 | - <stop |
1480 | - id="stop4805" |
1481 | - style="stop-color:#f33838" |
1482 | - offset="0" /> |
1483 | - <stop |
1484 | - id="stop4807" |
1485 | - style="stop-color:#fff" |
1486 | - offset="1" /> |
1487 | - </linearGradient> |
1488 | - <linearGradient |
1489 | - id="linearGradient2609" |
1490 | - y2="30.258" |
1491 | - gradientUnits="userSpaceOnUse" |
1492 | - x2="92.031" |
1493 | - gradientTransform="matrix(1.087 -.012479 .012479 1.087 -76.925 -10.137)" |
1494 | - y1="33.755" |
1495 | - x1="92.25"> |
1496 | - <stop |
1497 | - id="stop4811" |
1498 | - style="stop-color:#f33838" |
1499 | - offset="0" /> |
1500 | - <stop |
1501 | - id="stop4813" |
1502 | - style="stop-color:#fff" |
1503 | - offset="1" /> |
1504 | - </linearGradient> |
1505 | - <linearGradient |
1506 | - id="linearGradient2606" |
1507 | - y2="24.438" |
1508 | - gradientUnits="userSpaceOnUse" |
1509 | - x2="94.156" |
1510 | - gradientTransform="matrix(1.087 -.012479 .012479 1.087 -76.925 -10.137)" |
1511 | - y1="27.188" |
1512 | - x1="97.281"> |
1513 | - <stop |
1514 | - id="stop4817" |
1515 | - style="stop-color:#f33838" |
1516 | - offset="0" /> |
1517 | - <stop |
1518 | - id="stop4819" |
1519 | - style="stop-color:#fff" |
1520 | - offset="1" /> |
1521 | - </linearGradient> |
1522 | - <linearGradient |
1523 | - id="linearGradient2603" |
1524 | - y2="-18.141" |
1525 | - gradientUnits="userSpaceOnUse" |
1526 | - x2="90.218" |
1527 | - gradientTransform="matrix(1.087 -.012479 .012479 1.087 -72.078 33.291)" |
1528 | - y1="-19.534" |
1529 | - x1="95.631"> |
1530 | - <stop |
1531 | - id="stop4781" |
1532 | - style="stop-color:#f33838" |
1533 | - offset="0" /> |
1534 | - <stop |
1535 | - id="stop4783" |
1536 | - style="stop-color:#fff" |
1537 | - offset="1" /> |
1538 | - </linearGradient> |
1539 | - <linearGradient |
1540 | - id="linearGradient2600" |
1541 | - y2="-20.793" |
1542 | - gradientUnits="userSpaceOnUse" |
1543 | - x2="92.604" |
1544 | - gradientTransform="matrix(1.087 -.012479 .012479 1.087 -87.39 48.89)" |
1545 | - y1="-15.592" |
1546 | - x1="91.252"> |
1547 | - <stop |
1548 | - id="stop4829" |
1549 | - style="stop-color:#f33838" |
1550 | - offset="0" /> |
1551 | - <stop |
1552 | - id="stop4831" |
1553 | - style="stop-color:#fff" |
1554 | - offset="1" /> |
1555 | - </linearGradient> |
1556 | - <linearGradient |
1557 | - id="linearGradient2597" |
1558 | - y2="26.961" |
1559 | - gradientUnits="userSpaceOnUse" |
1560 | - x2="88.84" |
1561 | - gradientTransform="matrix(.55151 .49662 -.53680 .56645 -14.55 -44.694)" |
1562 | - y1="41.635" |
1563 | - x1="93.696"> |
1564 | - <stop |
1565 | - id="stop4823" |
1566 | - style="stop-color:#ab3227" |
1567 | - offset="0" /> |
1568 | - <stop |
1569 | - id="stop4825" |
1570 | - style="stop-color:#d54329" |
1571 | - offset="1" /> |
1572 | - </linearGradient> |
1573 | - <linearGradient |
1574 | - id="linearGradient2594" |
1575 | - y2="35.663" |
1576 | - gradientUnits="userSpaceOnUse" |
1577 | - x2="105.1" |
1578 | - gradientTransform="matrix(0.829 .75236 -.80390 .85483 -28.918 -75.233)" |
1579 | - y1="20.597" |
1580 | - x1="91.248"> |
1581 | - <stop |
1582 | - id="stop5144" |
1583 | - style="stop-color:#fbb6b6" |
1584 | - offset="0" /> |
1585 | - <stop |
1586 | - id="stop5146" |
1587 | - style="stop-color:#fbb6b6;stop-opacity:0" |
1588 | - offset="1" /> |
1589 | - </linearGradient> |
1590 | - <filter |
1591 | - id="filter3212" |
1592 | - y="-.16434" |
1593 | - x="-.14846" |
1594 | - height="1.3287" |
1595 | - width="1.2969"> |
1596 | - <feGaussianBlur |
1597 | - id="feGaussianBlur3214" |
1598 | - stdDeviation="0.77391625" /> |
1599 | - </filter> |
1600 | - <linearGradient |
1601 | - id="linearGradient2590" |
1602 | - y2="5.4565" |
1603 | - gradientUnits="userSpaceOnUse" |
1604 | - x2="36.358" |
1605 | - gradientTransform="matrix(.99770 0 0 1.0407 .16380 -1.1058)" |
1606 | - y1="8.059" |
1607 | - x1="32.892"> |
1608 | - <stop |
1609 | - id="stop8591" |
1610 | - style="stop-color:#fefefe" |
1611 | - offset="0" /> |
1612 | - <stop |
1613 | - id="stop8593" |
1614 | - style="stop-color:#cbcbcb" |
1615 | - offset="1" /> |
1616 | - </linearGradient> |
1617 | - <filter |
1618 | - id="filter3070" |
1619 | - inkscape:label="Desaturate" |
1620 | - x="0" |
1621 | - y="0" |
1622 | - width="1" |
1623 | - height="1" |
1624 | - inkscape:menu="Color" |
1625 | - inkscape:menu-tooltip="Render in shades of gray by reducing saturation to zero" |
1626 | - color-interpolation-filters="sRGB"> |
1627 | - <feColorMatrix |
1628 | - id="feColorMatrix3072" |
1629 | - type="saturate" |
1630 | - values="0" /> |
1631 | - </filter> |
1632 | - </defs> |
1633 | - <g |
1634 | - id="layer1" |
1635 | - style="filter:url(#filter3070)"> |
1636 | - <path |
1637 | - id="path4160" |
1638 | - style="stroke-linejoin:round;stroke:url(#linearGradient2638);stroke-width:.99992;fill:url(#linearGradient2636)" |
1639 | - d="m6.5 0.4972h24.061c1.407 0.47465 8.965 5.8822 10.939 9.6268v34.379h-35v-44.006z" /> |
1640 | - <path |
1641 | - id="path16493" |
1642 | - style="stroke-linejoin:round;fill-rule:evenodd;stroke:#9c3f2f;stroke-width:1px;fill:url(#linearGradient2621)" |
1643 | - d="m34.653 16.071l-0.116 18.389-18.343 0.04 18.459-18.429z" /> |
1644 | - <path |
1645 | - id="path16495" |
1646 | - style="fill:#af3a28;fill-rule:evenodd" |
1647 | - d="m34.537 34.46l-2.531-11.332-4.673 6.258 7.204 5.074zl-11.527-2.552-3.468 2.146 14.995 0.406z" /> |
1648 | - <path |
1649 | - id="path16499" |
1650 | - style="stroke-linejoin:round;stroke:url(#linearGradient2617);stroke-linecap:round;stroke-width:.96153;fill:url(#radialGradient2615)" |
1651 | - d="m28.828 27.545c-5.524 5.99-12.591 8.45-15.789 5.497-3.1975-2.953-1.317-10.203 4.202-16.198 5.518-5.995 12.588-8.4666 15.795-5.523 3.207 2.944 1.337 10.19-4.176 16.189" /> |
1652 | - <path |
1653 | - id="path16503" |
1654 | - style="opacity:.80258;fill:url(#linearGradient2612);fill-rule:evenodd" |
1655 | - d="m16.052 33.842l3.087-9.208-5.975 0.341 2.888 8.867z" /> |
1656 | - <path |
1657 | - id="path16505" |
1658 | - style="opacity:.80258;fill:url(#linearGradient2609);fill-rule:evenodd" |
1659 | - d="m27.938 27.591l-2.899-9.887-5.9 6.93 8.799 2.957z" /> |
1660 | - <path |
1661 | - id="path16507" |
1662 | - style="opacity:.80258;fill:url(#linearGradient2606);fill-rule:evenodd" |
1663 | - d="m25.187 12.811l8.14 4.798-8.356 0.096 0.216-4.894z" /> |
1664 | - <path |
1665 | - id="path16509" |
1666 | - style="opacity:.80258;fill:url(#linearGradient2603);fill-rule:evenodd" |
1667 | - d="m30.257 10.93l-3.616 3.02-2.998-1.671 6.614-1.349z" /> |
1668 | - <path |
1669 | - id="path16511" |
1670 | - style="opacity:.80258;fill:url(#linearGradient2600);fill-rule:evenodd" |
1671 | - d="m13.848 26.754l-2.52 2.899 1.429-5.945 1.091 3.046z" /> |
1672 | - <path |
1673 | - id="path16513" |
1674 | - style="stroke-linejoin:round;stroke:#e3b9be;stroke-linecap:round;fill:url(#linearGradient2597)" |
1675 | - d="m22.887 22.28c-3.448 3.639-7.521 5.439-9.101 4.022s-0.068-5.514 3.377-9.155c3.445-3.64 7.521-5.447 9.106-4.036s0.08 5.506-3.363 9.148" /> |
1676 | - <path |
1677 | - id="path3614" |
1678 | - style="opacity:.4;stroke-linejoin:round;stroke:url(#linearGradient2594);stroke-linecap:round;stroke-width:.96153;fill:none" |
1679 | - d="m28.514 27.092c-5.164 5.49-11.747 7.766-14.707 5.086-2.961-2.681-1.18-9.304 3.979-14.798s11.744-7.7815 14.713-5.11c2.969 2.672 1.199 9.292-3.955 14.79" /> |
1680 | - </g> |
1681 | -</svg> |
1682 | |
1683 | === added file 'unity-lens-rubygems.png' |
1684 | Binary files unity-lens-rubygems.png 1970-01-01 00:00:00 +0000 and unity-lens-rubygems.png 2012-10-16 20:02:20 +0000 differ |
1685 | === added file 'unity-lens-rubygems.service' |
1686 | --- unity-lens-rubygems.service 1970-01-01 00:00:00 +0000 |
1687 | +++ unity-lens-rubygems.service 2012-10-16 20:02:20 +0000 |
1688 | @@ -0,0 +1,3 @@ |
1689 | +[D-BUS Service] |
1690 | +Name=unity.singlet.lens.rubygems |
1691 | +Exec=/usr/bin/unity-lens-rubygems |
1692 | |
1693 | === added file 'unity-lens-rubygems.svg' |
1694 | --- unity-lens-rubygems.svg 1970-01-01 00:00:00 +0000 |
1695 | +++ unity-lens-rubygems.svg 2012-10-16 20:02:20 +0000 |
1696 | @@ -0,0 +1,471 @@ |
1697 | +<?xml version="1.0" encoding="UTF-8" standalone="no"?> |
1698 | +<!-- Created with Inkscape (http://www.inkscape.org/) --> |
1699 | + |
1700 | +<svg |
1701 | + xmlns:dc="http://purl.org/dc/elements/1.1/" |
1702 | + xmlns:cc="http://creativecommons.org/ns#" |
1703 | + xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" |
1704 | + xmlns:svg="http://www.w3.org/2000/svg" |
1705 | + xmlns="http://www.w3.org/2000/svg" |
1706 | + xmlns:xlink="http://www.w3.org/1999/xlink" |
1707 | + xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd" |
1708 | + xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape" |
1709 | + id="svg2521" |
1710 | + height="48" |
1711 | + width="48" |
1712 | + version="1.0" |
1713 | + inkscape:version="0.48.3.1 r9886" |
1714 | + sodipodi:docname="unity-lens-rgems.svg"> |
1715 | + <metadata |
1716 | + id="metadata93"> |
1717 | + <rdf:RDF> |
1718 | + <cc:Work |
1719 | + rdf:about=""> |
1720 | + <dc:format>image/svg+xml</dc:format> |
1721 | + <dc:type |
1722 | + rdf:resource="http://purl.org/dc/dcmitype/StillImage" /> |
1723 | + </cc:Work> |
1724 | + </rdf:RDF> |
1725 | + </metadata> |
1726 | + <sodipodi:namedview |
1727 | + pagecolor="#ffffff" |
1728 | + bordercolor="#666666" |
1729 | + borderopacity="1" |
1730 | + objecttolerance="10" |
1731 | + gridtolerance="10" |
1732 | + guidetolerance="10" |
1733 | + inkscape:pageopacity="0" |
1734 | + inkscape:pageshadow="2" |
1735 | + inkscape:window-width="640" |
1736 | + inkscape:window-height="480" |
1737 | + id="namedview91" |
1738 | + showgrid="false" |
1739 | + inkscape:zoom="0.61458333" |
1740 | + inkscape:cx="-108.66365" |
1741 | + inkscape:cy="-3.7602771" |
1742 | + inkscape:window-x="117" |
1743 | + inkscape:window-y="138" |
1744 | + inkscape:window-maximized="0" |
1745 | + inkscape:current-layer="layer1" /> |
1746 | + <defs |
1747 | + id="defs2523"> |
1748 | + <linearGradient |
1749 | + id="linearGradient2647" |
1750 | + y2="609.51" |
1751 | + gradientUnits="userSpaceOnUse" |
1752 | + x2="302.86" |
1753 | + gradientTransform="matrix(.067325 0 0 0.0147 -.34114 37.04)" |
1754 | + y1="366.65" |
1755 | + x1="302.86"> |
1756 | + <stop |
1757 | + id="stop5050" |
1758 | + style="stop-opacity:0" |
1759 | + offset="0" /> |
1760 | + <stop |
1761 | + id="stop5056" |
1762 | + offset=".5" /> |
1763 | + <stop |
1764 | + id="stop5052" |
1765 | + style="stop-opacity:0" |
1766 | + offset="1" /> |
1767 | + </linearGradient> |
1768 | + <radialGradient |
1769 | + id="radialGradient2644" |
1770 | + xlink:href="#linearGradient5060" |
1771 | + gradientUnits="userSpaceOnUse" |
1772 | + cy="486.65" |
1773 | + cx="605.71" |
1774 | + gradientTransform="matrix(-.023040 0 0 0.0147 21.623 37.04)" |
1775 | + r="117.14" /> |
1776 | + <linearGradient |
1777 | + id="linearGradient5060"> |
1778 | + <stop |
1779 | + id="stop5062" |
1780 | + offset="0" /> |
1781 | + <stop |
1782 | + id="stop5064" |
1783 | + style="stop-opacity:0" |
1784 | + offset="1" /> |
1785 | + </linearGradient> |
1786 | + <radialGradient |
1787 | + id="radialGradient2641" |
1788 | + xlink:href="#linearGradient5060" |
1789 | + gradientUnits="userSpaceOnUse" |
1790 | + cy="486.65" |
1791 | + cx="605.71" |
1792 | + gradientTransform="matrix(.023040 0 0 0.0147 26.361 37.04)" |
1793 | + r="117.14" /> |
1794 | + <linearGradient |
1795 | + id="linearGradient2638" |
1796 | + y2="2.9062" |
1797 | + xlink:href="#linearGradient3104" |
1798 | + gradientUnits="userSpaceOnUse" |
1799 | + x2="-51.786" |
1800 | + gradientTransform="matrix(.80750 0 0 .89483 59.41 -2.9806)" |
1801 | + y1="50.786" |
1802 | + x1="-51.786" /> |
1803 | + <linearGradient |
1804 | + id="linearGradient2636" |
1805 | + y2="47.013" |
1806 | + gradientUnits="userSpaceOnUse" |
1807 | + x2="25.132" |
1808 | + gradientTransform="matrix(1 0 0 .95617 -1.0065e-7 -1.9149)" |
1809 | + y1=".98521" |
1810 | + x1="25.132"> |
1811 | + <stop |
1812 | + id="stop3602" |
1813 | + style="stop-color:#f4f4f4" |
1814 | + offset="0" /> |
1815 | + <stop |
1816 | + id="stop3604" |
1817 | + style="stop-color:#dbdbdb" |
1818 | + offset="1" /> |
1819 | + </linearGradient> |
1820 | + <radialGradient |
1821 | + id="radialGradient2633" |
1822 | + gradientUnits="userSpaceOnUse" |
1823 | + cy="112.3" |
1824 | + cx="102" |
1825 | + gradientTransform="matrix(.36170 0 0 -.39078 .85106 47.517)" |
1826 | + r="139.56"> |
1827 | + <stop |
1828 | + id="stop41" |
1829 | + style="stop-color:#b7b8b9" |
1830 | + offset="0" /> |
1831 | + <stop |
1832 | + id="stop47" |
1833 | + style="stop-color:#ececec" |
1834 | + offset=".18851" /> |
1835 | + <stop |
1836 | + id="stop49" |
1837 | + style="stop-color:#fafafa;stop-opacity:0" |
1838 | + offset=".25718" /> |
1839 | + <stop |
1840 | + id="stop51" |
1841 | + style="stop-color:#fff;stop-opacity:0" |
1842 | + offset=".30111" /> |
1843 | + <stop |
1844 | + id="stop53" |
1845 | + style="stop-color:#fafafa;stop-opacity:0" |
1846 | + offset=".53130" /> |
1847 | + <stop |
1848 | + id="stop55" |
1849 | + style="stop-color:#ebecec;stop-opacity:0" |
1850 | + offset=".84490" /> |
1851 | + <stop |
1852 | + id="stop57" |
1853 | + style="stop-color:#e1e2e3;stop-opacity:0" |
1854 | + offset="1" /> |
1855 | + </radialGradient> |
1856 | + <linearGradient |
1857 | + id="linearGradient2630" |
1858 | + y2="46.017" |
1859 | + gradientUnits="userSpaceOnUse" |
1860 | + x2="24" |
1861 | + gradientTransform="matrix(1 0 0 .97778 0 -.96667)" |
1862 | + y1="2" |
1863 | + x1="24"> |
1864 | + <stop |
1865 | + id="stop3213" |
1866 | + style="stop-color:#fff" |
1867 | + offset="0" /> |
1868 | + <stop |
1869 | + id="stop3215" |
1870 | + style="stop-color:#fff;stop-opacity:0" |
1871 | + offset="1" /> |
1872 | + </linearGradient> |
1873 | + <linearGradient |
1874 | + id="linearGradient3104"> |
1875 | + <stop |
1876 | + id="stop3106" |
1877 | + style="stop-color:#aaa" |
1878 | + offset="0" /> |
1879 | + <stop |
1880 | + id="stop3108" |
1881 | + style="stop-color:#c8c8c8" |
1882 | + offset="1" /> |
1883 | + </linearGradient> |
1884 | + <linearGradient |
1885 | + id="linearGradient2627" |
1886 | + y2="-.027397" |
1887 | + xlink:href="#linearGradient3104" |
1888 | + gradientUnits="userSpaceOnUse" |
1889 | + x2="17.425" |
1890 | + y1="44.873" |
1891 | + x1="17.425" /> |
1892 | + <radialGradient |
1893 | + id="radialGradient2624" |
1894 | + gradientUnits="userSpaceOnUse" |
1895 | + cy="63.965" |
1896 | + cx="15.116" |
1897 | + gradientTransform="matrix(1.1583 0 0 .53281 7.0469 -3.6289)" |
1898 | + r="12.289"> |
1899 | + <stop |
1900 | + id="stop4116" |
1901 | + offset="0" /> |
1902 | + <stop |
1903 | + id="stop4118" |
1904 | + style="stop-opacity:0" |
1905 | + offset="1" /> |
1906 | + </radialGradient> |
1907 | + <linearGradient |
1908 | + id="linearGradient2621" |
1909 | + y2="33" |
1910 | + gradientUnits="userSpaceOnUse" |
1911 | + x2="35" |
1912 | + gradientTransform="matrix(.99963 .027030 -.027030 .99963 .44178 .52590)" |
1913 | + y1="26.33" |
1914 | + x1="27.041"> |
1915 | + <stop |
1916 | + id="stop5857" |
1917 | + style="stop-color:#d63233" |
1918 | + offset="0" /> |
1919 | + <stop |
1920 | + id="stop5859" |
1921 | + style="stop-color:#fd9283" |
1922 | + offset="1" /> |
1923 | + </linearGradient> |
1924 | + <linearGradient |
1925 | + id="linearGradient2617" |
1926 | + y2="34.206" |
1927 | + gradientUnits="userSpaceOnUse" |
1928 | + x2="99.67" |
1929 | + gradientTransform="matrix(.89539 .82894 -.85997 .93268 -33.467 -84.904)" |
1930 | + y1="34.202" |
1931 | + x1="96.715"> |
1932 | + <stop |
1933 | + id="stop5377" |
1934 | + style="stop-color:#9c3f2f" |
1935 | + offset="0" /> |
1936 | + <stop |
1937 | + id="stop5379" |
1938 | + style="stop-color:#9a3422;stop-opacity:0" |
1939 | + offset="1" /> |
1940 | + </linearGradient> |
1941 | + <radialGradient |
1942 | + id="radialGradient2615" |
1943 | + gradientUnits="userSpaceOnUse" |
1944 | + cy="31.685" |
1945 | + cx="93.541" |
1946 | + gradientTransform="matrix(.79944 .72899 -1.3799 1.5182 -8.0188 -94.108)" |
1947 | + r="6.8496"> |
1948 | + <stop |
1949 | + id="stop5371" |
1950 | + style="stop-color:#d44228" |
1951 | + offset="0" /> |
1952 | + <stop |
1953 | + id="stop5373" |
1954 | + style="stop-color:#bc3c31" |
1955 | + offset="1" /> |
1956 | + </radialGradient> |
1957 | + <linearGradient |
1958 | + id="linearGradient2612" |
1959 | + y2="35.208" |
1960 | + gradientUnits="userSpaceOnUse" |
1961 | + x2="83.625" |
1962 | + gradientTransform="matrix(1.087 -.012479 .012479 1.087 -76.925 -10.137)" |
1963 | + y1="38.323" |
1964 | + x1="83.625"> |
1965 | + <stop |
1966 | + id="stop4805" |
1967 | + style="stop-color:#f33838" |
1968 | + offset="0" /> |
1969 | + <stop |
1970 | + id="stop4807" |
1971 | + style="stop-color:#fff" |
1972 | + offset="1" /> |
1973 | + </linearGradient> |
1974 | + <linearGradient |
1975 | + id="linearGradient2609" |
1976 | + y2="30.258" |
1977 | + gradientUnits="userSpaceOnUse" |
1978 | + x2="92.031" |
1979 | + gradientTransform="matrix(1.087 -.012479 .012479 1.087 -76.925 -10.137)" |
1980 | + y1="33.755" |
1981 | + x1="92.25"> |
1982 | + <stop |
1983 | + id="stop4811" |
1984 | + style="stop-color:#f33838" |
1985 | + offset="0" /> |
1986 | + <stop |
1987 | + id="stop4813" |
1988 | + style="stop-color:#fff" |
1989 | + offset="1" /> |
1990 | + </linearGradient> |
1991 | + <linearGradient |
1992 | + id="linearGradient2606" |
1993 | + y2="24.438" |
1994 | + gradientUnits="userSpaceOnUse" |
1995 | + x2="94.156" |
1996 | + gradientTransform="matrix(1.087 -.012479 .012479 1.087 -76.925 -10.137)" |
1997 | + y1="27.188" |
1998 | + x1="97.281"> |
1999 | + <stop |
2000 | + id="stop4817" |
2001 | + style="stop-color:#f33838" |
2002 | + offset="0" /> |
2003 | + <stop |
2004 | + id="stop4819" |
2005 | + style="stop-color:#fff" |
2006 | + offset="1" /> |
2007 | + </linearGradient> |
2008 | + <linearGradient |
2009 | + id="linearGradient2603" |
2010 | + y2="-18.141" |
2011 | + gradientUnits="userSpaceOnUse" |
2012 | + x2="90.218" |
2013 | + gradientTransform="matrix(1.087 -.012479 .012479 1.087 -72.078 33.291)" |
2014 | + y1="-19.534" |
2015 | + x1="95.631"> |
2016 | + <stop |
2017 | + id="stop4781" |
2018 | + style="stop-color:#f33838" |
2019 | + offset="0" /> |
2020 | + <stop |
2021 | + id="stop4783" |
2022 | + style="stop-color:#fff" |
2023 | + offset="1" /> |
2024 | + </linearGradient> |
2025 | + <linearGradient |
2026 | + id="linearGradient2600" |
2027 | + y2="-20.793" |
2028 | + gradientUnits="userSpaceOnUse" |
2029 | + x2="92.604" |
2030 | + gradientTransform="matrix(1.087 -.012479 .012479 1.087 -87.39 48.89)" |
2031 | + y1="-15.592" |
2032 | + x1="91.252"> |
2033 | + <stop |
2034 | + id="stop4829" |
2035 | + style="stop-color:#f33838" |
2036 | + offset="0" /> |
2037 | + <stop |
2038 | + id="stop4831" |
2039 | + style="stop-color:#fff" |
2040 | + offset="1" /> |
2041 | + </linearGradient> |
2042 | + <linearGradient |
2043 | + id="linearGradient2597" |
2044 | + y2="26.961" |
2045 | + gradientUnits="userSpaceOnUse" |
2046 | + x2="88.84" |
2047 | + gradientTransform="matrix(.55151 .49662 -.53680 .56645 -14.55 -44.694)" |
2048 | + y1="41.635" |
2049 | + x1="93.696"> |
2050 | + <stop |
2051 | + id="stop4823" |
2052 | + style="stop-color:#ab3227" |
2053 | + offset="0" /> |
2054 | + <stop |
2055 | + id="stop4825" |
2056 | + style="stop-color:#d54329" |
2057 | + offset="1" /> |
2058 | + </linearGradient> |
2059 | + <linearGradient |
2060 | + id="linearGradient2594" |
2061 | + y2="35.663" |
2062 | + gradientUnits="userSpaceOnUse" |
2063 | + x2="105.1" |
2064 | + gradientTransform="matrix(0.829 .75236 -.80390 .85483 -28.918 -75.233)" |
2065 | + y1="20.597" |
2066 | + x1="91.248"> |
2067 | + <stop |
2068 | + id="stop5144" |
2069 | + style="stop-color:#fbb6b6" |
2070 | + offset="0" /> |
2071 | + <stop |
2072 | + id="stop5146" |
2073 | + style="stop-color:#fbb6b6;stop-opacity:0" |
2074 | + offset="1" /> |
2075 | + </linearGradient> |
2076 | + <filter |
2077 | + id="filter3212" |
2078 | + y="-.16434" |
2079 | + x="-.14846" |
2080 | + height="1.3287" |
2081 | + width="1.2969"> |
2082 | + <feGaussianBlur |
2083 | + id="feGaussianBlur3214" |
2084 | + stdDeviation="0.77391625" /> |
2085 | + </filter> |
2086 | + <linearGradient |
2087 | + id="linearGradient2590" |
2088 | + y2="5.4565" |
2089 | + gradientUnits="userSpaceOnUse" |
2090 | + x2="36.358" |
2091 | + gradientTransform="matrix(.99770 0 0 1.0407 .16380 -1.1058)" |
2092 | + y1="8.059" |
2093 | + x1="32.892"> |
2094 | + <stop |
2095 | + id="stop8591" |
2096 | + style="stop-color:#fefefe" |
2097 | + offset="0" /> |
2098 | + <stop |
2099 | + id="stop8593" |
2100 | + style="stop-color:#cbcbcb" |
2101 | + offset="1" /> |
2102 | + </linearGradient> |
2103 | + <filter |
2104 | + id="filter3070" |
2105 | + inkscape:label="Desaturate" |
2106 | + x="0" |
2107 | + y="0" |
2108 | + width="1" |
2109 | + height="1" |
2110 | + inkscape:menu="Color" |
2111 | + inkscape:menu-tooltip="Render in shades of gray by reducing saturation to zero" |
2112 | + color-interpolation-filters="sRGB"> |
2113 | + <feColorMatrix |
2114 | + id="feColorMatrix3072" |
2115 | + type="saturate" |
2116 | + values="0" /> |
2117 | + </filter> |
2118 | + </defs> |
2119 | + <g |
2120 | + id="layer1" |
2121 | + style="filter:url(#filter3070)"> |
2122 | + <path |
2123 | + id="path4160" |
2124 | + style="stroke-linejoin:round;stroke:url(#linearGradient2638);stroke-width:.99992;fill:url(#linearGradient2636)" |
2125 | + d="m6.5 0.4972h24.061c1.407 0.47465 8.965 5.8822 10.939 9.6268v34.379h-35v-44.006z" /> |
2126 | + <path |
2127 | + id="path16493" |
2128 | + style="stroke-linejoin:round;fill-rule:evenodd;stroke:#9c3f2f;stroke-width:1px;fill:url(#linearGradient2621)" |
2129 | + d="m34.653 16.071l-0.116 18.389-18.343 0.04 18.459-18.429z" /> |
2130 | + <path |
2131 | + id="path16495" |
2132 | + style="fill:#af3a28;fill-rule:evenodd" |
2133 | + d="m34.537 34.46l-2.531-11.332-4.673 6.258 7.204 5.074zl-11.527-2.552-3.468 2.146 14.995 0.406z" /> |
2134 | + <path |
2135 | + id="path16499" |
2136 | + style="stroke-linejoin:round;stroke:url(#linearGradient2617);stroke-linecap:round;stroke-width:.96153;fill:url(#radialGradient2615)" |
2137 | + d="m28.828 27.545c-5.524 5.99-12.591 8.45-15.789 5.497-3.1975-2.953-1.317-10.203 4.202-16.198 5.518-5.995 12.588-8.4666 15.795-5.523 3.207 2.944 1.337 10.19-4.176 16.189" /> |
2138 | + <path |
2139 | + id="path16503" |
2140 | + style="opacity:.80258;fill:url(#linearGradient2612);fill-rule:evenodd" |
2141 | + d="m16.052 33.842l3.087-9.208-5.975 0.341 2.888 8.867z" /> |
2142 | + <path |
2143 | + id="path16505" |
2144 | + style="opacity:.80258;fill:url(#linearGradient2609);fill-rule:evenodd" |
2145 | + d="m27.938 27.591l-2.899-9.887-5.9 6.93 8.799 2.957z" /> |
2146 | + <path |
2147 | + id="path16507" |
2148 | + style="opacity:.80258;fill:url(#linearGradient2606);fill-rule:evenodd" |
2149 | + d="m25.187 12.811l8.14 4.798-8.356 0.096 0.216-4.894z" /> |
2150 | + <path |
2151 | + id="path16509" |
2152 | + style="opacity:.80258;fill:url(#linearGradient2603);fill-rule:evenodd" |
2153 | + d="m30.257 10.93l-3.616 3.02-2.998-1.671 6.614-1.349z" /> |
2154 | + <path |
2155 | + id="path16511" |
2156 | + style="opacity:.80258;fill:url(#linearGradient2600);fill-rule:evenodd" |
2157 | + d="m13.848 26.754l-2.52 2.899 1.429-5.945 1.091 3.046z" /> |
2158 | + <path |
2159 | + id="path16513" |
2160 | + style="stroke-linejoin:round;stroke:#e3b9be;stroke-linecap:round;fill:url(#linearGradient2597)" |
2161 | + d="m22.887 22.28c-3.448 3.639-7.521 5.439-9.101 4.022s-0.068-5.514 3.377-9.155c3.445-3.64 7.521-5.447 9.106-4.036s0.08 5.506-3.363 9.148" /> |
2162 | + <path |
2163 | + id="path3614" |
2164 | + style="opacity:.4;stroke-linejoin:round;stroke:url(#linearGradient2594);stroke-linecap:round;stroke-width:.96153;fill:none" |
2165 | + d="m28.514 27.092c-5.164 5.49-11.747 7.766-14.707 5.086-2.961-2.681-1.18-9.304 3.979-14.798s11.744-7.7815 14.713-5.11c2.969 2.672 1.199 9.292-3.955 14.79" /> |
2166 | + </g> |
2167 | +</svg> |
2168 | |
2169 | === added directory 'unity_lens_rubygems' |
2170 | === added file 'unity_lens_rubygems/__init__.py' |
2171 | --- unity_lens_rubygems/__init__.py 1970-01-01 00:00:00 +0000 |
2172 | +++ unity_lens_rubygems/__init__.py 2012-10-16 20:02:20 +0000 |
2173 | @@ -0,0 +1,75 @@ |
2174 | +import urllib2 |
2175 | +import json |
2176 | + |
2177 | +import logging |
2178 | +import optparse |
2179 | +import subprocess |
2180 | + |
2181 | +import gettext |
2182 | +from gettext import gettext as _ |
2183 | +gettext.textdomain('unity-lens-rubygems') |
2184 | + |
2185 | +from singlet.lens import SingleScopeLens, IconViewCategory, ListViewCategory |
2186 | + |
2187 | +from unity_lens_rubygems import unity_lens_rubygemsconfig |
2188 | + |
2189 | +class RubygemsLens(SingleScopeLens): |
2190 | + |
2191 | + class Meta: |
2192 | + name = 'rubygems' |
2193 | + description = _('Rubygems Lens') |
2194 | + search_hint = _('Search Rubygems') |
2195 | + icon = 'unity-lens-rubygems.svg' |
2196 | + search_on_blank = False |
2197 | + |
2198 | + available_rgems_category = ListViewCategory(_("Available Rubygems"), 'text-x-ruby') |
2199 | + installed_rgems_category = IconViewCategory(_("Installed Rubygems"), 'text-x-ruby') |
2200 | + |
2201 | + def shorten_desc(self, desc): |
2202 | + if len(desc) > unity_lens_rubygemsconfig.DESC_MAX_LENGTH: |
2203 | + return "%s..." % desc[:unity_lens_rubygemsconfig.DESC_MAX_LENGTH] |
2204 | + else: |
2205 | + if desc[-1:] != ".": |
2206 | + return desc + "." |
2207 | + else: |
2208 | + return desc |
2209 | + |
2210 | + def gem_search_query(self, search): |
2211 | + gems_api_url = "https://rubygems.org/api/v1" |
2212 | + try: |
2213 | + data = json.load(urllib2.urlopen("%s/search.json?query=%s"%(gems_api_url,search))) |
2214 | + return data |
2215 | + except Exception: |
2216 | + return [] |
2217 | + |
2218 | + def gem_installed_query(self, search): |
2219 | + try: |
2220 | + new_data = [] |
2221 | + data = subprocess.check_output(["gem", "search", search], universal_newlines=True).splitlines() |
2222 | + |
2223 | + for line in data: |
2224 | + if len(line) > 0 and "local gems" not in line.lower(): |
2225 | + new_data.append(line.split(" ")[0]) |
2226 | + return new_data |
2227 | + except Exception: |
2228 | + return [] |
2229 | + |
2230 | + def search(self, search, results): |
2231 | + for gem in self.gem_search_query(search): |
2232 | + results.append(gem["homepage_uri"], |
2233 | + "applications-ruby", |
2234 | + self.available_rgems_category, |
2235 | + "text/html", |
2236 | + gem["name"], |
2237 | + self.shorten_desc(gem["info"]), |
2238 | + gem["homepage_uri"]) |
2239 | + |
2240 | + for gem in self.gem_installed_query(search): |
2241 | + results.append("http://rubygems.org/gems/%s" % gem, |
2242 | + "applications-ruby", |
2243 | + self.installed_rgems_category, |
2244 | + "text/html", |
2245 | + gem, |
2246 | + _("Locally installed rubygem"), |
2247 | + "http://rubygems.org/gems/%s" % gem) |
2248 | + pass |
2249 | |
2250 | === added file 'unity_lens_rubygems/unity_lens_rubygemsconfig.py' |
2251 | --- unity_lens_rubygems/unity_lens_rubygemsconfig.py 1970-01-01 00:00:00 +0000 |
2252 | +++ unity_lens_rubygems/unity_lens_rubygemsconfig.py 2012-10-16 20:02:20 +0000 |
2253 | @@ -0,0 +1,73 @@ |
2254 | +# -*- Mode: Python; coding: utf-8; indent-tabs-mode: nil; tab-width: 4 -*- |
2255 | +### BEGIN LICENSE |
2256 | +# Copyright (C) 2012 Marios Antonoudiou <marios.ant@qboss.eu> |
2257 | +# This program is free software: you can redistribute it and/or modify it |
2258 | +# under the terms of the GNU General Public License version 3, as published |
2259 | +# by the Free Software Foundation. |
2260 | +# |
2261 | +# This program is distributed in the hope that it will be useful, but |
2262 | +# WITHOUT ANY WARRANTY; without even the implied warranties of |
2263 | +# MERCHANTABILITY, SATISFACTORY QUALITY, or FITNESS FOR A PARTICULAR |
2264 | +# PURPOSE. See the GNU General Public License for more details. |
2265 | +# |
2266 | +# You should have received a copy of the GNU General Public License along |
2267 | +# with this program. If not, see <http://www.gnu.org/licenses/>. |
2268 | +### END LICENSE |
2269 | + |
2270 | +# THIS IS Rubygems CONFIGURATION FILE |
2271 | +# YOU CAN PUT THERE SOME GLOBAL VALUE |
2272 | +# Do not touch unless you know what you're doing. |
2273 | +# you're warned :) |
2274 | + |
2275 | +__all__ = [ |
2276 | + 'project_path_not_found', |
2277 | + 'get_data_file', |
2278 | + 'get_data_path', |
2279 | + ] |
2280 | + |
2281 | +# Where your project will look for your data (for instance, images and ui |
2282 | +# files). By default, this is ../data, relative your trunk layout |
2283 | +__rgems_data_directory__ = '../data/' |
2284 | +__license__ = 'GPL-3' |
2285 | +__version__ = '0.2' |
2286 | + |
2287 | +import os |
2288 | + |
2289 | +import gettext |
2290 | +from gettext import gettext as _ |
2291 | +gettext.textdomain('unity-lens-rubygems') |
2292 | + |
2293 | +class project_path_not_found(Exception): |
2294 | + """Raised when we can't find the project directory.""" |
2295 | + |
2296 | + |
2297 | +def get_data_file(*path_segments): |
2298 | + """Get the full path to a data file. |
2299 | + |
2300 | + Returns the path to a file underneath the data directory (as defined by |
2301 | + `get_data_path`). Equivalent to os.path.join(get_data_path(), |
2302 | + *path_segments). |
2303 | + """ |
2304 | + return os.path.join(get_data_path(), *path_segments) |
2305 | + |
2306 | + |
2307 | +def get_data_path(): |
2308 | + """Retrieve unity-lens-rubygems data path |
2309 | + |
2310 | + This path is by default <unity_lens_rubygems_lib_path>/../data/ in trunk |
2311 | + and /usr/share/rgems in an installed version but this path |
2312 | + is specified at installation time. |
2313 | + """ |
2314 | + |
2315 | + # Get pathname absolute or relative. |
2316 | + path = os.path.join( |
2317 | + os.path.dirname(__file__), __unity_lens_rubygems_data_directory__) |
2318 | + |
2319 | + abs_data_path = os.path.abspath(path) |
2320 | + if not os.path.exists(abs_data_path): |
2321 | + raise project_path_not_found |
2322 | + |
2323 | + return abs_data_path |
2324 | + |
2325 | +DESC_MAX_LENGTH = 80 |
2326 | + |
All seems OK.