popper 0.1.0 → 0.1.1

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: 0927bfbef3ae3c758bb5cb2defcc3bc716ec12f3
4
- data.tar.gz: a3b08fc03f8c622c31e421521ae89fb3d5c47977
3
+ metadata.gz: 876c1bf26335597a921383340bf5c2deb606aa79
4
+ data.tar.gz: b778ceb4c6d947abb640945620b3b219c6d5883c
5
5
  SHA512:
6
- metadata.gz: 43a8d35f3808c303cb0a2bedae7bb3814e00a3d07bd46581509c97ea984f274ed7991f797f5498271aa645b996f61554b728a6d2d2645ae4a61749a5e7cb4812
7
- data.tar.gz: 62108f190c671f63bc9a4decdddc7764a6c23afff534bbf78564a0a0326cc1a39f5eb9f9717ea6a844d58a7eff45467dca247e2d95084d2cbfc74a9e64d8c775
6
+ metadata.gz: 2d4439209a82f65c3aa1eb75fb22c81a2ebb6cd8b53852c0956c4848df4c297086712601ad2bfdb841a06dae272bbf59ded0a317d6253e95f9a37548895ccec3
7
+ data.tar.gz: 1c7f7aa2b1518a5893076afda349e2990886b930b1796037af287fb91d9d96bbefb4149ecfb30df25db0524f20cbfc1a485110414a7bcf59d0028d1477a643d1
data/.gitignore CHANGED
@@ -1,6 +1,6 @@
1
1
  /.bundle/
2
2
  /.yardoc
3
- /Gemfile.lock
3
+ Gemfile.lock
4
4
  /_yardoc/
5
5
  /coverage/
6
6
  /doc/
data/lib/popper/init.rb CHANGED
@@ -12,7 +12,46 @@ module Popper
12
12
  end
13
13
 
14
14
  def self.sample_config
15
- File.read('lib/popper/sample/config.txt')
15
+ <<-EOS
16
+ [popper]
17
+ slack_webhook_url = "https://test.slack.com"
18
+ slack_user = "popper"
19
+ git_token = "test"
20
+ ghe_token = "test"
21
+ ghe_url = "http://ghe.example.com"
22
+
23
+ [example.login]
24
+ server = "mail.examplejp"
25
+ user = "examplle_user"
26
+ password = "examplle_pass"
27
+
28
+ [default.condition]
29
+ subject = ["^(?!.*Re:).+$"]
30
+
31
+ [default.action.slack]
32
+ webhook_url = "webhook_url"
33
+ user = "slack"
34
+ channel = "#default_channel"
35
+ message = "default message"
36
+
37
+ [example.default.condition]
38
+ subject = [".*default.*"]
39
+
40
+ [example.rules.normal_log.condition]
41
+ subject = ".*example.*"
42
+ body = ".*example.*"
43
+
44
+ [example.rules.normal_log.action.slack]
45
+ channel = "#test"
46
+ mentions = ["@test"]
47
+ message = "test message"
48
+
49
+ [example.rules.normal_log.action.git]
50
+ repo = "test/example"
51
+
52
+ [example.rules.normal_log.action.ghe]
53
+ repo = "test/example"
54
+ EOS
16
55
  end
17
56
  end
18
57
  end
@@ -1,3 +1,3 @@
1
1
  module Popper
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
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.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - pyama86
@@ -153,7 +153,6 @@ files:
153
153
  - lib/popper/config.rb
154
154
  - lib/popper/init.rb
155
155
  - lib/popper/pop.rb
156
- - lib/popper/sample/config.txt
157
156
  - lib/popper/sync.rb
158
157
  - lib/popper/version.rb
159
158
  - popper.gemspec
@@ -1,26 +0,0 @@
1
- [popper]
2
- slack_webhook_url = "https://test.slack.com"
3
- slack_user = "popper"
4
- git_token = "test"
5
- ghe_token = "test"
6
- ghe_url = "http://ghe.example.com"
7
-
8
- [example.login]
9
- server = "mail.examplejp"
10
- user = "examplle_user"
11
- password = "examplle_pass"
12
-
13
- [example.rules.normal_log.condition]
14
- subject = ".*example.*"
15
- body = ".*example.*"
16
-
17
- [example.rules.normal_log.action.slack]
18
- channel = "#test"
19
- mentions = ["@test"]
20
- message = "test message"
21
-
22
- [example.rules.normal_log.action.git]
23
- repo = "test/example"
24
-
25
- [example.rules.normal_log.action.ghe]
26
- repo = "test/example"