svgloaders 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +17 -0
- data/Gemfile +4 -0
- data/LICENSE +22 -0
- data/LICENSE.txt +22 -0
- data/README.md +33 -0
- data/Rakefile +1 -0
- data/lib/generators/svgloaders/images/audio.svg +29 -0
- data/lib/generators/svgloaders/images/ball-triangle.svg +47 -0
- data/lib/generators/svgloaders/images/bars.svg +52 -0
- data/lib/generators/svgloaders/images/circles.svg +20 -0
- data/lib/generators/svgloaders/images/grid.svg +56 -0
- data/lib/generators/svgloaders/images/hearts.svg +18 -0
- data/lib/generators/svgloaders/images/oval.svg +17 -0
- data/lib/generators/svgloaders/images/puff.svg +37 -0
- data/lib/generators/svgloaders/images/rings.svg +42 -0
- data/lib/generators/svgloaders/images/spinning-circles.svg +55 -0
- data/lib/generators/svgloaders/images/tail-spin.svg +32 -0
- data/lib/generators/svgloaders/images/three-dots.svg +33 -0
- data/lib/generators/svgloaders/install_generator.rb +17 -0
- data/lib/svgloaders.rb +10 -0
- data/lib/svgloaders/rails/engine.rb +6 -0
- data/lib/svgloaders/rails/railtie.rb +6 -0
- data/lib/svgloaders/version.rb +3 -0
- data/svgloaders.gemspec +23 -0
- metadata +96 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: b48f9b04c4daf2f94f97292dd63730b0d18ec4b5
|
4
|
+
data.tar.gz: 4b6414ecdcb07eed47a89c8b31fb9236605e6750
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: fc1617ac02337208fc1b5733278572897fc1eff1b0953f43cd6cf1b773ef86d69ad10e2a561f103b39bf752acc57a2c83526ce72032a77e22795e51215e7b48d
|
7
|
+
data.tar.gz: b8373e7f7f5e20852f1d4f030b50d1cfcc46b3dc7c184408dc84d969aac9e19345c86d1915dfb8c1bc0b6fd3b3875cd9c2ea631a323212d0a29d0f7a74a2a92b
|
data/.gitignore
ADDED
data/Gemfile
ADDED
data/LICENSE
ADDED
@@ -0,0 +1,22 @@
|
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) 2014 Vijay Dhama
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
7
|
+
in the Software without restriction, including without limitation the rights
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
10
|
+
furnished to do so, subject to the following conditions:
|
11
|
+
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
13
|
+
copies or substantial portions of the Software.
|
14
|
+
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
21
|
+
SOFTWARE.
|
22
|
+
|
data/LICENSE.txt
ADDED
@@ -0,0 +1,22 @@
|
|
1
|
+
Copyright (c) 2014 Vijay Dhama
|
2
|
+
|
3
|
+
MIT License
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
6
|
+
a copy of this software and associated documentation files (the
|
7
|
+
"Software"), to deal in the Software without restriction, including
|
8
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
9
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
10
|
+
permit persons to whom the Software is furnished to do so, subject to
|
11
|
+
the following conditions:
|
12
|
+
|
13
|
+
The above copyright notice and this permission notice shall be
|
14
|
+
included in all copies or substantial portions of the Software.
|
15
|
+
|
16
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
17
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
18
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
19
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
20
|
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
21
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
22
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,33 @@
|
|
1
|
+
# Svgloaders
|
2
|
+
|
3
|
+
A gem to install [SVG-loaders](https://github.com/SamHerbert/SVG-Loaders).
|
4
|
+
|
5
|
+
## Installation
|
6
|
+
|
7
|
+
Add this line to your application's Gemfile:
|
8
|
+
|
9
|
+
gem 'svgloaders'
|
10
|
+
|
11
|
+
And then execute:
|
12
|
+
|
13
|
+
$ bundle
|
14
|
+
|
15
|
+
Or install it yourself as:
|
16
|
+
|
17
|
+
$ gem install svgloaders
|
18
|
+
|
19
|
+
and then run the generator
|
20
|
+
|
21
|
+
$ rails g svgloaders:install
|
22
|
+
|
23
|
+
## Usage
|
24
|
+
|
25
|
+
The images are copied to the *vendeor/assets/images/svgloaders/* ,
|
26
|
+
|
27
|
+
## Contributing
|
28
|
+
|
29
|
+
1. Fork it ( http://github.com/<my-github-username>/svgloaders/fork )
|
30
|
+
2. Create your feature branch (`git checkout -b my-new-feature`)
|
31
|
+
3. Commit your changes (`git commit -am 'Add some feature'`)
|
32
|
+
4. Push to the branch (`git push origin my-new-feature`)
|
33
|
+
5. Create new Pull Request
|
data/Rakefile
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
require "bundler/gem_tasks"
|
@@ -0,0 +1,29 @@
|
|
1
|
+
<!-- By Sam Herbert (@sherb), for everyone. More @ http://goo.gl/7AJzbL -->
|
2
|
+
<svg width="55" height="80" viewBox="0 0 55 80" xmlns="http://www.w3.org/2000/svg" fill="#FFF">
|
3
|
+
<g transform="matrix(1 0 0 -1 0 80)">
|
4
|
+
<rect width="10" height="20" rx="3">
|
5
|
+
<animate attributeName="height"
|
6
|
+
begin="0s" dur="4.3s"
|
7
|
+
values="20;45;57;80;64;32;66;45;64;23;66;13;64;56;34;34;2;23;76;79;20" calcMode="linear"
|
8
|
+
repeatCount="indefinite" />
|
9
|
+
</rect>
|
10
|
+
<rect x="15" width="10" height="80" rx="3">
|
11
|
+
<animate attributeName="height"
|
12
|
+
begin="0s" dur="2s"
|
13
|
+
values="80;55;33;5;75;23;73;33;12;14;60;80" calcMode="linear"
|
14
|
+
repeatCount="indefinite" />
|
15
|
+
</rect>
|
16
|
+
<rect x="30" width="10" height="50" rx="3">
|
17
|
+
<animate attributeName="height"
|
18
|
+
begin="0s" dur="1.4s"
|
19
|
+
values="50;34;78;23;56;23;34;76;80;54;21;50" calcMode="linear"
|
20
|
+
repeatCount="indefinite" />
|
21
|
+
</rect>
|
22
|
+
<rect x="45" width="10" height="30" rx="3">
|
23
|
+
<animate attributeName="height"
|
24
|
+
begin="0s" dur="2s"
|
25
|
+
values="30;45;13;80;56;72;45;76;34;23;67;30" calcMode="linear"
|
26
|
+
repeatCount="indefinite" />
|
27
|
+
</rect>
|
28
|
+
</g>
|
29
|
+
</svg>
|
@@ -0,0 +1,47 @@
|
|
1
|
+
<!-- By Sam Herbert (@sherb), for everyone. More @ http://goo.gl/7AJzbL -->
|
2
|
+
<!-- Todo: add easing -->
|
3
|
+
<svg width="57" height="57" viewBox="0 0 57 57" xmlns="http://www.w3.org/2000/svg" stroke="#fff">
|
4
|
+
<g fill="none" fill-rule="evenodd">
|
5
|
+
<g transform="translate(1 1)" stroke-width="2">
|
6
|
+
<circle cx="5" cy="50" r="5">
|
7
|
+
<animate attributeName="cy"
|
8
|
+
begin="0s" dur="2.2s"
|
9
|
+
values="50;5;50;50"
|
10
|
+
calcMode="linear"
|
11
|
+
repeatCount="indefinite" />
|
12
|
+
<animate attributeName="cx"
|
13
|
+
begin="0s" dur="2.2s"
|
14
|
+
values="5;27;49;5"
|
15
|
+
calcMode="linear"
|
16
|
+
repeatCount="indefinite" />
|
17
|
+
</circle>
|
18
|
+
<circle cx="27" cy="5" r="5">
|
19
|
+
<animate attributeName="cy"
|
20
|
+
begin="0s" dur="2.2s"
|
21
|
+
from="5" to="5"
|
22
|
+
values="5;50;50;5"
|
23
|
+
calcMode="linear"
|
24
|
+
repeatCount="indefinite" />
|
25
|
+
<animate attributeName="cx"
|
26
|
+
begin="0s" dur="2.2s"
|
27
|
+
from="27" to="27"
|
28
|
+
values="27;49;5;27"
|
29
|
+
calcMode="linear"
|
30
|
+
repeatCount="indefinite" />
|
31
|
+
</circle>
|
32
|
+
<circle cx="49" cy="50" r="5">
|
33
|
+
<animate attributeName="cy"
|
34
|
+
begin="0s" dur="2.2s"
|
35
|
+
values="50;50;5;50"
|
36
|
+
calcMode="linear"
|
37
|
+
repeatCount="indefinite" />
|
38
|
+
<animate attributeName="cx"
|
39
|
+
from="49" to="49"
|
40
|
+
begin="0s" dur="2.2s"
|
41
|
+
values="49;5;27;49"
|
42
|
+
calcMode="linear"
|
43
|
+
repeatCount="indefinite" />
|
44
|
+
</circle>
|
45
|
+
</g>
|
46
|
+
</g>
|
47
|
+
</svg>
|
@@ -0,0 +1,52 @@
|
|
1
|
+
<svg width="135" height="140" viewBox="0 0 135 140" xmlns="http://www.w3.org/2000/svg" fill="#fff">
|
2
|
+
<rect y="10" width="15" height="120" rx="6">
|
3
|
+
<animate attributeName="height"
|
4
|
+
begin="0.5s" dur="1s"
|
5
|
+
values="120;110;100;90;80;70;60;50;40;140;120" calcMode="linear"
|
6
|
+
repeatCount="indefinite" />
|
7
|
+
<animate attributeName="y"
|
8
|
+
begin="0.5s" dur="1s"
|
9
|
+
values="10;15;20;25;30;35;40;45;50;0;10" calcMode="linear"
|
10
|
+
repeatCount="indefinite" />
|
11
|
+
</rect>
|
12
|
+
<rect x="30" y="10" width="15" height="120" rx="6">
|
13
|
+
<animate attributeName="height"
|
14
|
+
begin="0.25s" dur="1s"
|
15
|
+
values="120;110;100;90;80;70;60;50;40;140;120" calcMode="linear"
|
16
|
+
repeatCount="indefinite" />
|
17
|
+
<animate attributeName="y"
|
18
|
+
begin="0.25s" dur="1s"
|
19
|
+
values="10;15;20;25;30;35;40;45;50;0;10" calcMode="linear"
|
20
|
+
repeatCount="indefinite" />
|
21
|
+
</rect>
|
22
|
+
<rect x="60" width="15" height="140" rx="6">
|
23
|
+
<animate attributeName="height"
|
24
|
+
begin="0s" dur="1s"
|
25
|
+
values="120;110;100;90;80;70;60;50;40;140;120" calcMode="linear"
|
26
|
+
repeatCount="indefinite" />
|
27
|
+
<animate attributeName="y"
|
28
|
+
begin="0s" dur="1s"
|
29
|
+
values="10;15;20;25;30;35;40;45;50;0;10" calcMode="linear"
|
30
|
+
repeatCount="indefinite" />
|
31
|
+
</rect>
|
32
|
+
<rect x="90" y="10" width="15" height="120" rx="6">
|
33
|
+
<animate attributeName="height"
|
34
|
+
begin="0.25s" dur="1s"
|
35
|
+
values="120;110;100;90;80;70;60;50;40;140;120" calcMode="linear"
|
36
|
+
repeatCount="indefinite" />
|
37
|
+
<animate attributeName="y"
|
38
|
+
begin="0.25s" dur="1s"
|
39
|
+
values="10;15;20;25;30;35;40;45;50;0;10" calcMode="linear"
|
40
|
+
repeatCount="indefinite" />
|
41
|
+
</rect>
|
42
|
+
<rect x="120" y="10" width="15" height="120" rx="6">
|
43
|
+
<animate attributeName="height"
|
44
|
+
begin="0.5s" dur="1s"
|
45
|
+
values="120;110;100;90;80;70;60;50;40;140;120" calcMode="linear"
|
46
|
+
repeatCount="indefinite" />
|
47
|
+
<animate attributeName="y"
|
48
|
+
begin="0.5s" dur="1s"
|
49
|
+
values="10;15;20;25;30;35;40;45;50;0;10" calcMode="linear"
|
50
|
+
repeatCount="indefinite" />
|
51
|
+
</rect>
|
52
|
+
</svg>
|
@@ -0,0 +1,20 @@
|
|
1
|
+
<svg width="135" height="135" viewBox="0 0 135 135" xmlns="http://www.w3.org/2000/svg" fill="#fff">
|
2
|
+
<path d="M67.447 58c5.523 0 10-4.477 10-10s-4.477-10-10-10-10 4.477-10 10 4.477 10 10 10zm9.448 9.447c0 5.523 4.477 10 10 10 5.522 0 10-4.477 10-10s-4.478-10-10-10c-5.523 0-10 4.477-10 10zm-9.448 9.448c-5.523 0-10 4.477-10 10 0 5.522 4.477 10 10 10s10-4.478 10-10c0-5.523-4.477-10-10-10zM58 67.447c0-5.523-4.477-10-10-10s-10 4.477-10 10 4.477 10 10 10 10-4.477 10-10z">
|
3
|
+
<animateTransform
|
4
|
+
attributeName="transform"
|
5
|
+
type="rotate"
|
6
|
+
from="0 67 67"
|
7
|
+
to="-360 67 67"
|
8
|
+
dur="2.5s"
|
9
|
+
repeatCount="indefinite"/>
|
10
|
+
</path>
|
11
|
+
<path d="M28.19 40.31c6.627 0 12-5.374 12-12 0-6.628-5.373-12-12-12-6.628 0-12 5.372-12 12 0 6.626 5.372 12 12 12zm30.72-19.825c4.686 4.687 12.284 4.687 16.97 0 4.686-4.686 4.686-12.284 0-16.97-4.686-4.687-12.284-4.687-16.97 0-4.687 4.686-4.687 12.284 0 16.97zm35.74 7.705c0 6.627 5.37 12 12 12 6.626 0 12-5.373 12-12 0-6.628-5.374-12-12-12-6.63 0-12 5.372-12 12zm19.822 30.72c-4.686 4.686-4.686 12.284 0 16.97 4.687 4.686 12.285 4.686 16.97 0 4.687-4.686 4.687-12.284 0-16.97-4.685-4.687-12.283-4.687-16.97 0zm-7.704 35.74c-6.627 0-12 5.37-12 12 0 6.626 5.373 12 12 12s12-5.374 12-12c0-6.63-5.373-12-12-12zm-30.72 19.822c-4.686-4.686-12.284-4.686-16.97 0-4.686 4.687-4.686 12.285 0 16.97 4.686 4.687 12.284 4.687 16.97 0 4.687-4.685 4.687-12.283 0-16.97zm-35.74-7.704c0-6.627-5.372-12-12-12-6.626 0-12 5.373-12 12s5.374 12 12 12c6.628 0 12-5.373 12-12zm-19.823-30.72c4.687-4.686 4.687-12.284 0-16.97-4.686-4.686-12.284-4.686-16.97 0-4.687 4.686-4.687 12.284 0 16.97 4.686 4.687 12.284 4.687 16.97 0z">
|
12
|
+
<animateTransform
|
13
|
+
attributeName="transform"
|
14
|
+
type="rotate"
|
15
|
+
from="0 67 67"
|
16
|
+
to="360 67 67"
|
17
|
+
dur="8s"
|
18
|
+
repeatCount="indefinite"/>
|
19
|
+
</path>
|
20
|
+
</svg>
|
@@ -0,0 +1,56 @@
|
|
1
|
+
<svg width="105" height="105" viewBox="0 0 105 105" xmlns="http://www.w3.org/2000/svg" fill="#fff">
|
2
|
+
<circle cx="12.5" cy="12.5" r="12.5">
|
3
|
+
<animate attributeName="fill-opacity"
|
4
|
+
begin="0s" dur="1s"
|
5
|
+
values="1;.2;1" calcMode="linear"
|
6
|
+
repeatCount="indefinite" />
|
7
|
+
</circle>
|
8
|
+
<circle cx="12.5" cy="52.5" r="12.5" fill-opacity=".5">
|
9
|
+
<animate attributeName="fill-opacity"
|
10
|
+
begin="100ms" dur="1s"
|
11
|
+
values="1;.2;1" calcMode="linear"
|
12
|
+
repeatCount="indefinite" />
|
13
|
+
</circle>
|
14
|
+
<circle cx="52.5" cy="12.5" r="12.5">
|
15
|
+
<animate attributeName="fill-opacity"
|
16
|
+
begin="300ms" dur="1s"
|
17
|
+
values="1;.2;1" calcMode="linear"
|
18
|
+
repeatCount="indefinite" />
|
19
|
+
</circle>
|
20
|
+
<circle cx="52.5" cy="52.5" r="12.5">
|
21
|
+
<animate attributeName="fill-opacity"
|
22
|
+
begin="600ms" dur="1s"
|
23
|
+
values="1;.2;1" calcMode="linear"
|
24
|
+
repeatCount="indefinite" />
|
25
|
+
</circle>
|
26
|
+
<circle cx="92.5" cy="12.5" r="12.5">
|
27
|
+
<animate attributeName="fill-opacity"
|
28
|
+
begin="800ms" dur="1s"
|
29
|
+
values="1;.2;1" calcMode="linear"
|
30
|
+
repeatCount="indefinite" />
|
31
|
+
</circle>
|
32
|
+
<circle cx="92.5" cy="52.5" r="12.5">
|
33
|
+
<animate attributeName="fill-opacity"
|
34
|
+
begin="400ms" dur="1s"
|
35
|
+
values="1;.2;1" calcMode="linear"
|
36
|
+
repeatCount="indefinite" />
|
37
|
+
</circle>
|
38
|
+
<circle cx="12.5" cy="92.5" r="12.5">
|
39
|
+
<animate attributeName="fill-opacity"
|
40
|
+
begin="700ms" dur="1s"
|
41
|
+
values="1;.2;1" calcMode="linear"
|
42
|
+
repeatCount="indefinite" />
|
43
|
+
</circle>
|
44
|
+
<circle cx="52.5" cy="92.5" r="12.5">
|
45
|
+
<animate attributeName="fill-opacity"
|
46
|
+
begin="500ms" dur="1s"
|
47
|
+
values="1;.2;1" calcMode="linear"
|
48
|
+
repeatCount="indefinite" />
|
49
|
+
</circle>
|
50
|
+
<circle cx="92.5" cy="92.5" r="12.5">
|
51
|
+
<animate attributeName="fill-opacity"
|
52
|
+
begin="200ms" dur="1s"
|
53
|
+
values="1;.2;1" calcMode="linear"
|
54
|
+
repeatCount="indefinite" />
|
55
|
+
</circle>
|
56
|
+
</svg>
|
@@ -0,0 +1,18 @@
|
|
1
|
+
<!-- By Sam Herbert (@sherb), for everyone. More @ http://goo.gl/7AJzbL -->
|
2
|
+
<svg width="140" height="64" viewBox="0 0 140 64" xmlns="http://www.w3.org/2000/svg" fill="#fff">
|
3
|
+
<path d="M30.262 57.02L7.195 40.723c-5.84-3.976-7.56-12.06-3.842-18.063 3.715-6 11.467-7.65 17.306-3.68l4.52 3.76 2.6-5.274c3.717-6.002 11.47-7.65 17.305-3.68 5.84 3.97 7.56 12.054 3.842 18.062L34.49 56.118c-.897 1.512-2.793 1.915-4.228.9z" fill-opacity=".5">
|
4
|
+
<animate attributeName="fill-opacity"
|
5
|
+
begin="0s" dur="1.4s"
|
6
|
+
values="0.5;1;0.5"
|
7
|
+
calcMode="linear"
|
8
|
+
repeatCount="indefinite" />
|
9
|
+
</path>
|
10
|
+
<path d="M105.512 56.12l-14.44-24.272c-3.716-6.008-1.996-14.093 3.843-18.062 5.835-3.97 13.588-2.322 17.306 3.68l2.6 5.274 4.52-3.76c5.84-3.97 13.592-2.32 17.307 3.68 3.718 6.003 1.998 14.088-3.842 18.064L109.74 57.02c-1.434 1.014-3.33.61-4.228-.9z" fill-opacity=".5">
|
11
|
+
<animate attributeName="fill-opacity"
|
12
|
+
begin="0.7s" dur="1.4s"
|
13
|
+
values="0.5;1;0.5"
|
14
|
+
calcMode="linear"
|
15
|
+
repeatCount="indefinite" />
|
16
|
+
</path>
|
17
|
+
<path d="M67.408 57.834l-23.01-24.98c-5.864-6.15-5.864-16.108 0-22.248 5.86-6.14 15.37-6.14 21.234 0L70 16.168l4.368-5.562c5.863-6.14 15.375-6.14 21.235 0 5.863 6.14 5.863 16.098 0 22.247l-23.007 24.98c-1.43 1.556-3.757 1.556-5.188 0z" />
|
18
|
+
</svg>
|
@@ -0,0 +1,17 @@
|
|
1
|
+
<!-- By Sam Herbert (@sherb), for everyone. More @ http://goo.gl/7AJzbL -->
|
2
|
+
<svg width="38" height="38" viewBox="0 0 38 38" xmlns="http://www.w3.org/2000/svg" stroke="#fff">
|
3
|
+
<g fill="none" fill-rule="evenodd">
|
4
|
+
<g transform="translate(1 1)" stroke-width="2">
|
5
|
+
<circle stroke-opacity=".5" cx="18" cy="18" r="18"/>
|
6
|
+
<path d="M36 18c0-9.94-8.06-18-18-18">
|
7
|
+
<animateTransform
|
8
|
+
attributeName="transform"
|
9
|
+
type="rotate"
|
10
|
+
from="0 18 18"
|
11
|
+
to="360 18 18"
|
12
|
+
dur="1s"
|
13
|
+
repeatCount="indefinite"/>
|
14
|
+
</path>
|
15
|
+
</g>
|
16
|
+
</g>
|
17
|
+
</svg>
|
@@ -0,0 +1,37 @@
|
|
1
|
+
<!-- By Sam Herbert (@sherb), for everyone. More @ http://goo.gl/7AJzbL -->
|
2
|
+
<svg width="44" height="44" viewBox="0 0 44 44" xmlns="http://www.w3.org/2000/svg" stroke="#fff">
|
3
|
+
<g fill="none" fill-rule="evenodd" stroke-width="2">
|
4
|
+
<circle cx="22" cy="22" r="1">
|
5
|
+
<animate attributeName="r"
|
6
|
+
begin="0s" dur="1.8s"
|
7
|
+
values="1; 20"
|
8
|
+
calcMode="spline"
|
9
|
+
keyTimes="0; 1"
|
10
|
+
keySplines="0.165, 0.84, 0.44, 1"
|
11
|
+
repeatCount="indefinite" />
|
12
|
+
<animate attributeName="stroke-opacity"
|
13
|
+
begin="0s" dur="1.8s"
|
14
|
+
values="1; 0"
|
15
|
+
calcMode="spline"
|
16
|
+
keyTimes="0; 1"
|
17
|
+
keySplines="0.3, 0.61, 0.355, 1"
|
18
|
+
repeatCount="indefinite" />
|
19
|
+
</circle>
|
20
|
+
<circle cx="22" cy="22" r="1">
|
21
|
+
<animate attributeName="r"
|
22
|
+
begin="-0.9s" dur="1.8s"
|
23
|
+
values="1; 20"
|
24
|
+
calcMode="spline"
|
25
|
+
keyTimes="0; 1"
|
26
|
+
keySplines="0.165, 0.84, 0.44, 1"
|
27
|
+
repeatCount="indefinite" />
|
28
|
+
<animate attributeName="stroke-opacity"
|
29
|
+
begin="-0.9s" dur="1.8s"
|
30
|
+
values="1; 0"
|
31
|
+
calcMode="spline"
|
32
|
+
keyTimes="0; 1"
|
33
|
+
keySplines="0.3, 0.61, 0.355, 1"
|
34
|
+
repeatCount="indefinite" />
|
35
|
+
</circle>
|
36
|
+
</g>
|
37
|
+
</svg>
|
@@ -0,0 +1,42 @@
|
|
1
|
+
<!-- By Sam Herbert (@sherb), for everyone. More @ http://goo.gl/7AJzbL -->
|
2
|
+
<svg width="45" height="45" viewBox="0 0 45 45" xmlns="http://www.w3.org/2000/svg" stroke="#fff">
|
3
|
+
<g fill="none" fill-rule="evenodd" transform="translate(1 1)" stroke-width="2">
|
4
|
+
<circle cx="22" cy="22" r="6" stroke-opacity="0">
|
5
|
+
<animate attributeName="r"
|
6
|
+
begin="1.5s" dur="3s"
|
7
|
+
values="6;22"
|
8
|
+
calcMode="linear"
|
9
|
+
repeatCount="indefinite" />
|
10
|
+
<animate attributeName="stroke-opacity"
|
11
|
+
begin="1.5s" dur="3s"
|
12
|
+
values="1;0" calcMode="linear"
|
13
|
+
repeatCount="indefinite" />
|
14
|
+
<animate attributeName="stroke-width"
|
15
|
+
begin="1.5s" dur="3s"
|
16
|
+
values="2;0" calcMode="linear"
|
17
|
+
repeatCount="indefinite" />
|
18
|
+
</circle>
|
19
|
+
<circle cx="22" cy="22" r="6" stroke-opacity="0">
|
20
|
+
<animate attributeName="r"
|
21
|
+
begin="3s" dur="3s"
|
22
|
+
values="6;22"
|
23
|
+
calcMode="linear"
|
24
|
+
repeatCount="indefinite" />
|
25
|
+
<animate attributeName="stroke-opacity"
|
26
|
+
begin="3s" dur="3s"
|
27
|
+
values="1;0" calcMode="linear"
|
28
|
+
repeatCount="indefinite" />
|
29
|
+
<animate attributeName="stroke-width"
|
30
|
+
begin="3s" dur="3s"
|
31
|
+
values="2;0" calcMode="linear"
|
32
|
+
repeatCount="indefinite" />
|
33
|
+
</circle>
|
34
|
+
<circle cx="22" cy="22" r="8">
|
35
|
+
<animate attributeName="r"
|
36
|
+
begin="0s" dur="1.5s"
|
37
|
+
values="6;1;2;3;4;5;6"
|
38
|
+
calcMode="linear"
|
39
|
+
repeatCount="indefinite" />
|
40
|
+
</circle>
|
41
|
+
</g>
|
42
|
+
</svg>
|
@@ -0,0 +1,55 @@
|
|
1
|
+
<!-- By Sam Herbert (@sherb), for everyone. More @ http://goo.gl/7AJzbL -->
|
2
|
+
<svg width="58" height="58" viewBox="0 0 58 58" xmlns="http://www.w3.org/2000/svg">
|
3
|
+
<g fill="none" fill-rule="evenodd">
|
4
|
+
<g transform="translate(2 1)" stroke="#FFF" stroke-width="1.5">
|
5
|
+
<circle cx="42.601" cy="11.462" r="5" fill-opacity="1" fill="#fff">
|
6
|
+
<animate attributeName="fill-opacity"
|
7
|
+
begin="0s" dur="1.3s"
|
8
|
+
values="1;0;0;0;0;0;0;0" calcMode="linear"
|
9
|
+
repeatCount="indefinite" />
|
10
|
+
</circle>
|
11
|
+
<circle cx="49.063" cy="27.063" r="5" fill-opacity="0" fill="#fff">
|
12
|
+
<animate attributeName="fill-opacity"
|
13
|
+
begin="0s" dur="1.3s"
|
14
|
+
values="0;1;0;0;0;0;0;0" calcMode="linear"
|
15
|
+
repeatCount="indefinite" />
|
16
|
+
</circle>
|
17
|
+
<circle cx="42.601" cy="42.663" r="5" fill-opacity="0" fill="#fff">
|
18
|
+
<animate attributeName="fill-opacity"
|
19
|
+
begin="0s" dur="1.3s"
|
20
|
+
values="0;0;1;0;0;0;0;0" calcMode="linear"
|
21
|
+
repeatCount="indefinite" />
|
22
|
+
</circle>
|
23
|
+
<circle cx="27" cy="49.125" r="5" fill-opacity="0" fill="#fff">
|
24
|
+
<animate attributeName="fill-opacity"
|
25
|
+
begin="0s" dur="1.3s"
|
26
|
+
values="0;0;0;1;0;0;0;0" calcMode="linear"
|
27
|
+
repeatCount="indefinite" />
|
28
|
+
</circle>
|
29
|
+
<circle cx="11.399" cy="42.663" r="5" fill-opacity="0" fill="#fff">
|
30
|
+
<animate attributeName="fill-opacity"
|
31
|
+
begin="0s" dur="1.3s"
|
32
|
+
values="0;0;0;0;1;0;0;0" calcMode="linear"
|
33
|
+
repeatCount="indefinite" />
|
34
|
+
</circle>
|
35
|
+
<circle cx="4.938" cy="27.063" r="5" fill-opacity="0" fill="#fff">
|
36
|
+
<animate attributeName="fill-opacity"
|
37
|
+
begin="0s" dur="1.3s"
|
38
|
+
values="0;0;0;0;0;1;0;0" calcMode="linear"
|
39
|
+
repeatCount="indefinite" />
|
40
|
+
</circle>
|
41
|
+
<circle cx="11.399" cy="11.462" r="5" fill-opacity="0" fill="#fff">
|
42
|
+
<animate attributeName="fill-opacity"
|
43
|
+
begin="0s" dur="1.3s"
|
44
|
+
values="0;0;0;0;0;0;1;0" calcMode="linear"
|
45
|
+
repeatCount="indefinite" />
|
46
|
+
</circle>
|
47
|
+
<circle cx="27" cy="5" r="5" fill-opacity="0" fill="#fff">
|
48
|
+
<animate attributeName="fill-opacity"
|
49
|
+
begin="0s" dur="1.3s"
|
50
|
+
values="0;0;0;0;0;0;0;1" calcMode="linear"
|
51
|
+
repeatCount="indefinite" />
|
52
|
+
</circle>
|
53
|
+
</g>
|
54
|
+
</g>
|
55
|
+
</svg>
|
@@ -0,0 +1,32 @@
|
|
1
|
+
<!-- By Sam Herbert (@sherb), for everyone. More @ http://goo.gl/7AJzbL -->
|
2
|
+
<svg width="38" height="38" viewBox="0 0 38 38" xmlns="http://www.w3.org/2000/svg">
|
3
|
+
<defs>
|
4
|
+
<linearGradient x1="8.042%" y1="0%" x2="65.682%" y2="23.865%" id="a">
|
5
|
+
<stop stop-color="#fff" stop-opacity="0" offset="0%"/>
|
6
|
+
<stop stop-color="#fff" stop-opacity=".631" offset="63.146%"/>
|
7
|
+
<stop stop-color="#fff" offset="100%"/>
|
8
|
+
</linearGradient>
|
9
|
+
</defs>
|
10
|
+
<g fill="none" fill-rule="evenodd">
|
11
|
+
<g transform="translate(1 1)">
|
12
|
+
<path d="M36 18c0-9.94-8.06-18-18-18" id="Oval-2" stroke="url(#a)" stroke-width="2">
|
13
|
+
<animateTransform
|
14
|
+
attributeName="transform"
|
15
|
+
type="rotate"
|
16
|
+
from="0 18 18"
|
17
|
+
to="360 18 18"
|
18
|
+
dur="0.9s"
|
19
|
+
repeatCount="indefinite" />
|
20
|
+
</path>
|
21
|
+
<circle fill="#fff" cx="36" cy="18" r="1">
|
22
|
+
<animateTransform
|
23
|
+
attributeName="transform"
|
24
|
+
type="rotate"
|
25
|
+
from="0 18 18"
|
26
|
+
to="360 18 18"
|
27
|
+
dur="0.9s"
|
28
|
+
repeatCount="indefinite" />
|
29
|
+
</circle>
|
30
|
+
</g>
|
31
|
+
</g>
|
32
|
+
</svg>
|
@@ -0,0 +1,33 @@
|
|
1
|
+
<!-- By Sam Herbert (@sherb), for everyone. More @ http://goo.gl/7AJzbL -->
|
2
|
+
<svg width="120" height="30" viewBox="0 0 120 30" xmlns="http://www.w3.org/2000/svg" fill="#fff">
|
3
|
+
<circle cx="15" cy="15" r="15">
|
4
|
+
<animate attributeName="r" from="15" to="15"
|
5
|
+
begin="0s" dur="0.8s"
|
6
|
+
values="15;9;15" calcMode="linear"
|
7
|
+
repeatCount="indefinite" />
|
8
|
+
<animate attributeName="fill-opacity" from="1" to="1"
|
9
|
+
begin="0s" dur="0.8s"
|
10
|
+
values="1;.5;1" calcMode="linear"
|
11
|
+
repeatCount="indefinite" />
|
12
|
+
</circle>
|
13
|
+
<circle cx="60" cy="15" r="9" fill-opacity="0.3">
|
14
|
+
<animate attributeName="r" from="9" to="9"
|
15
|
+
begin="0s" dur="0.8s"
|
16
|
+
values="9;15;9" calcMode="linear"
|
17
|
+
repeatCount="indefinite" />
|
18
|
+
<animate attributeName="fill-opacity" from="0.5" to="0.5"
|
19
|
+
begin="0s" dur="0.8s"
|
20
|
+
values=".5;1;.5" calcMode="linear"
|
21
|
+
repeatCount="indefinite" />
|
22
|
+
</circle>
|
23
|
+
<circle cx="105" cy="15" r="15">
|
24
|
+
<animate attributeName="r" from="15" to="15"
|
25
|
+
begin="0s" dur="0.8s"
|
26
|
+
values="15;9;15" calcMode="linear"
|
27
|
+
repeatCount="indefinite" />
|
28
|
+
<animate attributeName="fill-opacity" from="1" to="1"
|
29
|
+
begin="0s" dur="0.8s"
|
30
|
+
values="1;.5;1" calcMode="linear"
|
31
|
+
repeatCount="indefinite" />
|
32
|
+
</circle>
|
33
|
+
</svg>
|
@@ -0,0 +1,17 @@
|
|
1
|
+
module Svgloaders
|
2
|
+
module Generators
|
3
|
+
class InstallGenerator < ::Rails::Generators::Base
|
4
|
+
|
5
|
+
desc "This generator copies image files to vendor/assets/images/"
|
6
|
+
|
7
|
+
def self.source_root
|
8
|
+
File.dirname(__FILE__)
|
9
|
+
end
|
10
|
+
|
11
|
+
def add_images
|
12
|
+
say_status("Copying", "image files", :green)
|
13
|
+
directory "images", "app/assets/images/"
|
14
|
+
end
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
data/lib/svgloaders.rb
ADDED
data/svgloaders.gemspec
ADDED
@@ -0,0 +1,23 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
lib = File.expand_path('../lib', __FILE__)
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
+
require 'svgloaders/version'
|
5
|
+
|
6
|
+
Gem::Specification.new do |spec|
|
7
|
+
spec.name = "svgloaders"
|
8
|
+
spec.version = Svgloaders::VERSION
|
9
|
+
spec.authors = ["Vijay Dhama"]
|
10
|
+
spec.email = ["vjdhama26@gmail.com"]
|
11
|
+
spec.summary = %q{Install svgloaders}
|
12
|
+
spec.description = %q{A gem to install SVG-Loaders in rails app}
|
13
|
+
spec.homepage = ""
|
14
|
+
spec.license = "MIT"
|
15
|
+
|
16
|
+
spec.files = `git ls-files -z`.split("\x0")
|
17
|
+
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
|
18
|
+
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
19
|
+
spec.require_paths = ["lib"]
|
20
|
+
|
21
|
+
spec.add_development_dependency "bundler", "~> 1.5"
|
22
|
+
spec.add_development_dependency "rake"
|
23
|
+
end
|
metadata
ADDED
@@ -0,0 +1,96 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: svgloaders
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.3
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Vijay Dhama
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2014-12-18 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: bundler
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '1.5'
|
20
|
+
type: :development
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '1.5'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: rake
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - ">="
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '0'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - ">="
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '0'
|
41
|
+
description: A gem to install SVG-Loaders in rails app
|
42
|
+
email:
|
43
|
+
- vjdhama26@gmail.com
|
44
|
+
executables: []
|
45
|
+
extensions: []
|
46
|
+
extra_rdoc_files: []
|
47
|
+
files:
|
48
|
+
- ".gitignore"
|
49
|
+
- Gemfile
|
50
|
+
- LICENSE
|
51
|
+
- LICENSE.txt
|
52
|
+
- README.md
|
53
|
+
- Rakefile
|
54
|
+
- lib/generators/svgloaders/images/audio.svg
|
55
|
+
- lib/generators/svgloaders/images/ball-triangle.svg
|
56
|
+
- lib/generators/svgloaders/images/bars.svg
|
57
|
+
- lib/generators/svgloaders/images/circles.svg
|
58
|
+
- lib/generators/svgloaders/images/grid.svg
|
59
|
+
- lib/generators/svgloaders/images/hearts.svg
|
60
|
+
- lib/generators/svgloaders/images/oval.svg
|
61
|
+
- lib/generators/svgloaders/images/puff.svg
|
62
|
+
- lib/generators/svgloaders/images/rings.svg
|
63
|
+
- lib/generators/svgloaders/images/spinning-circles.svg
|
64
|
+
- lib/generators/svgloaders/images/tail-spin.svg
|
65
|
+
- lib/generators/svgloaders/images/three-dots.svg
|
66
|
+
- lib/generators/svgloaders/install_generator.rb
|
67
|
+
- lib/svgloaders.rb
|
68
|
+
- lib/svgloaders/rails/engine.rb
|
69
|
+
- lib/svgloaders/rails/railtie.rb
|
70
|
+
- lib/svgloaders/version.rb
|
71
|
+
- svgloaders.gemspec
|
72
|
+
homepage: ''
|
73
|
+
licenses:
|
74
|
+
- MIT
|
75
|
+
metadata: {}
|
76
|
+
post_install_message:
|
77
|
+
rdoc_options: []
|
78
|
+
require_paths:
|
79
|
+
- lib
|
80
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
81
|
+
requirements:
|
82
|
+
- - ">="
|
83
|
+
- !ruby/object:Gem::Version
|
84
|
+
version: '0'
|
85
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - ">="
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '0'
|
90
|
+
requirements: []
|
91
|
+
rubyforge_project:
|
92
|
+
rubygems_version: 2.2.2
|
93
|
+
signing_key:
|
94
|
+
specification_version: 4
|
95
|
+
summary: Install svgloaders
|
96
|
+
test_files: []
|