flag_icon 1.3.0 → 1.5.1

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a681cfb4be4dd25f03cf0fa2f036764b178f3ef23a0d394d86f3cf4ef49a5af1
4
- data.tar.gz: 2e70a4e0530292e43f787b25c0df6b9711c03a370013d52d4fd5bdc0278d1903
3
+ metadata.gz: 57d9f5d5f6f1904cfdde94eaf6d54d3691a5bae492b23b5e6f00e323eeb81626
4
+ data.tar.gz: 20ef25930a7855b1ea7a19f6905c75f145d131c1730999d97318d7b70a766b25
5
5
  SHA512:
6
- metadata.gz: f752bd8917b096e03085653d41447d6993177453d7851e2959a2b73f3a346b55687d9b146bde7ceb951aadac5542a736763e4089100f65912ea149192f09a99a
7
- data.tar.gz: 662475aff393e6c27e455a382fcd63a682f08d24b55208ddb9049ca2a58bfa06c14656943d6f9d90370e5397df53d90836a8ca5d04a37cd6cef0d8fc5fde9b9c
6
+ metadata.gz: ecbd496c9e8c07d91684fe1a20ac082264ec4ebedd9ce9c5479705a29c2aa8d99d0ac03833158b9e404d4391113f606cd9b81132aaf3b7fb2c617cb7b4ab37ef
7
+ data.tar.gz: c451628dced5b641ceefdb92b7606ae32a35afa2420d8505cb024ba4d9adf1f2801f33e4f274f905f672f3d65603a536614ef87b940a6c3d2919b6b30a5d28e5
@@ -4,7 +4,7 @@ on:
4
4
  push:
5
5
  branches:
6
6
  - '*'
7
- - '!master'
7
+ - '!amin'
8
8
 
9
9
 
