cinch-wit 0.0.2 → 0.0.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
- SHA1:
3
- metadata.gz: 9a5d036a45a13c65e3ba708278928f08eb85538e
4
- data.tar.gz: ac5176281745c4a26e30de74b4ab5bf34d1fd296
2
+ SHA256:
3
+ metadata.gz: 02f1760cffbe672d79de0381e062151956e46e4b9cef48fc5357c410dc24f248
4
+ data.tar.gz: 5deb6a05ad6dac6676f91edddf0dbff787316e6900a0b5217ae56392027d2e08
5
5
  SHA512:
6
- metadata.gz: 9adc57ead35fbd1cd04f2ad5a1a4c36e23989c7fd027880979ec81ab4ba5387d7d703f9ce9da5bd37c2f506efe7d6c7ac24531382ce4dccb7a53aefc74cac171
7
- data.tar.gz: 4340a8450704d06beed45f618330a3942c15a05ed59dff430f5b909f7b57f74cc8f3c311f30ce92ba018f2f3b3ac7402457831f24834f34cb7a16d1f97f394b3
6
+ metadata.gz: 1b80b7f8212513f0054857ebfddf98713d64f5c31ea76a81bd8cab8ffaea7dfc87c9ba37cb3c1e5f47a0fa8ff93b9d6c696451abe43b9d6caf693bb546f7f8fb
7
+ data.tar.gz: 2d9f84053721d0390768b9aaa33122a4de4c3540f890ed1c79601ba0dbc7b3b4875974ae7a4d5597b6ea7377e5d6d12e2bfbf7b98c02287a0f6e9faac06a5f9f
data/CHANGES.md CHANGED
@@ -1,6 +1,17 @@
1
1
  Cinch Wit Plugin Changes
2
2
  ========================
3
3
 
4
+ ## v0.0.3 - *2021-05-25*
5
+
6
+ - Raised Bundler dev dependency to >= 2.2.10 for security fixes
7
+ - https://github.com/advisories/GHSA-fp4w-jxhp-m23p
8
+ - https://github.com/advisories/GHSA-g98m-96g9-wfjq
9
+
10
+ ## v0.0.2 - *2013-11-08*
11
+
12
+ - Fixed typo for `Cinch::Wit::VERSION` constant
13
+ - Fixed documented `require` paths in README
14
+
4
15
  ## v0.0.1 - *2013-11-08*
5
16
 
6
17
  - First version.
data/cinch-wit.gemspec CHANGED
@@ -4,22 +4,22 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
4
  require 'cinch/wit/version'
5
5
 
6
6
  Gem::Specification.new do |spec|
7
- spec.name = 'cinch-wit'
8
- spec.version = Cinch::Wit::VERSION
9
- spec.authors = ['Justin Workman']
10
- spec.email = ['xtagon@gmail.com']
11
- spec.summary = "A Cinch plugin for the Wit API"
12
- spec.description = "A Cinch plugin to use Wit's natural language processing in your IRC bot"
13
- spec.license = 'MIT'
7
+ spec.name = 'cinch-wit'
8
+ spec.version = Cinch::Wit::VERSION
9
+ spec.authors = ['Justin Workman']
10
+ spec.email = ['xtagon@gmail.com']
11
+ spec.summary = "A Cinch plugin for the Wit API"
12
+ spec.description = "A Cinch plugin to use Wit's natural language processing in your IRC bot"
13
+ spec.license = 'MIT'
14
14
 
15
- spec.files = `git ls-files`.split($/)
16
- spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
17
- spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
18
- spec.require_paths = ['lib']
15
+ spec.files = `git ls-files`.split($/)
16
+ spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
17
+ spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
18
+ spec.require_paths = ['lib']
19
19
 
20
- spec.add_runtime_dependency 'cinch'
21
- spec.add_runtime_dependency 'wit'
20
+ spec.add_runtime_dependency 'cinch'
21
+ spec.add_runtime_dependency 'wit'
22
22
 
23
- spec.add_development_dependency 'bundler', '~> 1.3'
24
- spec.add_development_dependency 'rake'
23
+ spec.add_development_dependency 'bundler', '>= 2.2.10'
24
+ spec.add_development_dependency 'rake'
25
25
  end
data/lib/cinch/wit.rb CHANGED
@@ -1,31 +1,31 @@
1
1
  module Cinch
2
- module Plugins
3
- class Wit
4
- include Cinch::Plugin
2
+ module Plugins
3
+ class Wit
4
+ include Cinch::Plugin
5
5
 
6
- require 'wit'
6
+ require 'wit'
7
7
 
8
- # Match when the bot's name is mentioned at the START.
9
- # e.g. "Bot, how are you?"
10
- match lambda { |msg| /\A\s*#{msg.bot.nick}[:,](.+)/i }, use_prefix: false
8
+ # Match when the bot's name is mentioned at the START.
9
+ # e.g. "Bot, how are you?"
10
+ match lambda { |msg| /\A\s*#{msg.bot.nick}[:,](.+)/i }, use_prefix: false
11
11
 
12
- # Match when the bot's name is mentioned at the END.
13
- # e.g. "Hello, Bot."
14
- match lambda { |msg| /(.+),\s+#{msg.bot.nick}[.?!\s]*\s*\Z/i }, use_prefix: false
12
+ # Match when the bot's name is mentioned at the END.
13
+ # e.g. "Hello, Bot."
14
+ match lambda { |msg| /(.+),\s+#{msg.bot.nick}[.?!\s]*\s*\Z/i }, use_prefix: false
15
15
 
16
- # Send a message to the Wit API and dispatch an event with the outcome.
17
- def execute(msg, message)
18
- wit_response = wit_client.message(message.strip)
19
- outcome = wit_response['outcome']
20
- debug outcome.to_s
21
- msg.bot.handlers.dispatch :intent, msg, outcome
22
- end
16
+ # Send a message to the Wit API and dispatch an event with the outcome.
17
+ def execute(msg, message)
18
+ wit_response = wit_client.message(message.strip)
19
+ outcome = wit_response['outcome']
20
+ debug outcome.to_s
21
+ msg.bot.handlers.dispatch :intent, msg, outcome
22
+ end
23
23
 
24
- private
24
+ private
25
25
 
26
- def wit_client
27
- @wit_client ||= ::Wit::Client.new(config[:access_token])
28
- end
29
- end
30
- end
26
+ def wit_client
27
+ @wit_client ||= ::Wit::Client.new(config[:access_token])
28
+ end
29
+ end
30
+ end
31
31
  end
@@ -1,5 +1,5 @@
1
1
  module Cinch
2
- module Wit
3
- VERSION = '0.0.2'
4
- end
2
+ module Wit
3
+ VERSION = '0.0.3'
4
+ end
5
5
  end
metadata CHANGED
@@ -1,69 +1,69 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cinch-wit
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Justin Workman
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-11-09 00:00:00.000000000 Z
11
+ date: 2021-05-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: cinch
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - '>='
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
19
  version: '0'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - '>='
24
+ - - ">="
25
25
  - !ruby/object:Gem::Version
26
26
  version: '0'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: wit
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - '>='
31
+ - - ">="
32
32
  - !ruby/object:Gem::Version
33
33
  version: '0'
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - '>='
38
+ - - ">="
39
39
  - !ruby/object:Gem::Version
40
40
  version: '0'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: bundler
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - ~>
45
+ - - ">="
46
46
  - !ruby/object:Gem::Version
47
- version: '1.3'
47
+ version: 2.2.10
48
48
  type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - ~>
52
+ - - ">="
53
53
  - !ruby/object:Gem::Version
54
- version: '1.3'
54
+ version: 2.2.10
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: rake
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - '>='
59
+ - - ">="
60
60
  - !ruby/object:Gem::Version
61
61
  version: '0'
62
62
  type: :development
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
- - - '>='
66
+ - - ">="
67
67
  - !ruby/object:Gem::Version
68
68
  version: '0'
69
69
  description: A Cinch plugin to use Wit's natural language processing in your IRC bot
@@ -73,8 +73,8 @@ executables: []
73
73
  extensions: []
74
74
  extra_rdoc_files: []
75
75
  files:
76
- - .gitignore
77
- - .rspec
76
+ - ".gitignore"
77
+ - ".rspec"
78
78
  - CHANGES.md
79
79
  - Gemfile
80
80
  - LICENSE.txt
@@ -93,19 +93,17 @@ require_paths:
93
93
  - lib
94
94
  required_ruby_version: !ruby/object:Gem::Requirement
95
95
  requirements:
96
- - - '>='
96
+ - - ">="
97
97
  - !ruby/object:Gem::Version
98
98
  version: '0'
99
99
  required_rubygems_version: !ruby/object:Gem::Requirement
100
100
  requirements:
101
- - - '>='
101
+ - - ">="
102
102
  - !ruby/object:Gem::Version
103
103
  version: '0'
104
104
  requirements: []
105
- rubyforge_project:
106
- rubygems_version: 2.0.3
105
+ rubygems_version: 3.0.3
107
106
  signing_key:
108
107
  specification_version: 4
109
108
  summary: A Cinch plugin for the Wit API
110
109
  test_files: []
111
- has_rdoc: