librato 0.0.6 → 0.0.7

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8054cb921ccb30662e7142680fa7ed14a09da39c
4
- data.tar.gz: 88659b893eb6c6fc48f0210b00efa3123f51f3f8
3
+ metadata.gz: 9cdb2ece747683195194185549ae719ba08f54e4
4
+ data.tar.gz: 981251a6a44b5c757ee2b982dedcfb01c8585e63
5
5
  SHA512:
6
- metadata.gz: 0ec16c45a561705d4f5d369cfbe6dfaabc90c7f99bafc77051a3a47ab3ae2e014b45a7da0ebc519c3a79ea51317589012e7ecb52659639e3885d6743e230cd35
7
- data.tar.gz: 8fd87d28607cf0f35aa266202fb6ff27a52f3709994e312f345c435138912d947817bbd00088ecca8dadbde1809b99969df36983546f975540f18ffd63497e0e
6
+ metadata.gz: 29d6f30aed914553ba38152268d3dae9d23b557d883412d284465d4b1d7688e99a8e7c3fd942332ccaf9dd117c6a5546c9e585964311a37344f36de46f95c474
7
+ data.tar.gz: b6e85fd2f41af22d830d3aff83cbfd9ee26a5983caf052628207043e8ed9183d0ec1bffc8a4c3136e8f8c3b3f639246ddbabb396b461911e7ac47c44ee0b39f0
data/README.md CHANGED
@@ -1,6 +1,11 @@
1
1
  # Librato Sync
2
2
 
3
- Minimalistic library that does two things:
3
+ Minimalistic library that might be a temporary, throw-away project.
4
+
5
+ It has been published on RubyGems as `librato` since that gem name was unused.
6
+ Consider this friendly-squatting, I'll hand it over to Librato on request.
7
+
8
+ It does two things:
4
9
 
5
10
  * Pull a space from a Librato account, and store JSON data in a local
6
11
  directory.
@@ -31,7 +31,7 @@ module Librato
31
31
  end
32
32
 
33
33
  def normalize(data)
34
- data.merge('name' => data['name'].sub(/\s*\(#{account}\)\s*/, ''))
34
+ data.merge('name' => data['name'].to_s.sub(/\s*\(#{account}\)\s*/, ''))
35
35
  end
36
36
  end
37
37
  end
@@ -1,6 +1,7 @@
1
1
  module Librato
2
2
  class Template < Struct.new(:string, :vars)
3
3
  def generate
4
+ self.string = string.gsub('%', '%%')
4
5
  vars.inject(string) do |string, (name, value)|
5
6
  string.gsub(value, "%{#{name}}")
6
7
  end
@@ -1,3 +1,3 @@
1
1
  module Librato
2
- VERSION = "0.0.6"
2
+ VERSION = "0.0.7"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: librato
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.6
4
+ version: 0.0.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sven Fuchs
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-10-03 00:00:00.000000000 Z
11
+ date: 2016-09-01 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Simple cli tool for storing and syncing librato spaces..
14
14
  email: