edi 0.2.2 → 0.2.3

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: 770557f8e555a3998e5176b8aecd551218488038
4
- data.tar.gz: ae2a0a2d6986484b123a3cb9e72a7b116768cbb2
3
+ metadata.gz: ecd3dd31e032bf701c0ebb2286f741cfb7564543
4
+ data.tar.gz: 23fa94814aa472f717dee1a7c70212a08cb3de97
5
5
  SHA512:
6
- metadata.gz: 36f78b22b10a9426805bcd55ef89078b3b92bfbee2d874f42a9ceda78c973865863ae75cf7ae4355c34f85317180039478463af8c62c241cd43147a8e8d17a37
7
- data.tar.gz: 097b87540e4d5e76562e9b1bc44e6e25e82be58eb6154c1cede4a1392acaf4c216ef73c485d9784c1f73063e6d5656ef750a6e4a796378539104ac3a70ecac40
6
+ metadata.gz: 18ce005e3db14d775ee4f70b7132b4e9d0e4116a2211a4731d8aee275f3022a1d89c78c1cf2fdb20716182033e7b2a8364909c9465d1341f9674ec53d08a41f9
7
+ data.tar.gz: 0c30fab5038c3311267f052e237f4f15ef8195fec12698ec692d685c0767792b60a894327e167f3da866de5f4bb50ee282bf74af913c05e703ef7dd2e1ae5991
data/README.md CHANGED
@@ -1,11 +1,7 @@
1
1
  # EDI [![Build Status](https://travis-ci.org/DVG/EDI.svg?branch=master)](https://travis-ci.org/DVG/EDI)
2
2
 
3
- ## Warning, these instructions are not true yet, but they will be!
4
-
5
3
  ## Installation
6
4
 
7
- Or install it yourself as:
8
-
9
5
  $ gem install edi
10
6
 
11
7
  ## Usage
@@ -110,57 +106,33 @@ class Joke < EDI::Service
110
106
  end
111
107
  ```
112
108
 
113
- ## Jobs
114
-
115
- Jobs are just Services that occur at a regular interval or specific time instead of in response to a message.
109
+ ## Ship List
116
110
 
117
- They can be used to poll your CI status and let the Team know if the build is broken, or tell a joke once in awhile, or inform the team of the weather before everyone drives in.
111
+ When these things are done, we'll be ready for 1.0
118
112
 
119
- ```ruby
120
- require 'travis'
121
- class CIStatus < EDI::Job
122
- every "1m" :check_ci
123
- channel "#general"
124
-
125
- def check_ci
126
- edi = Travis::Repository.find('DVG/EDI')
127
- if edi.last_build.failed?
128
- post_to_slack(message: "Oh noes, the build is broken!")
129
- end
130
- end
131
- end
132
- ```
113
+ - [x] Finish Porting The Services from the original bot to the framework
114
+ - [x] Ability for edi to Post Back into the Slack Chatroom
115
+ - [ ] Jobs and Scheduling
116
+ - [ ] Add Test Framework to the Project Generator
117
+ - [x] Service Generator
118
+ - [x] Configure All The Things
119
+ - [x] Boot Process for the Generated App
133
120
 
134
- In this example EDI is going to check the CI status of the project, and post a message to the general channel if it fails.
121
+ ## Upcoming Features
135
122
 
136
- Unlike Services, Jobs have to opt-in to posting to the chatroom with the `post` method. Jobs that run frequently may not always make a post.
123
+ This stuff isn't true yet, think of this section as a scratchpad for designs to be.
137
124
 
138
- EDI Schedule is in-process and in-memory. It will not persist in cron if EDI shuts down. You can use the `enable_keepalive` configuration option to have EDI try and stay awake on Heroku
125
+ ### Messages
139
126
 
140
- ### Configuration
127
+ You can make special classes that model special messages you'd like EDI to send into slack. These have all the functionality of Slack's Message Attachments for making richly formatted messages.
141
128
 
142
- The following config values are available for Jobs:
129
+ ```ruby
130
+ class CiMessage < EDI::Message
131
+ channel "#general":w
143
132
 
144
- ```
145
- EDI.configure do |config|
146
- config.slack_incoming_webhook_url # Required, the Incoming Webhook for your slack chatroom
147
- config.job_default_channel # Defaults to #general, but you can specify a different Default Channel. This will be used if you don't specify a channel in the job
148
- config.enable_keepalive # If you are on heroku, this will attempt to keep your dyno alive.
149
133
  end
150
134
  ```
151
135
 
152
- ## Ship List
153
-
154
- When these things are done, we'll be ready for 1.0
155
-
156
- - [x] Finish Porting The Services from the original bot to the framework
157
- - [ ] Ability for edi to Post Back into the Slack Chatroom
158
- - [ ] EDI::Schedule
159
- - [ ] Add Test Framework to the Project Generator
160
- - [x] Service Generator
161
- - [x] Configure All The Things
162
- - [x] Boot Process for the Generated App
163
-
164
136
  ## Contributing
165
137
 
166
138
  1. Fork it ( https://github.com/DVG/EDI/fork )
@@ -19,7 +19,7 @@ private
19
19
  end
20
20
 
21
21
  def roll(sides)
22
- Random.rand(sides)
22
+ Random.rand(sides+1)
23
23
  end
24
24
 
25
25
  end
data/lib/edi/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module EDI
2
- VERSION = "0.2.2"
2
+ VERSION = "0.2.3"
3
3
  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.2.2
4
+ version: 0.2.3
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-17 00:00:00.000000000 Z
11
+ date: 2015-03-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler