ios_polyglot_cli 2.0.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.
Files changed (37) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +129 -0
  3. data/.ruby-version +1 -0
  4. data/Gemfile +3 -0
  5. data/Gemfile.lock +91 -0
  6. data/LICENSE +21 -0
  7. data/README.md +63 -0
  8. data/Rakefile +2 -0
  9. data/bin/console +14 -0
  10. data/bin/setup +8 -0
  11. data/exe/polyglot +41 -0
  12. data/ios-polyglot-cli.gemspec +35 -0
  13. data/lib/ios_polyglot_cli/api/base.rb +19 -0
  14. data/lib/ios_polyglot_cli/api/language.rb +20 -0
  15. data/lib/ios_polyglot_cli/api/project.rb +7 -0
  16. data/lib/ios_polyglot_cli/api/session.rb +9 -0
  17. data/lib/ios_polyglot_cli/api/translation.rb +8 -0
  18. data/lib/ios_polyglot_cli/api/translation_key.rb +24 -0
  19. data/lib/ios_polyglot_cli/commands/login.rb +32 -0
  20. data/lib/ios_polyglot_cli/commands/pull.rb +81 -0
  21. data/lib/ios_polyglot_cli/commands/setup.rb +80 -0
  22. data/lib/ios_polyglot_cli/error_handler.rb +28 -0
  23. data/lib/ios_polyglot_cli/helpers/depaginate.rb +18 -0
  24. data/lib/ios_polyglot_cli/helpers/general.rb +79 -0
  25. data/lib/ios_polyglot_cli/helpers/terminal.rb +17 -0
  26. data/lib/ios_polyglot_cli/io/config.rb +20 -0
  27. data/lib/ios_polyglot_cli/io/token.rb +25 -0
  28. data/lib/ios_polyglot_cli/serializers/languages/languages_serializer.rb +27 -0
  29. data/lib/ios_polyglot_cli/serializers/languages/languages_serializer_objc.rb +90 -0
  30. data/lib/ios_polyglot_cli/serializers/languages/languages_serializer_swift.rb +41 -0
  31. data/lib/ios_polyglot_cli/serializers/sources/sources_serializer_swift.rb +63 -0
  32. data/lib/ios_polyglot_cli/serializers/sources/swift_helpers/translation_case.rb +23 -0
  33. data/lib/ios_polyglot_cli/serializers/sources/swift_helpers/translation_enum.rb +84 -0
  34. data/lib/ios_polyglot_cli/serializers/translations/translations_serializer.rb +33 -0
  35. data/lib/ios_polyglot_cli/version.rb +3 -0
  36. data/lib/ios_polyglot_cli.rb +42 -0
  37. metadata +192 -0
