slack_messaging 1.3.1 → 1.4.0

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: 21d4c79502e68eea2cf007a81f3a1e49a1f2b3fc670a68515f91d2671470c7b6
4
- data.tar.gz: 013f88ec707d9bea10b2186962bd4b82e0106cb8754185f0fedb9448b8e3dfb4
3
+ metadata.gz: 3508ee5d59522e0a8d3c931e165bee408d707240fc4c3a1aadbabd2d5b6799f9
4
+ data.tar.gz: 67bc57eb2943f0f9f801eac68e25988ee4b06ac20835dd2f46b24b4599d213d5
5
5
  SHA512:
6
- metadata.gz: d4cc5277991115cb449882eb7f069b6eb135c2c0d944692fbab654c2938c84441ab6bd3b0c9c47f748402d5b8390d34fe2a65ee433b165b3c10df1f230b4d672
7
- data.tar.gz: bb984c22a6a030630daec5848b91fcc73dd5a08090a2711878895741f8cc3317dbc37182a918b00e33b0790a69024f4a251cbfd13aabf214a7ae39f1d24a9c70
6
+ metadata.gz: 0aa1c61dcb454f5beef05a9ecc13da9e16a258812952013675d2bc5a4b3230d6f80f9b08d47d3de0168a6fb85a180fe1a9d2b78e6b68474c6ae615fdf7639081
7
+ data.tar.gz: dd9967c7e2347435a1194961f03f7d5329f45cb839a47130cc1bb901cd324234e854a457a274cfccc54c9903cd322157f06dc0b61baa9e283d21daa549c7dc51
@@ -1,18 +1,18 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- slack_messaging (1.3.1)
4
+ slack_messaging (1.4.0)
5
5
  activesupport (~> 6.0)
6
6
  gli (~> 2.10)
7
7
  hashie (~> 4.1)
8
8
  highline (~> 2.0)
9
+ httparty
9
10
  rack (~> 2.2)
10
- slack-notifier (~> 1.5.1)
11
11
 
12
12
  GEM
13
13
  remote: https://rubygems.org/
14
14
  specs:
15
- activesupport (6.0.3.3)
15
+ activesupport (6.0.3.4)
16
16
  concurrent-ruby (~> 1.0, >= 1.0.2)
17
17
  i18n (>= 0.7, < 2)
18
18
  minitest (~> 5.1)
@@ -21,6 +21,8 @@ GEM
21
21
  coderay (1.1.3)
22
22
  concurrent-ruby (1.1.7)
23
23
  diff-lcs (1.4.4)
24
+ faker (2.14.0)
25
+ i18n (>= 1.6, < 2)
24
26
  ffi (1.13.1)
25
27
  formatador (0.2.5)
26
28
  gli (2.19.2)
@@ -40,14 +42,21 @@ GEM
40
42
  rspec (>= 2.99.0, < 4.0)
41
43
  hashie (4.1.0)
42
44
  highline (2.0.3)
45
+ httparty (0.18.1)
46
+ mime-types (~> 3.0)
47
+ multi_xml (>= 0.5.2)
43
48
  i18n (1.8.5)
44
49
  concurrent-ruby (~> 1.0)
45
- listen (3.2.1)
50
+ listen (3.3.1)
46
51
  rb-fsevent (~> 0.10, >= 0.10.3)
47
52
  rb-inotify (~> 0.9, >= 0.9.10)
48
53
  lumberjack (1.2.8)
49
54
  method_source (1.0.0)
55
+ mime-types (3.3.1)
56
+ mime-types-data (~> 3.2015)
57
+ mime-types-data (3.2020.1104)
50
58
  minitest (5.14.2)
59
+ multi_xml (0.6.0)
51
60
  nenv (0.3.0)
52
61
  notiffany (0.1.3)
53
62
  nenv (~> 0.1)
@@ -60,32 +69,32 @@ GEM
60
69
  rb-fsevent (0.10.4)
61
70
  rb-inotify (0.10.1)
62
71
  ffi (~> 1.0)
63
- rspec (3.9.0)
64
- rspec-core (~> 3.9.0)
65
- rspec-expectations (~> 3.9.0)
66
- rspec-mocks (~> 3.9.0)
67
- rspec-core (3.9.3)
68
- rspec-support (~> 3.9.3)
69
- rspec-expectations (3.9.2)
72
+ rspec (3.10.0)
73
+ rspec-core (~> 3.10.0)
74
+ rspec-expectations (~> 3.10.0)
75
+ rspec-mocks (~> 3.10.0)
76
+ rspec-core (3.10.0)
77
+ rspec-support (~> 3.10.0)
78
+ rspec-expectations (3.10.0)
70
79
  diff-lcs (>= 1.2.0, < 2.0)
71
- rspec-support (~> 3.9.0)
72
- rspec-mocks (3.9.1)
80
+ rspec-support (~> 3.10.0)
81
+ rspec-mocks (3.10.0)
73
82
  diff-lcs (>= 1.2.0, < 2.0)
74
- rspec-support (~> 3.9.0)
75
- rspec-support (3.9.3)
83
+ rspec-support (~> 3.10.0)
84
+ rspec-support (3.10.0)
76
85
  shellany (0.0.1)
77
- slack-notifier (1.5.1)
78
86
  thor (1.0.1)
79
87
  thread_safe (0.3.6)
80
- tzinfo (1.2.7)
88
+ tzinfo (1.2.8)
81
89
  thread_safe (~> 0.1)
82
- zeitwerk (2.4.0)
90
+ zeitwerk (2.4.1)
83
91
 
84
92
  PLATFORMS
85
93
  ruby
86
94
 
87
95
  DEPENDENCIES
88
96
  bundler (~> 2.1)
97
+ faker
89
98
  guard-rspec (~> 4.3)
90
99
  rake (~> 13.0)
91
100
  rspec (~> 3.9)
data/Guardfile CHANGED
@@ -1,5 +1,5 @@
1
1
  guard :rspec, cmd: 'bundle exec rspec', all_on_start: true, all_after_pass: true do
2
2
  watch(%r{^spec/.+_spec\.rb$})
3
3
  watch(%r{^lib/(.+)\.rb$}) { |m| "spec/lib/#{m[1]}_spec.rb" }
4
- watch('spec/spec_helper.rb') { "spec" }
4
+ watch('spec/spec_helper.rb') { 'spec' }
5
5
  end
data/LICENSE CHANGED
@@ -1,4 +1,4 @@
1
- Copyright (c) 2014 Elliot Hursh
1
+ Copyright (c) 2014 Emma Sax
2
2
 
3
3
  MIT License
4
4
 
data/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # Slack Messaging [![Maintainability](https://api.codeclimate.com/v1/badges/c74baada70ad96048dc7/maintainability)](https://codeclimate.com/github/emmasax4/slack_messaging/maintainability) ![Develop](https://github.com/emmasax4/slack_messaging/workflows/Develop/badge.svg)
1
+ # Slack Messaging [![Maintainability](https://api.codeclimate.com/v1/badges/c74baada70ad96048dc7/maintainability)](https://codeclimate.com/github/emmasax4/slack_messaging/maintainability) ![Default](https://github.com/emmasax4/slack_messaging/workflows/Default/badge.svg)
2
2
 
3
3
  This is a simple project designed to post messages to a given Slack channel as a bot.
4
4
 
@@ -12,11 +12,15 @@ gem 'slack_messaging'
12
12
 
13
13
  And then execute:
14
14
 
15
- $ bundle
15
+ ```bash
16
+ bundle install
17
+ ```
16
18
 
17
19
  Or install it yourself as:
18
20
 
19
- $ gem install slack_messaging
21
+ ```bash
22
+ gem install slack_messaging
23
+ ```
20
24
 
21
25
  ### Usage
22
26
 
data/Rakefile CHANGED
@@ -1 +1 @@
1
- require "bundler/gem_tasks"
1
+ require 'bundler/gem_tasks'
@@ -19,7 +19,7 @@ DOCUMENTATION
19
19
  desc 'Prints a variety of messages to Slack'
20
20
  command 'slack' do |c|
21
21
  c.action do |global_options, options, args|
22
- SlackMessaging::Slack.execute(args, options) # args are optional string to print
22
+ SlackMessaging::Slack.execute(args, options)
23
23
  end
24
24
  end
25
25
 
@@ -1,4 +1,9 @@
1
- Dir[File.expand_path(File.join(File.dirname(File.absolute_path(__FILE__)), 'slack_messaging')) + "/**/*.rb"].each do |file|
1
+ require 'yaml'
2
+ require 'hashie'
3
+ require 'httparty'
4
+ require 'highline'
5
+
6
+ Dir[File.expand_path(File.join(File.dirname(File.absolute_path(__FILE__)), 'slack_messaging')) + '/**/*.rb'].each do |file|
2
7
  require_relative file
