volt-notification 0.1.0 → 0.1.1
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 +4 -4
- data/.idea/workspace.xml +154 -11
- data/app/notification/controllers/main_controller.rb +5 -4
- data/lib/volt/notification/version.rb +1 -1
- data/volt-notification.gemspec +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 64c60387e73f11861dc964d3b1540c9ab73eef31
|
4
|
+
data.tar.gz: 34bb665e662833b8b089d5a46f9c6174def04a4a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f8b4de9ad0b035b5b09fc670f4db2e6cb70c7f7b9746ca6337b0808a126bb0519f992ed5ef888d84a1a32e5d28fb9b36aef3fac9471c05e406ffb77be340fde6
|
7
|
+
data.tar.gz: 0930dfe42325e018143f70a212f1b79b030577da295ff6fe6b86714adbd033554335a2fb24b3547d07220ada0be4af92fe4b4e5040e2d836da26024be4860008
|
data/.idea/workspace.xml
CHANGED
@@ -2,8 +2,7 @@
|
|
2
2
|
<project version="4">
|
3
3
|
<component name="ChangeListManager">
|
4
4
|
<list default="true" id="94356a28-2fdb-4764-939d-b02f5ae1b450" name="Default" comment="">
|
5
|
-
<change type="MODIFICATION" beforePath="$PROJECT_DIR$/
|
6
|
-
<change type="MODIFICATION" beforePath="$PROJECT_DIR$/app/notification/controllers/main_controller.rb" afterPath="$PROJECT_DIR$/app/notification/controllers/main_controller.rb" />
|
5
|
+
<change type="MODIFICATION" beforePath="$PROJECT_DIR$/volt-notification.gemspec" afterPath="$PROJECT_DIR$/volt-notification.gemspec" />
|
7
6
|
</list>
|
8
7
|
<ignored path="volt-notification.iws" />
|
9
8
|
<ignored path=".idea/workspace.xml" />
|
@@ -44,11 +43,11 @@
|
|
44
43
|
</provider>
|
45
44
|
</entry>
|
46
45
|
</file>
|
47
|
-
<file leaf-file-name="main_controller.rb" pinned="false" current-in-tab="
|
46
|
+
<file leaf-file-name="main_controller.rb" pinned="false" current-in-tab="false">
|
48
47
|
<entry file="file://$PROJECT_DIR$/app/notification/controllers/main_controller.rb">
|
49
48
|
<provider selected="true" editor-type-id="text-editor">
|
50
|
-
<state vertical-scroll-proportion="0.
|
51
|
-
<caret line="
|
49
|
+
<state vertical-scroll-proportion="0.0">
|
50
|
+
<caret line="5" column="32" selection-start-line="5" selection-start-column="11" selection-end-line="5" selection-end-column="32" />
|
52
51
|
<folding />
|
53
52
|
</state>
|
54
53
|
</provider>
|
@@ -74,6 +73,36 @@
|
|
74
73
|
</provider>
|
75
74
|
</entry>
|
76
75
|
</file>
|
76
|
+
<file leaf-file-name="volt-notification.gemspec" pinned="false" current-in-tab="false">
|
77
|
+
<entry file="file://$PROJECT_DIR$/volt-notification.gemspec">
|
78
|
+
<provider selected="true" editor-type-id="text-editor">
|
79
|
+
<state vertical-scroll-proportion="0.0">
|
80
|
+
<caret line="20" column="56" selection-start-line="20" selection-start-column="56" selection-end-line="20" selection-end-column="56" />
|
81
|
+
<folding />
|
82
|
+
</state>
|
83
|
+
</provider>
|
84
|
+
</entry>
|
85
|
+
</file>
|
86
|
+
<file leaf-file-name="notification.rb" pinned="false" current-in-tab="false">
|
87
|
+
<entry file="file://$PROJECT_DIR$/lib/volt/notification.rb">
|
88
|
+
<provider selected="true" editor-type-id="text-editor">
|
89
|
+
<state vertical-scroll-proportion="0.0">
|
90
|
+
<caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
|
91
|
+
<folding />
|
92
|
+
</state>
|
93
|
+
</provider>
|
94
|
+
</entry>
|
95
|
+
</file>
|
96
|
+
<file leaf-file-name="version.rb" pinned="false" current-in-tab="true">
|
97
|
+
<entry file="file://$PROJECT_DIR$/lib/volt/notification/version.rb">
|
98
|
+
<provider selected="true" editor-type-id="text-editor">
|
99
|
+
<state vertical-scroll-proportion="0.031380754">
|
100
|
+
<caret line="2" column="20" selection-start-line="2" selection-start-column="20" selection-end-line="2" selection-end-column="20" />
|
101
|
+
<folding />
|
102
|
+
</state>
|
103
|
+
</provider>
|
104
|
+
</entry>
|
105
|
+
</file>
|
77
106
|
<file leaf-file-name="index.html" pinned="false" current-in-tab="false">
|
78
107
|
<entry file="file://$PROJECT_DIR$/app/notification/views/main/index.html">
|
79
108
|
<provider selected="true" editor-type-id="text-editor">
|
@@ -111,6 +140,8 @@
|
|
111
140
|
<option value="$PROJECT_DIR$/app/notification/assets/js/volt-notification.js" />
|
112
141
|
<option value="$PROJECT_DIR$/README.md" />
|
113
142
|
<option value="$PROJECT_DIR$/app/notification/controllers/main_controller.rb" />
|
143
|
+
<option value="$PROJECT_DIR$/volt-notification.gemspec" />
|
144
|
+
<option value="$PROJECT_DIR$/lib/volt/notification/version.rb" />
|
114
145
|
</list>
|
115
146
|
</option>
|
116
147
|
</component>
|
@@ -167,6 +198,72 @@
|
|
167
198
|
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
168
199
|
</PATH_ELEMENT>
|
169
200
|
</PATH>
|
201
|
+
<PATH>
|
202
|
+
<PATH_ELEMENT>
|
203
|
+
<option name="myItemId" value="volt-notification" />
|
204
|
+
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
|
205
|
+
</PATH_ELEMENT>
|
206
|
+
<PATH_ELEMENT>
|
207
|
+
<option name="myItemId" value="volt-notification" />
|
208
|
+
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
209
|
+
</PATH_ELEMENT>
|
210
|
+
<PATH_ELEMENT>
|
211
|
+
<option name="myItemId" value="spec" />
|
212
|
+
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
213
|
+
</PATH_ELEMENT>
|
214
|
+
<PATH_ELEMENT>
|
215
|
+
<option name="myItemId" value="app" />
|
216
|
+
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
217
|
+
</PATH_ELEMENT>
|
218
|
+
<PATH_ELEMENT>
|
219
|
+
<option name="myItemId" value="main" />
|
220
|
+
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
221
|
+
</PATH_ELEMENT>
|
222
|
+
<PATH_ELEMENT>
|
223
|
+
<option name="myItemId" value="models" />
|
224
|
+
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
225
|
+
</PATH_ELEMENT>
|
226
|
+
</PATH>
|
227
|
+
<PATH>
|
228
|
+
<PATH_ELEMENT>
|
229
|
+
<option name="myItemId" value="volt-notification" />
|
230
|
+
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
|
231
|
+
</PATH_ELEMENT>
|
232
|
+
<PATH_ELEMENT>
|
233
|
+
<option name="myItemId" value="volt-notification" />
|
234
|
+
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
235
|
+
</PATH_ELEMENT>
|
236
|
+
<PATH_ELEMENT>
|
237
|
+
<option name="myItemId" value="lib" />
|
238
|
+
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
239
|
+
</PATH_ELEMENT>
|
240
|
+
<PATH_ELEMENT>
|
241
|
+
<option name="myItemId" value="volt" />
|
242
|
+
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
243
|
+
</PATH_ELEMENT>
|
244
|
+
</PATH>
|
245
|
+
<PATH>
|
246
|
+
<PATH_ELEMENT>
|
247
|
+
<option name="myItemId" value="volt-notification" />
|
248
|
+
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
|
249
|
+
</PATH_ELEMENT>
|
250
|
+
<PATH_ELEMENT>
|
251
|
+
<option name="myItemId" value="volt-notification" />
|
252
|
+
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
253
|
+
</PATH_ELEMENT>
|
254
|
+
<PATH_ELEMENT>
|
255
|
+
<option name="myItemId" value="lib" />
|
256
|
+
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
257
|
+
</PATH_ELEMENT>
|
258
|
+
<PATH_ELEMENT>
|
259
|
+
<option name="myItemId" value="volt" />
|
260
|
+
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
261
|
+
</PATH_ELEMENT>
|
262
|
+
<PATH_ELEMENT>
|
263
|
+
<option name="myItemId" value="notification" />
|
264
|
+
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
265
|
+
</PATH_ELEMENT>
|
266
|
+
</PATH>
|
170
267
|
<PATH>
|
171
268
|
<PATH_ELEMENT>
|
172
269
|
<option name="myItemId" value="volt-notification" />
|
@@ -255,6 +352,28 @@
|
|
255
352
|
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
256
353
|
</PATH_ELEMENT>
|
257
354
|
</PATH>
|
355
|
+
<PATH>
|
356
|
+
<PATH_ELEMENT>
|
357
|
+
<option name="myItemId" value="volt-notification" />
|
358
|
+
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
|
359
|
+
</PATH_ELEMENT>
|
360
|
+
<PATH_ELEMENT>
|
361
|
+
<option name="myItemId" value="volt-notification" />
|
362
|
+
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
363
|
+
</PATH_ELEMENT>
|
364
|
+
<PATH_ELEMENT>
|
365
|
+
<option name="myItemId" value="app" />
|
366
|
+
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
367
|
+
</PATH_ELEMENT>
|
368
|
+
<PATH_ELEMENT>
|
369
|
+
<option name="myItemId" value="notification" />
|
370
|
+
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
371
|
+
</PATH_ELEMENT>
|
372
|
+
<PATH_ELEMENT>
|
373
|
+
<option name="myItemId" value="config" />
|
374
|
+
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
375
|
+
</PATH_ELEMENT>
|
376
|
+
</PATH>
|
258
377
|
<PATH>
|
259
378
|
<PATH_ELEMENT>
|
260
379
|
<option name="myItemId" value="volt-notification" />
|
@@ -310,7 +429,7 @@
|
|
310
429
|
</panes>
|
311
430
|
</component>
|
312
431
|
<component name="PropertiesComponent">
|
313
|
-
<property name="last_opened_file_path" value="$PROJECT_DIR
|
432
|
+
<property name="last_opened_file_path" value="$PROJECT_DIR$/../volt-notification_example" />
|
314
433
|
<property name="WebServerToolWindowFactoryState" value="false" />
|
315
434
|
</component>
|
316
435
|
<component name="RecentsManager">
|
@@ -512,6 +631,22 @@
|
|
512
631
|
</state>
|
513
632
|
</provider>
|
514
633
|
</entry>
|
634
|
+
<entry file="file://$PROJECT_DIR$/README.md">
|
635
|
+
<provider selected="true" editor-type-id="text-editor">
|
636
|
+
<state vertical-scroll-proportion="0.0">
|
637
|
+
<caret line="10" column="17" selection-start-line="10" selection-start-column="17" selection-end-line="10" selection-end-column="17" />
|
638
|
+
<folding />
|
639
|
+
</state>
|
640
|
+
</provider>
|
641
|
+
</entry>
|
642
|
+
<entry file="file://$PROJECT_DIR$/app/notification/controllers/main_controller.rb">
|
643
|
+
<provider selected="true" editor-type-id="text-editor">
|
644
|
+
<state vertical-scroll-proportion="0.0">
|
645
|
+
<caret line="5" column="32" selection-start-line="5" selection-start-column="11" selection-end-line="5" selection-end-column="32" />
|
646
|
+
<folding />
|
647
|
+
</state>
|
648
|
+
</provider>
|
649
|
+
</entry>
|
515
650
|
<entry file="file://$PROJECT_DIR$/app/notification/models/notification_message.rb">
|
516
651
|
<provider selected="true" editor-type-id="text-editor">
|
517
652
|
<state vertical-scroll-proportion="0.0">
|
@@ -528,18 +663,26 @@
|
|
528
663
|
</state>
|
529
664
|
</provider>
|
530
665
|
</entry>
|
531
|
-
<entry file="file://$PROJECT_DIR$/
|
666
|
+
<entry file="file://$PROJECT_DIR$/volt-notification.gemspec">
|
532
667
|
<provider selected="true" editor-type-id="text-editor">
|
533
668
|
<state vertical-scroll-proportion="0.0">
|
534
|
-
<caret line="
|
669
|
+
<caret line="20" column="56" selection-start-line="20" selection-start-column="56" selection-end-line="20" selection-end-column="56" />
|
535
670
|
<folding />
|
536
671
|
</state>
|
537
672
|
</provider>
|
538
673
|
</entry>
|
539
|
-
<entry file="file://$PROJECT_DIR$/
|
674
|
+
<entry file="file://$PROJECT_DIR$/lib/volt/notification.rb">
|
675
|
+
<provider selected="true" editor-type-id="text-editor">
|
676
|
+
<state vertical-scroll-proportion="0.0">
|
677
|
+
<caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
|
678
|
+
<folding />
|
679
|
+
</state>
|
680
|
+
</provider>
|
681
|
+
</entry>
|
682
|
+
<entry file="file://$PROJECT_DIR$/lib/volt/notification/version.rb">
|
540
683
|
<provider selected="true" editor-type-id="text-editor">
|
541
|
-
<state vertical-scroll-proportion="0.
|
542
|
-
<caret line="
|
684
|
+
<state vertical-scroll-proportion="0.031380754">
|
685
|
+
<caret line="2" column="20" selection-start-line="2" selection-start-column="20" selection-end-line="2" selection-end-column="20" />
|
543
686
|
<folding />
|
544
687
|
</state>
|
545
688
|
</provider>
|
@@ -2,17 +2,18 @@ module Notification
|
|
2
2
|
class MainController < Volt::ModelController
|
3
3
|
|
4
4
|
def index
|
5
|
-
|
5
|
+
puts 'Hello from Notification Component Setup'
|
6
|
+
page.notification_messages.on('added') do |pos|
|
6
7
|
puts "message_added #{pos.to_s}"
|
7
|
-
notification = page.
|
8
|
+
notification = page.notification_messages[pos]
|
8
9
|
volt_notify(notification)
|
9
10
|
end
|
10
11
|
|
11
12
|
Volt.current_user.then do |user |
|
12
|
-
user.
|
13
|
+
user.notification_messages.on('added') do |pos|
|
13
14
|
|
14
15
|
puts "message_added #{pos.to_s}"
|
15
|
-
notification = page.
|
16
|
+
notification = page.notification_messages[pos]
|
16
17
|
volt_notify(notification)
|
17
18
|
end if user
|
18
19
|
end
|
data/volt-notification.gemspec
CHANGED
@@ -18,6 +18,6 @@ Gem::Specification.new do |spec|
|
|
18
18
|
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
19
19
|
spec.require_paths = ["lib"]
|
20
20
|
|
21
|
-
spec.add_development_dependency "volt", "~> 0.9.
|
21
|
+
spec.add_development_dependency "volt", "~> 0.9.3.pre5"
|
22
22
|
spec.add_development_dependency "rake"
|
23
23
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: volt-notification
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Bugfish Corp
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-06-
|
11
|
+
date: 2015-06-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: volt
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 0.9.
|
19
|
+
version: 0.9.3.pre5
|
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
|
-
version: 0.9.
|
26
|
+
version: 0.9.3.pre5
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: rake
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|