country_flags 0.1.0 → 0.1.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
  SHA1:
3
- metadata.gz: 7714be3c9539e45cf731da6cd61a84a53f2575eb
4
- data.tar.gz: 0d32fc0659e52d2bfed2bc7d6eb0934135a1b4b4
3
+ metadata.gz: 501eb57736e90f0e8d7a5bea64c70801f22a05fb
4
+ data.tar.gz: 7cf0aedcf2416fea2af3e3803a9c904bdc033678
5
5
  SHA512:
6
- metadata.gz: 0fe3b03a7ff630dfaf148719da059265c3f2919cb840088d19df658c1c58600a56b3f5315c017be1323675965bee9471c0d57b0eaf1a82ecc54c056002d798ec
7
- data.tar.gz: 08cdc532972fec3c9c4eaa848b7140bf4b0eb68951c0eb13e0663947c9ec04f6189e22ba526f13d3c386fd2556601ccc4cf592a2b530f4e4affa850c0681227d
6
+ metadata.gz: 940097752c93ceba419c2a845f62a0c5a893fe9737d9ca861ef8110f8fd9cee3d115b8f94358b1f9030988d197431b3438eef912fcce56ff1d5e2712a011509f
7
+ data.tar.gz: d29c5a3567d347cb297a8d0204ab103d87ca7130764ddce9f88a6706914c9db70f33db9cdc33b3e9874ed5ddbf0955b7e4711953d914d061380287122b807f66
@@ -18,6 +18,7 @@ Gem::Specification.new do |s|
18
18
  s.license = 'MIT'
19
19
 
20
20
  s.add_development_dependency('rspec', '>= 2.11')
21
- s.add_dependency "railties", ">= 3.1"
22
- s.add_dependency "actionview", ">= 3.1"
21
+ s.add_dependency 'railties', '>= 3.1'
22
+ s.add_dependency 'actionview', '>= 3.1'
23
+ s.add_dependency 'normalize_country', '>= 0.1'
23
24
  end
@@ -22,7 +22,10 @@ module CountryFlags
22
22
  def country_flag( country_code, options = {} )
23
23
  options = {format: :png}.merge(options)
24
24
 
25
- image_tag country_flag_path(country_code, options[:format])
25
+ country_name = NormalizeCountry( country_code, to: :short )
26
+
27
+ image_tag country_flag_path(country_code, options[:format]),
28
+ alt: country_name, title: country_name
26
29
  end
27
30
  end
28
31
  end
@@ -1,3 +1,3 @@
1
1
  module CountryFlags
2
- VERSION = '0.1.0'
2
+ VERSION = '0.1.1'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: country_flags
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alexander Lazarov
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-06-24 00:00:00.000000000 Z
11
+ date: 2015-06-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec
@@ -52,6 +52,20 @@ dependencies:
52
52
  - - ">="
53
53
  - !ruby/object:Gem::Version
54
54
  version: '3.1'
55
+ - !ruby/object:Gem::Dependency
56
+ name: normalize_country
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - ">="
60
+ - !ruby/object:Gem::Version
61
+ version: '0.1'
62
+ type: :runtime
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - ">="
67
+ - !ruby/object:Gem::Version
68
+ version: '0.1'
55
69
  description: 'Gemified collection of country flags. See homepage for details: https://github.com/alexander-lazarov/isaf_id_validator'
56
70
  email: alexander.lazaroff@gmail.com
57
71
  executables: []