s-3po 0.1.0 → 0.1.1

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: 3e1d759431fa3c4bc9f3f6a0a7a8b8663ca9a979
4
- data.tar.gz: 68df6f31ed06cb70c2020955b2cc1d2cf36de9f5
3
+ metadata.gz: afee73b5c45855b4388b24e856b14949d2610e9f
4
+ data.tar.gz: a89e09d0b8a7f4ff3b1317a2f2acc9277cb88d6e
5
5
  SHA512:
6
- metadata.gz: 3e4269f0094d557113cab59c653c2e78e1f9bcb7c072a69f37688b5e9161ea7ed44fe57cff92988da2bde318942ab931e5a5be2c90860ac005e370555419896b
7
- data.tar.gz: 2e0300dfe5c6a8ffc6ec6e837abe692082542531efdb75c8e3e62becbfb5d1d3edb3fc10a49ca410b31fd71ab7796230bd54fd4e53a9feaffd5e48d73f33c262
6
+ metadata.gz: 99868e8215ad11ec5b15fd5ada25b777d94efec8a55ed5831370b9cb19b0fec5e30ca5aeb066a02a536fc1df50f4af8905922a50f0838319e9fee4d6d88ffc4e
7
+ data.tar.gz: 90a62b8f876e46ec1fb52a71bf7617d57b193a07de524233ded804f5205ec4184ee6a10494d4e2b01060f3cf5babbfa8f0c068abd279878c102bfae13162fa07
data/README.md CHANGED
@@ -1,5 +1,7 @@
1
1
  # S-3PO
2
2
 
3
+ [![Gem Version](https://badge.fury.io/rb/s-3po.svg)](http://badge.fury.io/rb/s-3po) [![security](https://hakiri.io/github/kenjij/s-3po/master.svg)](https://hakiri.io/github/kenjij/s-3po/master) [![Code Climate](https://codeclimate.com/github/kenjij/s-3po/badges/gpa.svg)](https://codeclimate.com/github/kenjij/s-3po)
4
+
3
5
  A protocol droid made by Cybot Galactica for Slack.
4
6
 
5
7
  This gem parses, generates, and manupilates various Slack events and messages.
@@ -13,7 +15,7 @@ This gem parses, generates, and manupilates various Slack events and messages.
13
15
  If you're creating integrations or bots for Slack, this may come useful. Install:
14
16
 
15
17
  ```
16
- $ gem install subaru
18
+ $ gem install s-3po
17
19
  ```
18
20
 
19
21
  Then use:
@@ -39,7 +41,7 @@ json = S3PO.generate_message do |reply|
39
41
  reply.plain = "@channel: what's up, ya all?"
40
42
  end
41
43
  puts json
42
- # => "<!channel>: what's up, ya all?"
44
+ # => {"type":"message","channel":"CABC123","text":"<!channel>: what's up, ya all?","id":0}
43
45
  ```
44
46
 
45
47
  See [YARD Doc](http://www.rubydoc.info/github/kenjij/s-3po) for more info.
@@ -48,4 +50,4 @@ See [YARD Doc](http://www.rubydoc.info/github/kenjij/s-3po) for more info.
48
50
 
49
51
  - Provide feedback
50
52
  - Expect more updates
51
- - Random anniversary at May 4th
53
+ - Random anniversary on May 4th
data/lib/s-3po/events.rb CHANGED
@@ -45,7 +45,7 @@ module S3PO
45
45
 
46
46
  def channel=(string)
47
47
  fail 'Must be a String.' unless string.class == String
48
- fail 'Invalid channel' unless /C[0-9A-Z]+/ =~ string
48
+ fail 'Invalid channel' unless /[CD][0-9A-Z]+/ =~ string
49
49
  object[:channel] = string
50
50
  end
51
51
 
data/s-3po.gemspec CHANGED
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 's-3po'
3
- s.version = '0.1.0'
3
+ s.version = '0.1.1'
4
4
  s.authors = ['Ken J.']
5
5
  s.email = ['kenjij@gmail.com']
6
6
  s.description = %q{Slack message formatter gem}
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: s-3po
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ken J.
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-04-10 00:00:00.000000000 Z
11
+ date: 2015-04-14 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Slack message formatter gem
14
14
  email:
@@ -34,19 +34,18 @@ require_paths:
34
34
  - lib
35
35
  required_ruby_version: !ruby/object:Gem::Requirement
36
36
  requirements:
37
- - - '>='
37
+ - - ">="
38
38
  - !ruby/object:Gem::Version
39
39
  version: '0'
40
40
  required_rubygems_version: !ruby/object:Gem::Requirement
41
41
  requirements:
42
- - - '>='
42
+ - - ">="
43
43
  - !ruby/object:Gem::Version
44
44
  version: '0'
45
45
  requirements: []
46
46
  rubyforge_project:
47
- rubygems_version: 2.4.6
47
+ rubygems_version: 2.4.3
48
48
  signing_key:
49
49
  specification_version: 4
50
50
  summary: A Slack message "protocol droid®".
51
51
  test_files: []
52
- has_rdoc: