localeapp 2.1.1 → 2.2.0

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 (41) hide show
  1. checksums.yaml +4 -4
  2. data/.travis.yml +4 -3
  3. data/CHANGELOG.md +12 -0
  4. data/README.md +9 -0
  5. data/bin/localeapp +141 -119
  6. data/features/add.feature +15 -49
  7. data/features/bad_command.feature +4 -3
  8. data/features/env_file.feature +7 -0
  9. data/features/environment.feature +7 -0
  10. data/features/help.feature +3 -4
  11. data/features/install.feature +19 -33
  12. data/features/install/write_env_file.feature +26 -0
  13. data/features/mv.feature +9 -5
  14. data/features/options/api_key.feature +6 -0
  15. data/features/pull.feature +15 -27
  16. data/features/push.feature +15 -28
  17. data/features/rm.feature +10 -5
  18. data/features/step_definitions/cli_steps.rb +13 -10
  19. data/features/step_definitions/execution_steps.rb +3 -0
  20. data/features/step_definitions/filesystem_steps.rb +12 -0
  21. data/features/step_definitions/output_steps.rb +10 -0
  22. data/features/support/env.rb +2 -2
  23. data/features/update.feature +20 -29
  24. data/lib/localeapp.rb +7 -0
  25. data/lib/localeapp/cli/install.rb +28 -15
  26. data/lib/localeapp/cli/pull.rb +2 -1
  27. data/lib/localeapp/cli/push.rb +2 -1
  28. data/lib/localeapp/cli/remove.rb +2 -1
  29. data/lib/localeapp/cli/rename.rb +2 -1
  30. data/lib/localeapp/configuration.rb +1 -1
  31. data/lib/localeapp/poller.rb +4 -1
  32. data/lib/localeapp/sender.rb +1 -0
  33. data/lib/localeapp/version.rb +1 -1
  34. data/spec/localeapp/cli/install_spec.rb +103 -63
  35. data/spec/localeapp/cli/pull_spec.rb +1 -1
  36. data/spec/localeapp/cli/push_spec.rb +1 -1
  37. data/spec/localeapp/cli/rename_spec.rb +1 -1
  38. metadata +10 -6
  39. data/.autotest +0 -4
  40. data/.rvmrc +0 -1
  41. data/init.rb +0 -1
@@ -13,7 +13,7 @@ describe Localeapp::CLI::Pull, "#execute" do
13
13
  :export,
14
14
  :success => :update_backend,
15
15
  :failure => :report_failure,
16
- :max_connection_attempts => 3
16
+ :max_connection_attempts => anything
17
17
  )
18
18
  @puller.execute
19
19
  end
@@ -45,7 +45,7 @@ describe Localeapp::CLI::Push, "#push_file(file_path)" do
45
45
  :payload => { :file => file },
46
46
  :success => :report_success,
47
47
  :failure => :report_failure,
48
- :max_connection_attempts => 3
48
+ :max_connection_attempts => anything
49
49
  )
50
50
  pusher.push_file(file_path)
51
51
  end
@@ -18,7 +18,7 @@ describe Localeapp::CLI::Add, "#execute(current_name, new_name, *rest)" do
18
18
  :payload => { :new_name => 'test.new_name' },
19
19
  :success => :report_success,
20
20
  :failure => :report_failure,
21
- :max_connection_attempts => 3
21
+ :max_connection_attempts => anything
22
22
  )
23
23
  do_action
24
24
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: localeapp
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.1
4
+ version: 2.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Christopher Dell
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2017-01-18 00:00:00.000000000 Z
13
+ date: 2017-08-15 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: i18n
@@ -177,10 +177,8 @@ executables:
177
177
  extensions: []
178
178
  extra_rdoc_files: []
179
179
  files:
180
- - ".autotest"
181
180
  - ".gitignore"
182
181
  - ".rspec"
183
- - ".rvmrc"
184
182
  - ".travis.yml"
185
183
  - Appraisals
186
184
  - CHANGELOG.md
@@ -192,13 +190,20 @@ files:
192
190
  - cucumber.yml
193
191
  - features/add.feature
194
192
  - features/bad_command.feature
193
+ - features/env_file.feature
194
+ - features/environment.feature
195
195
  - features/help.feature
196
196
  - features/install.feature
197
+ - features/install/write_env_file.feature
197
198
  - features/mv.feature
199
+ - features/options/api_key.feature
198
200
  - features/pull.feature
199
201
  - features/push.feature
200
202
  - features/rm.feature
201
203
  - features/step_definitions/cli_steps.rb
204
+ - features/step_definitions/execution_steps.rb
205
+ - features/step_definitions/filesystem_steps.rb
206
+ - features/step_definitions/output_steps.rb
202
207
  - features/support/env.rb
203
208
  - features/support/hooks.rb
204
209
  - features/update.feature
@@ -206,7 +211,6 @@ files:
206
211
  - gemfiles/i18n_0.5.gemfile
207
212
  - gemfiles/i18n_0.6.gemfile
208
213
  - gemfiles/i18n_0.7.gemfile
209
- - init.rb
210
214
  - lib/localeapp.rb
211
215
  - lib/localeapp/api_call.rb
212
216
  - lib/localeapp/api_caller.rb
@@ -298,7 +302,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
298
302
  version: '0'
299
303
  requirements: []
300
304
  rubyforge_project: localeapp
301
- rubygems_version: 2.6.8
305
+ rubygems_version: 2.6.12
302
306
  signing_key:
303
307
  specification_version: 4
304
308
  summary: Easy i18n translation management with localeapp.com
data/.autotest DELETED
@@ -1,4 +0,0 @@
1
- Autotest.add_hook :initialize do |at|
2
- at.add_exception %r{^\./\.git/}
3
- at.add_exception %r{^\./tmp/}
4
- end
data/.rvmrc DELETED
@@ -1 +0,0 @@
1
- rvm use --create ruby-1.9.3@localeapp
data/init.rb DELETED
@@ -1 +0,0 @@
1
- require 'localeapp'