slack_hook 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 46bf4e684cdb134a9ca589a571cfbd51220d1cdf
4
- data.tar.gz: 5792fe9f1efb7600e25e34c4d982c81b0081a078
3
+ metadata.gz: 7656e880d5884053c247dd5bff11928ecda537aa
4
+ data.tar.gz: 85d822e2e4ee092ccb9bfb5adad69833bdf30630
5
5
  SHA512:
6
- metadata.gz: 4b8c2a908f0c8f26bcbe56fc58ff52f6b4061d7ecae113ee4fadd68c5dda8a861f1a07e49d13a94f6e743a946025b5f93b75a712590b1903164f1a906330b3c8
7
- data.tar.gz: fdbd7a68960fee53029adef281200fcdc6608d5442c563c3e4199f6bce7eb254692524f0f51c643611b4435d8eac27b027223e546dec463264394fda2feea8af
6
+ metadata.gz: ac7724f80189a895665b6f86a34e6cbaa73924f3ee17f33a21e5e14ae793570aea187d768d33e3c1bcc2587d731a3216d7eda7d476f0ed1d543631a71e084947
7
+ data.tar.gz: 33912b15ce9c8f43920c2a27b38b6bacf13d86db745810fdcab7f29ff9040ba2e8d462907e876a4b47f6e8f3a54b35ae944bdb2a946c108fe6f76aadaa8d7d9c
@@ -0,0 +1,25 @@
1
+ version: 2
2
+ jobs:
3
+ build:
4
+ docker:
5
+ - image: circleci/ruby:2.5-node
6
+
7
+ steps:
8
+ - checkout
9
+
10
+ - restore_cache:
11
+ keys:
12
+ - slack-hook-bundle-v2-{{ checksum "slack_hook.gemspec" }}
13
+
14
+ - run:
15
+ name: Bundle Install
16
+ command: bundle check || bundle install
17
+
18
+ - save_cache:
19
+ key: slack-hook-bundle-v2-{{ checksum "slack_hook.gemspec" }}
20
+ paths:
21
+ - vendor/bundle
22
+
23
+ - run:
24
+ name: Run Rspec
25
+ command: bundle exec rspec
data/README.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # SlackHook
2
2
 
3
+ [![Gem Version](https://badge.fury.io/rb/slack_hook.svg)](https://badge.fury.io/rb/slack_hook)
4
+ [![CircleCI](https://circleci.com/gh/kirillshevch/slack_hook.svg?style=svg)](https://circleci.com/gh/kirillshevch/slack_hook)
5
+
6
+
3
7
  A Simple Interface to Slack Incoming Webhooks Integrations
4
8
 
5
9
  ## Installation
@@ -42,6 +46,9 @@ Slaсk currently provides two ways to format messages:
42
46
 
43
47
  `SlackHook` support both approaches.
44
48
 
49
+ 1. `{ text: 'hook text', attachments: []}`
50
+ 1. `{ text: 'hook text', blocks: []}`
51
+
45
52
  ## Development
46
53
 
47
54
  After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
@@ -1,3 +1,3 @@
1
1
  module SlackHook
2
- VERSION = '0.1.0'
2
+ VERSION = '0.1.1'
3
3
  end
data/lib/slack_hook.rb CHANGED
@@ -1,4 +1,5 @@
1
1
  require 'slack_hook/version'
2
+ require 'slack_hook/incoming'
2
3
 
3
4
  module SlackHook
4
5
  class Error < StandardError; end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: slack_hook
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
  - Kirill Shevchenko
@@ -87,6 +87,7 @@ executables: []
87
87
  extensions: []
88
88
  extra_rdoc_files: []
89
89
  files:
90
+ - ".circleci/config.yml"
90
91
  - ".gitignore"
91
92
  - ".rspec"
92
93
  - ".rubocop.yml"