svg-flags-rails 1.0.0.pre.beta0 → 1.0.0.pre.beta1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 583b641dbe4548614ed3492e40661bedf6b94a8c
4
- data.tar.gz: 58d439236ffb9fd0ecc6dd16dc0dc19506d348d4
3
+ metadata.gz: d8dc331c3c6c8e51d9e29c167b52cd129eba6c24
4
+ data.tar.gz: 06861ee6a171deb117be24a2107eac142c477769
5
5
  SHA512:
6
- metadata.gz: 92c6da462415dbcbf16efc647550dac35aafcd4d8203464ef58210d3a23520dea22de5883f78f4dcdefa4a59b923b6cf0797b28d2b1c221a55c10f9f23d87a23
7
- data.tar.gz: 054d4bef33e8f370743618870d52900ca7ccc7862629fa3157e445629a6229b21401d324fabb9b9089061bdb017cc442b400d071e6be1702c5abcd07a2a20c72
6
+ metadata.gz: da0a3720215f9f785483093b7681e5331bb49baacec70467e2885f9f353d98243917ddc4f9c105b73bdafb898135bc24a1f517ed7c35268bb1c424c747664872
7
+ data.tar.gz: 7281fcb4f6a2c6098edbad1771aae58a6ecf493098eba7d1f775ee5b285767ca3982936cde21fb60dbb2cad741b6515a4d40c542513ab9f9e18153493a562e5f
Binary file
data.tar.gz.sig CHANGED
Binary file
data/README.md CHANGED
@@ -1,19 +1,33 @@
1
- # ISO country flags
1
+ # ISO Country Flags
2
2
 
3
3
  Adapted from https://github.com/koppi/iso-country-flags-svg-collection
4
4
 
5
5
  ## Usage
6
6
 
7
- image_tag 'country-4x3/hk.svg', width: 64, alt: 'HK'
7
+ ```ruby
8
+ image_tag 'country-4x3/hk.svg', width: 64, alt: 'HK'
9
+
10
+ image_tag 'country-squared/hk.svg', width: 64, alt: 'HK'
11
+ ```
8
12
 
9
- image_tag 'country-squared/hk.svg', width: 64, alt: 'HK'
10
13
 
11
14
  ## Installation
15
+
16
+ ### Try out
12
17
 
13
- gem install svg-flags-rails
18
+ `gem install svg-flags-rails --pre`
19
+
20
+ ### Bundler
21
+
22
+ ```ruby
23
+ # Add this to your Gemfile
24
+ gem 'svg-flags-rails', '>= 1.0.0-beta' # ISO country flags https://github.com/steakknife/svg-flags/rails
25
+ ```
14
26
 
15
- # or using bundler, add this to your Gemfile
16
- gem 'svg-flags-rails'
27
+ ## Supported
28
+
29
+ - All Rubies (MRI, JRuby, Rubinius, etc.)
30
+ - Rails >= 4
17
31
 
18
32
  ## Community Props
19
33
 
@@ -23,6 +37,22 @@ Adapted from https://github.com/koppi/iso-country-flags-svg-collection
23
37
 
24
38
  Forks and PRs welcomed, to promote reuse of precious time.
25
39
 
40
+ ## Future Directions
41
+
42
+ Higher-priority, welcomed contributions:
43
+
44
+ - **FD0** People whom actually KWTHTD should curate flags to maintain resolution-agnosticness... they should work for tiny feature phones / LCD displays, press work and when 16X displays come out.
45
+
46
+ - **FD0.5** Maybe maintaining both 4x3 and squared arent necessary, if there's some way to do clipping in svg or html/css?
47
+
48
+ - **FD1** Flags themselves should be extracted to a seperate, platform-agnostic repo so that client/server platform-specific packaging can be applied.
49
+
50
+ - **FD1.5** Served as static assets on [cdnjs](https://cdnjs.com/) too.
51
+
52
+ - **FD2** New maintainer - Apply within.
53
+
54
+ - **FD3** Language flags - This was the original motivator for this project, to solve websites presenting a small drop-down to choose locales without relying on raster images. Note: some languages have flags without countries, but most just rely on country flags, hence much borrowing from countries is possible. Might want to have `language-*` dirs and just symlink to `country-*/*` so that the ISO language code contains the right flag.
55
+
26
56
  ## License
27
57
 
28
58
  The images themselves are public domain.
@@ -1,4 +1,4 @@
1
1
  module SvgFlagsRails
2
- VERSION = '1.0.0-beta0' # https://github.com/koppi/iso-country-flags-svg-collection@285c21fb080c3ee132f494afa4f79741903b8c6c
2
+ VERSION = '1.0.0-beta1' # https://github.com/koppi/iso-country-flags-svg-collection@285c21fb080c3ee132f494afa4f79741903b8c6c
3
3
  end
4
4
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: svg-flags-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0.pre.beta0
4
+ version: 1.0.0.pre.beta1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Barry Allard
@@ -41,34 +41,34 @@ cert_chain:
41
41
  b4WKJs00+KO3etYQG7qD/wH7WEwu3QoLNapYz58Jc0OsDnwBWW0IDPSAFsENoTcY
42
42
  8m+dgfPonsYSqnDDfLuAmtKhLAA=
43
43
  -----END CERTIFICATE-----
44
- date: 2016-01-09 00:00:00.000000000 Z
44
+ date: 2016-08-20 00:00:00.000000000 Z
45
45
  dependencies:
46
46
  - !ruby/object:Gem::Dependency
47
47
  name: railties
48
48
  requirement: !ruby/object:Gem::Requirement
49
49
  requirements:
50
- - - "~>"
50
+ - - ">="
51
51
  - !ruby/object:Gem::Version
52
52
  version: '4.0'
53
53
  type: :runtime
54
54
  prerelease: false
55
55
  version_requirements: !ruby/object:Gem::Requirement
56
56
  requirements:
57
- - - "~>"
57
+ - - ">="
58
58
  - !ruby/object:Gem::Version
59
59
  version: '4.0'
60
60
  - !ruby/object:Gem::Dependency
61
61
  name: rails
62
62
  requirement: !ruby/object:Gem::Requirement
63
63
  requirements:
64
- - - "~>"
64
+ - - ">="
65
65
  - !ruby/object:Gem::Version
66
66
  version: '4.0'
67
67
  type: :development
68
68
  prerelease: false
69
69
  version_requirements: !ruby/object:Gem::Requirement
70
70
  requirements:
71
- - - "~>"
71
+ - - ">="
72
72
  - !ruby/object:Gem::Version
73
73
  version: '4.0'
74
74
  description: " \n ISO SVG country flags\n\n(Images are public domain from https://github.com/koppi/iso-country-flags-svg-collection)\n"
metadata.gz.sig CHANGED
Binary file