world-flags 0.6.2.1 → 0.6.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/README.md CHANGED
@@ -12,7 +12,10 @@ The sprites contains all the main country flags in the world.
12
12
 
13
13
  You can use the [sprite generator](http://spritegen.website-performance.org/) to generate sprites for other icons sets and follow the pattern for this gem.
14
14
 
15
- You can also see the [pictos-icons](https://github.com/kristianmandrup/pictos-icons) gem for another example using this model.
15
+ You can also see the [pictos-icons](https://github.com/kristianmandrup/pictos-icons)
16
+ or [social_icons](https://github.com/kristianmandrup/social_icons) gems for other examples using this model.
17
+
18
+ Also check out the [world-flag-packs](https://github.com/kristianmandrup/world-flag-packs) repo, that contains multiple flag packs ready for use with `world-flags.
16
19
 
17
20
  ## Customizing Flag sprite size
18
21
 
@@ -51,14 +54,12 @@ TODO: refactor resize css tool into rake task or similar that takes arguments!
51
54
  In you asset `application.css` manifest file:
52
55
 
53
56
  ```css
54
- */
57
+ /*
55
58
  *= require_self
56
59
  *= require_tree .
57
60
  *= require flags/basic
58
61
  *= require flags/flags16
59
- *= require flags/flags16_semi
60
62
  *= require flags/flags32
61
- *= require flags/flags32_semi
62
63
  */
63
64
  ```
64
65
 
@@ -274,32 +275,14 @@ The `basic.css` file in the `vendor/assets/stylesheets/flags` folder of this rep
274
275
  .f16.flag {
275
276
  width: 16px;
276
277
  height: 16px;
277
- line-height: 16px;
278
278
  }
279
279
 
280
280
  .f24.flag {
281
281
  width: 24px;
282
282
  height: 24px;
283
- line-height: 24px;
284
- }
285
-
286
- .f32.flag {
287
- width: 32px;
288
- height: 32px;
289
- line-height: 32px;
290
283
  }
291
284
 
292
- .f48.flag {
293
- width: 48px;
294
- height: 48px;
295
- line-height: 48px;
296
- }
297
-
298
- .f64.flag {
299
- width: 64px;
300
- height: 64px;
301
- line-height: 64px;
302
- }
285
+ /* and so on ... */
303
286
  ```
304
287
 
305
288
  ## TODO for version 1.0
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.6.2.1
1
+ 0.6.3
@@ -19,29 +19,24 @@
19
19
  .f16.flag {
20
20
  width: 16px;
21
21
  height: 16px;
22
- line-height: 16px;
23
22
  }
24
23
 
25
24
  .f24.flag {
26
25
  width: 24px;
27
26
  height: 24px;
28
- line-height: 24px;
29
27
  }
30
28
 
31
29
  .f32.flag {
32
30
  width: 32px;
33
31
  height: 32px;
34
- line-height: 32px;
35
32
  }
36
33
 
37
34
  .f48.flag {
38
35
  width: 48px;
39
36
  height: 48px;
40
- line-height: 48px;
41
37
  }
42
38
 
43
39
  .f64.flag {
44
40
  width: 64px;
45
41
  height: 64px;
46
- line-height: 64px;
47
42
  }
@@ -21,25 +21,21 @@
21
21
  .f16.flag {
22
22
  width: 16px;
23
23
  height: 16px;
24
- line-height: 16px;
25
24
  }
26
25
 
27
26
  .f24.flag {
28
27
  width: 24px;
29
28
  height: 24px;
30
- line-height: 24px;
31
29
  }
32
30
 
33
31
  .f32.flag {
34
32
  width: 32px;
35
33
  height: 32px;
36
- line-height: 32px;
37
34
  }
38
35
 
39
36
  .f48.flag {
40
37
  width: 48px;
41
38
  height: 48px;
42
- line-height: 48px;
43
39
  }
44
40
 
45
41
  .f64.flag {
@@ -1,6 +1,12 @@
1
1
  .f16 .flag {
2
2
  background:url(<%= asset_path 'flags/flags16.png' %>) no-repeat;
3
3
  }
4
+
5
+ .f16 .semi {
6
+ background:url(<%= asset_path 'flags/flags16_semi.png' %>) no-repeat;
7
+ }
8
+
9
+
4
10
  .f16 ._African_Union{background-position:0 -0px;}
5
11
  .f16 ._Arab_League{background-position:0 -16px;}
6
12
  .f16 ._ASEAN{background-position:0 -32px;}
@@ -3,6 +3,11 @@
3
3
  .flag{
4
4
  background:url(<%= asset_path 'flags/flags16.png' %>) no-repeat;
5
5
  }
6
+
7
+ .semi {
8
+ background:url(<%= asset_path 'flags/flags16_semi.png' %>) no-repeat;
9
+ }
10
+
6
11
  ._African_Union{background-position:0 -0px;}
7
12
  ._Arab_League{background-position:0 -16px;}
8
13
  ._ASEAN{background-position:0 -32px;}
@@ -1,6 +1,11 @@
1
1
  .f24 .flag {
2
2
  background:url(<%= asset_path 'flags/flags24.png' %>) no-repeat;
3
3
  }
4
+
5
+ .f24 .semi {
6
+ background:url(<%= asset_path 'flags/flags24_semi.png' %>) no-repeat;
7
+ }
8
+
4
9
  .f24 ._Afriican_Union{background-position:0 -0px;}
5
10
  .f24 ._Arabb_League{background-position:0 -24px;}
6
11
  .f24 ._ASEAAN{background-position:0 -48px;}
@@ -4,6 +4,10 @@
4
4
  background:url(<%= asset_path 'flags/flags24.png' %>) no-repeat;
5
5
  }
6
6
 
7
+ .semi {
8
+ background:url(<%= asset_path 'flags/flags24_semi.png' %>) no-repeat;
9
+ }
10
+
7
11
  ._Africcan_Union{background-position:0 -0px;}
8
12
  ._Arab__League{background-position:0 -24px;}
9
13
  ._ASEANN{background-position:0 -48px;}
@@ -1,6 +1,10 @@
1
1
  .f32 .flag {
2
2
  background:url(<%= asset_path 'flags/flags32.png' %>) no-repeat;
3
3
  }
4
+ .f32 .semi {
5
+ background:url(<%= asset_path 'flags/flags32_semi.png' %>) no-repeat;
6
+ }
7
+
4
8
  .f32 ._African_Union{background-position:0 -0px;}
5
9
  .f32 ._Arab_League{background-position:0 -32px;}
6
10
  .f32 ._ASEAN{background-position:0 -64px;}
@@ -4,6 +4,10 @@
4
4
  background:url(<%= asset_path 'flags/flags32.png' %>) no-repeat;
5
5
  }
6
6
 
7
+ .semi {
8
+ background:url(<%= asset_path 'flags/flags32_semi.png' %>) no-repeat;
9
+ }
10
+
7
11
  ._African_Union{background-position:0 -0px;}
8
12
  ._Arab_League{background-position:0 -32px;}
9
13
  ._ASEAN{background-position:0 -64px;}
@@ -1,6 +1,10 @@
1
1
  .f48 .flag {
2
2
  background:url(<%= asset_path 'flags/flags48.png' %>) no-repeat;
3
3
  }
4
+ .f48 .semi {
5
+ background:url(<%= asset_path 'flags/flags48_semi.png' %>) no-repeat;
6
+ }
7
+
4
8
  .f48 ._Afriiican_Union{background-position:0 -0px;}
5
9
  .f48 ._Arabbb_League{background-position:0 -48px;}
6
10
  .f48 ._ASEAAAN{background-position:0 -96px;}
@@ -3,6 +3,9 @@
3
3
  .flag {
4
4
  background:url(<%= asset_path 'flags/flags48.png' %>) no-repeat;
5
5
  }
6
+ .semi {
7
+ background:url(<%= asset_path 'flags/flags48_semi.png' %>) no-repeat;
8
+ }
6
9
 
7
10
  ._Africccan_Union{background-position:0 -0px;}
8
11
  ._Arab___League{background-position:0 -48px;}
@@ -2,6 +2,10 @@
2
2
 
3
3
  .flag {background:url(<%= asset_path 'flags/flags64.png' %>) no-repeat;}
4
4
 
5
+ .semi {
6
+ background:url(<%= asset_path 'flags/flags64_semi.png' %>) no-repeat;
7
+ }
8
+
5
9
  ._African_Union{background-position:0 -0px;}
6
10
  ._Arab_League{background-position:0 -64px;}
7
11
  ._ASEAN{background-position:0 -128px;}
data/world-flags.gemspec CHANGED
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "world-flags"
8
- s.version = "0.6.2.1"
8
+ s.version = "0.6.3"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Kristian Mandrup"]
12
- s.date = "2012-08-09"
12
+ s.date = "2012-08-21"
13
13
  s.description = "Use world flag icons in your Rails app"
14
14
  s.email = "kmandrup@gmail.com"
15
15
  s.extra_rdoc_files = [
@@ -84,24 +84,14 @@ Gem::Specification.new do |s|
84
84
  "vendor/assets/javascripts/world_flags/url_helper.js",
85
85
  "vendor/assets/stylesheets/flags/basic.css",
86
86
  "vendor/assets/stylesheets/flags/basic.scss.css",
87
- "vendor/assets/stylesheets/flags/flags16-semi.css.erb",
88
- "vendor/assets/stylesheets/flags/flags16-semi.css.scss.erb",
89
87
  "vendor/assets/stylesheets/flags/flags16.css.erb",
90
88
  "vendor/assets/stylesheets/flags/flags16.css.scss.erb",
91
- "vendor/assets/stylesheets/flags/flags24-semi.css.erb",
92
- "vendor/assets/stylesheets/flags/flags24-semi.css.scss.erb",
93
89
  "vendor/assets/stylesheets/flags/flags24.css.erb",
94
90
  "vendor/assets/stylesheets/flags/flags24.css.scss.erb",
95
- "vendor/assets/stylesheets/flags/flags32-semi.css.erb",
96
- "vendor/assets/stylesheets/flags/flags32-semi.css.scss.erb",
97
91
  "vendor/assets/stylesheets/flags/flags32.css.erb",
98
92
  "vendor/assets/stylesheets/flags/flags32.css.scss.erb",
99
- "vendor/assets/stylesheets/flags/flags48-semi.css.erb",
100
- "vendor/assets/stylesheets/flags/flags48-semi.css.scss.erb",
101
93
  "vendor/assets/stylesheets/flags/flags48.css.erb",
102
94
  "vendor/assets/stylesheets/flags/flags48.css.scss.erb",
103
- "vendor/assets/stylesheets/flags/flags64-semi.css.erb",
104
- "vendor/assets/stylesheets/flags/flags64-semi.css.scss.erb",
105
95
  "vendor/assets/stylesheets/flags/flags64.css.scss.erb",
106
96
  "world-flags.gemspec"
107
97
  ]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: world-flags
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.2.1
4
+ version: 0.6.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-08-09 00:00:00.000000000 Z
12
+ date: 2012-08-21 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: hashie
@@ -198,24 +198,14 @@ files:
198
198
  - vendor/assets/javascripts/world_flags/url_helper.js
199
199
  - vendor/assets/stylesheets/flags/basic.css
200
200
  - vendor/assets/stylesheets/flags/basic.scss.css
201
- - vendor/assets/stylesheets/flags/flags16-semi.css.erb
202
- - vendor/assets/stylesheets/flags/flags16-semi.css.scss.erb
203
201
  - vendor/assets/stylesheets/flags/flags16.css.erb
204
202
  - vendor/assets/stylesheets/flags/flags16.css.scss.erb
205
- - vendor/assets/stylesheets/flags/flags24-semi.css.erb
206
- - vendor/assets/stylesheets/flags/flags24-semi.css.scss.erb
207
203
  - vendor/assets/stylesheets/flags/flags24.css.erb
208
204
  - vendor/assets/stylesheets/flags/flags24.css.scss.erb
209
- - vendor/assets/stylesheets/flags/flags32-semi.css.erb
210
- - vendor/assets/stylesheets/flags/flags32-semi.css.scss.erb
211
205
  - vendor/assets/stylesheets/flags/flags32.css.erb
212
206
  - vendor/assets/stylesheets/flags/flags32.css.scss.erb
213
- - vendor/assets/stylesheets/flags/flags48-semi.css.erb
214
- - vendor/assets/stylesheets/flags/flags48-semi.css.scss.erb
215
207
  - vendor/assets/stylesheets/flags/flags48.css.erb
216
208
  - vendor/assets/stylesheets/flags/flags48.css.scss.erb
217
- - vendor/assets/stylesheets/flags/flags64-semi.css.erb
218
- - vendor/assets/stylesheets/flags/flags64-semi.css.scss.erb
219
209
  - vendor/assets/stylesheets/flags/flags64.css.scss.erb
220
210
  - world-flags.gemspec
221
211
  homepage: http://github.com/kristianmandrup/world-flags
@@ -233,7 +223,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
233
223
  version: '0'
234
224
  segments:
235
225
  - 0
236
- hash: 1506487992368531973
226
+ hash: 4017134093416827695
237
227
  required_rubygems_version: !ruby/object:Gem::Requirement
238
228
  none: false
239
229
  requirements:
@@ -1,3 +0,0 @@
1
- .f16 .semi {
2
- background:url(<%= asset_path 'flags/flags16_semi.png' %>) no-repeat;
3
- }
@@ -1,7 +0,0 @@
1
- .f16 {
2
-
3
- .semi {
4
- background:url(<%= asset_path 'flags/flags16_semi.png' %>) no-repeat;
5
- }
6
-
7
- } // .f16
@@ -1,3 +0,0 @@
1
- .f24 .semi {
2
- background:url(<%= asset_path 'flags/flags24_semi.png' %>) no-repeat;
3
- }
@@ -1,7 +0,0 @@
1
- .f24 {
2
-
3
- .semi {
4
- background:url(<%= asset_path 'flags/flags24_semi.png' %>) no-repeat;
5
- }
6
-
7
- } // .f24
@@ -1,3 +0,0 @@
1
- .f32 .semi {
2
- background:url(<%= asset_path 'flags/flags32_semi.png' %>) no-repeat;
3
- }
@@ -1,7 +0,0 @@
1
- .f32 {
2
-
3
- .semi {
4
- background:url(<%= asset_path 'flags/flags32_semi.png' %>) no-repeat;
5
- }
6
-
7
- } // .f32
@@ -1,3 +0,0 @@
1
- .f48 .semi {
2
- background:url(<%= asset_path 'flags/flags48_semi.png' %>) no-repeat;
3
- }
@@ -1,7 +0,0 @@
1
- .f48 {
2
-
3
- .semi {
4
- background:url(<%= asset_path 'flags/flags48_semi.png' %>) no-repeat;
5
- }
6
-
7
- } // .f48
@@ -1,3 +0,0 @@
1
- .f64 .semi {
2
- background:url(<%= asset_path 'flags/flags64_semi.png' %>) no-repeat;
3
- }
@@ -1,7 +0,0 @@
1
- .f64 {
2
-
3
- .semi {
4
- background:url(<%= asset_path 'flags/flags64_semi.png' %>) no-repeat;
5
- }
6
-
7
- } // .f64