metadata ADDED
@@ -0,0 +1,192 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: ios_polyglot_cli
3
+ version: !ruby/object:Gem::Version
4
+ version: 2.0.1
5
+ platform: ruby
6
+ authors:
7
+ - Filip Gulan
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2019-04-17 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: bundler
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '1.16'
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '1.16'
27
+ - !ruby/object:Gem::Dependency
28
+ name: rake
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '10.0'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '10.0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: pry-byebug
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ">="
46
+ - !ruby/object:Gem::Version
47
+ version: '0'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ">="
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: json_api_client
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - ">="
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
62
+ type: :runtime
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - ">="
67
+ - !ruby/object:Gem::Version
68
+ version: '0'
69
+ - !ruby/object:Gem::Dependency
70
+ name: tty-prompt
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - ">="
74
+ - !ruby/object:Gem::Version
75
+ version: '0'
76
+ type: :runtime
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - ">="
81
+ - !ruby/object:Gem::Version
82
+ version: '0'
83
+ - !ruby/object:Gem::Dependency
84
+ name: commander
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - ">="
88
+ - !ruby/object:Gem::Version
89
+ version: '0'
90
+ type: :runtime
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - ">="
95
+ - !ruby/object:Gem::Version
96
+ version: '0'
97
+ - !ruby/object:Gem::Dependency
98
+ name: osx_keychain
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - ">="
102
+ - !ruby/object:Gem::Version
103
+ version: '0'
104
+ type: :runtime
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - ">="
109
+ - !ruby/object:Gem::Version
110
+ version: '0'
111
+ - !ruby/object:Gem::Dependency
112
+ name: activesupport
113
+ requirement: !ruby/object:Gem::Requirement
114
+ requirements:
115
+ - - ">="
116
+ - !ruby/object:Gem::Version
117
+ version: '0'
118
+ type: :runtime
119
+ prerelease: false
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ requirements:
122
+ - - ">="
123
+ - !ruby/object:Gem::Version
124
+ version: '0'
125
+ description:
126
+ email:
127
+ - filip.gulan@infinum.hr
128
+ executables:
129
+ - polyglot
130
+ extensions: []
131
+ extra_rdoc_files: []
132
+ files:
133
+ - ".gitignore"
134
+ - ".ruby-version"
135
+ - Gemfile
136
+ - Gemfile.lock
137
+ - LICENSE
138
+ - README.md
139
+ - Rakefile
140
+ - bin/console
141
+ - bin/setup
142
+ - exe/polyglot
143
+ - ios-polyglot-cli.gemspec
144
+ - lib/ios_polyglot_cli.rb
145
+ - lib/ios_polyglot_cli/api/base.rb
146
+ - lib/ios_polyglot_cli/api/language.rb
147
+ - lib/ios_polyglot_cli/api/project.rb
148
+ - lib/ios_polyglot_cli/api/session.rb
149
+ - lib/ios_polyglot_cli/api/translation.rb
150
+ - lib/ios_polyglot_cli/api/translation_key.rb
151
+ - lib/ios_polyglot_cli/commands/login.rb
152
+ - lib/ios_polyglot_cli/commands/pull.rb
153
+ - lib/ios_polyglot_cli/commands/setup.rb
154
+ - lib/ios_polyglot_cli/error_handler.rb
155
+ - lib/ios_polyglot_cli/helpers/depaginate.rb
156
+ - lib/ios_polyglot_cli/helpers/general.rb
157
+ - lib/ios_polyglot_cli/helpers/terminal.rb
158
+ - lib/ios_polyglot_cli/io/config.rb
159
+ - lib/ios_polyglot_cli/io/token.rb
160
+ - lib/ios_polyglot_cli/serializers/languages/languages_serializer.rb
161
+ - lib/ios_polyglot_cli/serializers/languages/languages_serializer_objc.rb
162
+ - lib/ios_polyglot_cli/serializers/languages/languages_serializer_swift.rb
163
+ - lib/ios_polyglot_cli/serializers/sources/sources_serializer_swift.rb
164
+ - lib/ios_polyglot_cli/serializers/sources/swift_helpers/translation_case.rb
165
+ - lib/ios_polyglot_cli/serializers/sources/swift_helpers/translation_enum.rb
166
+ - lib/ios_polyglot_cli/serializers/translations/translations_serializer.rb
167
+ - lib/ios_polyglot_cli/version.rb
168
+ homepage: https://github.com/infinum/ios-polyglot-cli
169
+ licenses:
170
+ - MIT
171
+ metadata:
172
+ allowed_push_host: https://rubygems.org
173
+ post_install_message:
174
+ rdoc_options: []
175
+ require_paths:
176
+ - lib
177
+ required_ruby_version: !ruby/object:Gem::Requirement
178
+ requirements:
179
+ - - ">="
180
+ - !ruby/object:Gem::Version
181
+ version: '0'
182
+ required_rubygems_version: !ruby/object:Gem::Requirement
183
+ requirements:
184
+ - - ">="
185
+ - !ruby/object:Gem::Version
186
+ version: '0'
187
+ requirements: []
188
+ rubygems_version: 3.0.3
189
+ signing_key:
190
+ specification_version: 4
191
+ summary: A CLI for pulling polyglot translations and generating iOS Source Files
192
+ test_files: []