lita-glip 0.0.1 → 0.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7b5ad1ab8e2ee2211e91c806e42c3ba28425ce05
4
- data.tar.gz: 8fbadcaac6d7cd9b64735f3d654099d21d313569
3
+ metadata.gz: 52449e2326e1eb081708f6b262d275ef8c4ef150
4
+ data.tar.gz: c33de9c51f0b6c74d11082f0ebaadf709f45c4a5
5
5
  SHA512:
6
- metadata.gz: f822c89fb67841fd3df3d6d01b15d3b58080d667869ea1f5a0fd90819eb9a695e42fbe83f8e3c571daaa106f3e02fb0cccf570f01e490ea7b9699682b3cecbed
7
- data.tar.gz: fa3be31719f98fba57554df83ae9cc34ef938c988b345c7ecabee14191bfc12ac62b594480e4e21ecc67e89520c1ba554ede4f39e538dab91b1158f7fc00b422
6
+ metadata.gz: ddfc43174c812c66dca76acebd619b4f1866d05a6e8d87dfea9f620d488184735f2d216a95d23d6763c93730bf73118cadd305b179840b37315c850dddbecc4b
7
+ data.tar.gz: ee5b312e8911b402fcd00e2858cefd4f25209c664f4ca50ea1a9a8d3c2ff7a205df66915cbe446fa59394158194caac99f5b27d7b258fd5f587c5b8d7f44d09c
data/.codeclimate.yml ADDED
@@ -0,0 +1,16 @@
1
+ ---
2
+ languages:
3
+ Ruby: true
4
+ JavaScript: false
5
+ PHP: false
6
+ Python: false
7
+ engines:
8
+ rubocop:
9
+ enabled: true
10
+ ratings:
11
+ paths:
12
+ - "**.rb"
13
+ exclude_paths:
14
+ - docs/**/*
15
+ - scripts/**/*
16
+ - test/**/*
data/.gitignore ADDED
@@ -0,0 +1,19 @@
1
+ _*
2
+ *.gem
3
+ *.rbc
4
+ .bundle
5
+ .config
6
+ .yardoc
7
+ Gemfile.lock
8
+ InstalledFiles
9
+ _yardoc
10
+ coverage
11
+ doc/
12
+ lib/bundler/man
13
+ pkg
14
+ rdoc
15
+ spec/reports
16
+ test/tmp
17
+ test/version_tmp
18
+ tmp
19
+ lita_config.rb
data/.simplecov ADDED
@@ -0,0 +1,6 @@
1
+ require 'coveralls'
2
+
3
+ SimpleCov.formatter = Coveralls::SimpleCov::Formatter
4
+ SimpleCov.start do
5
+ add_filter "/test/"
6
+ end
data/.travis.yml ADDED
@@ -0,0 +1,20 @@
1
+ language: ruby
2
+ sudo: false
3
+ cache: bundler
4
+
5
+ rvm:
6
+ - 2.4.0
7
+ - 2.3.3
8
+ - 2.2.2
9
+
10
+ script: bundle exec rspec
11
+
12
+ before_install:
13
+ - gem update --system
14
+ - gem update bundler
15
+
16
+ services:
17
+ - redis-server
18
+
19
+ notifications:
20
+ email: false
data/CHANGELOG.md ADDED
@@ -0,0 +1,4 @@
1
+ CHANGELOG
2
+ ---------
3
+ - **2017-01-01**: 0.0.1
4
+ - Initial commit
data/Gemfile ADDED
@@ -0,0 +1,3 @@
1
+ source "https://rubygems.org"
2
+
3
+ gemspec
data/LICENSE.md ADDED
@@ -0,0 +1,22 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2016-2017 John Wang
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining
6
+ a copy of this software and associated documentation files (the
7
+ "Software"), to deal in the Software without restriction, including
8
+ without limitation the rights to use, copy, modify, merge, publish,
9
+ distribute, sublicense, and/or sell copies of the Software, and to
10
+ permit persons to whom the Software is furnished to do so, subject to
11
+ the following conditions:
12
+
13
+ The above copyright notice and this permission notice shall be
14
+ included in all copies or substantial portions of the Software.
15
+
16
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
19
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
20
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
21
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
22
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,123 @@
1
+ Lita Glip Adapter
2
+ =================
3
+
4
+ [![Gem Version][gem-version-svg]][gem-version-link]
5
+ [![Build Status][build-status-svg]][build-status-link]
6
+ [![Coverage Status][coverage-status-svg]][coverage-status-link]
7
+ [![Dependency Status][dependency-status-svg]][dependency-status-link]
8
+ [![Codacy Badge][codacy-svg]][codacy-link]
9
+ [![Code Climate][codeclimate-status-svg]][codeclimate-status-link]
10
+ [![Scrutinizer Code Quality][scrutinizer-status-svg]][scrutinizer-status-link]
11
+ [![Downloads][downloads-svg]][downloads-link]
12
+ [![Docs][docs-rubydoc-svg]][docs-rubydoc-link]
13
+ [![License][license-svg]][license-link]
14
+
15
+ `lita-glip` is an adapter for [Lita](https://www.lita.io/) that allows you to use the robot with [Glip](https://glip.com/).
16
+
17
+ ## Installation
18
+
19
+ Add `lita-glip` to your Lita instance's Gemfile:
20
+
21
+ ``` ruby
22
+ gem "lita-glip"
23
+ ```
24
+
25
+ ## Configuration
26
+
27
+ ### Direct
28
+
29
+ ```ruby
30
+ Lita.configure do |config|
31
+ config.robot.adapter = :glip
32
+
33
+ # Glip app info
34
+ config.adapters.glip.app_key = 'my_app_key'
35
+ config.adapters.glip.app_secret = 'my_app_secret'
36
+ config.adapters.glip.server_url = 'https://platform.devtest.ringcentral.com'
37
+ config.adapters.glip.username = '16505550100'
38
+ config.adapters.glip.extension = '101'
39
+ config.adapters.glip.password = 'my_password'
40
+ end
41
+ ```
42
+
43
+ ### Dotenv
44
+
45
+ Using `LitaDotenv` you can use the following:
46
+
47
+ ``` ruby
48
+ require 'lita_dotenv'
49
+
50
+ Lita.configure do |config|
51
+ config = LitaDotenv.new(config).config
52
+ end
53
+ ```
54
+
55
+ In your `.env` file:
56
+
57
+ ```
58
+ LITA_ROBOT_ADAPTER__TYPESYM=glip
59
+
60
+ LITA_ADAPTERS_GLIP_appKey=my_app_key
61
+ LITA_ADAPTERS_GLIP_appSecret=my_app_secret
62
+ LITA_ADAPTERS_GLIP_serverUrl=https://platform.devtest.ringcentral.com
63
+ LITA_ADAPTERS_GLIP_USERNAME=16505550100
64
+ LITA_ADAPTERS_GLIP_EXTENSION=101
65
+ LITA_ADAPTERS_GLIP_PASSWORD=my_password
66
+ ```
67
+
68
+ ## API documentation
69
+
70
+ The API documentation, useful for plugin authors, can be found for the latest gem release on [RubyDoc.info](http://www.rubydoc.info/gems/lita-glip).
71
+
72
+ ## To Do
73
+
74
+ 1. User address book lookup.
75
+
76
+ ## Change Log
77
+
78
+ See [CHANGELOG.md](CHANGELOG.md)
79
+
80
+ ## Links
81
+
82
+ Project Repo
83
+
84
+ * https://github.com/ringcentral-ruby/lita-glip
85
+
86
+ Lita
87
+
88
+ * https://www.lita.io/
89
+
90
+ ## Contributing
91
+
92
+ 1. Fork it ( http://github.com/ringcentral-ruby/lita-glip/fork )
93
+ 2. Create your feature branch (`git checkout -b my-new-feature`)
94
+ 3. Commit your changes (`git commit -am 'Add some feature'`)
95
+ 4. Push to the branch (`git push origin my-new-feature`)
96
+ 5. Create new Pull Request
97
+
98
+ ## License
99
+
100
+ Lita Glip Adapter is available under the MIT license. See [LICENSE.md](LICENSE.md) for details.
101
+
102
+ Lita Glip Adapter © 2016-2017 by John Wang
103
+
104
+ [gem-version-svg]: https://badge.fury.io/rb/lita-glip.svg
105
+ [gem-version-link]: http://badge.fury.io/rb/lita-glip
106
+ [downloads-svg]: http://ruby-gem-downloads-badge.herokuapp.com/lita-glip
107
+ [downloads-link]: https://rubygems.org/gems/lita-glip
108
+ [build-status-svg]: https://api.travis-ci.org/ringcentral-ruby/lita-glip.svg?branch=master
109
+ [build-status-link]: https://travis-ci.org/ringcentral-ruby/lita-glip
110
+ [coverage-status-svg]: https://coveralls.io/repos/ringcentral-ruby/lita-glip/badge.svg?branch=master
111
+ [coverage-status-link]: https://coveralls.io/r/ringcentral-ruby/lita-glip?branch=master
112
+ [dependency-status-svg]: https://gemnasium.com/ringcentral-ruby/lita-glip.svg
113
+ [dependency-status-link]: https://gemnasium.com/ringcentral-ruby/lita-glip
114
+ [codacy-svg]: https://api.codacy.com/project/badge/Grade/35abeb643e404062a980c2cb8f279865
115
+ [codacy-link]: https://www.codacy.com/app/ringcentral-ruby/lita-glip
116
+ [codeclimate-status-svg]: https://codeclimate.com/github/ringcentral-ruby/lita-glip/badges/gpa.svg
117
+ [codeclimate-status-link]: https://codeclimate.com/github/ringcentral-ruby/lita-glip
118
+ [scrutinizer-status-svg]: https://scrutinizer-ci.com/g/ringcentral-ruby/lita-glip/badges/quality-score.png?b=master
119
+ [scrutinizer-status-link]: https://scrutinizer-ci.com/g/ringcentral-ruby/lita-glip/?branch=master
120
+ [docs-rubydoc-svg]: https://img.shields.io/badge/docs-rubydoc-blue.svg
121
+ [docs-rubydoc-link]: http://www.rubydoc.info/gems/lita-glip/
122
+ [license-svg]: https://img.shields.io/badge/license-MIT-blue.svg
123
+ [license-link]: https://github.com/ringcentral-ruby/lita-glip/blob/master/LICENSE.md
data/Rakefile ADDED
@@ -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
data/lita-glip.gemspec ADDED
@@ -0,0 +1,30 @@
1
+ Gem::Specification.new do |spec|
2
+ spec.name = 'lita-glip'
3
+ spec.date = '2017-01-02'
4
+ spec.version = '0.0.2'
5
+ spec.authors = ['John Wang']
6
+ spec.email = ["johncwang@gmail.com"]
7
+ spec.description = %q{A Glip adapter for Lita.}
8
+ spec.summary = %q{A Glip adapter for the Lita chat robot.}
9
+ spec.homepage = 'https://github.com/ringcentral-ruby/lita-glip'
10
+ spec.license = 'MIT'
11
+ spec.metadata = { 'lita_plugin_type' => 'adapter' }
12
+
13
+ spec.files = `git ls-files`.split($/)
14
+ #spec.files = Dir['lib/**/**/*']
15
+ spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
16
+ spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
17
+ spec.require_paths = ['lib']
18
+
19
+ spec.add_runtime_dependency 'lita', '~> 4', '>= 4.4.3'
20
+ spec.add_runtime_dependency 'glip_sdk', '~> 0', '>= 0.0.3'
21
+ spec.add_runtime_dependency 'multi_json', '~> 1', '>= 1.12.1'
22
+
23
+ spec.add_development_dependency 'bundler', '~> 1.3'
24
+ spec.add_development_dependency 'pry-byebug', '~> 3', '>= 3.4.2'
25
+ spec.add_development_dependency 'rack-test', '~> 0', '>= 0.6.3'
26
+ spec.add_development_dependency 'rake', '~> 12'
27
+ spec.add_development_dependency 'rspec', '~> 3', '>= 3.0.0'
28
+ spec.add_development_dependency 'simplecov', '~> 0', '>= 0.9.2'
29
+ spec.add_development_dependency 'coveralls', '~> 0'
30
+ end
data/locales/en.yml ADDED
@@ -0,0 +1,4 @@
1
+ en:
2
+ lita:
3
+ adapters:
4
+ glip:
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lita-glip
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - John Wang
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-01-01 00:00:00.000000000 Z
11
+ date: 2017-01-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: lita
@@ -199,12 +199,23 @@ executables: []
199
199
  extensions: []
200
200
  extra_rdoc_files: []
201
201
  files:
202
+ - ".codeclimate.yml"
203
+ - ".gitignore"
204
+ - ".simplecov"
205
+ - ".travis.yml"
206
+ - CHANGELOG.md
207
+ - Gemfile
208
+ - LICENSE.md
209
+ - README.md
210
+ - Rakefile
202
211
  - lib/lita-glip.rb
203
212
  - lib/lita/adapters/glip.rb
204
213
  - lib/lita/adapters/glip/connector.rb
205
214
  - lib/lita/adapters/glip/message_handler.rb
206
215
  - lib/lita/adapters/glip/room_creator.rb
207
216
  - lib/lita/adapters/glip/user_creator.rb
217
+ - lita-glip.gemspec
218
+ - locales/en.yml
208
219
  homepage: https://github.com/ringcentral-ruby/lita-glip
209
220
  licenses:
210
221
  - MIT
@@ -226,7 +237,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
226
237
  version: '0'
227
238
  requirements: []
228
239
  rubyforge_project:
229
- rubygems_version: 2.5.2
240
+ rubygems_version: 2.6.8
230
241
  signing_key:
231
242
  specification_version: 4
232
243
  summary: A Glip adapter for the Lita chat robot.