popper 0.2.7 → 0.2.8

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: f64201dd6c0c81cd7d7b23f2c87af9718ab3d2f5
4
- data.tar.gz: 3c5af5b41d7deb61259915fbf9927209bd2fc71e
3
+ metadata.gz: f134c1ecc38ef413d655eceaa8c8598388514446
4
+ data.tar.gz: 4987a54a2cc1d8e8723305513e005a8acc5dc16b
5
5
  SHA512:
6
- metadata.gz: c7e30f24d3988c9198d4df617524dbda7ed85ea03dc3451db2874e7968f907512505f822c07366dac8b4119373e1043699fcfb8b3d5252d3c9454e67c15d743e
7
- data.tar.gz: 479d39bb69090f99444153fa55c96c0c5d44a0e4434841a7f95f32f232777f95b165e42af45e3522bee94b277a0cd3088ce5bab4cc93e7499b7de1a5517c1ba1
6
+ metadata.gz: 2ef7fa0af414c50b957133212e47e3bdd327764bb98d4fe4f32cef227de5cf93b0f3c0bda116df1904b77e00194b6bc2655d5fb5de6ef8da9330338b076df9f3
7
+ data.tar.gz: ff7366f6119d72d7c04f6fa79f7da5d716bf83a0e14f7d374bcb045ebb3289cc3b72b5b086e8afa3b665c8114dfa8d4fd5f147eff3b1f325e3fe3410e53d2854
data/README.md CHANGED
@@ -44,7 +44,7 @@ user = "slack"
44
44
  channel = "#default_channel"
45
45
  message = "default message"
46
46
 
47
- # [config_name].login
47
+ # <user_name>.login
48
48
  [example.login]
49
49
 
50
50
  server = "example.com"
@@ -53,20 +53,20 @@ password = "password"
53
53
  port = 110(default)
54
54
  ssl = false
55
55
 
56
- # [config_name].default.condition
56
+ # <user_name>.default.condition
57
57
  [example.default.condition]
58
58
  subject = [".*default.*"]
59
59
 
60
- # [config_name].default.action.[action_name]
60
+ # <user_name>.default.action.<action_name>
61
61
  [example.default.action.slack]
62
62
  channel = "#account default"
63
63
 
64
- # [config_name].rules.[rule_name].condition
64
+ # <user_name>.rules.<rule_name>.condition
65
65
  [example.rules.normal_log.condition]
66
66
 
67
67
  subject = [".*Webmailer Exception.*"]
68
68
 
69
- # [config_name].rules.[rule_name].action.[action_name]
69
+ # <user_name>.rules.<rule_name>.action.<action_name>
70
70
  [example.rules.normal_log.action.slack]
71
71
 
72
72
  channel = "#channel"
data/lib/popper/config.rb CHANGED
@@ -9,6 +9,7 @@ module Popper
9
9
  config = TOML.load_file(config_path)
10
10
  if config.key?("include")
11
11
  content = config["include"].map {|p| Dir.glob(p).map {|f|File.read(f)}}.join("\n")
12
+ config.delete("include")
12
13
  config.deep_merge!(TOML::Parser.new(content).parsed)
13
14
  end
14
15
 
@@ -1,3 +1,3 @@
1
1
  module Popper
2
- VERSION = "0.2.7"
2
+ VERSION = "0.2.8"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: popper
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.7
4
+ version: 0.2.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - pyama86