]> gitweb.fluxo.info Git - leap/leap_cli.git/commitdiff
Change macro name to rand_range, add base32 gem dependency
authorirregulator <irregulator@riseup.net>
Thu, 22 May 2014 00:48:32 +0000 (03:48 +0300)
committerirregulator <irregulator@riseup.net>
Thu, 22 May 2014 00:48:32 +0000 (03:48 +0300)
leap_cli.gemspec
lib/leap_cli/config/macros.rb

index 829309a0d65d6b9449fc416edb895baf89b8d8a6..d0b9a998c4b3052f65fe98e324e23eeab60d9a74 100644 (file)
@@ -70,6 +70,7 @@ spec = Gem::Specification.new do |s|
   s.add_runtime_dependency('ya2yaml')    # pure ruby yaml, so we can better control output. see https://github.com/afunai/ya2yaml
   s.add_runtime_dependency('json_pure')  # pure ruby json, so we can better control output.
   s.add_runtime_dependency('versionomy') # compare version strings
+  s.add_runtime_dependency('base32')     # base32 encoding
 
   ##
   ## DEPENDENCIES for VENDORED GEMS
index 241a2a479f130f7100d52ae096fefe67f515d021..b5dc3b8d1e5dc02e73ae9cde85e1be4f74a73b71 100644 (file)
@@ -138,7 +138,7 @@ module LeapCli; module Config
     end
 
     # Picks a random obfsproxy port from given range
-    def obfs_port(name, range)
+    def rand_range(name, range)
       @manager.secrets.set(name, rand(range), @node[:environment])
     end