10
10
  jobs:
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- flag_icon (1.3.0)
4
+ flag_icon (1.5.1)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
data/README.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # FlagIcon
2
- An attempt to map languages to flags!
2
+ [![Gem Version](https://badge.fury.io/rb/flag_icon.svg)](https://badge.fury.io/rb/flag_icon)
3
+
4
+ ### Purpose
5
+ An attempt to map languages to country flags!
6
+
7
+ ### Approach
8
+ Matching flags to languages can be really tricky and even problematic sometimes because there is no direct association
9
+ between languages and countries since the same language is spoken in many countries and many languages are spoken in a single country.
10
+
11
+ So for a title from Mexico which has spanish as the official language the spanish flag will appear.
12
+
13
+ If you notice any flags being mismatched please raise an [issue](https://github.com/alexwebgr/flag_icon/issues)
14
+ or even better open a [pull request](https://github.com/alexwebgr/flag_icon/pulls)
3
15
 
4
16
 
5
17
  ## Installation
@@ -30,12 +42,12 @@ There is a number of helpers available that will render country names, language
30
42
  language_icon
31
43
  ```
32
44
  ```ruby
33
- # It returns HTML element with country icon
45
+ # It returns HTML element with country icon and title
34
46
  #
35
47
  # @param code -> country iso code
36
- # @example flag_icon('gr')
48
+ # @example country_icon('gr')
37
49
  # @return String
38
- flag_icon
50
+ country_icon
39
51
  ```
40
52
  ```ruby
41
53
  # It returns the language name
@@ -49,7 +61,7 @@ language_name
49
61
  # It returns the country name
50
62
  #
51
63
  # @param code -> country iso code
52
- # @example language_name('gr') # => Greece
64
+ # @example country_name('gr') # => Greece
53
65
  # @return String
54
66
  country_name
55
67
  ```
@@ -57,18 +69,25 @@ country_name
57
69
  # It returns the country iso code
58
70
  #
59
71
  # @param code -> language locale
60
- # @example language_name('el') # => gr
72
+ # @example language_flag('el') # => gr
61
73
  # @return String
62
74
  language_flag
63
75
  ```
64
76
  ```ruby
65
- # It returns the country iso code
77
+ # It returns an array that can be used in the select tag
78
+ #
79
+ # @example select_language
80
+ # @return Array
81
+ select_language
82
+ ```
83
+ ```ruby
84
+ # It returns an hash of arrays that can be used in the select tag
66
85
  #
67
86
  # @param popular -> title of the popular group
68
87
  # @param available -> title of the available group
69
- # @example select_language
88
+ # @example grouped_select_language(popular: 'Popular', available: 'Available')
70
89
  # @return Hash
71
- select_language
90
+ grouped_select_language
72
91
  ```
73
92
  ```ruby
74
93
  # Define in your application_helper to override the popular languages
@@ -97,15 +116,6 @@ available_languages
97
116
  After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
98
117
 
99
118
  ## Contributing
100
- Matching flags to languages can be really tricky and even problematic sometimes because there is no direct association
101
- between languages and countries since the same language is spoken in many countries and many languages are spoken in a single.
102
- So a effort was made to identify the official language of each country and then assign the flag to the language not the country.
103
-
104
- So for a title from Mexico which has spanish as the official language the spanish flag will appear.
105
-
106
- Therefore if you notice any flags being mismatched please raise an [issue](https://github.com/alexwebgr/flag_icon/issues)
107
- or even better open a [pull request](https://github.com/alexwebgr/flag_icon/pulls)
108
-
109
119
  This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [code of conduct](https://github.com/alexwebgr/flag_icon/blob/master/CODE_OF_CONDUCT.md).
110
120
 
111
121
  ## License
@@ -1,6 +1,8 @@
1
1
  module FlagIcon::Countries
2
2
  # ISO country codes to county name
3
3
  NAMES = {
4
+ ab: "Abkhazia",
5
+ ak: "Alaska",
4
6
  ad: "Andorra",
5
7
  ae: "United Arab Emirates",
6
8
  af: "Afghanistan",
@@ -256,10 +258,12 @@ module FlagIcon::Countries
256
258
  LANGUAGE_FLAGS = {
257
259
  ca: "es-ct",
258
260
  gl: "es-ga",
261
+ eu: "es-eu",
259
262
  ar: "ae",
260
263
  fa: "af",
261
264
  en: "gb",
262
265
  al: "al",
266
+ sq: "al",
263
267
  am: "am",
264
268
  hy: "am",
265
269
  es: "es",
@@ -287,9 +291,16 @@ module FlagIcon::Countries
287
291
  hi: "in",
288
292
  ta: "in",
289
293
  te: "in",
294
+ as: "in",
295
+ gu: "in",
296
+ kn: "in",
297
+ mr: "in",
298
+ pa: "in",
299
+ sa: "in",
290
300
  is: "is",
291
301
  it: "it",
292
302
  ja: "jp",
303
+ jp: "jp",
293
304
  ky: "kg",
294
305
  km: "kh",
295
306
  ko: "ko",
@@ -305,6 +316,7 @@ module FlagIcon::Countries
305
316
  mh: "mh",
306
317
  mk: "mk",
307
318
  ml: "ml",
319
+ bm: "ml",
308
320
  my: "mm",
309
321
  mn: "mn",
310
322
  dv: "mv",
@@ -312,6 +324,7 @@ module FlagIcon::Countries
312
324
  ms: "my",
313
325
  nl: "nl",
314
326
  no: "no",
327
+ nb: "no",
315
328
  ne: "np",
316
329
  na: "nr",
317
330
  ur: "pk",
@@ -338,10 +351,24 @@ module FlagIcon::Countries
338
351
  bi: "vu",
339
352
  sm: "ws",
340
353
  zu: "za",
354
+ bg: "bg",
355
+ cy: "gb-wls",
356
+ he: "il",
357
+ yi: "il",
358
+ ig: "ng",
359
+ ik: "ak",
360
+ ln: "cd",
361
+ sk: "sk",
362
+ sl: "si",
363
+ wo: "sn",
364
+ ak: "gh",
365
+ ab: "ab",
341
366
  }
342
367
 
343
368
  # language code to language name
344
369
  LANGUAGES = {
370
+ "ak": "Akan",
371
+ "ig": "Igbo",
345
372
  "ab": "Abkhazian",
346
373
  "aa": "Afar",
347
374
  "af": "Afrikaans",
@@ -361,6 +388,7 @@ module FlagIcon::Countries
361
388
  "br": "Breton",
362
389
  "bg": "Bulgarian",
363
390
  "my": "Burmese",
391
+ "bm": "Bambara",
364
392
  "be": "Byelorussian (Belarusian)",
365
393
  "km": "Cambodian",
366
394
  "ca": "Catalan",
@@ -416,6 +444,7 @@ module FlagIcon::Countries
416
444
  "li": "Limburgish ( Limburger)",
417
445
  "ln": "Lingala",
418
446
  "lt": "Lithuanian",
447
+ "lb": "Luxembourgish",
419
448
  "mk": "Macedonian",
420
449
  "mg": "Malagasy",
421
450
  "ms": "Malay",
@@ -428,6 +457,7 @@ module FlagIcon::Countries
428
457
  "na": "Nauru",
429
458
  "ne": "Nepali",
430
459
  "no": "Norwegian",
460
+ "nb": "Bokmål",
431
461
  "oc": "Occitan",
432
462
  "or": "Oriya",
433
463
  "om": "Oromo (Afan, Galla)",
@@ -11,7 +11,7 @@ module FlagIcon
11
11
  # It returns the country name
12
12
  #
13
13
  # @param code -> country iso code
14
- # @example language_name('gr') # => Greece
14
+ # @example country_name('gr') # => Greece
15
15
  # @return String
16
16
  def country_name(code)
17
17
  FlagIcon::Countries::NAMES[code.to_sym]
@@ -20,42 +20,49 @@ module FlagIcon
20
20
  # It returns the country iso code
21
21
  #
22
22
  # @param code -> language locale
23
- # @example language_name('el') # => gr
23
+ # @example language_flag('el') # => gr
24
24
  # @return String
25
25
  def language_flag(code)
26
- FlagIcon::Countries::LANGUAGE_FLAGS[code.to_sym]
26
+ FlagIcon::Countries::LANGUAGE_FLAGS[code.to_sym] || 'xx'
27
27
  end
28
28
 
29
- # It returns the country iso code
29
+ # It returns an array that can be used in the select tag
30
+ #
31
+ # @example select_language
32
+ # @return Array
33
+ def select_language
34
+ available_languages.map { |lang| [language_name(lang), lang] }
35
+ end
36
+
37
+ # It returns an hash of arrays that can be used in the select tag
30
38
  #
31
39
  # @param popular -> title of the popular group
32
40
  # @param available -> title of the available group
33
- # @example select_language
41
+ # @example grouped_select_language(popular: 'Popular', available: 'Available')
34
42
  # @return Hash
35
- def select_language(popular = 'Popular', available = 'Available')
43
+ def grouped_select_language(popular: 'Popular', available: 'Available')
36
44
  {
37
45
  popular => popular_languages,
38
46
  available => available_languages.map { |lang| [language_name(lang), lang] }
39
47
  }
40
48
  end
41
49
 
42
-
43
50
  # It returns HTML element with country icon and title
44
51
  #
45
52
  # @param code -> language locale
46
53
  # @example language_icon('el')
47
54
  # @return String
48
- def language_icon(code)
49
- "<span class='flag-icon flag-icon-#{language_flag(code)}' title='Audio language - #{language_name(code)}'></span>"
55
+ def language_icon(code, title: "Audio language - #{language_name(code)}")
56
+ "<span class='flag-icon flag-icon-#{language_flag(code)}' title='#{title}'></span>"
50
57
  end
51
58
 
52
- # It returns HTML element with country icon
59
+ # It returns HTML element with country icon and title
53
60
  #
54
61
  # @param code -> country iso code
55
- # @example flag_icon('gr')
62
+ # @example country_icon('gr')
56
63
  # @return String
57
- def flag_icon(code)
58
- "<span class='flag-icon flag-icon-#{code}' title='Available in #{country_name(code)}'></span>"
64
+ def country_icon(code, title: "Available in #{country_name(code)}")
65
+ "<span class='flag-icon flag-icon-#{code}' title='#{title}'></span>"
59
66
  end
60
67
 
61
68
  # Define in your application_helper to override the popular languages
@@ -86,8 +93,9 @@ module FlagIcon
86
93
  module_function :country_name
87
94
  module_function :language_flag
88
95
  module_function :select_language
96
+ module_function :grouped_select_language
89
97
  module_function :language_icon
90
- module_function :flag_icon
98
+ module_function :country_icon
91
99
  module_function :popular_languages
92
100
  module_function :available_languages
93
101
  end
@@ -1,5 +1,5 @@
1
1
  module FlagIcon
2
2
  module Rails
3
- VERSION = "1.3.0"
3
+ VERSION = "1.5.1"
4
4
  end
5
5
  end
@@ -0,0 +1,109 @@
1
+ <?xml version="1.0" encoding="UTF-8" standalone="no"?>
2
+ <svg xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:cc="http://creativecommons.org/ns#" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:svg="http://www.w3.org/2000/svg" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd" xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape" width="225" height="150" version="1.1" id="svg36" sodipodi:docname="Alaska.svg" inkscape:version="0.92.3 (2405546, 2018-03-11)">
3
+ <metadata id="metadata40">
4
+ <rdf:RDF>
5
+ <cc:Work rdf:about="">
6
+ <dc:format>image/svg+xml</dc:format>
7
+ <dc:type rdf:resource="http://purl.org/dc/dcmitype/StillImage"/>
8
+ <dc:title>Flag of Alaska</dc:title>
9
+ </cc:Work>
10
+ </rdf:RDF>
11
+ </metadata>
12
+ <sodipodi:namedview pagecolor="#ffffff" bordercolor="#666666" borderopacity="1" objecttolerance="10" gridtolerance="10" guidetolerance="10" inkscape:pageopacity="0" inkscape:pageshadow="2" inkscape:window-width="1920" inkscape:window-height="1015" id="namedview38" showgrid="false" inkscape:zoom="0.39124294" inkscape:cx="152.32568" inkscape:cy="103.21031" inkscape:window-x="0" inkscape:window-y="0" inkscape:window-maximized="1" inkscape:current-layer="svg36"/>
13
+ <title id="title2">Flag of Alaska</title>
14
+ <defs id="defs17">
15
+ <g id="star5" style="fill:#ffb612">
16
+ <g id="cone">
17
+ <polygon id="triangle" points="0.5,1 0,0 0,1 " transform="rotate(18,3.1568758,-0.5)"/>
18
+ <use xlink:href="#triangle" transform="scale(-1,1)" id="use5" x="0" y="0" width="100%" height="100%"/>
19
+ </g>
20
+ <use xlink:href="#cone" transform="rotate(72)" id="use8" x="0" y="0" width="100%" height="100%"/>
21
+ <use xlink:href="#cone" transform="rotate(-72)" id="use10" x="0" y="0" width="100%" height="100%"/>
22
+ <use xlink:href="#cone" transform="rotate(144)" id="use12" x="0" y="0" width="100%" height="100%"/>
23
+ <use xlink:href="#cone" transform="rotate(-144)" id="use14" x="0" y="0" width="100%" height="100%"/>
24
+ </g>
25
+ </defs>
26
+ <g id="g3954" transform="translate(6.3000031,-850)">
27
+ <rect style="fill:#0f204b;stroke-width:0.15438506" y="850" x="-6.3000031" id="rect19" height="150" width="225"/>
28
+ <g transform="matrix(7.8,0,0,7.8,173.7,877.3)" style="fill:#ffb612" id="use21">
29
+ <g id="g174">
30
+ <polygon id="polygon170" points="0.5,1 0,0 0,1 " transform="rotate(18,3.1568758,-0.5)"/>
31
+ <use height="100%" width="100%" y="0" x="0" xlink:href="#triangle" transform="scale(-1,1)" id="use172"/>
32
+ </g>
33
+ <use height="100%" width="100%" y="0" x="0" xlink:href="#cone" transform="rotate(72)" id="use176"/>
34
+ <use height="100%" width="100%" y="0" x="0" xlink:href="#cone" transform="rotate(-72)" id="use178"/>
35
+ <use height="100%" width="100%" y="0" x="0" xlink:href="#cone" transform="rotate(144)" id="use180"/>
36
+ <use height="100%" width="100%" y="0" x="0" xlink:href="#cone" transform="rotate(-144)" id="use182"/>
37
+ </g>
38
+ <g transform="matrix(4.65,0,0,4.65,34.35,909.4)" style="fill:#ffb612" id="star">
39
+ <g id="g46">
40
+ <polygon id="polygon42" points="0.5,1 0,0 0,1 " transform="rotate(18,3.1568758,-0.5)"/>
41
+ <use height="100%" width="100%" y="0" x="0" xlink:href="#triangle" transform="scale(-1,1)" id="use44"/>
42
+ </g>
43
+ <use height="100%" width="100%" y="0" x="0" xlink:href="#cone" transform="rotate(72)" id="use48"/>
44
+ <use height="100%" width="100%" y="0" x="0" xlink:href="#cone" transform="rotate(-72)" id="use50"/>
45
+ <use height="100%" width="100%" y="0" x="0" xlink:href="#cone" transform="rotate(144)" id="use52"/>
46
+ <use height="100%" width="100%" y="0" x="0" xlink:href="#cone" transform="rotate(-144)" id="use54"/>
47
+ </g>
48
+ <g id="use24" style="fill:#ffb612" transform="matrix(4.65,0,0,4.65,59.4,918.7)">
49
+ <g id="g62">
50
+ <polygon transform="rotate(18,3.1568758,-0.5)" points="0,1 0.5,1 0,0 " id="polygon58"/>
51
+ <use id="use60" transform="scale(-1,1)" xlink:href="#triangle" x="0" y="0" width="100%" height="100%"/>
52
+ </g>
53
+ <use id="use64" transform="rotate(72)" xlink:href="#cone" x="0" y="0" width="100%" height="100%"/>
54
+ <use id="use66" transform="rotate(-72)" xlink:href="#cone" x="0" y="0" width="100%" height="100%"/>
55
+ <use id="use68" transform="rotate(144)" xlink:href="#cone" x="0" y="0" width="100%" height="100%"/>
56
+ <use id="use70" transform="rotate(-144)" xlink:href="#cone" x="0" y="0" width="100%" height="100%"/>
57
+ </g>
58
+ <g id="use26" style="fill:#ffb612" transform="matrix(4.65,0,0,4.65,71.85,932.05)">
59
+ <g id="g78">
60
+ <polygon transform="rotate(18,3.1568758,-0.5)" points="0,1 0.5,1 0,0 " id="polygon74"/>
61
+ <use id="use76" transform="scale(-1,1)" xlink:href="#triangle" x="0" y="0" width="100%" height="100%"/>
62
+ </g>
63
+ <use id="use80" transform="rotate(72)" xlink:href="#cone" x="0" y="0" width="100%" height="100%"/>
64
+ <use id="use82" transform="rotate(-72)" xlink:href="#cone" x="0" y="0" width="100%" height="100%"/>
65
+ <use id="use84" transform="rotate(144)" xlink:href="#cone" x="0" y="0" width="100%" height="100%"/>
66
+ <use id="use86" transform="rotate(-144)" xlink:href="#cone" x="0" y="0" width="100%" height="100%"/>
67
+ </g>
68
+ <g id="use28" style="fill:#ffb612" transform="matrix(4.65,0,0,4.65,84.45,946)">
69
+ <g id="g94">
70
+ <polygon transform="rotate(18,3.1568758,-0.5)" points="0,1 0.5,1 0,0 " id="polygon90"/>
71
+ <use id="use92" transform="scale(-1,1)" xlink:href="#triangle" x="0" y="0" width="100%" height="100%"/>
72
+ </g>
73
+ <use id="use96" transform="rotate(72)" xlink:href="#cone" x="0" y="0" width="100%" height="100%"/>
74
+ <use id="use98" transform="rotate(-72)" xlink:href="#cone" x="0" y="0" width="100%" height="100%"/>
75
+ <use id="use100" transform="rotate(144)" xlink:href="#cone" x="0" y="0" width="100%" height="100%"/>
76
+ <use id="use102" transform="rotate(-144)" xlink:href="#cone" x="0" y="0" width="100%" height="100%"/>
77
+ </g>
78
+ <g id="use30" style="fill:#ffb612" transform="matrix(4.65,0,0,4.65,121.95,959.35)">
79
+ <g id="g110">
80
+ <polygon transform="rotate(18,3.1568758,-0.5)" points="0,1 0.5,1 0,0 " id="polygon106"/>
81
+ <use id="use108" transform="scale(-1,1)" xlink:href="#triangle" x="0" y="0" width="100%" height="100%"/>
82
+ </g>
83
+ <use id="use112" transform="rotate(72)" xlink:href="#cone" x="0" y="0" width="100%" height="100%"/>
84
+ <use id="use114" transform="rotate(-72)" xlink:href="#cone" x="0" y="0" width="100%" height="100%"/>
85
+ <use id="use116" transform="rotate(144)" xlink:href="#cone" x="0" y="0" width="100%" height="100%"/>
86
+ <use id="use118" transform="rotate(-144)" xlink:href="#cone" x="0" y="0" width="100%" height="100%"/>
87
+ </g>
88
+ <g id="use32" style="fill:#ffb612" transform="matrix(4.65,0,0,4.65,82.8,965.65)">
89
+ <g id="g126">
90
+ <polygon transform="rotate(18,3.1568758,-0.5)" points="0,1 0.5,1 0,0 " id="polygon122"/>
91
+ <use id="use124" transform="scale(-1,1)" xlink:href="#triangle" x="0" y="0" width="100%" height="100%"/>
92
+ </g>
93
+ <use id="use128" transform="rotate(72)" xlink:href="#cone" x="0" y="0" width="100%" height="100%"/>
94
+ <use id="use130" transform="rotate(-72)" xlink:href="#cone" x="0" y="0" width="100%" height="100%"/>
95
+ <use id="use132" transform="rotate(144)" xlink:href="#cone" x="0" y="0" width="100%" height="100%"/>
96
+ <use id="use134" transform="rotate(-144)" xlink:href="#cone" x="0" y="0" width="100%" height="100%"/>
97
+ </g>
98
+ <g id="use34" style="fill:#ffb612" transform="matrix(4.65,0,0,4.65,111,974.95)">
99
+ <g id="g142">
100
+ <polygon transform="rotate(18,3.1568758,-0.5)" points="0,1 0.5,1 0,0 " id="polygon138"/>
101
+ <use id="use140" transform="scale(-1,1)" xlink:href="#triangle" x="0" y="0" width="100%" height="100%"/>
102
+ </g>
103
+ <use id="use144" transform="rotate(72)" xlink:href="#cone" x="0" y="0" width="100%" height="100%"/>
104
+ <use id="use146" transform="rotate(-72)" xlink:href="#cone" x="0" y="0" width="100%" height="100%"/>
105
+ <use id="use148" transform="rotate(144)" xlink:href="#cone" x="0" y="0" width="100%" height="100%"/>
106
+ <use id="use150" transform="rotate(-144)" xlink:href="#cone" x="0" y="0" width="100%" height="100%"/>
107
+ </g>
108
+ </g>
109
+ </svg>
@@ -0,0 +1,6 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 50 28" width="1000" height="560">
3
+ <path d="M0,0 v28 h50 v-28 z" fill="#D52B1E"/>
4
+ <path d="M0,0 L50,28 M50,0 L0,28" stroke="#009B48" stroke-width="4.3"/>
5
+ <path d="M25,0 v28 M0,14 h50" stroke="#fff" stroke-width="4.3"/>
6
+ </svg>
@@ -4,8 +4,9 @@
4
4
  }
5
5
  } @else {
6
6
  @include flag-icon(ad);
7
+ @include flag-icon(ak);
7
8
  @include flag-icon(ae);
8
- @include flag-icon(ab); // from ae
9
+ @include flag-icon(ab);
9
10
  @include flag-icon(af);
10
11
  @include flag-icon(ag);
11
12
  @include flag-icon(ai);
@@ -112,7 +113,6 @@
112
113
  @include flag-icon(il);
113
114
  @include flag-icon(im);
114
115
  @include flag-icon(in);
115
- @include flag-icon(hi); // from in
116
116
  @include flag-icon(io);
117
117
  @include flag-icon(iq);
118
118
  @include flag-icon(ir);
@@ -122,7 +122,6 @@
122
122
  @include flag-icon(jm);
123
123
  @include flag-icon(jo);
124
124
  @include flag-icon(jp);
125
- @include flag-icon(ja); // from jp
126
125
  @include flag-icon(ke);
127
126
  @include flag-icon(kg);
128
127
  @include flag-icon(kh);
@@ -269,6 +268,7 @@
269
268
  @include flag-icon(ea);
270
269
  @include flag-icon(es-ct);
271
270
  @include flag-icon(es-ga);
271
+ @include flag-icon(es-eu);
272
272
  @include flag-icon(eu);
273
273
  @include flag-icon(gb-eng);
274
274
  @include flag-icon(gb-nir);
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: flag_icon
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.0
4
+ version: 1.5.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - alexwebgr
@@ -100,6 +100,7 @@ files:
100
100
  - vendor/assets/images/flags/4x3/af.svg
101
101
  - vendor/assets/images/flags/4x3/ag.svg
102
102
  - vendor/assets/images/flags/4x3/ai.svg
103
+ - vendor/assets/images/flags/4x3/ak.svg
103
104
  - vendor/assets/images/flags/4x3/al.svg
104
105
  - vendor/assets/images/flags/4x3/am.svg
105
106
  - vendor/assets/images/flags/4x3/ao.svg
@@ -167,6 +168,7 @@ files:
167
168
  - vendor/assets/images/flags/4x3/en.svg
168
169
  - vendor/assets/images/flags/4x3/er.svg
169
170
  - vendor/assets/images/flags/4x3/es-ct.svg
171
+ - vendor/assets/images/flags/4x3/es-eu.svg
170
172
  - vendor/assets/images/flags/4x3/es-ga.svg
171
173
  - vendor/assets/images/flags/4x3/es.svg
172
174
  - vendor/assets/images/flags/4x3/et.svg
@@ -200,7 +202,6 @@ files:
200
202
  - vendor/assets/images/flags/4x3/gu.svg
201
203
  - vendor/assets/images/flags/4x3/gw.svg
202
204
  - vendor/assets/images/flags/4x3/gy.svg
203
- - vendor/assets/images/flags/4x3/hi.svg
204
205
  - vendor/assets/images/flags/4x3/hk.svg
205
206
  - vendor/assets/images/flags/4x3/hm.svg
206
207
  - vendor/assets/images/flags/4x3/hn.svg
@@ -1,25 +0,0 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="flag-icons-in" viewBox="0 0 640 480">
2
- <path fill="#f93" d="M0 0h640v160H0z"/>
3
- <path fill="#fff" d="M0 160h640v160H0z"/>
4
- <path fill="#128807" d="M0 320h640v160H0z"/>
5
- <g transform="matrix(3.2 0 0 3.2 320 240)">
6
- <circle r="20" fill="#008"/>
7
- <circle r="17.5" fill="#fff"/>
8
- <circle r="3.5" fill="#008"/>
9
- <g id="d">
10
- <g id="c">
11
- <g id="b">
12
- <g id="a" fill="#008">
13
- <circle r=".9" transform="rotate(7.5 -8.8 133.5)"/>
14
- <path d="M0 17.5.6 7 0 2l-.6 5L0 17.5z"/>
15
- </g>
16
- <use xlink:href="#a" width="100%" height="100%" transform="rotate(15)"/>
17
- </g>
18
- <use xlink:href="#b" width="100%" height="100%" transform="rotate(30)"/>
19
- </g>
20
- <use xlink:href="#c" width="100%" height="100%" transform="rotate(60)"/>
21
- </g>
22
- <use xlink:href="#d" width="100%" height="100%" transform="rotate(120)"/>
23
- <use xlink:href="#d" width="100%" height="100%" transform="rotate(-120)"/>
24
- </g>
25
- </svg>