3
8
  end
4
9
 
@@ -1,43 +1,27 @@
1
- require 'yaml'
2
- require 'hashie'
3
-
4
1
  module SlackMessaging
5
- class DefaultPaths
6
- class << self
7
- def config
8
- File.join(self.home,'.slack_messaging.yml')
9
- end
10
-
11
- def home
12
- ENV['HOME'] ? ENV['HOME'] : "."
13
- end
14
- end
15
- end
16
-
17
2
  class Config
18
- class << self
3
+ def self.config
4
+ config_data.to_hash
5
+ end
19
6
 
20
- def config
21
- config_data.to_hash
22
- end
7
+ def self.load(path)
8
+ load_config(path)
9
+ config
10
+ end
23
11
 
24
- def load(path)
25
- load_config(path)
26
- config
27
- end
12
+ private
28
13
 
29
- private def config_data
30
- @config_data ||= Hashie::Mash.new
31
- end
14
+ def self.config_data
15
+ @config_data ||= Hashie::Mash.new
16
+ end
32
17
 
33
- private def method_missing(method, args=false)
34
- config_data.send(method, args)
35
- end
18
+ def self.method_missing(method, args = false)
19
+ config_data.send(method, args)
20
+ end
36
21
 
37
- private def load_config(file)
38
- raise MissingConfig, "Missing configuration file: #{file}" unless File.exist?(file)
39
- YAML.load_file(file).each{ |key,value| config_data.assign_property(key, value) }
40
- end
22
+ def self.load_config(file)
23
+ raise MissingConfig, "Missing configuration file: #{file}" unless File.exist?(file)
24
+ YAML.load_file(file).each { |key, value| config_data.assign_property(key, value) }
41
25
  end
42
26
  end
43
27
  end
@@ -0,0 +1,13 @@
1
+ module SlackMessaging
2
+ class DefaultPaths
3
+ def self.config
4
+ File.join(self.home, '.slack_messaging.yml')
5
+ end
6
+
7
+ private
8
+
9
+ def self.home
10
+ ENV['HOME'] ? ENV['HOME'] : '.'
11
+ end
12
+ end
13
+ end
@@ -1,5 +1,3 @@
1
- require 'slack-notifier'
2
-
3
1
  module SlackMessaging
4
2
  class NotifySlack
5
3
  attr_accessor :text, :channel, :webhook_url, :username, :icon_url, :icon_emoji
@@ -8,19 +6,19 @@ module SlackMessaging
8
6
  self.text = text
9
7
  self.channel = SlackMessaging::Config.slack[:channel]
10
8
  self.webhook_url = SlackMessaging::Config.slack[:webhook_url]
11
- self.username = SlackMessaging::Config.slack[:username] || "MessageMe"
12
- self.icon_emoji = SlackMessaging::Config.slack[:icon_emoji] || ":mailbox_with_mail"
9
+ self.username = SlackMessaging::Config.slack[:username] || 'MessageMe'
10
+ self.icon_emoji = SlackMessaging::Config.slack[:icon_emoji] || ':mailbox_with_mail'
13
11
  end
14
12
 
15
13
  def perform
16
14
  options = {
17
- webhook_url: webhook_url,
18
15
  channel: channel,
19
16
  username: username,
20
17
  icon_emoji: icon_emoji,
21
- http_options: { open_timeout: 10 }
18
+ text: text
22
19
  }
23
- ::Slack::Notifier.new(webhook_url, options).ping(text)
20
+
21
+ HTTParty.post(webhook_url, body: options.to_json)
24
22
  end
25
23
  end
26
24
  end
@@ -1,7 +1,5 @@
1
1
  module SlackMessaging
2
2
  class RandomMessage
3
- attr_accessor :text
4
-
5
3
  MESSAGE_ARRAY = [
6
4
  "A true friend is someone who thinks that you are a good egg even though he knows that you are slightly cracked.\n--Bernard Meltzer",
7
5
  "If you can't make it good, at least make it look good.\n--Bill Gates",
@@ -23,12 +21,10 @@ module SlackMessaging
23
21
  "Don't let small minds convince you that your dreams are too big.\n--Anonymous",
24
22
  ]
25
23
 
24
+ attr_accessor :text
25
+
26
26
  def initialize
27
27
  self.text = MESSAGE_ARRAY[rand(MESSAGE_ARRAY.length)]
28
28
  end
29
-
30
- def get_text
31
- return self.text
32
- end
33
29
  end
34
30
  end
@@ -1,15 +1,11 @@
1
- require 'highline'
2
-
3
1
  module SlackMessaging
4
2
  class Slack
5
- class << self
6
- attr_accessor :options
7
- end
3
+ attr_accessor :options
8
4
 
9
- def self.execute(args, options=nil)
5
+ def self.execute(args, options = nil)
10
6
  if args.empty?
11
- message = SlackMessaging::RandomMessage.new # generate a new random message
12
- print_message(message.get_text)
7
+ message = SlackMessaging::RandomMessage.new
8
+ print_message(message.text)
13
9
  else
14
10
  args.each do |message|
15
11
  print_message(message)
@@ -18,8 +14,7 @@ module SlackMessaging
18
14
  end
19
15
 
20
16
  def self.print_message(message)
21
- slack_job = SlackMessaging::NotifySlack.new(message)
22
- slack_job.perform
17
+ SlackMessaging::NotifySlack.new(message).perform
23
18
  end
24
19
  end
25
20
  end
@@ -1,3 +1,3 @@
1
1
  module SlackMessaging
2
- VERSION = "1.3.1"
2
+ VERSION = '1.4.0'
3
3
  end
@@ -1,44 +1,53 @@
1
1
  require 'spec_helper'
2
2
  require 'slack_messaging'
3
3
 
4
- module SlackMessaging
5
- describe Config do
4
+ describe SlackMessaging::Config do
5
+ context 'config key methods' do
6
+ it 'should return nil when not set' do
7
+ expect(SlackMessaging::Config.doesnt_exist).to eql(nil)
8
+ expect(SlackMessaging::Config.doesnt_exist?).to eql(false)
9
+ end
6
10
 
7
- context "config key methods" do
8
- it "should return nil when not set" do
9
- expect(SlackMessaging::Config.doesnt_exist).to eql(nil)
10
- expect(SlackMessaging::Config.doesnt_exist?).to eql(false)
11
- end
12
- it "should return the config value when set" do
13
- SlackMessaging::Config.new_value = "testing"
14
- expect(SlackMessaging::Config.new_value).to eql("testing")
15
- end
11
+ it 'should return the config value when set' do
12
+ config_value = Faker::Lorem.word
13
+ SlackMessaging::Config.new_value = config_value
14
+ expect(SlackMessaging::Config.new_value).to eql(config_value)
16
15
  end
16
+ end
17
17
 
18
- context "after loading a config file" do
19
- before do
20
- config_file = {"domain" => "example_domain",
21
- "slack" => {"slack_option" => true,
22
- "username" => "Rspec Tester",
23
- "icon_url" => "http://fake.url",
24
- "channel" => "#test-channel",
25
- "webhook" => "https://slack.web.hook"}}
26
- allow(YAML).to receive(:load_file).and_return(config_file)
27
- allow(File).to receive(:exist?).and_return(true)
28
- SlackMessaging::Config.load("dummy/path")
29
- end
18
+ context 'after loading a config file' do
19
+ let(:domain) { Faker::Internet.domain_name }
20
+ let(:sentence) { Faker::Lorem.sentence }
21
+
22
+ let(:config_file) do
23
+ {
24
+ 'domain': domain,
25
+ 'slack': {
26
+ 'slack_option': true,
27
+ 'username': Faker::Name.name,
28
+ 'icon_url': Faker::Internet.url,
29
+ 'channel': Faker::Lorem.word,
30
+ 'webhook': Faker::Internet.url
31
+ }
32
+ }
33
+ end
30
34
 
31
- it "calling a method corresponding to a key in the file should return the value" do
32
- expect(SlackMessaging::Config.domain).to eql("example_domain")
33
- expect(SlackMessaging::Config.slack).to be_kind_of(Hash)
34
- expect(SlackMessaging::Config.slack[:slack_option]).to eql(true)
35
- end
35
+ before do
36
+ allow(YAML).to receive(:load_file).and_return(config_file)
37
+ allow(File).to receive(:exist?).and_return(true)
38
+ SlackMessaging::Config.load(Faker::Lorem.word)
39
+ end
40
+
41
+ it 'calling a method corresponding to a key in the file should return the value' do
42
+ expect(SlackMessaging::Config.domain).to eql(domain)
43
+ expect(SlackMessaging::Config.slack).to be_kind_of(Hash)
44
+ expect(SlackMessaging::Config.slack[:slack_option]).to eql(true)
45
+ end
36
46
 
