slack-ruby-bot-server 0.4.0 → 0.5.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: 1bd761a554a479830a8e142d3550c0ee9bf277dc
4
- data.tar.gz: c0cf2c2735e222f9e5818a02dc8766e0fa7e7e9f
3
+ metadata.gz: 405235dc495bea8024cf67229a77d93511c5b88e
4
+ data.tar.gz: 0034902639a9d5e9bcc9bffb6cf8b1c62c007873
5
5
  SHA512:
6
- metadata.gz: d33bd339c7532d61bedc270d34284ccd481780d8c6594d70e9a63802066888e9ae6023eb138ba5d38573ce5ce591ca33c92f28e8c43fe04e6ccf07c2d436952a
7
- data.tar.gz: 92c8bf07d7b922adc710d90855a381eb5a021c6e60aade96f6798d06be9e2dc97edae3bff1e645034c5989519289fac390834f728bfffb31cd0bc8f5948661cb
6
+ metadata.gz: 93bf915299dd2309ce6b2a817273f95483c1a4b37a3624cf843b22646890eff29fa0e26365baf8f9326a740d9e8e2302d87fbc5a92dc8cd953d0af02e1203e6d
7
+ data.tar.gz: d69d616b93a479aee8401cdc24dd790405ef48b21d8ae986bd1b01d3e2b5c1931747b7ed2b17fa7935da172e30b5257b7a7f39d0335ac0ccd45988659a652afb
@@ -1,5 +1,12 @@
1
1
  ### Changelog
2
2
 
