edi 0.3.5 → 0.3.6

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: e58b16b135e152636c1cac5801c1202469b77775
4
- data.tar.gz: ebb7220b6e05bb58c838fa677e33f6a05e41316b
3
+ metadata.gz: 509fdbebab1bf240454565b4bb1a3835210e060d
4
+ data.tar.gz: 1daef08eb3939ab71bf48ed5c526643a284e3670
5
5
  SHA512:
6
- metadata.gz: 811b359111df50176f17dbfdb47a65e50ff57387df17dbfa8c6b9181c4c18c339cee953d782bb551c4a48139caae5ce4e91119b8d1139ef7c2b3f6b46f76a766
7
- data.tar.gz: 973f43e01e447e95117d1b214acb8ddb215693b6f0762fb10575f379ecdf17460e17ba7177e0a827287fb9cc96f5e60a5db1cb4be750f4aedde6031925628311
6
+ metadata.gz: 54b1cb9fde916c3378d58f94ba03af1239a14541b910389c802a7c2e3e018f833c7a9398151baeb2156e29881c99a2eb09f71af534881be7c9b0f10f447cebd7
7
+ data.tar.gz: 2410c5a787d83bdff9b8765f6a2f95a46b9bab1783c457ec87b70e0084e732909d4ae4d85deb6e71827061cfb11c9566e923754d1e803a1ecbc4b627e00724aa
@@ -1,3 +1,3 @@
1
1
  module EDI
2
- VERSION = "0.3.5"
2
+ VERSION = "0.3.6"
3
3
  end
@@ -0,0 +1,2 @@
1
+ $: << File.expand_path(".")
2
+ require 'config/environment'
@@ -1,4 +1,4 @@
1
- class Server < EDI::Server
1
+ class Core < EDI::Core
2
2
  # Use `register_services` to enable services in your EDI Bot. Available built-in services are:
3
3
  # :dice, :eightball, :fact, :giphy, :i_heart_quotes
4
4
  # You can make your own services with `edi generate service my_service`
@@ -1,5 +1,5 @@
1
1
  require 'bundler/setup'
2
- Bundler.require(:default, ENV["RACK_ENV"].to_sym)
2
+ Bundler.require(:default)
3
3
  EDI.configure do |config|
4
4
  config.root = File.expand_path "./"
5
5
  # Your bot's name, not required for anything, but you can use it to have your bot speak it's name
@@ -8,22 +8,22 @@ EDI.configure do |config|
8
8
  # Default response is what EDI will say in response to a message that doesn't have a registered service.
9
9
  # If you configure this to be an array of strings, a random one will be selected.
10
10
  # config.default_response = "What is this, I don't even"
11
-
11
+
12
12
  # Hello Message, returned when browsing to / on your bot's host
13
13
  # config.hello_message = "Hello, I'm #{config.bot_name}"
14
-
14
+
15
15
  # Message returned to slack if an unconfigured service is invoked
16
16
  # config.unfit_environment_response = "I'm really sorrt, but that service needs to be configured"
17
-
17
+
18
18
  # Message returned to slack if a third party api fails
19
19
  # config.third_party_api_failure_response = "Most unfortunately, that service is not working right now."
20
-
20
+
21
21
  # Standard Error Response sent back to slack if anything else goes wrong
22
22
  # config.standard_error_response = "I'm sorry, something went wrong."
23
23
 
24
24
  # Add additional autoload directories to autoload_paths
25
25
  # config.autoload_paths += "bot/models"
26
-
26
+
27
27
  # Default channel to post to using the post_to_slack method
28
28
  # config.default_channel = "#general"
29
29
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: edi
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.5
4
+ version: 0.3.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - DVG
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-03-22 00:00:00.000000000 Z
11
+ date: 2015-03-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -390,9 +390,9 @@ files:
390
390
  - spec/support/shared_contexts/server.rb
391
391
  - spec/support/shared_contexts/service.rb
392
392
  - templates/project/Gemfile
393
- - templates/project/bot/server.rb
393
+ - templates/project/boot.rb
394
+ - templates/project/bot/core.rb
394
395
  - templates/project/bot/services/.gitkeep
395
- - templates/project/config.ru
396
396
  - templates/project/config/.gitkeep
397
397
  - templates/project/config/environment.rb
398
398
  - templates/project/config/initializers/.gitkeep
@@ -1,2 +0,0 @@
1
- require File.join File.dirname(__FILE__), "config/environment"
2
- run Server