slack-notify 0.2.0 → 0.3.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
  SHA1:
3
- metadata.gz: 03e6c9b0e49fde578cd9f35b06f842d31d4f37cd
4
- data.tar.gz: 6a6cb121c35a1e62ecb7dd0f47e1da4a773d37a0
3
+ metadata.gz: c643856420715a7cb90434dc3c1c5afdf7da488b
4
+ data.tar.gz: f73121509a88d716b54b875f431db25f3355dec1
5
5
  SHA512:
6
- metadata.gz: c4d94d98b07f026fbd651e5b3cb87e03af147cb33ea8758109a4ee11680c120997d0337571413d9b2ed307d6d551c1679d07fc345db3e48c02da927684041f9d
7
- data.tar.gz: f57fd7011d8295e0de59c755b774ddffa9b664e2aa960c565bb7b7913d7e39b447fa638d085bce9d10b1f3eeb8d8253e6f8c7bf22afc751f355b29b810060d65
6
+ metadata.gz: 719157dda53b568ff17a98b42a6d6bbe0f5feb1c609359f7e34aeb3da38e9a7b3f45a06482623bdf9f04f69ac9e3ff50511b5b79e83e60a16efac3469a3efa4a
7
+ data.tar.gz: 355bcb7153a585d9dad1322bbe45c854c21f4b4f279ffa26608461bf95986c97e52c2b0e087a1fcdb825b30d9362b81ccb19814973cc4bcf24c109d4073b1ebe
data/.travis.yml CHANGED
@@ -1,4 +1,3 @@
1
1
  rvm:
2
2
  - "2.0.0"
3
- - "2.1.0"
4
- - "2.1.1"
3
+ - "2.1.1"
data/Rakefile CHANGED
@@ -7,6 +7,8 @@ RSpec::Core::RakeTask.new(:test) do |t|
7
7
  end
8
8
 
9
9
  task :console do
10
+ $LOAD_PATH << "./lib"
11
+
10
12
  require "irb"
11
13
  require "irb/completion"
12
14
  require "pp"
@@ -1,9 +1,11 @@
1
1
  module SlackNotify
2
2
  module Connection
3
3
  def send_payload(payload)
4
- conn = Faraday.new(hook_url, { timeout: 5, open_timeout: 5 }) do |c|
4
+ conn = Faraday.new(hook_url) do |c|
5
5
  c.use(Faraday::Request::UrlEncoded)
6
6
  c.adapter(Faraday.default_adapter)
7
+ c.options.timeout = 5
8
+ c.options.open_timeout = 5
7
9
  end
8
10
 
9
11
  response = conn.post do |req|
@@ -31,4 +33,4 @@ module SlackNotify
31
33
  "https://#{@team}.slack.com"
32
34
  end
33
35
  end
34
- end
36
+ end
@@ -1,3 +1,3 @@
1
1
  module SlackNotify
2
- VERSION = "0.2.0"
2
+ VERSION = "0.3.0"
3
3
  end
data/slack-notify.gemspec CHANGED
@@ -24,6 +24,6 @@ Gem::Specification.new do |spec|
24
24
  spec.add_development_dependency "rspec", "~> 2.13"
25
25
  spec.add_development_dependency "webmock", "~> 1.0"
26
26
 
27
- spec.add_dependency "faraday", "< 0.9.0"
27
+ spec.add_dependency "faraday", "~> 0.9.0"
28
28
  spec.add_dependency "json", "~> 1.8"
29
29
  end
@@ -77,7 +77,7 @@ describe SlackNotify::Client do
77
77
  before do
78
78
  stub_request(:post, "https://foo.slack.com/services/hooks/incoming-webhook?token=bar").
79
79
  with(:body => {"{\"text\":\"Message\",\"username\":\"webhookbot\",\"channel\":\"#general\",\"icon_url\":\"foobar\"}"=>true},
80
- :headers => {'Accept'=>'*/*', 'Accept-Encoding'=>'gzip;q=1.0,deflate;q=0.6,identity;q=0.3', 'Content-Type'=>'application/x-www-form-urlencoded', 'User-Agent'=>'Faraday v0.8.9'}).
80
+ :headers => {'Accept'=>'*/*', 'Accept-Encoding'=>'gzip;q=1.0,deflate;q=0.6,identity;q=0.3', 'Content-Type'=>'application/x-www-form-urlencoded', 'User-Agent'=>'Faraday v0.9.0'}).
81
81
  to_return(:status => 200, :body => "", :headers => {})
82
82
  end
83
83
 
@@ -92,7 +92,7 @@ describe SlackNotify::Client do
92
92
  before do
93
93
  stub_request(:post, "https://foo.slack.com/services/hooks/incoming-webhook?token=bar").
94
94
  with(:body => {"{\"text\":\"Message\",\"username\":\"webhookbot\",\"channel\":\"#general\",\"icon_emoji\":\"foobar\"}"=>true},
95
- :headers => {'Accept'=>'*/*', 'Accept-Encoding'=>'gzip;q=1.0,deflate;q=0.6,identity;q=0.3', 'Content-Type'=>'application/x-www-form-urlencoded', 'User-Agent'=>'Faraday v0.8.9'}).
95
+ :headers => {'Accept'=>'*/*', 'Accept-Encoding'=>'gzip;q=1.0,deflate;q=0.6,identity;q=0.3', 'Content-Type'=>'application/x-www-form-urlencoded', 'User-Agent'=>'Faraday v0.9.0'}).
96
96
  to_return(:status => 200, :body => "", :headers => {})
97
97
  end
98
98
 
@@ -153,4 +153,4 @@ describe SlackNotify::Client do
153
153
  end
154
154
  end
155
155
  end
156
- end
156
+ end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: slack-notify
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dan Sosedoff
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-04-19 00:00:00.000000000 Z
11
+ date: 2014-06-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -84,14 +84,14 @@ dependencies:
84
84
  name: faraday
85
85
  requirement: !ruby/object:Gem::Requirement
86
86
  requirements:
87
- - - <
87
+ - - ~>
88
88
  - !ruby/object:Gem::Version
89
89
  version: 0.9.0
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
96
  version: 0.9.0
97
97
  - !ruby/object:Gem::Dependency