barruun 0.1.1 → 0.1.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 64f304a776a79c69b23f954502e22e6b0ec84808dcf5bb8448fd3574fde4d692
4
- data.tar.gz: 0eeabbcb7f812219d92f6b0105a50c2189eaafbb1e9e1494104a6b86f49414c5
3
+ metadata.gz: b40d405d04ce967216dc4c25caa14508492e6ba01186498b0aa936402f500462
4
+ data.tar.gz: 83f9e2dd29e7978ca8e1c70517ccb8e51e2088a456b3caa0659fba1d7180061e
5
5
  SHA512:
6
- metadata.gz: 6241c035c3b74444334fd115d5b8376749a5cb338ec7d639103778045ead094e906a552c56fc8f97a422631c94e7d36293b36e97d23f8462d504a45c2f76b561
7
- data.tar.gz: 0e2b71e50c8e641cc88501c2fb25ed9b660f81a0cead88e6e708dfcd9252a4312c1180fadbbe4c8bbfa7e0c1cddf59499e1dd61ff5003666876a05d8ada27d97
6
+ metadata.gz: 25daa66e59e6952a409dd201854505366ea626d44d2c924213888f6464f368becf936c3fa616ca8d236960f8d321fe35d57ff44affbce74217bbb092c95fd591
7
+ data.tar.gz: ec560ce503e8b6fcabb55dfd16672c508e28b38deb6ed75c729c73c6174f4c44fed8ac93f2fcef0e2438669de7fb9c0d7b2856bdd0df0a3e44594a04a69bfc67
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- barruun (0.1.1)
4
+ barruun (0.1.2)
5
5
  active_hash
6
6
  thor (~> 1.1)
7
7
 
data/README.md CHANGED
@@ -37,9 +37,11 @@ Commands:
37
37
 
38
38
  #### Sink
39
39
 
40
+ Please set project id to `PROJECT_ID`.
41
+
40
42
  ```yaml
41
43
  name: foobar
42
- destination: bigquery.googleapis.com/projects/#{project_id}/datasets/test
44
+ destination: bigquery.googleapis.com/projects/:PROJECT_ID/datasets/test
43
45
  log-filter: 'jsonPayload."event-data":*'
44
46
  ```
45
47
 
@@ -12,7 +12,7 @@ module Barruun
12
12
  end
13
13
 
14
14
  def destination
15
- @hash["destination"].gsub("\#\{project_id\}", @project_id)
15
+ @hash["destination"].gsub(":PROJECT_ID", @project_id)
16
16
  end
17
17
 
18
18
  def options
@@ -1,3 +1,6 @@
1
+ require_relative "./sink/config"
2
+ require_relative "../utils"
3
+
1
4
  module Barruun
2
5
  module Logging
3
6
  class Sink
@@ -1,5 +1,5 @@
1
- require "yaml"
2
1
  require_relative "./bucket/config"
2
+ require_relative "../utils"
3
3
 
4
4
  module Barruun
5
5
  module Storage
data/lib/barruun/utils.rb CHANGED
@@ -1,3 +1,5 @@
1
+ require "yaml"
2
+
1
3
  module Barruun
2
4
  module Utils
3
5
  def initialize(file_path, config_klass = self.class::Config)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Barruun
4
- VERSION = "0.1.1"
4
+ VERSION = "0.1.2"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: barruun
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - cc-kawakami