signature_generator 0.1.2 → 0.1.3
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/exe/sg +3 -1
- data/lib/signature_generator/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 7050231d875409e22f899827ee14343b1c454c79
|
|
4
|
+
data.tar.gz: a5e0a6a6072437acee13d7032283f469ac0f4789
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: e8798c2d9b163cef48e532f7990b353f2b7a083ca6074fac6a776351cda6812a9850419084a1be55612777b8327a86af597abe735f96397836df675e301707e3
|
|
7
|
+
data.tar.gz: 4f5bd065c76d2d8ce29d76f40481be75919039224d1431cf000caec141b906913530c338a3bdc96d82a75a6733a0cf15232d90854599d0a16be84cb27db384bc
|
data/exe/sg
CHANGED
|
@@ -46,7 +46,7 @@ module SignatureGenerator
|
|
|
46
46
|
# Your code here.
|
|
47
47
|
content = template_io.read
|
|
48
48
|
logger.debug content
|
|
49
|
-
processor = SignatureGenerator::Processor.new context: context, max_retry: config['max-retry']
|
|
49
|
+
processor = SignatureGenerator::Processor.new context: context, max_retry: config[:'max-retry']
|
|
50
50
|
signature = processor.transform content
|
|
51
51
|
logger.debug signature
|
|
52
52
|
unless config[:'no-minify']
|
|
@@ -64,6 +64,8 @@ module SignatureGenerator
|
|
|
64
64
|
def check_config
|
|
65
65
|
# Check the config and raise an exception if incorrect.
|
|
66
66
|
config[:var] ||=[]
|
|
67
|
+
# Check max retry
|
|
68
|
+
config[:'max-retry'] ||= SignatureGenerator::Processor::MAX_RETRY
|
|
67
69
|
# Context setup
|
|
68
70
|
@context = {}
|
|
69
71
|
config[:var].each do |definition|
|