flutter_polyglot_cli 1.1.0 → 1.1.1

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
  SHA256:
3
- metadata.gz: '085f1f15e8e51d53a5a95e0d2f30a4e962e084a5a80620e5bfcd7fc16a286750'
4
- data.tar.gz: 60d1ad3bb0faa8755453f0dbe3d7c894a91bf7b8223304f8ddf65a5b9b4a1b6d
3
+ metadata.gz: bbd36172d3fe9eca23978743478a8ff30f1c59a23446add8277bab817aa419e6
4
+ data.tar.gz: 866784aabded27f57f6b2d252ef2321486c712b6ed72a9cc606ecc117a3d265f
5
5
  SHA512:
6
- metadata.gz: '0984d36f5bcb523a73589fedf7e296e49f5c491438224b4340fa8beb96cf1c313787d1b30e9044b478a70cf78278f9f65e9df746f2c220d503fbe2c1b804130a'
7
- data.tar.gz: f4607e31c62590440ac7688fedcd2f6e75ad86536bb9f94151773204c8da847304a2cc887a41be32727541c452f7ee8d542e52e8e09a42d6fcbd3f70ccdfffbc
6
+ metadata.gz: 20f699aef8245ba487b171ab6f5b31cc17d71514796411e9ff9bf18e9448a77d654fc54ae709c0547a93c8781dbf4c8011e2698871a0dbe089b3f06a7f0215b0
7
+ data.tar.gz: 2d43ac2cfcf74f7fd526889e172bd1de7c08ec52638050d3ec7c73a70902e5576e08ee7762bdea58c102649753ba63d792e711376b32318306afd5958748875d
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- flutter_polyglot_cli (1.1.0)
4
+ flutter_polyglot_cli (1.1.1)
5
5
  activesupport
6
6
  commander
7
7
  json_api_client
@@ -1,13 +1,7 @@
1
1
  module PolyglotFlutter
2
2
  module Helper
3
3
  module General
4
- ESCAPE_KEYWORDS = %w[abstract as assert async await break case
5
- catch class const continue covariant default deferred do
6
- else enum export extends external factory false final
7
- finally for Function get hide if import in interface
8
- is library mixin new null on operator part rethrow return
9
- set static super switch sync this throw true try typedef var
10
- void while with yield _].freeze
4
+
11
5
  def token
12
6
  @token ||= PolyglotFlutter::IO::Token.read
13
7
  if @token.to_s.empty?
@@ -62,7 +56,6 @@ module PolyglotFlutter
62
56
  .join
63
57
 
64
58
  escaped_underscore = escape_with_underscore_if_needed(clean_name)
65
- escape_keyword_if_needed(escaped_underscore)
66
59
  end
67
60
 
68
61
  def escape_with_underscore_if_needed(name)
@@ -71,12 +64,6 @@ module PolyglotFlutter
71
64
  '_' + name
72
65
  end
73
66
 
74
- def escape_keyword_if_needed(name)
75
- return name unless ESCAPE_KEYWORDS.include? name
76
-
77
- "`#{name}`"
78
- end
79
-
80
67
  def generate_locales(languages)
81
68
  language_locales = languages.each.map { |value| value['locale'].split('_').first }.join("', '")
82
69
  "['#{language_locales}']"
@@ -1,3 +1,3 @@
1
1
  module PolyglotFlutter
2
- VERSION = '1.1.0'
2
+ VERSION = '1.1.1'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: flutter_polyglot_cli
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Maroje Marcelic
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-04-21 00:00:00.000000000 Z
11
+ date: 2020-04-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler