quest 1.2.1 → 1.2.2
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.
- checksums.yaml +4 -4
- data/bin/quest +4 -3
- data/locales/{ja.po → ja/quest.po} +0 -0
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: e8504524953ef041f438a01dad38d14e6fb04830
|
|
4
|
+
data.tar.gz: ab400f3e03edda1317d994fffbfafa9d63a66c8e
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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: ") % {
|
|
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['
|
|
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.')
|
|
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.
|
|
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-
|
|
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:
|