3
+ #### 0.5.0 (2/9/2017)
4
+
5
+ * [#43](https://github.com/slack-ruby/slack-ruby-bot-server/pull/43): Fix: `cannot load kaminari/grape` - [@dblock](https://github.com/dblock).
6
+ * [#43](https://github.com/slack-ruby/slack-ruby-bot-server/pull/43): Fix: `undefined method `[]' for nil:NilClass` in APIs - [@dblock](https://github.com/dblock).
7
+ * [#28](https://github.com/slack-ruby/slack-ruby-bot-server/pull/28): Use slack-ruby-danger gem - [@dblock](https://github.com/dblock).
8
+ * [#31](https://github.com/slack-ruby/slack-ruby-bot-server/pull/31): Adds MONGODB_URI as environment variable for MongoDB - [@corprew](https://github.com/corprew).
9
+
3
10
  #### 0.4.0 (8/29/2016)
4
11
 
5
12
  * [#25](https://github.com/slack-ruby/slack-ruby-bot-server/pull/25): Added [danger](http://danger.systems), PR linting - [@dblock](https://github.com/dblock).
@@ -1,19 +1,19 @@
1
1
  # Contributing to SlackRubyBotServer
2
2
 
3
- This project is work of [many contributors](https://github.com/dblock/slack-ruby-bot-server/graphs/contributors).
3
+ This project is work of [many contributors](https://github.com/slack-ruby/slack-ruby-bot-server/graphs/contributors).
4
4
 
5
- You're encouraged to submit [pull requests](https://github.com/dblock/slack-ruby-bot-server/pulls), [propose features and discuss issues](https://github.com/dblock/slack-ruby-bot-server/issues).
5
+ You're encouraged to submit [pull requests](https://github.com/slack-ruby/slack-ruby-bot-server/pulls), [propose features and discuss issues](https://github.com/slack-ruby/slack-ruby-bot-server/issues).
6
6
 
7
7
  In the examples below, substitute your Github username for `contributor` in URLs.
8
8
 
9
9
  ## Fork the Project
10
10
 
11
- Fork the [project on Github](https://github.com/dblock/slack-ruby-bot-server) and check out your copy.
11
+ Fork the [project on Github](https://github.com/slack-ruby/slack-ruby-bot-server) and check out your copy.
12
12
 
13
13
  ```
14
14
  git clone https://github.com/contributor/slack-ruby-bot-server.git
15
15
  cd slack-ruby-bot-server
16
- git remote add upstream https://github.com/dblock/slack-ruby-bot-server.git
16
+ git remote add upstream https://github.com/slack-ruby/slack-ruby-bot-server.git
17
17
  ```
18
18
 
19
19
  ## Create a Topic Branch
@@ -102,7 +102,7 @@ git push origin my-feature-branch -f
102
102
  Update the [CHANGELOG](CHANGELOG.md) with the pull request number. A typical entry looks as follows.
103
103
 
104
104
  ```
105
- * [#123](https://github.com/dblock/slack-ruby-bot-server/pull/123): Reticulated splines - [@contributor](https://github.com/contributor).
105
+ * [#123](https://github.com/slack-ruby/slack-ruby-bot-server/pull/123): Reticulated splines - [@contributor](https://github.com/contributor).
106
106
  ```
107
107
 
108
108
  Amend your previous commit and force push the changes.
data/Dangerfile CHANGED
@@ -1 +1 @@
1
- # inherits from https://github.com/slack-ruby/danger
1
+ danger.import_dangerfile(gem: 'slack-ruby-danger')
data/Gemfile CHANGED
@@ -3,6 +3,7 @@ source 'https://rubygems.org'
3
3
  gemspec
4
4
 
5
5
  group :development, :test do
6
+ gem 'rack-server-pages'
6
7
  gem 'bundler'
7
8
  gem 'rake'
8
9
  gem 'rspec'
@@ -18,6 +19,9 @@ group :development, :test do
18
19
  gem 'database_cleaner'
19
20
  gem 'hyperclient'
20
21
  gem 'capybara'
21
- gem 'selenium-webdriver'
22
- gem 'danger', '~> 2.0'
22
+ gem 'selenium-webdriver', '~> 2.5'
23
+ end
24
+
25
+ group :test do
26
+ gem 'slack-ruby-danger', '~> 0.1.0', require: false
23
27
  end
data/README.md CHANGED
@@ -2,18 +2,18 @@ Slack Ruby Bot Server
2
2
  =====================
3
3
 
4
4
  [![Gem Version](https://badge.fury.io/rb/slack-ruby-bot-server.svg)](https://badge.fury.io/rb/slack-ruby-bot-server)
5
- [![Build Status](https://travis-ci.org/dblock/slack-ruby-bot-server.svg?branch=master)](https://travis-ci.org/dblock/slack-ruby-bot-server)
6
- [![Code Climate](https://codeclimate.com/github/dblock/slack-ruby-bot-server.svg)](https://codeclimate.com/github/dblock/slack-ruby-bot-server)
5
+ [![Build Status](https://travis-ci.org/slack-ruby/slack-ruby-bot-server.svg?branch=master)](https://travis-ci.org/slack-ruby/slack-ruby-bot-server)
6
+ [![Code Climate](https://codeclimate.com/github/slack-ruby/slack-ruby-bot-server.svg)](https://codeclimate.com/github/slack-ruby/slack-ruby-bot-server)
7
7
 
8
8
  A library that enables you to write a complete Slack bot service with Slack button integration, in Ruby. If you are not familiar with Slack bots or Slack API concepts, you might want to watch [this video](http://code.dblock.org/2016/03/11/your-first-slack-bot-service-video.html). A good demo of a service built on top of this is [missingkidsbot.org](http://missingkidsbot.org).
9
9
 
10
10
  ### What is this?
11
11
 
12
- A library that contains a [Grape](http://github.com/ruby-grape/grape) API serving a [Slack Ruby Bot](https://github.com/dblock/slack-ruby-bot) to multiple teams. This gem combines a web server, a RESTful API and multiple instances of [slack-ruby-bot](https://github.com/dblock/slack-ruby-bot). It integrates with the [Slack Platform API](https://medium.com/slack-developer-blog/launch-platform-114754258b91#.od3y71dyo). Your customers can use a Slack button to install the bot.
12
+ A library that contains a [Grape](http://github.com/ruby-grape/grape) API serving a [Slack Ruby Bot](https://github.com/slack-ruby/slack-ruby-bot) to multiple teams. This gem combines a web server, a RESTful API and multiple instances of [slack-ruby-bot](https://github.com/slack-ruby/slack-ruby-bot). It integrates with the [Slack Platform API](https://medium.com/slack-developer-blog/launch-platform-114754258b91#.od3y71dyo). Your customers can use a Slack button to install the bot.
13
13
 
14
14
  ### Stable Release
15
15
 
16
- You're reading the documentation for the **stable** release of slack-ruby-bot-server 0.4.0. See [UPGRADING](UPGRADING.md) when upgrading from an older version.
16
+ You're reading the documentation for the **stable** release of slack-ruby-bot-server, 0.5.0. See [UPGRADING](UPGRADING.md) when upgrading from an older version.
17
17
 
18
18
  ### Try Me
19
19
 
@@ -29,7 +29,7 @@ Once a bot is registered, you can invite to a channel with `/invite @slackbotser
29
29
 
30
30
  You can use the [sample application](sample_app) to bootstrap your project and start adding slack command handlers on top of this code.
31
31
 
32
- Install [MongoDB](https://www.mongodb.org/downloads), required to store teams. We would like your help with [supporting other databases](https://github.com/dblock/slack-ruby-bot-server/issues/12).
32
+ Install [MongoDB](https://www.mongodb.org/downloads), required to store teams. We would like your help with [supporting other databases](https://github.com/slack-ruby/slack-ruby-bot-server/issues/12).
33
33
 
34
34
  [Create a New Application](https://api.slack.com/applications/new) on Slack.
35
35
 
@@ -11,7 +11,7 @@ bundle install
11
11
  rake
12
12
  ```
13
13
 
14
- Check that the last build succeeded in [Travis CI](https://travis-ci.org/dblock/slack-ruby-bot-server) for all supported platforms.
14
+ Check that the last build succeeded in [Travis CI](https://travis-ci.org/slack-ruby/slack-ruby-bot-server) for all supported platforms.
15
15
 
16
16
  Increment the version, modify [lib/slack-ruby-bot-server/version.rb](lib/slack-ruby-bot-server/version.rb).
17
17
 
@@ -54,7 +54,7 @@ Make sure to create an `.instance` of the child class.
54
54
  MyApp.instance.prepare!
55
55
  ```
56
56
 
57
- See [#22](https://github.com/dblock/slack-ruby-bot-server/issues/22) for additional information.
57
+ See [#22](https://github.com/slack-ruby/slack-ruby-bot-server/issues/22) for additional information.
58
58
 
59
59
  ### Upgrading to >= 0.3.0
60
60
 
@@ -78,4 +78,4 @@ SlackRubyBotServer.configure do |config|
78
78
  end
79
79
  ```
80
80
 
81
- See [#18](https://github.com/dblock/slack-ruby-bot-server/issues/18) for more information.
81
+ See [#18](https://github.com/slack-ruby/slack-ruby-bot-server/issues/18) for more information.
data/app.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "Slack Bot Server",
3
3
  "description": "A Slack bot server.",
4
- "respository": "https://github.com/dblock/slack-ruby-bot-server",
4
+ "respository": "https://github.com/slack-ruby/slack-ruby-bot-server",
5
5
  "keywords": ["slack", "bots"],
6
6
  "addons": [
7
7
  "mongolab"
@@ -32,7 +32,9 @@ module SlackRubyBotServer
32
32
 
33
33
  def check_mongodb_provider!
34
34
  return unless ENV['RACK_ENV'] == 'production'
35
- raise "Missing ENV['MONGO_URL'], ENV['MONGOHQ_URI'] or ENV['MONGOLAB_URI']." unless ENV['MONGO_URL'] || ENV['MONGOHQ_URI'] || ENV['MONGOLAB_URI']
35
+ unless ENV['MONGO_URL'] || ENV['MONGOHQ_URI'] || ENV['MONGODB_URI'] || ENV['MONGOLAB_URI']
36
+ raise "Missing ENV['MONGO_URL'], ENV['MONGOHQ_URI'], ENV['MONGODB_URI'], or ENV['MONGOLAB_URI']."
37
+ end
36
38
  end
37
39
 
38
40
  def check_database!
@@ -6,6 +6,6 @@ BotServer #{SlackRubyBotServer::VERSION}
6
6
  https://twitter.com/dblockdotorg
7
7
 
8
8
  Free Service at http://slack-ruby-bot-server.herokuapp.com
9
- Open-Source at https://github.com/dblock/slack-ruby-bot-server
9
+ Open-Source at https://github.com/slack-ruby/slack-ruby-bot-server
10
10
  EOS
11
11
  end
@@ -1,3 +1,3 @@
1
1
  module SlackRubyBotServer
2
- VERSION = '0.4.0'.freeze
2
+ VERSION = '0.5.0'.freeze
3
3
  end
@@ -20,7 +20,7 @@
20
20
  <p id='active_teams_count'>&nbsp;</p>
21
21
  <p>
22
22
  <small>
23
- made by <a href="https://twitter.com/dblockdotorg" target="_blank">@dblockdotorg</a>, <a href="https://github.com/dblock/slack-ruby-bot-server" target="_blank">fork me on github</a>
23
+ made by <a href="https://twitter.com/dblockdotorg" target="_blank">@dblockdotorg</a>, <a href="https://github.com/slack-ruby/slack-ruby-bot-server" target="_blank">fork me on github</a>
24
24
  </small>
25
25
  </p>
26
26
  </body>
@@ -21,7 +21,7 @@ test:
21
21
  production:
22
22
  clients:
23
23
  default:
24
- uri: <%= ENV['MONGO_URL'] || ENV['MONGOHQ_URI'] || ENV['MONGOLAB_URI'] %>
24
+ uri: <%= ENV['MONGO_URL'] || ENV['MONGOHQ_URI'] || ENV['MONGOLAB_URI'] || ENV['MONGODB_URI'] %>
25
25
  options:
26
26
  raise_not_found_error: false
27
27
  use_utc: true
@@ -10,7 +10,7 @@ Gem::Specification.new do |spec|
10
10
  spec.email = ['dblock@dblock.org']
11
11
 
12
12
  spec.summary = 'A Grape API serving a Slack bot to multiple teams.'
13
- spec.homepage = 'https://github.com/dblock/slack-ruby-bot-server'
13
+ spec.homepage = 'https://github.com/slack-ruby/slack-ruby-bot-server'
14
14
 
15
15
  spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(spec)/}) }
16
16
  spec.require_paths = ['lib']
@@ -21,9 +21,11 @@ Gem::Specification.new do |spec|
21
21
  spec.add_dependency 'unicorn'
22
22
  spec.add_dependency 'grape'
23
23
  spec.add_dependency 'grape-swagger'
24
+ spec.add_dependency 'roar', '~> 1.0.4'
24
25
  spec.add_dependency 'grape-roar'
25
26
  spec.add_dependency 'rack-cors'
26
27
  spec.add_dependency 'kaminari-mongoid'
28
+ spec.add_dependency 'kaminari-grape'
27
29
  spec.add_dependency 'mongoid-scroll'
28
30
  spec.add_dependency 'rack-rewrite'
29
31
  spec.add_dependency 'rack-server-pages'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: slack-ruby-bot-server
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Daniel Doubrovkine
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-08-29 00:00:00.000000000 Z
11
+ date: 2017-02-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: slack-ruby-bot
@@ -94,6 +94,20 @@ dependencies:
94
94
  - - ">="
95
95
  - !ruby/object:Gem::Version
96
96
  version: '0'
97
+ - !ruby/object:Gem::Dependency
98
+ name: roar
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - "~>"
102
+ - !ruby/object:Gem::Version
103
+ version: 1.0.4
104
+ type: :runtime
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - "~>"
109
+ - !ruby/object:Gem::Version
110
+ version: 1.0.4
97
111
  - !ruby/object:Gem::Dependency
98
112
  name: grape-roar
99
113
  requirement: !ruby/object:Gem::Requirement
@@ -136,6 +150,20 @@ dependencies:
136
150
  - - ">="
137
151
  - !ruby/object:Gem::Version
138
152
  version: '0'
153
+ - !ruby/object:Gem::Dependency
154
+ name: kaminari-grape
155
+ requirement: !ruby/object:Gem::Requirement
156
+ requirements:
157
+ - - ">="
158
+ - !ruby/object:Gem::Version
159
+ version: '0'
160
+ type: :runtime
161
+ prerelease: false
162
+ version_requirements: !ruby/object:Gem::Requirement
163
+ requirements:
164
+ - - ">="
165
+ - !ruby/object:Gem::Version
166
+ version: '0'
139
167
  - !ruby/object:Gem::Dependency
140
168
  name: mongoid-scroll
141
169
  requirement: !ruby/object:Gem::Requirement
@@ -279,7 +307,7 @@ files:
279
307
  - script/console
280
308
  - slack-ruby-bot-server.gemspec
281
309
  - tasks/db.rake
282
- homepage: https://github.com/dblock/slack-ruby-bot-server
310
+ homepage: https://github.com/slack-ruby/slack-ruby-bot-server
283
311
  licenses: []
284
312
  metadata: {}
285
313
  post_install_message: