cinch-hangouts 1.1.2 → 1.1.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: d59472f61e3eb012d61ac319e212dd3f2efc1bfb
4
- data.tar.gz: 423e18cda5f5dc8e2557844af72449000055d57a
2
+ !binary "U0hBMQ==":
3
+ metadata.gz: b9307315bf54657cfcbaaa7368e70cfa0dcb5d5b
4
+ data.tar.gz: c6a0ffd50efc73263265057ffa2c380de6647691
5
5
  SHA512:
6
- metadata.gz: f5a1378fce4ab7bf4c9da05605d33091461f017910fcc57a97986a4a7d8c344155fb1f87377ec4980c0e5aa9fb6485262dd118cd072472232ff9dea3bdac6482
7
- data.tar.gz: 41b3614c4d71c23ab7de801e608afc80304dbfafecc6fd89bb26afa47fb34e68f7d276433cbc410bae6d003ea8a67e12b89b1bef7d2b2bdccfecc9181b8ca96b
6
+ metadata.gz: 1c9e8ab49f266fdbcd0141e4158e1faf332c22fde7af2d6cdca1241d9480dc98feb3f5e93af4052f05c34336c718af9153b824362f595c9fe4abb12213eb312e
7
+ data.tar.gz: 39c26902cb9d1ac2139f8ab741fb94a3e6203209c00ed7462124cdce66088cf035c2ac32bf9f234a75762819e47bfbea351dcfb4a5a557624a9cf68934137424
@@ -13,7 +13,7 @@ module Cinch::Plugins
13
13
 
14
14
  # This is the regex that captures hangout links
15
15
  # The regex will need to be updated if the url scheme changes in the future
16
- HANGOUTS_REGEX = %r((?:_|call)/([a-z0-9]{10,40})(?:\?|$))
16
+ HANGOUTS_REGEX = %r((?:_|call)/([a-zA-Z0-9_]{10,40})(?:\?|$))
17
17
 
18
18
  attr_accessor :storage
19
19
 
@@ -3,7 +3,7 @@ module Cinch
3
3
  module Plugins
4
4
  # Versioning Info
5
5
  class Hangouts
6
- VERSION = '1.1.2'
6
+ VERSION = '1.1.3'
7
7
  end
8
8
  end
9
9
  end
@@ -27,6 +27,16 @@ describe Cinch::Plugins::Hangouts do
27
27
  expect(reply).to match(/it was last linked \d seconds? ago/)
28
28
  end
29
29
 
30
+ it 'captures the the new link and stores it in @storage' do
31
+ msg = make_message(@bot, "https://hangouts.google.com/call/KqOHTbdRWNPen5pQJ5zAAAEE",
32
+ { channel: '#foo' })
33
+ get_replies(msg)
34
+ sleep 2
35
+ reply = get_replies(make_message(@bot, '!hangouts')).last.text
36
+ expect(reply).to include('test started a hangout at')
37
+ expect(reply).to match(/it was last linked \d seconds? ago/)
38
+ end
39
+
30
40
  it 'captures even if it has trailing params' do
31
41
  msg = make_message(@bot, Hangout.url(random_hangout_id + '?hl=en'),
32
42
  { channel: '#foo' })
@@ -134,7 +144,7 @@ describe Cinch::Plugins::Hangouts do
134
144
  end
135
145
 
136
146
  def random_hangout_id(len = 27)
137
- chars = ('a'..'z').to_a + ('0'..'9').to_a
147
+ chars = ('a'..'z').to_a + ('0'..'9').to_a + ('A'..'Z').to_a + ['_']
138
148
  string = ''
139
149
  len.times { string << chars[rand(chars.length)] }
140
150
  string
metadata CHANGED
@@ -1,151 +1,151 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cinch-hangouts
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.2
4
+ version: 1.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brian Haberer
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-05-03 00:00:00.000000000 Z
11
+ date: 2017-10-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - "~>"
17
+ - - ~>
18
18
  - !ruby/object:Gem::Version
19
19
  version: '10'
20
20
  type: :development
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: '10'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rspec
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - "~>"
31
+ - - ~>
32
32
  - !ruby/object:Gem::Version
33
33
  version: '3'
34
34
  type: :development
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: '3'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: cinch-test
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - "~>"
45
+ - - ~>
46
46
  - !ruby/object:Gem::Version
47
47
  version: '0.1'
48
- - - ">="
48
+ - - ! '>='
49
49
  - !ruby/object:Gem::Version
50
50
  version: 0.1.1
51
51
  type: :development
52
52
  prerelease: false
53
53
  version_requirements: !ruby/object:Gem::Requirement
54
54
  requirements:
55
- - - "~>"
55
+ - - ~>
56
56
  - !ruby/object:Gem::Version
57
57
  version: '0.1'
58
- - - ">="
58
+ - - ! '>='
59
59
  - !ruby/object:Gem::Version
60
60
  version: 0.1.1
61
61
  - !ruby/object:Gem::Dependency
62
62
  name: codeclimate-test-reporter
63
63
  requirement: !ruby/object:Gem::Requirement
64
64
  requirements:
65
- - - "~>"
65
+ - - ~>
66
66
  - !ruby/object:Gem::Version
67
67
  version: '0.4'
68
68
  type: :development
69
69
  prerelease: false
70
70
  version_requirements: !ruby/object:Gem::Requirement
71
71
  requirements:
72
- - - "~>"
72
+ - - ~>
73
73
  - !ruby/object:Gem::Version
74
74
  version: '0.4'
75
75
  - !ruby/object:Gem::Dependency
76
76
  name: cinch
77
77
  requirement: !ruby/object:Gem::Requirement
78
78
  requirements:
79
- - - "~>"
79
+ - - ~>
80
80
  - !ruby/object:Gem::Version
81
81
  version: '2.0'
82
82
  type: :runtime
83
83
  prerelease: false
84
84
  version_requirements: !ruby/object:Gem::Requirement
85
85
  requirements:
86
- - - "~>"
86
+ - - ~>
87
87
  - !ruby/object:Gem::Version
88
88
  version: '2.0'
89
89
  - !ruby/object:Gem::Dependency
90
90
  name: cinch-cooldown
91
91
  requirement: !ruby/object:Gem::Requirement
92
92
  requirements:
93
- - - "~>"
93
+ - - ~>
94
94
  - !ruby/object:Gem::Version
95
95
  version: 1.1.7
96
96
  type: :runtime
97
97
  prerelease: false
98
98
  version_requirements: !ruby/object:Gem::Requirement
99
99
  requirements:
100
- - - "~>"
100
+ - - ~>
101
101
  - !ruby/object:Gem::Version
102
102
  version: 1.1.7
103
103
  - !ruby/object:Gem::Dependency
104
104
  name: cinch-storage
105
105
  requirement: !ruby/object:Gem::Requirement
106
106
  requirements:
107
- - - "~>"
107
+ - - ~>
108
108
  - !ruby/object:Gem::Version
109
109
  version: '1.2'
110
110
  type: :runtime
111
111
  prerelease: false
112
112
  version_requirements: !ruby/object:Gem::Requirement
113
113
  requirements:
114
- - - "~>"
114
+ - - ~>
115
115
  - !ruby/object:Gem::Version
116
116
  version: '1.2'
117
117
  - !ruby/object:Gem::Dependency
118
118
  name: cinch-toolbox
119
119
  requirement: !ruby/object:Gem::Requirement
120
120
  requirements:
121
- - - "~>"
121
+ - - ~>
122
122
  - !ruby/object:Gem::Version
123
123
  version: '1.1'
124
124
  type: :runtime
125
125
  prerelease: false
126
126
  version_requirements: !ruby/object:Gem::Requirement
127
127
  requirements:
128
- - - "~>"
128
+ - - ~>
129
129
  - !ruby/object:Gem::Version
130
130
  version: '1.1'
131
131
  - !ruby/object:Gem::Dependency
132
132
  name: time-lord
133
133
  requirement: !ruby/object:Gem::Requirement
134
134
  requirements:
135
- - - "~>"
135
+ - - ~>
136
136
  - !ruby/object:Gem::Version
137
137
  version: '1.0'
138
- - - ">="
138
+ - - ! '>='
139
139
  - !ruby/object:Gem::Version
140
140
  version: 1.0.1
141
141
  type: :runtime
142
142
  prerelease: false
143
143
  version_requirements: !ruby/object:Gem::Requirement
144
144
  requirements:
145
- - - "~>"
145
+ - - ~>
146
146
  - !ruby/object:Gem::Version
147
147
  version: '1.0'
148
- - - ">="
148
+ - - ! '>='
149
149
  - !ruby/object:Gem::Version
150
150
  version: 1.0.1
151
151
  description: Cinch Plugin to track any Google Hangouts that are linked into the channel
@@ -155,8 +155,8 @@ executables: []
155
155
  extensions: []
156
156
  extra_rdoc_files: []
157
157
  files:
158
- - ".gitignore"
159
- - ".travis.yml"
158
+ - .gitignore
159
+ - .travis.yml
160
160
  - Gemfile
161
161
  - LICENSE.txt
162
162
  - README.md
@@ -179,17 +179,17 @@ require_paths:
179
179
  - lib
180
180
  required_ruby_version: !ruby/object:Gem::Requirement
181
181
  requirements:
182
- - - ">="
182
+ - - ! '>='
183
183
  - !ruby/object:Gem::Version
184
184
  version: '0'
185
185
  required_rubygems_version: !ruby/object:Gem::Requirement
186
186
  requirements:
187
- - - ">="
187
+ - - ! '>='
188
188
  - !ruby/object:Gem::Version
189
189
  version: '0'
190
190
  requirements: []
191
191
  rubyforge_project:
192
- rubygems_version: 2.4.8
192
+ rubygems_version: 2.2.2
193
193
  signing_key:
194
194
  specification_version: 4
195
195
  summary: Cinch Plugin for racking Google Hangouts