37
- it "overwriting values should work" do
38
- expect(SlackMessaging::Config.slack).to be_kind_of(Hash)
39
- SlackMessaging::Config.slack = "this is a string now"
40
- expect(SlackMessaging::Config.slack).to eql("this is a string now")
41
- end
47
+ it 'overwriting values should work' do
48
+ expect(SlackMessaging::Config.slack).to be_kind_of(Hash)
49
+ SlackMessaging::Config.slack = sentence
50
+ expect(SlackMessaging::Config.slack).to eql(sentence)
42
51
  end
43
52
  end
44
53
  end
@@ -1,34 +1,43 @@
1
1
  require 'spec_helper'
2
2
  require 'slack_messaging'
3
3
 
4
- module SlackMessaging
5
- describe NotifySlack do
6
- before :each do
7
- config_file = {"slack" => {"channel" => "#random-test-channel",
8
- "username" => "Random User",
9
- "webhook_url" => "https://hooks.slack.com/services/totallyrandom/fakewebhookurl",
10
- "icon_emoji" => ":wine_glass:"}
11
- }
12
- allow(YAML).to receive(:load_file).and_return(config_file)
13
- allow(File).to receive(:exist?).and_return(true)
14
- SlackMessaging::Config.load("dummy/path")
15
- end
4
+ describe SlackMessaging::NotifySlack do
5
+ let(:sentence) { Faker::Lorem.sentence }
6
+ let(:channel) { Faker::Lorem.word }
7
+ let(:username) { Faker::Name.name }
8
+ let(:webhook) { Faker::Internet.url }
9
+ let(:emoji) { Faker::Internet.url }
16
10
 
17
- it 'should ping Slack Notifier' do
18
- notifier = double('notifier', ping: true)
19
- allow(::Slack::Notifier).to receive(:new).and_return(notifier)
20
- expect(notifier).to receive(:ping).and_return(true)
21
- message = NotifySlack.new("Test message")
22
- message.perform
23
- end
11
+ let(:config_file) do
12
+ {
13
+ 'slack': {
14
+ 'slack_option': true,
15
+ 'username': username,
16
+ 'icon_emoji': emoji,
17
+ 'channel': channel,
18
+ 'webhook_url': webhook
19
+ }
20
+ }
21
+ end
22
+
23
+ before :each do
24
+ allow(YAML).to receive(:load_file).and_return(config_file)
25
+ allow(File).to receive(:exist?).and_return(true)
26
+ SlackMessaging::Config.load(Faker::Lorem.word)
27
+ end
28
+
29
+ it 'should call HTTParty' do
30
+ expect(HTTParty).to receive(:post)
31
+ message = SlackMessaging::NotifySlack.new(sentence)
32
+ message.perform
33
+ end
24
34
 
25
- it 'should define certain values' do
26
- message = NotifySlack.new("Test message")
27
- expect(message.text).to eq("Test message")
28
- expect(message.channel).to eq("#random-test-channel")
29
- expect(message.username).to eq("Random User")
30
- expect(message.webhook_url).to eq("https://hooks.slack.com/services/totallyrandom/fakewebhookurl")
31
- expect(message.icon_emoji).to eq(":wine_glass:")
32
- end
35
+ it 'should define certain values' do
36
+ message = SlackMessaging::NotifySlack.new(sentence)
37
+ expect(message.text).to eq(sentence)
38
+ expect(message.channel).to eq(channel)
39
+ expect(message.username).to eq(username)
40
+ expect(message.webhook_url).to eq(webhook)
41
+ expect(message.icon_emoji).to eq(emoji)
33
42
  end
34
43
  end
@@ -1,27 +1,24 @@
1
1
  require 'spec_helper'
2
2
  require 'slack_messaging'
3
3
 
4
- module SlackMessaging
5
- describe RandomMessage do
6
-
7
- it "should get a string message" do
8
- message = RandomMessage.new
9
- expect(message.get_text).to be_instance_of(String)
10
- end
4
+ describe SlackMessaging::RandomMessage do
5
+ it 'should get a string message' do
6
+ message = SlackMessaging::RandomMessage.new
7
+ expect(message.text).to be_instance_of(String)
8
+ end
11
9
 
12
- it "should get a message greater than 25 characters" do
13
- message = RandomMessage.new
14
- expect(message.get_text.length).to be >= 50
15
- end
10
+ it 'should get a message greater than 25 characters' do
11
+ message = SlackMessaging::RandomMessage.new
12
+ expect(message.text.length).to be >= 50
13
+ end
16
14
 
17
- it "should get a message that includes a new line" do
18
- message = RandomMessage.new
19
- expect(message.get_text.include?("\n")).to eq(true)
20
- end
15
+ it 'should get a message that includes a new line' do
16
+ message = SlackMessaging::RandomMessage.new
17
+ expect(message.text.include?("\n")).to eq(true)
18
+ end
21
19
 
22
- it "should get a message that includes a '--'" do
23
- message = RandomMessage.new
24
- expect(message.get_text.include?("--")).to eq(true)
25
- end
20
+ it 'should get a message that includes a --' do
21
+ message = SlackMessaging::RandomMessage.new
22
+ expect(message.text.include?('--')).to eq(true)
26
23
  end
27
24
  end
@@ -1,3 +1,5 @@
1
+ require 'faker'
2
+
1
3
  # This file was generated by the `rspec --init` command. Conventionally, all
2
4
  # specs live under a `spec` directory, which RSpec adds to the `$LOAD_PATH`.
3
5
  # The generated `.rspec` file contains `--require spec_helper` which will cause
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: slack_messaging
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.1
4
+ version: 1.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Emma Sax
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-10-02 00:00:00.000000000 Z
11
+ date: 2020-11-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -67,33 +67,33 @@ dependencies:
67
67
  - !ruby/object:Gem::Version
68
68
  version: '2.0'
69
69
  - !ruby/object:Gem::Dependency
70
- name: rack
70
+ name: httparty
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
- - - "~>"
73
+ - - ">="
74
74
  - !ruby/object:Gem::Version
75
- version: '2.2'
75
+ version: '0'
76
76
  type: :runtime
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
- - - "~>"
80
+ - - ">="
81
81
  - !ruby/object:Gem::Version
82
- version: '2.2'
82
+ version: '0'
83
83
  - !ruby/object:Gem::Dependency
84
- name: slack-notifier
84
+ name: rack
85
85
  requirement: !ruby/object:Gem::Requirement
86
86
  requirements:
87
87
  - - "~>"
88
88
  - !ruby/object:Gem::Version
89
- version: 1.5.1
89
+ version: '2.2'
90
90
  type: :runtime
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
94
  - - "~>"
95
95
  - !ruby/object:Gem::Version
96
- version: 1.5.1
96
+ version: '2.2'
97
97
  - !ruby/object:Gem::Dependency
98
98
  name: bundler
99
99
  requirement: !ruby/object:Gem::Requirement
@@ -108,6 +108,20 @@ dependencies:
108
108
  - - "~>"
109
109
  - !ruby/object:Gem::Version
110
110
  version: '2.1'
111
+ - !ruby/object:Gem::Dependency
112
+ name: faker
113
+ requirement: !ruby/object:Gem::Requirement
114
+ requirements:
115
+ - - ">="
116
+ - !ruby/object:Gem::Version
117
+ version: '0'
118
+ type: :development
119
+ prerelease: false
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ requirements:
122
+ - - ">="
123
+ - !ruby/object:Gem::Version
124
+ version: '0'
111
125
  - !ruby/object:Gem::Dependency
112
126
  name: guard-rspec
113
127
  requirement: !ruby/object:Gem::Requirement
@@ -168,8 +182,8 @@ files:
168
182
  - bin/slack-messaging
169
183
  - lib/slack_messaging.rb
170
184
  - lib/slack_messaging/config.rb
185
+ - lib/slack_messaging/default_paths.rb
171
186
  - lib/slack_messaging/notify_slack.rb
172
- - lib/slack_messaging/output.rb
173
187
  - lib/slack_messaging/random_message.rb
174
188
  - lib/slack_messaging/slack.rb
175
189
  - lib/slack_messaging/version.rb
@@ -196,7 +210,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
196
210
  - !ruby/object:Gem::Version
197
211
  version: '0'
198
212
  requirements: []
199
- rubygems_version: 3.1.2
213
+ rubygems_version: 3.1.4
200
214
  signing_key:
201
215
  specification_version: 4
202
216
  summary: Personalized Slack Messages
@@ -1,13 +0,0 @@
1
- require 'highline'
2
-
3
- module SlackMessaging
4
- module Output
5
- def self.terminal
6
- @terminal ||= HighLine.new
7
- end
8
-
9
- def self.ask(*args, &block)
10
- terminal.ask(*args, &block)
11
- end
12
- end
13
- end