quandl_utility 0.1.3 → 0.2.0

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: 99a167642b1c03a2ccb8cc8ad98066ceef24f6f6
4
- data.tar.gz: 7b80b2121c67d3cc3593e2ef79ab4ea11b310c5d
3
+ metadata.gz: 5e0a317c5ca3fcfbb52e0a4e5670b8819fa74cfc
4
+ data.tar.gz: 82223f336ab0724873a07dd08e8726aea1689094
5
5
  SHA512:
6
- metadata.gz: 767b3efd6c8e2ea490c65ed49584d3f1c1d7f1d3cbbc8660919a500ff7795e26faafb2dcb74b4efa320fc4fa3efb62d1084620fc31e2023f2bf8df5e1db8344f
7
- data.tar.gz: 1920a9a5c690607f8186d7af5873118829db82c71b577fdd2ca3a6741fb7ecbf87a175ca506bc076b9614518aa8de7937200b1dbf557387f0ccf1acaa3eed593
6
+ metadata.gz: de91e6b285c28088fcd31d64c6d1935e583c87072118cd7414f35d7add24af393f6dcf45c5af17e0dfe4b128730cab7745b3bd7ef7a9693cd3765697f15f4526
7
+ data.tar.gz: 4ef3bfd97190253dad46d999d05de83c499d35012add2114a95da5e408d82bb6e17d9242640887d354b4876b3c407ab4bbb01fd3cc247eeb4b18feb86047ca2d
data/README.md CHANGED
@@ -14,36 +14,6 @@ The purpose of this gem is to:
14
14
  gem 'quandl_utility'
15
15
  ```
16
16
 
17
-
18
- ## Configuration
19
-
20
- Add this to your Rakefile:
21
-
22
- ```ruby
23
- require 'quandl/utility/rake_tasks'
24
-
25
- Quandl::Utility::Tasks.configure do |c|
26
- c.name = 'gem_name'
27
- c.version_path = 'VERSION'
28
- c.changelog_path = 'CHANGELOG.md'
29
- c.changelog_matching = ['^JIRA','^GITHUB']
30
- end
31
- ```
32
-
33
-
34
- ## Usage
35
-
36
-
37
- ```bash
38
- $ rake -T
39
-
40
- rake gem_name:bump:major # Perform major bump to gem_name
41
- rake gem_name:bump:minor # Perform minor bump to gem_name
42
- rake gem_name:bump:patch # Perform patch bump to gem_name
43
-
44
- $ rake gem_name:bump:minor && rake release
45
- ```
46
-
47
17
  ## Thor Tasks
48
18
 
49
19
  Quandl::Utility Thor tasks are available in two ways:
@@ -51,7 +21,7 @@ Quandl::Utility Thor tasks are available in two ways:
51
21
  * Using the executable 'qutil'
52
22
 
53
23
  ```bash
54
- qutil notify slack 'general' 'ping!'
24
+ qutil notify slack '#general' 'ping!' -w 'WEBHOOK_URL'
55
25
  ```
56
26
 
57
27
  * Including in your Thorfile
@@ -61,7 +31,7 @@ require 'quandl/utility/thor_tasks'
61
31
 
62
32
  desc 'my_task'
63
33
  def my_task
64
- invoke 'qutil:slack:notify', ['general', 'ping!']
34
+ invoke 'qutil:slack:notify', ['#general', 'ping!']
65
35
  end
66
36
  ```
67
37
 
@@ -123,5 +93,5 @@ qutil notify help
123
93
  #### slack
124
94
 
125
95
  ```bash
126
- qutil notify slack MESSAGE CHANNEL
96
+ qutil notify slack MESSAGE #CHANNEL -w WEBHOOK_URL
127
97
  ```
data/UPGRADE.md CHANGED
@@ -1,3 +1,7 @@
1
+ ## 0.2.0
2
+
3
+ * Update Slack notification and lock slack-notifier
4
+
1
5
  ## 0.1.3
2
6
 
3
7
  * Fix name error for RuboCop.
@@ -20,7 +20,7 @@ module Quandl
20
20
  #
21
21
  # Returns string
22
22
  def ci_build_message
23
- "#{current_project} (#{git_branch}) *#{tddium_build_status}* - #{tddium_report_url}"
23
+ "*#{current_project}* (#{git_branch}) *#{tddium_build_status}* - #{tddium_report_url}"
24
24
  end
25
25
 
26
26
  # Which slack channel to send build status to.
@@ -28,7 +28,7 @@ module Quandl
28
28
  #
29
29
  # Returns string
30
30
  def slack_channel
31
- ENV.fetch('SLACK_CHANNEL', 'development')
31
+ ENV.fetch('SLACK_CHANNEL', '#development')
32
32
  end
33
33
 
34
34
  # The URL for the build that just ran
@@ -12,18 +12,12 @@ module Quandl
12
12
  aliases: '-e',
13
13
  required: false,
14
14
  banner: 'EMOJI'
15
- method_option :token,
15
+ method_option :webhook,
16
16
  type: :string,
17
- aliases: '-t',
17
+ aliases: '-w',
18
18
  required: true,
19
- default: ENV['SLACK_TOKEN'],
20
- banner: 'TOKEN'
21
- method_option :team,
22
- type: :string,
23
- aliases: '-m',
24
- required: true,
25
- default: 'quandl',
26
- banner: 'TEAM'
19
+ default: ENV['SLACK_WEBHOOK'],
20
+ banner: 'WEBHOOK'
27
21
  method_option :botname,
28
22
  type: :string,
29
23
  aliases: '-b',
@@ -32,9 +26,7 @@ module Quandl
32
26
  banner: 'BOTNAME'
33
27
  desc 'slack message channel', 'Send notification to slack'
34
28
  def slack(message, channel)
35
- slack_client = Slack::Notifier.new(options[:team], options[:token])
36
- slack_client.channel = channel
37
- slack_client.username = options[:botname]
29
+ slack_client = Slack::Notifier.new(options[:webhook], channel: channel, username: options[:botname])
38
30
  slack_client.ping(message, icon_emoji: options[:emoji])
39
31
  end
40
32
  end
@@ -1,5 +1,5 @@
1
1
  module Quandl
2
2
  module Utility
3
- VERSION = '0.1.3'
3
+ VERSION = '0.2.0'
4
4
  end
5
5
  end
@@ -6,8 +6,8 @@ Gem::Specification.new do |s|
6
6
  s.name = "quandl_utility"
7
7
  s.version = Quandl::Utility::VERSION
8
8
  s.authors = ["Blake Hilscher"]
9
- s.email = ["blake@hilscher.ca"]
10
- s.homepage = "http://blake.hilscher.ca/"
9
+ s.email = ["dev@quandl.com"]
10
+ s.homepage = "https://www.quandl.com"
11
11
  s.license = "MIT"
12
12
  s.summary = "Utility Tools"
13
13
  s.description = "Tools for making our lives easier."
@@ -22,7 +22,7 @@ Gem::Specification.new do |s|
22
22
  s.add_runtime_dependency 'thor'
23
23
  s.add_runtime_dependency 'thor-foodcritic'
24
24
  s.add_runtime_dependency 'rubocop'
25
- s.add_runtime_dependency 'slack-notifier'
25
+ s.add_runtime_dependency 'slack-notifier', '~> 1'
26
26
 
27
27
  s.add_development_dependency "rspec", "~> 2.13"
28
28
  s.add_development_dependency "fivemat", "~> 1.2"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: quandl_utility
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Blake Hilscher
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-07-16 00:00:00.000000000 Z
11
+ date: 2014-11-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -84,16 +84,16 @@ dependencies:
84
84
  name: slack-notifier
85
85
  requirement: !ruby/object:Gem::Requirement
86
86
  requirements:
87
- - - ">="
87
+ - - "~>"
88
88
  - !ruby/object:Gem::Version
89
- version: '0'
89
+ version: '1'
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: '0'
96
+ version: '1'
97
97
  - !ruby/object:Gem::Dependency
98
98
  name: rspec
99
99
  requirement: !ruby/object:Gem::Requirement
@@ -180,7 +180,7 @@ dependencies:
180
180
  version: '0'
181
181
  description: Tools for making our lives easier.
182
182
  email:
183
- - blake@hilscher.ca
183
+ - dev@quandl.com
184
184
  executables:
185
185
  - qutil
186
186
  extensions: []
@@ -211,7 +211,7 @@ files:
211
211
  - support/templates/project.rubocop.yml.erb
212
212
  - support/templates/quandl.rubocop.yml
213
213
  - tasks/utility.rake
214
- homepage: http://blake.hilscher.ca/
214
+ homepage: https://www.quandl.com
215
215
  licenses:
216
216
  - MIT
217
217
  metadata: {}