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 +4 -4
- data/Gemfile.lock +1 -1
- data/lib/flutter_polyglot_cli/helpers/general.rb +1 -14
- data/lib/flutter_polyglot_cli/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bbd36172d3fe9eca23978743478a8ff30f1c59a23446add8277bab817aa419e6
|
4
|
+
data.tar.gz: 866784aabded27f57f6b2d252ef2321486c712b6ed72a9cc606ecc117a3d265f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 20f699aef8245ba487b171ab6f5b31cc17d71514796411e9ff9bf18e9448a77d654fc54ae709c0547a93c8781dbf4c8011e2698871a0dbe089b3f06a7f0215b0
|
7
|
+
data.tar.gz: 2d43ac2cfcf74f7fd526889e172bd1de7c08ec52638050d3ec7c73a70902e5576e08ee7762bdea58c102649753ba63d792e711376b32318306afd5958748875d
|
data/Gemfile.lock
CHANGED
@@ -1,13 +1,7 @@
|
|
1
1
|
module PolyglotFlutter
|
2
2
|
module Helper
|
3
3
|
module General
|
4
|
-
|
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}']"
|
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.
|
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-
|
11
|
+
date: 2020-04-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|