kubot 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 867bb750221d35cbcb1b80da73163faf796be4d164e9e77fe63284d8bfce1278
4
+ data.tar.gz: 7b26ffc635508fa505fc674184951901279e8864f0b33da0813dad7b8c47e6ee
5
+ SHA512:
6
+ metadata.gz: 708fed7f266a5017f48a6ff7e4222ced5ae8c00df6b3157b8a0621bcebfa0b71cc8811e8cc1ab4e4a82a70a94a5488195ff9e62d5022fe69123640e0bf47a20f
7
+ data.tar.gz: 10d7ea792d30fbe75eefd512281387d2f8231f8b2b4799c04ad732f66ead36e1574498a7355ad5ab473b91c95ffa57b225819794ce7f1a7e7748fb6531a9bece
@@ -0,0 +1,11 @@
1
+ /.bundle/
2
+ /.yardoc
3
+ /_yardoc/
4
+ /coverage/
5
+ /doc/
6
+ /pkg/
7
+ /spec/reports/
8
+ /tmp/
9
+
10
+ # rspec failure tracking
11
+ .rspec_status
data/.rspec ADDED
@@ -0,0 +1,3 @@
1
+ --format documentation
2
+ --color
3
+ --require spec_helper
@@ -0,0 +1,5 @@
1
+ sudo: false
2
+ language: ruby
3
+ rvm:
4
+ - 2.5.0
5
+ before_install: gem install bundler -v 1.16.1
data/Gemfile ADDED
@@ -0,0 +1,6 @@
1
+ source "https://rubygems.org"
2
+
3
+ git_source(:github) {|repo_name| "https://github.com/#{repo_name}" }
4
+
5
+ # Specify your gem's dependencies in kubot.gemspec
6
+ gemspec
@@ -0,0 +1,96 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ kubot (0.1.0)
5
+ celluloid-io (~> 0.17)
6
+ clamp (~> 1.2)
7
+ slack-ruby-bot (~> 0.11)
8
+
9
+ GEM
10
+ remote: https://rubygems.org/
11
+ specs:
12
+ activesupport (5.2.0)
13
+ concurrent-ruby (~> 1.0, >= 1.0.2)
14
+ i18n (>= 0.7, < 2)
15
+ minitest (~> 5.1)
16
+ tzinfo (~> 1.1)
17
+ celluloid (0.17.3)
18
+ celluloid-essentials
19
+ celluloid-extras
20
+ celluloid-fsm
21
+ celluloid-pool
22
+ celluloid-supervision
23
+ timers (>= 4.1.1)
24
+ celluloid-essentials (0.20.5)
25
+ timers (>= 4.1.1)
26
+ celluloid-extras (0.20.5)
27
+ timers (>= 4.1.1)
28
+ celluloid-fsm (0.20.5)
29
+ timers (>= 4.1.1)
30
+ celluloid-io (0.17.3)
31
+ celluloid (>= 0.17.2)
32
+ nio4r (>= 1.1)
33
+ timers (>= 4.1.1)
34
+ celluloid-pool (0.20.5)
35
+ timers (>= 4.1.1)
36
+ celluloid-supervision (0.20.6)
37
+ timers (>= 4.1.1)
38
+ clamp (1.2.1)
39
+ concurrent-ruby (1.0.5)
40
+ diff-lcs (1.3)
41
+ faraday (0.14.0)
42
+ multipart-post (>= 1.2, < 3)
43
+ faraday_middleware (0.12.2)
44
+ faraday (>= 0.7.4, < 1.0)
45
+ gli (2.17.1)
46
+ hashie (3.5.7)
47
+ hitimes (1.2.6)
48
+ i18n (1.0.0)
49
+ concurrent-ruby (~> 1.0)
50
+ minitest (5.11.3)
51
+ multipart-post (2.0.0)
52
+ nio4r (2.3.0)
53
+ rake (10.5.0)
54
+ rspec (3.7.0)
55
+ rspec-core (~> 3.7.0)
56
+ rspec-expectations (~> 3.7.0)
57
+ rspec-mocks (~> 3.7.0)
58
+ rspec-core (3.7.1)
59
+ rspec-support (~> 3.7.0)
60
+ rspec-expectations (3.7.0)
61
+ diff-lcs (>= 1.2.0, < 2.0)
62
+ rspec-support (~> 3.7.0)
63
+ rspec-mocks (3.7.0)
64
+ diff-lcs (>= 1.2.0, < 2.0)
65
+ rspec-support (~> 3.7.0)
66
+ rspec-support (3.7.1)
67
+ slack-ruby-bot (0.11.0)
68
+ hashie
69
+ slack-ruby-client (>= 0.6.0)
70
+ slack-ruby-client (0.11.1)
71
+ activesupport
72
+ faraday (>= 0.9)
73
+ faraday_middleware
74
+ gli
75
+ hashie
76
+ websocket-driver
77
+ thread_safe (0.3.6)
78
+ timers (4.1.2)
79
+ hitimes
80
+ tzinfo (1.2.5)
81
+ thread_safe (~> 0.1)
82
+ websocket-driver (0.7.0)
83
+ websocket-extensions (>= 0.1.0)
84
+ websocket-extensions (0.1.3)
85
+
86
+ PLATFORMS
87
+ ruby
88
+
89
+ DEPENDENCIES
90
+ bundler (~> 1.16)
91
+ kubot!
92
+ rake (~> 10.0)
93
+ rspec (~> 3.0)
94
+
95
+ BUNDLED WITH
96
+ 1.16.1
@@ -0,0 +1,35 @@
1
+ # Kubot
2
+
3
+ Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/kubot`. To experiment with that code, run `bin/console` for an interactive prompt.
4
+
5
+ TODO: Delete this and the text above, and describe your gem
6
+
7
+ ## Installation
8
+
9
+ Add this line to your application's Gemfile:
10
+
11
+ ```ruby
12
+ gem 'kubot'
13
+ ```
14
+
15
+ And then execute:
16
+
17
+ $ bundle
18
+
19
+ Or install it yourself as:
20
+
21
+ $ gem install kubot
22
+
23
+ ## Usage
24
+
25
+ TODO: Write usage instructions here
26
+
27
+ ## Development
28
+
29
+ After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
30
+
31
+ To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
32
+
33
+ ## Contributing
34
+
35
+ Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/kubot.
@@ -0,0 +1,6 @@
1
+ require "bundler/gem_tasks"
2
+ require "rspec/core/rake_task"
3
+
4
+ RSpec::Core::RakeTask.new(:spec)
5
+
6
+ task :default => :spec
@@ -0,0 +1,14 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require "bundler/setup"
4
+ require "kubot"
5
+
6
+ # You can add fixtures and/or initialization code here to make experimenting
7
+ # with your gem easier. You can also use a different console, if you like.
8
+
9
+ # (If you use this, don't forget to add pry to your Gemfile!)
10
+ # require "pry"
11
+ # Pry.start
12
+
13
+ require "irb"
14
+ IRB.start(__FILE__)
@@ -0,0 +1,7 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ $: << File.join(File.dirname(__FILE__), "../lib")
4
+
5
+ require 'kubot'
6
+
7
+ Kubot::Main.run
@@ -0,0 +1,8 @@
1
+ #!/usr/bin/env bash
2
+ set -euo pipefail
3
+ IFS=$'\n\t'
4
+ set -vx
5
+
6
+ bundle install
7
+
8
+ # Do any other automated setup that you need to do here
@@ -0,0 +1,30 @@
1
+
2
+ lib = File.expand_path('../lib', __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require 'kubot/version'
5
+
6
+ Gem::Specification.new do |spec|
7
+ spec.name = 'kubot'
8
+ spec.version = Kubot::VERSION
9
+ spec.authors = ['Louis Bellet']
10
+ spec.email = ['lbellet@heliostech.fr']
11
+
12
+ spec.summary = %q{Rubykube Slack bot}
13
+ spec.description = %q{Our rubykube slack bot facilitate our work}
14
+ spec.homepage = 'https://www.rubykube.io'
15
+
16
+ spec.files = `git ls-files -z`.split("\x0").reject do |f|
17
+ f.match(%r{^(test|spec|features)/})
18
+ end
19
+ spec.bindir = 'bin'
20
+ spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
21
+ spec.require_paths = ['lib']
22
+
23
+ spec.add_dependency 'clamp', '~> 1.2'
24
+ spec.add_dependency 'slack-ruby-bot', '~> 0.11'
25
+ spec.add_dependency 'celluloid-io', '~> 0.17'
26
+
27
+ spec.add_development_dependency 'bundler', '~> 1.16'
28
+ spec.add_development_dependency 'rake', '~> 10.0'
29
+ spec.add_development_dependency 'rspec', '~> 3.0'
30
+ end
@@ -0,0 +1,11 @@
1
+
2
+ require 'clamp'
3
+ require 'slack-ruby-bot'
4
+
5
+ require 'kubot/version'
6
+ require 'kubot/bot'
7
+ require 'kubot/main'
8
+
9
+ module Kubot
10
+ # Your code goes here...
11
+ end
@@ -0,0 +1,7 @@
1
+ module Kubot
2
+ class Bot < SlackRubyBot::Bot
3
+ command 'ping' do |client, data, match|
4
+ client.say(text: 'pong', channel: data.channel)
5
+ end
6
+ end
7
+ end
@@ -0,0 +1,16 @@
1
+ module Kubot
2
+ class Main < Clamp::Command
3
+
4
+ option "--loud", :flag, "say it loud"
5
+ option ["-n", "--iterations"], "N", "say it N times", :default => 1 do |s|
6
+ Integer(s)
7
+ end
8
+
9
+ parameter "WORDS ...", "the thing to say", :attribute_name => :words
10
+
11
+ def execute
12
+ Kubot::Bot.run
13
+ end
14
+
15
+ end
16
+ end
@@ -0,0 +1,3 @@
1
+ module Kubot
2
+ VERSION = "0.1.0"
3
+ end
metadata ADDED
@@ -0,0 +1,145 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: kubot
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - Louis Bellet
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2018-04-13 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: clamp
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '1.2'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '1.2'
27
+ - !ruby/object:Gem::Dependency
28
+ name: slack-ruby-bot
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '0.11'
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '0.11'
41
+ - !ruby/object:Gem::Dependency
42
+ name: celluloid-io
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '0.17'
48
+ type: :runtime
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '0.17'
55
+ - !ruby/object:Gem::Dependency
56
+ name: bundler
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - "~>"
60
+ - !ruby/object:Gem::Version
61
+ version: '1.16'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - "~>"
67
+ - !ruby/object:Gem::Version
68
+ version: '1.16'
69
+ - !ruby/object:Gem::Dependency
70
+ name: rake
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - "~>"
74
+ - !ruby/object:Gem::Version
75
+ version: '10.0'
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - "~>"
81
+ - !ruby/object:Gem::Version
82
+ version: '10.0'
83
+ - !ruby/object:Gem::Dependency
84
+ name: rspec
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - "~>"
88
+ - !ruby/object:Gem::Version
89
+ version: '3.0'
90
+ type: :development
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - "~>"
95
+ - !ruby/object:Gem::Version
96
+ version: '3.0'
97
+ description: Our rubykube slack bot facilitate our work
98
+ email:
99
+ - lbellet@heliostech.fr
100
+ executables:
101
+ - console
102
+ - kubot
103
+ - setup
104
+ extensions: []
105
+ extra_rdoc_files: []
106
+ files:
107
+ - ".gitignore"
108
+ - ".rspec"
109
+ - ".travis.yml"
110
+ - Gemfile
111
+ - Gemfile.lock
112
+ - README.md
113
+ - Rakefile
114
+ - bin/console
115
+ - bin/kubot
116
+ - bin/setup
117
+ - kubot.gemspec
118
+ - lib/kubot.rb
119
+ - lib/kubot/bot.rb
120
+ - lib/kubot/main.rb
121
+ - lib/kubot/version.rb
122
+ homepage: https://www.rubykube.io
123
+ licenses: []
124
+ metadata: {}
125
+ post_install_message:
126
+ rdoc_options: []
127
+ require_paths:
128
+ - lib
129
+ required_ruby_version: !ruby/object:Gem::Requirement
130
+ requirements:
131
+ - - ">="
132
+ - !ruby/object:Gem::Version
133
+ version: '0'
134
+ required_rubygems_version: !ruby/object:Gem::Requirement
135
+ requirements:
136
+ - - ">="
137
+ - !ruby/object:Gem::Version
138
+ version: '0'
139
+ requirements: []
140
+ rubyforge_project:
141
+ rubygems_version: 2.7.3
142
+ signing_key:
143
+ specification_version: 4
144
+ summary: Rubykube Slack bot
145
+ test_files: []