quest 1.2.1 → 1.2.2

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: 8badb7cc16e27d803850248c401cec5ec5eda845
4
- data.tar.gz: 23b1e12538c9d110c8d6cc63268b3f98e7912f80
3
+ metadata.gz: e8504524953ef041f438a01dad38d14e6fb04830
4
+ data.tar.gz: ab400f3e03edda1317d994fffbfafa9d63a66c8e
5
5
  SHA512:
6
- metadata.gz: '09b7d02be3559a235a519af02bd162fa4f295c67e5d083e8aa30de25217339bfcf7fd7dfa76a354c1b5ff18e060655be0a9bf6ce931083e5de3ee62773c45591'
7
- data.tar.gz: ab17c74c76c1b32189956628d1125a68a7b569bfadb46919660839c9f9c0f196177395a9c85b3a55967e7eafa3d78137003d7ee2de6d42d62ee9d52ba643707b
6
+ metadata.gz: d17be597e69440368ff7d80aee4f4c83f5cd5baedc789e712fb79f52a886d91f5443ca1274893e7aed1332894842cf328e12189bc9cb1c100c1be6e22a245496
7
+ data.tar.gz: 0bda321791dafda93794cc434c5904bfba57e23ad020c9abe630f96cd726dfe8f49a86044b1c3ae284b670246b96f6c62e308ff9760295a132e41b0f7c083583
data/bin/quest CHANGED
@@ -18,6 +18,7 @@ module GLIWrapper
18
18
  include GLI::App
19
19
  extend self
20
20
  GettextSetup.initialize(File.expand_path('../locales', File.dirname(__FILE__)))
21
+ GettextSetup.negotiate_locale!(GettextSetup.candidate_locales)
21
22
 
22
23
  BASE_URI = URI('http://localhost:4567/')
23
24
  OFFER_BAILOUT = false
@@ -66,10 +67,10 @@ module GLIWrapper
66
67
 
67
68
  def summary_status
68
69
  active_quest = get_path('active_quest')
69
- output = _("Quest: %{active_quest} - Progress: ") % {quest: active_quest}
70
+ output = _("Quest: %{active_quest} - Progress: ") % {active_quest: active_quest}
70
71
  summary = JSON.parse(get_path('status/', 'summary'))
71
72
  complete_count = summary["example_count"].to_i - summary["failure_count"].to_i
72
- output << _('%{complete} of %{total} tasks.') % {complete: complete_count.to_s, total: summary['examaple_count'].to_s}
73
+ output << _('%{complete} of %{total} tasks.') % {complete: complete_count.to_s, total: summary['example_count'].to_s}
73
74
  end
74
75
 
75
76
  # TODO: Consider replacing with https://github.com/randrews/spinner
@@ -99,7 +100,7 @@ module GLIWrapper
99
100
  if args.length < 1
100
101
  raise _('You must specify a quest name.') + _('Refer to the Quest Guide or use the "quest list" command.')
101
102
  elsif not JSON.parse(get_path('quests')).include? args[0]
102
- raise _("%{quest} is not a valid quest name.") + _('Refer to the Quest Guide or use the "quest list" command.') % {quest: args[0]}
103
+ raise _("%{quest} is not a valid quest name.") % {quest: args[0]} + _('Refer to the Quest Guide or use the "quest list" command.')
103
104
  elsif OFFER_BAILOUT and not get_path('status/', 'summary/', 'failure_count') == '0'
104
105
  offer_bailout(_("The current quest is not complete. If you begin a new quest, your agent nodes will be reset. Your master node and Puppet code will not be affected.\n"))
105
106
  end
File without changes
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: quest
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.1
4
+ version: 1.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kevin Henner
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-07-21 00:00:00.000000000 Z
11
+ date: 2017-07-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -203,7 +203,7 @@ files:
203
203
  - lib/quest/quest_watcher.rb
204
204
  - lib/quest/rspec_runner.rb
205
205
  - locales/config.yaml
206
- - locales/ja.po
206
+ - locales/ja/quest.po
207
207
  - locales/quest.pot
208
208
  homepage: http://github.com/puppetlabs/quest
209
209
  licenses: