talking_stick 1.0.0 → 2.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.codeclimate.yml +40 -0
- data/.csslintrc +2 -0
- data/.eslintignore +1 -0
- data/.eslintrc +213 -0
- data/.rubocop.yml +1156 -0
- data/Changes.md +8 -0
- data/Gemfile +1 -0
- data/README.md +7 -6
- data/app/assets/javascripts/talking_stick/talking_stick/partner.js +8 -4
- data/app/assets/javascripts/talking_stick/talking_stick/rails_signaling.js +2 -2
- data/app/assets/javascripts/talking_stick/talking_stick.js.erb +19 -9
- data/app/controllers/talking_stick/application_controller.rb +1 -2
- data/app/controllers/talking_stick/participants_controller.rb +3 -4
- data/app/controllers/talking_stick/rooms_controller.rb +6 -5
- data/app/models/talking_stick/application_record.rb +5 -0
- data/app/models/talking_stick/participant.rb +2 -2
- data/app/models/talking_stick/room.rb +2 -2
- data/app/models/talking_stick/signal.rb +1 -1
- data/app/views/talking_stick/participants/_form.html.erb +1 -1
- data/app/views/talking_stick/participants/edit.html.erb +1 -1
- data/app/views/talking_stick/participants/index.html.erb +2 -2
- data/app/views/talking_stick/participants/new.html.erb +1 -1
- data/app/views/talking_stick/participants/show.html.erb +2 -2
- data/app/views/talking_stick/rooms/_form.html.erb +2 -2
- data/app/views/talking_stick/rooms/index.html.erb +4 -4
- data/app/views/talking_stick/rooms/show.html.erb +24 -22
- data/config/routes.rb +3 -3
- data/db/migrate/20150510181337_create_talking_stick_rooms.rb +1 -1
- data/db/migrate/20150510182258_create_talking_stick_participants.rb +1 -1
- data/db/migrate/20150511005922_create_talking_stick_signals.rb +1 -1
- data/db/migrate/20150722200822_add_slug_to_talking_stick_rooms.rb +1 -1
- data/lib/talking_stick/engine.rb +8 -2
- data/lib/talking_stick/version.rb +1 -1
- data/lib/talking_stick.rb +4 -0
- data/spec/dummy/config/application.rb +0 -4
- data/talking_stick.gemspec +3 -2
- data/vendor/assets/javascripts/talking_stick/adapter.js +2591 -181
- metadata +37 -12
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4a9c13eb2e678dc65790a457d0750f9b3ddc9d9d
|
4
|
+
data.tar.gz: b8637d50b1067a1d9d475cc8f48e5bec5fbbaf93
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8652982f777c4f8b90e0028d2536815b41d3c7f81349cdda5b586eecaa9ff49fed7c43a6cb9b147949a80e3b700172b2a7602b475042c90cfb82ba3438b14894
|
7
|
+
data.tar.gz: f30ffe8bd46ec8426f0bcae2642bbe96d093c24314a18674bfd29ef079c7454a582f99e795dbc1c30b597ebd9fa56e2b072170c3be05d856e2b5f8eabbc5ce69
|
data/.codeclimate.yml
ADDED
@@ -0,0 +1,40 @@
|
|
1
|
+
---
|
2
|
+
engines:
|
3
|
+
brakeman:
|
4
|
+
enabled: true
|
5
|
+
csslint:
|
6
|
+
enabled: true
|
7
|
+
duplication:
|
8
|
+
enabled: true
|
9
|
+
config:
|
10
|
+
languages:
|
11
|
+
- ruby
|
12
|
+
- javascript
|
13
|
+
- python
|
14
|
+
- php
|
15
|
+
eslint:
|
16
|
+
enabled: true
|
17
|
+
fixme:
|
18
|
+
enabled: true
|
19
|
+
rubocop:
|
20
|
+
enabled: true
|
21
|
+
ratings:
|
22
|
+
paths:
|
23
|
+
- Gemfile.lock
|
24
|
+
- "**.erb"
|
25
|
+
- "**.haml"
|
26
|
+
- "**.rb"
|
27
|
+
- "**.rhtml"
|
28
|
+
- "**.slim"
|
29
|
+
- "**.css"
|
30
|
+
- "**.inc"
|
31
|
+
- "**.js"
|
32
|
+
- "**.jsx"
|
33
|
+
- "**.module"
|
34
|
+
- "**.php"
|
35
|
+
- "**.py"
|
36
|
+
exclude_paths:
|
37
|
+
- config/
|
38
|
+
- db/
|
39
|
+
- spec/
|
40
|
+
- vendor/
|
data/.csslintrc
ADDED
data/.eslintignore
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
**/*{.,-}min.js
|
data/.eslintrc
ADDED
@@ -0,0 +1,213 @@
|
|
1
|
+
ecmaFeatures:
|
2
|
+
modules: true
|
3
|
+
jsx: true
|
4
|
+
|
5
|
+
env:
|
6
|
+
amd: true
|
7
|
+
browser: true
|
8
|
+
es6: true
|
9
|
+
jquery: true
|
10
|
+
node: true
|
11
|
+
|
12
|
+
# http://eslint.org/docs/rules/
|
13
|
+
rules:
|
14
|
+
# Possible Errors
|
15
|
+
comma-dangle: [2, never]
|
16
|
+
no-cond-assign: 2
|
17
|
+
no-console: 0
|
18
|
+
no-constant-condition: 2
|
19
|
+
no-control-regex: 2
|
20
|
+
no-debugger: 2
|
21
|
+
no-dupe-args: 2
|
22
|
+
no-dupe-keys: 2
|
23
|
+
no-duplicate-case: 2
|
24
|
+
no-empty: 2
|
25
|
+
no-empty-character-class: 2
|
26
|
+
no-ex-assign: 2
|
27
|
+
no-extra-boolean-cast: 2
|
28
|
+
no-extra-parens: 0
|
29
|
+
no-extra-semi: 2
|
30
|
+
no-func-assign: 2
|
31
|
+
no-inner-declarations: [2, functions]
|
32
|
+
no-invalid-regexp: 2
|
33
|
+
no-irregular-whitespace: 2
|
34
|
+
no-negated-in-lhs: 2
|
35
|
+
no-obj-calls: 2
|
36
|
+
no-regex-spaces: 2
|
37
|
+
no-sparse-arrays: 2
|
38
|
+
no-unexpected-multiline: 2
|
39
|
+
no-unreachable: 2
|
40
|
+
use-isnan: 2
|
41
|
+
valid-jsdoc: 0
|
42
|
+
valid-typeof: 2
|
43
|
+
|
44
|
+
# Best Practices
|
45
|
+
accessor-pairs: 2
|
46
|
+
block-scoped-var: 0
|
47
|
+
complexity: [2, 6]
|
48
|
+
consistent-return: 0
|
49
|
+
curly: 0
|
50
|
+
default-case: 0
|
51
|
+
dot-location: 0
|
52
|
+
dot-notation: 0
|
53
|
+
eqeqeq: 2
|
54
|
+
guard-for-in: 2
|
55
|
+
no-alert: 2
|
56
|
+
no-caller: 2
|
57
|
+
no-case-declarations: 2
|
58
|
+
no-div-regex: 2
|
59
|
+
no-else-return: 0
|
60
|
+
no-empty-label: 2
|
61
|
+
no-empty-pattern: 2
|
62
|
+
no-eq-null: 2
|
63
|
+
no-eval: 2
|
64
|
+
no-extend-native: 2
|
65
|
+
no-extra-bind: 2
|
66
|
+
no-fallthrough: 2
|
67
|
+
no-floating-decimal: 0
|
68
|
+
no-implicit-coercion: 0
|
69
|
+
no-implied-eval: 2
|
70
|
+
no-invalid-this: 0
|
71
|
+
no-iterator: 2
|
72
|
+
no-labels: 0
|
73
|
+
no-lone-blocks: 2
|
74
|
+
no-loop-func: 2
|
75
|
+
no-magic-number: 0
|
76
|
+
no-multi-spaces: 0
|
77
|
+
no-multi-str: 0
|
78
|
+
no-native-reassign: 2
|
79
|
+
no-new-func: 2
|
80
|
+
no-new-wrappers: 2
|
81
|
+
no-new: 2
|
82
|
+
no-octal-escape: 2
|
83
|
+
no-octal: 2
|
84
|
+
no-proto: 2
|
85
|
+
no-redeclare: 2
|
86
|
+
no-return-assign: 2
|
87
|
+
no-script-url: 2
|
88
|
+
no-self-compare: 2
|
89
|
+
no-sequences: 0
|
90
|
+
no-throw-literal: 0
|
91
|
+
no-unused-expressions: 2
|
92
|
+
no-useless-call: 2
|
93
|
+
no-useless-concat: 2
|
94
|
+
no-void: 2
|
95
|
+
no-warning-comments: 0
|
96
|
+
no-with: 2
|
97
|
+
radix: 2
|
98
|
+
vars-on-top: 0
|
99
|
+
wrap-iife: 2
|
100
|
+
yoda: 0
|
101
|
+
|
102
|
+
# Strict
|
103
|
+
strict: 0
|
104
|
+
|
105
|
+
# Variables
|
106
|
+
init-declarations: 0
|
107
|
+
no-catch-shadow: 2
|
108
|
+
no-delete-var: 2
|
109
|
+
no-label-var: 2
|
110
|
+
no-shadow-restricted-names: 2
|
111
|
+
no-shadow: 0
|
112
|
+
no-undef-init: 2
|
113
|
+
no-undef: 0
|
114
|
+
no-undefined: 0
|
115
|
+
no-unused-vars: 0
|
116
|
+
no-use-before-define: 0
|
117
|
+
|
118
|
+
# Node.js and CommonJS
|
119
|
+
callback-return: 2
|
120
|
+
global-require: 2
|
121
|
+
handle-callback-err: 2
|
122
|
+
no-mixed-requires: 0
|
123
|
+
no-new-require: 0
|
124
|
+
no-path-concat: 2
|
125
|
+
no-process-exit: 2
|
126
|
+
no-restricted-modules: 0
|
127
|
+
no-sync: 0
|
128
|
+
|
129
|
+
# Stylistic Issues
|
130
|
+
array-bracket-spacing: 0
|
131
|
+
block-spacing: 0
|
132
|
+
brace-style: 0
|
133
|
+
camelcase: 0
|
134
|
+
comma-spacing: 0
|
135
|
+
comma-style: 0
|
136
|
+
computed-property-spacing: 0
|
137
|
+
consistent-this: 0
|
138
|
+
eol-last: 0
|
139
|
+
func-names: 0
|
140
|
+
func-style: 0
|
141
|
+
id-length: 0
|
142
|
+
id-match: 0
|
143
|
+
indent: 0
|
144
|
+
jsx-quotes: 0
|
145
|
+
key-spacing: 0
|
146
|
+
linebreak-style: 0
|
147
|
+
lines-around-comment: 0
|
148
|
+
max-depth: 0
|
149
|
+
max-len: 0
|
150
|
+
max-nested-callbacks: 0
|
151
|
+
max-params: 0
|
152
|
+
max-statements: [2, 30]
|
153
|
+
new-cap: 0
|
154
|
+
new-parens: 0
|
155
|
+
newline-after-var: 0
|
156
|
+
no-array-constructor: 0
|
157
|
+
no-bitwise: 0
|
158
|
+
no-continue: 0
|
159
|
+
no-inline-comments: 0
|
160
|
+
no-lonely-if: 0
|
161
|
+
no-mixed-spaces-and-tabs: 0
|
162
|
+
no-multiple-empty-lines: 0
|
163
|
+
no-negated-condition: 0
|
164
|
+
no-nested-ternary: 0
|
165
|
+
no-new-object: 0
|
166
|
+
no-plusplus: 0
|
167
|
+
no-restricted-syntax: 0
|
168
|
+
no-spaced-func: 0
|
169
|
+
no-ternary: 0
|
170
|
+
no-trailing-spaces: 0
|
171
|
+
no-underscore-dangle: 0
|
172
|
+
no-unneeded-ternary: 0
|
173
|
+
object-curly-spacing: 0
|
174
|
+
one-var: 0
|
175
|
+
operator-assignment: 0
|
176
|
+
operator-linebreak: 0
|
177
|
+
padded-blocks: 0
|
178
|
+
quote-props: 0
|
179
|
+
quotes: 0
|
180
|
+
require-jsdoc: 0
|
181
|
+
semi-spacing: 0
|
182
|
+
semi: 0
|
183
|
+
sort-vars: 0
|
184
|
+
space-after-keywords: 0
|
185
|
+
space-before-blocks: 0
|
186
|
+
space-before-function-paren: 0
|
187
|
+
space-before-keywords: 0
|
188
|
+
space-in-parens: 0
|
189
|
+
space-infix-ops: 0
|
190
|
+
space-return-throw-case: 0
|
191
|
+
space-unary-ops: 0
|
192
|
+
spaced-comment: 0
|
193
|
+
wrap-regex: 0
|
194
|
+
|
195
|
+
# ECMAScript 6
|
196
|
+
arrow-body-style: 0
|
197
|
+
arrow-parens: 0
|
198
|
+
arrow-spacing: 0
|
199
|
+
constructor-super: 0
|
200
|
+
generator-star-spacing: 0
|
201
|
+
no-arrow-condition: 0
|
202
|
+
no-class-assign: 0
|
203
|
+
no-const-assign: 0
|
204
|
+
no-dupe-class-members: 0
|
205
|
+
no-this-before-super: 0
|
206
|
+
no-var: 0
|
207
|
+
object-shorthand: 0
|
208
|
+
prefer-arrow-callback: 0
|
209
|
+
prefer-const: 0
|
210
|
+
prefer-reflect: 0
|
211
|
+
prefer-spread: 0
|
212
|
+
prefer-template: 0
|
213
|
+
require-yield: 0
|