volt-notification 0.1.0
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 +7 -0
- data/.gitignore +17 -0
- data/.idea/.name +1 -0
- data/.idea/.rakeTasks +7 -0
- data/.idea/misc.xml +14 -0
- data/.idea/modules.xml +8 -0
- data/.idea/vcs.xml +6 -0
- data/.idea/volt-notification.iml +56 -0
- data/.idea/workspace.xml +548 -0
- data/Gemfile +4 -0
- data/README.md +37 -0
- data/Rakefile +1 -0
- data/app/notification/assets/js/volt-notification.js +9 -0
- data/app/notification/config/dependencies.rb +1 -0
- data/app/notification/config/initializers/boot.rb +10 -0
- data/app/notification/config/routes.rb +1 -0
- data/app/notification/controllers/main_controller.rb +75 -0
- data/app/notification/models/notification_message.rb +15 -0
- data/app/notification/models/user.rb +3 -0
- data/app/notification/views/main/index.html +1 -0
- data/lib/volt/notification/version.rb +5 -0
- data/lib/volt/notification.rb +18 -0
- data/spec/app/main/models/notifications_spec.rb +5 -0
- data/volt-notification.gemspec +23 -0
- metadata +96 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 7911596d68409f7d579e9aa2acc57e165f7bcca6
|
4
|
+
data.tar.gz: a31b6792ea8694cb81693e5d36e3cf29127d31cf
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: c044e1e6864bedf294989abbe81129caa2d9b539f7e5b6d21b9cd3096303e18bacb29651bff3687b51b5e504b1734974febf6f70de3b35c4c674d1ed1d753f4f
|
7
|
+
data.tar.gz: 6f5ccd48a2b8d2d9d359706ad1d4fb57ffeb19c956e9d0356f215191aac6fa0a6591ab9cfc08982a7ad45d9e6352ce8645ee3a454fc2786ae0bacfd4e15d4e35
|
data/.gitignore
ADDED
data/.idea/.name
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
volt-notification
|
data/.idea/.rakeTasks
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<Settings><!--This file was automatically generated by Ruby plugin.
|
3
|
+
You are allowed to:
|
4
|
+
1. Remove rake task
|
5
|
+
2. Add existing rake tasks
|
6
|
+
To add existing rake tasks automatically delete this file and reload the project.
|
7
|
+
--><RakeGroup description="" fullCmd="" taksId="rake"><RakeTask description="Build volt-notification-0.1.0.gem into the pkg directory" fullCmd="build" taksId="build" /><RakeTask description="Build and install volt-notification-0.1.0.gem into system gems" fullCmd="install" taksId="install" /><RakeGroup description="" fullCmd="" taksId="install"><RakeTask description="Build and install volt-notification-0.1.0.gem into system gems without network access" fullCmd="install:local" taksId="local" /></RakeGroup><RakeTask description="Create tag v0.1.0 and build and push volt-notification-0.1.0.gem to Rubygems" fullCmd="release" taksId="release" /><RakeGroup description="" fullCmd="" taksId="release"><RakeTask description="" fullCmd="release:guard_clean" taksId="guard_clean" /><RakeTask description="" fullCmd="release:rubygem_push" taksId="rubygem_push" /><RakeTask description="" fullCmd="release:source_control_push" taksId="source_control_push" /></RakeGroup></RakeGroup></Settings>
|
data/.idea/misc.xml
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<project version="4">
|
3
|
+
<component name="ProjectLevelVcsManager" settingsEditedManually="false">
|
4
|
+
<OptionsSetting value="true" id="Add" />
|
5
|
+
<OptionsSetting value="true" id="Remove" />
|
6
|
+
<OptionsSetting value="true" id="Checkout" />
|
7
|
+
<OptionsSetting value="true" id="Update" />
|
8
|
+
<OptionsSetting value="true" id="Status" />
|
9
|
+
<OptionsSetting value="true" id="Edit" />
|
10
|
+
<ConfirmationsSetting value="0" id="Add" />
|
11
|
+
<ConfirmationsSetting value="0" id="Remove" />
|
12
|
+
</component>
|
13
|
+
<component name="ProjectRootManager" version="2" project-jdk-name="ruby-2.0.0-p481" project-jdk-type="RUBY_SDK" />
|
14
|
+
</project>
|
data/.idea/modules.xml
ADDED
@@ -0,0 +1,8 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<project version="4">
|
3
|
+
<component name="ProjectModuleManager">
|
4
|
+
<modules>
|
5
|
+
<module fileurl="file://$PROJECT_DIR$/.idea/volt-notification.iml" filepath="$PROJECT_DIR$/.idea/volt-notification.iml" />
|
6
|
+
</modules>
|
7
|
+
</component>
|
8
|
+
</project>
|
data/.idea/vcs.xml
ADDED
@@ -0,0 +1,56 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<module type="RUBY_MODULE" version="4">
|
3
|
+
<component name="FacetManager">
|
4
|
+
<facet type="gem" name="Ruby Gem">
|
5
|
+
<configuration>
|
6
|
+
<option name="GEM_APP_ROOT_PATH" value="$MODULE_DIR$" />
|
7
|
+
<option name="GEM_APP_TEST_PATH" value="" />
|
8
|
+
<option name="GEM_APP_LIB_PATH" value="$MODULE_DIR$/lib" />
|
9
|
+
</configuration>
|
10
|
+
</facet>
|
11
|
+
</component>
|
12
|
+
<component name="NewModuleRootManager">
|
13
|
+
<content url="file://$MODULE_DIR$" />
|
14
|
+
<orderEntry type="inheritedJdk" />
|
15
|
+
<orderEntry type="sourceFolder" forTests="false" />
|
16
|
+
<orderEntry type="library" scope="PROVIDED" name="bcrypt (v3.1.10, ruby-2.0.0-p481) [gem]" level="application" />
|
17
|
+
<orderEntry type="library" scope="PROVIDED" name="bson (v1.9.2, ruby-2.0.0-p481) [gem]" level="application" />
|
18
|
+
<orderEntry type="library" scope="PROVIDED" name="bundler (v1.10.0.rc, ruby-2.0.0-p481) [gem]" level="application" />
|
19
|
+
<orderEntry type="library" scope="PROVIDED" name="celluloid (v0.16.0, ruby-2.0.0-p481) [gem]" level="application" />
|
20
|
+
<orderEntry type="library" scope="PROVIDED" name="coderay (v1.1.0, ruby-2.0.0-p481) [gem]" level="application" />
|
21
|
+
<orderEntry type="library" scope="PROVIDED" name="commonjs (v0.2.7, ruby-2.0.0-p481) [gem]" level="application" />
|
22
|
+
<orderEntry type="library" scope="PROVIDED" name="concurrent-ruby (v0.8.0, ruby-2.0.0-p481) [gem]" level="application" />
|
23
|
+
<orderEntry type="library" scope="PROVIDED" name="configurations (v2.0.0, ruby-2.0.0-p481) [gem]" level="application" />
|
24
|
+
<orderEntry type="library" scope="PROVIDED" name="eventmachine (v1.0.7, ruby-2.0.0-p481) [gem]" level="application" />
|
25
|
+
<orderEntry type="library" scope="PROVIDED" name="execjs (v2.5.2, ruby-2.0.0-p481) [gem]" level="application" />
|
26
|
+
<orderEntry type="library" scope="PROVIDED" name="faye-websocket (v0.9.2, ruby-2.0.0-p481) [gem]" level="application" />
|
27
|
+
<orderEntry type="library" scope="PROVIDED" name="ffi (v1.9.8, ruby-2.0.0-p481) [gem]" level="application" />
|
28
|
+
<orderEntry type="library" scope="PROVIDED" name="hike (v1.2.3, ruby-2.0.0-p481) [gem]" level="application" />
|
29
|
+
<orderEntry type="library" scope="PROVIDED" name="hitimes (v1.2.2, ruby-2.0.0-p481) [gem]" level="application" />
|
30
|
+
<orderEntry type="library" scope="PROVIDED" name="libv8 (v3.16.14.7, ruby-2.0.0-p481) [gem]" level="application" />
|
31
|
+
<orderEntry type="library" scope="PROVIDED" name="listen (v2.8.6, ruby-2.0.0-p481) [gem]" level="application" />
|
32
|
+
<orderEntry type="library" scope="PROVIDED" name="method_source (v0.8.2, ruby-2.0.0-p481) [gem]" level="application" />
|
33
|
+
<orderEntry type="library" scope="PROVIDED" name="mongo (v1.9.2, ruby-2.0.0-p481) [gem]" level="application" />
|
34
|
+
<orderEntry type="library" scope="PROVIDED" name="multi_json (v1.11.0, ruby-2.0.0-p481) [gem]" level="application" />
|
35
|
+
<orderEntry type="library" scope="PROVIDED" name="opal (v0.7.2, ruby-2.0.0-p481) [gem]" level="application" />
|
36
|
+
<orderEntry type="library" scope="PROVIDED" name="pry (v0.10.1, ruby-2.0.0-p481) [gem]" level="application" />
|
37
|
+
<orderEntry type="library" scope="PROVIDED" name="rack (v1.5.3, ruby-2.0.0-p481) [gem]" level="application" />
|
38
|
+
<orderEntry type="library" scope="PROVIDED" name="rake (v0.9.6, ruby-2.0.0-p481) [gem]" level="application" />
|
39
|
+
<orderEntry type="library" scope="PROVIDED" name="rb-fsevent (v0.9.5, ruby-2.0.0-p481) [gem]" level="application" />
|
40
|
+
<orderEntry type="library" scope="PROVIDED" name="rb-inotify (v0.9.5, ruby-2.0.0-p481) [gem]" level="application" />
|
41
|
+
<orderEntry type="library" scope="PROVIDED" name="ref (v1.0.5, ruby-2.0.0-p481) [gem]" level="application" />
|
42
|
+
<orderEntry type="library" scope="PROVIDED" name="ruby-clean-css (v1.0.0, ruby-2.0.0-p481) [gem]" level="application" />
|
43
|
+
<orderEntry type="library" scope="PROVIDED" name="sass (v3.2.19, ruby-2.0.0-p481) [gem]" level="application" />
|
44
|
+
<orderEntry type="library" scope="PROVIDED" name="slop (v3.6.0, ruby-2.0.0-p481) [gem]" level="application" />
|
45
|
+
<orderEntry type="library" scope="PROVIDED" name="sourcemap (v0.1.1, ruby-2.0.0-p481) [gem]" level="application" />
|
46
|
+
<orderEntry type="library" scope="PROVIDED" name="sprockets (v2.12.3, ruby-2.0.0-p481) [gem]" level="application" />
|
47
|
+
<orderEntry type="library" scope="PROVIDED" name="sprockets-sass (v1.0.3, ruby-2.0.0-p481) [gem]" level="application" />
|
48
|
+
<orderEntry type="library" scope="PROVIDED" name="therubyracer (v0.12.2, ruby-2.0.0-p481) [gem]" level="application" />
|
49
|
+
<orderEntry type="library" scope="PROVIDED" name="thor (v0.19.1, ruby-2.0.0-p481) [gem]" level="application" />
|
50
|
+
<orderEntry type="library" scope="PROVIDED" name="tilt (v1.4.1, ruby-2.0.0-p481) [gem]" level="application" />
|
51
|
+
<orderEntry type="library" scope="PROVIDED" name="timers (v4.0.1, ruby-2.0.0-p481) [gem]" level="application" />
|
52
|
+
<orderEntry type="library" scope="PROVIDED" name="uglifier (v2.7.1, ruby-2.0.0-p481) [gem]" level="application" />
|
53
|
+
<orderEntry type="library" scope="PROVIDED" name="websocket-driver (v0.5.4, ruby-2.0.0-p481) [gem]" level="application" />
|
54
|
+
<orderEntry type="library" scope="PROVIDED" name="websocket-extensions (v0.1.2, ruby-2.0.0-p481) [gem]" level="application" />
|
55
|
+
</component>
|
56
|
+
</module>
|
data/.idea/workspace.xml
ADDED
@@ -0,0 +1,548 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<project version="4">
|
3
|
+
<component name="ChangeListManager">
|
4
|
+
<list default="true" id="94356a28-2fdb-4764-939d-b02f5ae1b450" name="Default" comment="">
|
5
|
+
<change type="MODIFICATION" beforePath="$PROJECT_DIR$/README.md" afterPath="$PROJECT_DIR$/README.md" />
|
6
|
+
<change type="MODIFICATION" beforePath="$PROJECT_DIR$/app/notification/controllers/main_controller.rb" afterPath="$PROJECT_DIR$/app/notification/controllers/main_controller.rb" />
|
7
|
+
</list>
|
8
|
+
<ignored path="volt-notification.iws" />
|
9
|
+
<ignored path=".idea/workspace.xml" />
|
10
|
+
<ignored path=".idea/dataSources.local.xml" />
|
11
|
+
<option name="EXCLUDED_CONVERTED_TO_IGNORED" value="true" />
|
12
|
+
<option name="TRACKING_ENABLED" value="true" />
|
13
|
+
<option name="SHOW_DIALOG" value="false" />
|
14
|
+
<option name="HIGHLIGHT_CONFLICTS" value="true" />
|
15
|
+
<option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
|
16
|
+
<option name="LAST_RESOLUTION" value="IGNORE" />
|
17
|
+
</component>
|
18
|
+
<component name="ChangesViewManager" flattened_view="true" show_ignored="false" />
|
19
|
+
<component name="CreatePatchCommitExecutor">
|
20
|
+
<option name="PATCH_PATH" value="" />
|
21
|
+
</component>
|
22
|
+
<component name="FavoritesManager">
|
23
|
+
<favorites_list name="volt-notification" />
|
24
|
+
</component>
|
25
|
+
<component name="FileEditorManager">
|
26
|
+
<leaf>
|
27
|
+
<file leaf-file-name="user.rb" pinned="false" current-in-tab="false">
|
28
|
+
<entry file="file://$PROJECT_DIR$/app/notification/models/user.rb">
|
29
|
+
<provider selected="true" editor-type-id="text-editor">
|
30
|
+
<state vertical-scroll-proportion="0.0">
|
31
|
+
<caret line="1" column="25" selection-start-line="1" selection-start-column="25" selection-end-line="1" selection-end-column="25" />
|
32
|
+
<folding />
|
33
|
+
</state>
|
34
|
+
</provider>
|
35
|
+
</entry>
|
36
|
+
</file>
|
37
|
+
<file leaf-file-name="notification_message.rb" pinned="false" current-in-tab="false">
|
38
|
+
<entry file="file://$PROJECT_DIR$/app/notification/models/notification_message.rb">
|
39
|
+
<provider selected="true" editor-type-id="text-editor">
|
40
|
+
<state vertical-scroll-proportion="0.0">
|
41
|
+
<caret line="15" column="0" selection-start-line="15" selection-start-column="0" selection-end-line="15" selection-end-column="0" />
|
42
|
+
<folding />
|
43
|
+
</state>
|
44
|
+
</provider>
|
45
|
+
</entry>
|
46
|
+
</file>
|
47
|
+
<file leaf-file-name="main_controller.rb" pinned="false" current-in-tab="true">
|
48
|
+
<entry file="file://$PROJECT_DIR$/app/notification/controllers/main_controller.rb">
|
49
|
+
<provider selected="true" editor-type-id="text-editor">
|
50
|
+
<state vertical-scroll-proportion="0.18828452">
|
51
|
+
<caret line="12" column="0" selection-start-line="12" selection-start-column="0" selection-end-line="12" selection-end-column="0" />
|
52
|
+
<folding />
|
53
|
+
</state>
|
54
|
+
</provider>
|
55
|
+
</entry>
|
56
|
+
</file>
|
57
|
+
<file leaf-file-name="README.md" pinned="false" current-in-tab="false">
|
58
|
+
<entry file="file://$PROJECT_DIR$/README.md">
|
59
|
+
<provider selected="true" editor-type-id="text-editor">
|
60
|
+
<state vertical-scroll-proportion="0.0">
|
61
|
+
<caret line="10" column="17" selection-start-line="10" selection-start-column="17" selection-end-line="10" selection-end-column="17" />
|
62
|
+
<folding />
|
63
|
+
</state>
|
64
|
+
</provider>
|
65
|
+
</entry>
|
66
|
+
</file>
|
67
|
+
<file leaf-file-name="Gemfile" pinned="false" current-in-tab="false">
|
68
|
+
<entry file="file://$PROJECT_DIR$/Gemfile">
|
69
|
+
<provider selected="true" editor-type-id="text-editor">
|
70
|
+
<state vertical-scroll-proportion="0.0">
|
71
|
+
<caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
|
72
|
+
<folding />
|
73
|
+
</state>
|
74
|
+
</provider>
|
75
|
+
</entry>
|
76
|
+
</file>
|
77
|
+
<file leaf-file-name="index.html" pinned="false" current-in-tab="false">
|
78
|
+
<entry file="file://$PROJECT_DIR$/app/notification/views/main/index.html">
|
79
|
+
<provider selected="true" editor-type-id="text-editor">
|
80
|
+
<state vertical-scroll-proportion="-0.625">
|
81
|
+
<caret line="1" column="0" selection-start-line="1" selection-start-column="0" selection-end-line="1" selection-end-column="0" />
|
82
|
+
<folding />
|
83
|
+
</state>
|
84
|
+
</provider>
|
85
|
+
</entry>
|
86
|
+
</file>
|
87
|
+
<file leaf-file-name="volt-notification.js" pinned="false" current-in-tab="false">
|
88
|
+
<entry file="file://$PROJECT_DIR$/app/notification/assets/js/volt-notification.js">
|
89
|
+
<provider selected="true" editor-type-id="text-editor">
|
90
|
+
<state vertical-scroll-proportion="0.0">
|
91
|
+
<caret line="6" column="6" selection-start-line="6" selection-start-column="6" selection-end-line="6" selection-end-column="6" />
|
92
|
+
<folding>
|
93
|
+
<marker date="1433575610000" expanded="true" signature="121:287" placeholder="{...}" />
|
94
|
+
</folding>
|
95
|
+
</state>
|
96
|
+
</provider>
|
97
|
+
</entry>
|
98
|
+
</file>
|
99
|
+
</leaf>
|
100
|
+
</component>
|
101
|
+
<component name="Git.Settings">
|
102
|
+
<option name="RECENT_GIT_ROOT_PATH" value="$PROJECT_DIR$" />
|
103
|
+
</component>
|
104
|
+
<component name="IdeDocumentHistory">
|
105
|
+
<option name="CHANGED_PATHS">
|
106
|
+
<list>
|
107
|
+
<option value="$PROJECT_DIR$/app/notification/models/user.rb" />
|
108
|
+
<option value="$PROJECT_DIR$/app/notification/models/notification.rb" />
|
109
|
+
<option value="$PROJECT_DIR$/app/notification/models/notification_message.rb" />
|
110
|
+
<option value="$PROJECT_DIR$/app/notification/views/main/index.html" />
|
111
|
+
<option value="$PROJECT_DIR$/app/notification/assets/js/volt-notification.js" />
|
112
|
+
<option value="$PROJECT_DIR$/README.md" />
|
113
|
+
<option value="$PROJECT_DIR$/app/notification/controllers/main_controller.rb" />
|
114
|
+
</list>
|
115
|
+
</option>
|
116
|
+
</component>
|
117
|
+
<component name="JsBuildToolGruntFileManager" detection-done="true" />
|
118
|
+
<component name="JsGulpfileManager">
|
119
|
+
<detection-done>true</detection-done>
|
120
|
+
</component>
|
121
|
+
<component name="NamedScopeManager">
|
122
|
+
<order />
|
123
|
+
</component>
|
124
|
+
<component name="ProjectFrameBounds">
|
125
|
+
<option name="y" value="23" />
|
126
|
+
<option name="width" value="1645" />
|
127
|
+
<option name="height" value="1027" />
|
128
|
+
</component>
|
129
|
+
<component name="ProjectLevelVcsManager" settingsEditedManually="false">
|
130
|
+
<OptionsSetting value="true" id="Add" />
|
131
|
+
<OptionsSetting value="true" id="Remove" />
|
132
|
+
<OptionsSetting value="true" id="Checkout" />
|
133
|
+
<OptionsSetting value="true" id="Update" />
|
134
|
+
<OptionsSetting value="true" id="Status" />
|
135
|
+
<OptionsSetting value="true" id="Edit" />
|
136
|
+
<ConfirmationsSetting value="0" id="Add" />
|
137
|
+
<ConfirmationsSetting value="0" id="Remove" />
|
138
|
+
</component>
|
139
|
+
<component name="ProjectView">
|
140
|
+
<navigator currentView="ProjectPane" proportions="" version="1">
|
141
|
+
<flattenPackages />
|
142
|
+
<showMembers />
|
143
|
+
<showModules />
|
144
|
+
<showLibraryContents />
|
145
|
+
<hideEmptyPackages />
|
146
|
+
<abbreviatePackageNames />
|
147
|
+
<autoscrollToSource />
|
148
|
+
<autoscrollFromSource />
|
149
|
+
<sortByType />
|
150
|
+
</navigator>
|
151
|
+
<panes>
|
152
|
+
<pane id="ProjectPane">
|
153
|
+
<subPane>
|
154
|
+
<PATH>
|
155
|
+
<PATH_ELEMENT>
|
156
|
+
<option name="myItemId" value="volt-notification" />
|
157
|
+
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
|
158
|
+
</PATH_ELEMENT>
|
159
|
+
</PATH>
|
160
|
+
<PATH>
|
161
|
+
<PATH_ELEMENT>
|
162
|
+
<option name="myItemId" value="volt-notification" />
|
163
|
+
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
|
164
|
+
</PATH_ELEMENT>
|
165
|
+
<PATH_ELEMENT>
|
166
|
+
<option name="myItemId" value="volt-notification" />
|
167
|
+
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
168
|
+
</PATH_ELEMENT>
|
169
|
+
</PATH>
|
170
|
+
<PATH>
|
171
|
+
<PATH_ELEMENT>
|
172
|
+
<option name="myItemId" value="volt-notification" />
|
173
|
+
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
|
174
|
+
</PATH_ELEMENT>
|
175
|
+
<PATH_ELEMENT>
|
176
|
+
<option name="myItemId" value="volt-notification" />
|
177
|
+
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
178
|
+
</PATH_ELEMENT>
|
179
|
+
<PATH_ELEMENT>
|
180
|
+
<option name="myItemId" value="app" />
|
181
|
+
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
182
|
+
</PATH_ELEMENT>
|
183
|
+
<PATH_ELEMENT>
|
184
|
+
<option name="myItemId" value="notification" />
|
185
|
+
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
186
|
+
</PATH_ELEMENT>
|
187
|
+
<PATH_ELEMENT>
|
188
|
+
<option name="myItemId" value="views" />
|
189
|
+
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
190
|
+
</PATH_ELEMENT>
|
191
|
+
<PATH_ELEMENT>
|
192
|
+
<option name="myItemId" value="main" />
|
193
|
+
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
194
|
+
</PATH_ELEMENT>
|
195
|
+
</PATH>
|
196
|
+
<PATH>
|
197
|
+
<PATH_ELEMENT>
|
198
|
+
<option name="myItemId" value="volt-notification" />
|
199
|
+
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
|
200
|
+
</PATH_ELEMENT>
|
201
|
+
<PATH_ELEMENT>
|
202
|
+
<option name="myItemId" value="volt-notification" />
|
203
|
+
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
204
|
+
</PATH_ELEMENT>
|
205
|
+
<PATH_ELEMENT>
|
206
|
+
<option name="myItemId" value="app" />
|
207
|
+
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
208
|
+
</PATH_ELEMENT>
|
209
|
+
<PATH_ELEMENT>
|
210
|
+
<option name="myItemId" value="notification" />
|
211
|
+
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
212
|
+
</PATH_ELEMENT>
|
213
|
+
<PATH_ELEMENT>
|
214
|
+
<option name="myItemId" value="models" />
|
215
|
+
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
216
|
+
</PATH_ELEMENT>
|
217
|
+
</PATH>
|
218
|
+
<PATH>
|
219
|
+
<PATH_ELEMENT>
|
220
|
+
<option name="myItemId" value="volt-notification" />
|
221
|
+
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
|
222
|
+
</PATH_ELEMENT>
|
223
|
+
<PATH_ELEMENT>
|
224
|
+
<option name="myItemId" value="volt-notification" />
|
225
|
+
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
226
|
+
</PATH_ELEMENT>
|
227
|
+
<PATH_ELEMENT>
|
228
|
+
<option name="myItemId" value="app" />
|
229
|
+
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
230
|
+
</PATH_ELEMENT>
|
231
|
+
<PATH_ELEMENT>
|
232
|
+
<option name="myItemId" value="notification" />
|
233
|
+
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
234
|
+
</PATH_ELEMENT>
|
235
|
+
</PATH>
|
236
|
+
<PATH>
|
237
|
+
<PATH_ELEMENT>
|
238
|
+
<option name="myItemId" value="volt-notification" />
|
239
|
+
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
|
240
|
+
</PATH_ELEMENT>
|
241
|
+
<PATH_ELEMENT>
|
242
|
+
<option name="myItemId" value="volt-notification" />
|
243
|
+
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
244
|
+
</PATH_ELEMENT>
|
245
|
+
<PATH_ELEMENT>
|
246
|
+
<option name="myItemId" value="app" />
|
247
|
+
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
248
|
+
</PATH_ELEMENT>
|
249
|
+
<PATH_ELEMENT>
|
250
|
+
<option name="myItemId" value="notification" />
|
251
|
+
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
252
|
+
</PATH_ELEMENT>
|
253
|
+
<PATH_ELEMENT>
|
254
|
+
<option name="myItemId" value="controllers" />
|
255
|
+
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
256
|
+
</PATH_ELEMENT>
|
257
|
+
</PATH>
|
258
|
+
<PATH>
|
259
|
+
<PATH_ELEMENT>
|
260
|
+
<option name="myItemId" value="volt-notification" />
|
261
|
+
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
|
262
|
+
</PATH_ELEMENT>
|
263
|
+
<PATH_ELEMENT>
|
264
|
+
<option name="myItemId" value="volt-notification" />
|
265
|
+
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
266
|
+
</PATH_ELEMENT>
|
267
|
+
<PATH_ELEMENT>
|
268
|
+
<option name="myItemId" value="app" />
|
269
|
+
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
270
|
+
</PATH_ELEMENT>
|
271
|
+
<PATH_ELEMENT>
|
272
|
+
<option name="myItemId" value="notification" />
|
273
|
+
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
274
|
+
</PATH_ELEMENT>
|
275
|
+
<PATH_ELEMENT>
|
276
|
+
<option name="myItemId" value="assets" />
|
277
|
+
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
278
|
+
</PATH_ELEMENT>
|
279
|
+
<PATH_ELEMENT>
|
280
|
+
<option name="myItemId" value="js" />
|
281
|
+
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
282
|
+
</PATH_ELEMENT>
|
283
|
+
</PATH>
|
284
|
+
<PATH>
|
285
|
+
<PATH_ELEMENT>
|
286
|
+
<option name="myItemId" value="volt-notification" />
|
287
|
+
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
|
288
|
+
</PATH_ELEMENT>
|
289
|
+
<PATH_ELEMENT>
|
290
|
+
<option name="myItemId" value="volt-notification" />
|
291
|
+
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
292
|
+
</PATH_ELEMENT>
|
293
|
+
<PATH_ELEMENT>
|
294
|
+
<option name="myItemId" value="app" />
|
295
|
+
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
296
|
+
</PATH_ELEMENT>
|
297
|
+
<PATH_ELEMENT>
|
298
|
+
<option name="myItemId" value="notification" />
|
299
|
+
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
300
|
+
</PATH_ELEMENT>
|
301
|
+
<PATH_ELEMENT>
|
302
|
+
<option name="myItemId" value="assets" />
|
303
|
+
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
304
|
+
</PATH_ELEMENT>
|
305
|
+
</PATH>
|
306
|
+
</subPane>
|
307
|
+
</pane>
|
308
|
+
<pane id="Scope" />
|
309
|
+
<pane id="Scratches" />
|
310
|
+
</panes>
|
311
|
+
</component>
|
312
|
+
<component name="PropertiesComponent">
|
313
|
+
<property name="last_opened_file_path" value="$PROJECT_DIR$" />
|
314
|
+
<property name="WebServerToolWindowFactoryState" value="false" />
|
315
|
+
</component>
|
316
|
+
<component name="RecentsManager">
|
317
|
+
<key name="MoveFile.RECENT_KEYS">
|
318
|
+
<recent name="$PROJECT_DIR$/app/notification" />
|
319
|
+
</key>
|
320
|
+
</component>
|
321
|
+
<component name="RunManager">
|
322
|
+
<configuration default="true" type="CucumberRunConfigurationType" factoryName="Cucumber">
|
323
|
+
<predefined_log_file id="RUBY_CUCUMBER" enabled="true" />
|
324
|
+
<module name="" />
|
325
|
+
<CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="RUBY_ARGS" VALUE="-e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)" />
|
326
|
+
<CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="WORK DIR" VALUE="" />
|
327
|
+
<CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="SHOULD_USE_SDK" VALUE="false" />
|
328
|
+
<CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="ALTERN_SDK_NAME" VALUE="" />
|
329
|
+
<CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="myPassParentEnvs" VALUE="true" />
|
330
|
+
<envs />
|
331
|
+
<EXTENSION ID="BundlerRunConfigurationExtension" bundleExecEnabled="false" />
|
332
|
+
<EXTENSION ID="JRubyRunConfigurationExtension" NailgunExecEnabled="false" />
|
333
|
+
<EXTENSION ID="RubyCoverageRunConfigurationExtension" enabled="false" sample_coverage="true" track_test_folders="true" runner="rcov">
|
334
|
+
<COVERAGE_PATTERN ENABLED="true">
|
335
|
+
<PATTERN REGEXPS="/.rvm/" INCLUDED="false" />
|
336
|
+
</COVERAGE_PATTERN>
|
337
|
+
</EXTENSION>
|
338
|
+
<EXTENSION ID="org.jetbrains.plugins.ruby.motion.run.MotionSimulatorRunExtension" />
|
339
|
+
<CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="TEST_FILE_MASK" VALUE="**/*.feature" />
|
340
|
+
<CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="TEST_TEST_TYPE" VALUE="TEST_SCRIPT" />
|
341
|
+
<CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="TESTS_FOLDER_PATH" VALUE="" />
|
342
|
+
<CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="TEST_SCRIPT_PATH" VALUE="" />
|
343
|
+
<CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="TEST_TAGS_FILTER" VALUE="" />
|
344
|
+
<CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="TEST_NAME_FILTER" VALUE="" />
|
345
|
+
<CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="CUCUMBER_ARGS" VALUE="--color -r features" />
|
346
|
+
<CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="RUNNER_VERSION" VALUE="" />
|
347
|
+
<CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="FULL_BACKTRACE" VALUE="false" />
|
348
|
+
<CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="VERBOSE_OPTION" VALUE="false" />
|
349
|
+
<CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="DRB" VALUE="false" />
|
350
|
+
<CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="ZEUS" VALUE="false" />
|
351
|
+
<CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="SPRING" VALUE="false" />
|
352
|
+
<CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="CUCUMBER_RUNNER_PATH" VALUE="" />
|
353
|
+
<CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="USE_CUSTOM_RUNNER" VALUE="false" />
|
354
|
+
<CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="SETTINGS_VERSION" VALUE="2" />
|
355
|
+
<method />
|
356
|
+
</configuration>
|
357
|
+
<configuration default="true" type="JavascriptDebugType" factoryName="JavaScript Debug">
|
358
|
+
<method />
|
359
|
+
</configuration>
|
360
|
+
<configuration default="true" type="RSpecRunConfigurationType" factoryName="RSpec">
|
361
|
+
<predefined_log_file id="RUBY_RSPEC" enabled="true" />
|
362
|
+
<module name="" />
|
363
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="RUBY_ARGS" VALUE="-e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)" />
|
364
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="WORK DIR" VALUE="" />
|
365
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SHOULD_USE_SDK" VALUE="false" />
|
366
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="ALTERN_SDK_NAME" VALUE="" />
|
367
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="myPassParentEnvs" VALUE="true" />
|
368
|
+
<envs />
|
369
|
+
<EXTENSION ID="BundlerRunConfigurationExtension" bundleExecEnabled="false" />
|
370
|
+
<EXTENSION ID="JRubyRunConfigurationExtension" NailgunExecEnabled="false" />
|
371
|
+
<EXTENSION ID="RubyCoverageRunConfigurationExtension" enabled="false" sample_coverage="true" track_test_folders="true" runner="rcov">
|
372
|
+
<COVERAGE_PATTERN ENABLED="true">
|
373
|
+
<PATTERN REGEXPS="/.rvm/" INCLUDED="false" />
|
374
|
+
</COVERAGE_PATTERN>
|
375
|
+
</EXTENSION>
|
376
|
+
<EXTENSION ID="org.jetbrains.plugins.ruby.motion.run.MotionSimulatorRunExtension" />
|
377
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TESTS_FOLDER_PATH" VALUE="" />
|
378
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_SCRIPT_PATH" VALUE="" />
|
379
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_RUNNER_PATH" VALUE="" />
|
380
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_FILE_MASK" VALUE="**/*_spec.rb" />
|
381
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_EXAMPLE_NAME" VALUE="" />
|
382
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_TEST_TYPE" VALUE="TEST_SCRIPT" />
|
383
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_ARGS" VALUE="" />
|
384
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="RUNNER_VERSION" VALUE="" />
|
385
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="USE_CUSTOM_SPEC_RUNNER" VALUE="false" />
|
386
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="DRB" VALUE="false" />
|
387
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="ZEUS" VALUE="false" />
|
388
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPRING" VALUE="false" />
|
389
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="FULL_BACKTRACE" VALUE="false" />
|
390
|
+
<method />
|
391
|
+
</configuration>
|
392
|
+
<configuration default="true" type="RubyRunConfigurationType" factoryName="Ruby">
|
393
|
+
<module name="" />
|
394
|
+
<RUBY_RUN_CONFIG NAME="RUBY_ARGS" VALUE="-e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)" />
|
395
|
+
<RUBY_RUN_CONFIG NAME="WORK DIR" VALUE="" />
|
396
|
+
<RUBY_RUN_CONFIG NAME="SHOULD_USE_SDK" VALUE="false" />
|
397
|
+
<RUBY_RUN_CONFIG NAME="ALTERN_SDK_NAME" VALUE="" />
|
398
|
+
<RUBY_RUN_CONFIG NAME="myPassParentEnvs" VALUE="true" />
|
399
|
+
<envs />
|
400
|
+
<EXTENSION ID="BundlerRunConfigurationExtension" bundleExecEnabled="false" />
|
401
|
+
<EXTENSION ID="JRubyRunConfigurationExtension" NailgunExecEnabled="false" />
|
402
|
+
<EXTENSION ID="RubyCoverageRunConfigurationExtension" enabled="false" sample_coverage="true" track_test_folders="true" runner="rcov">
|
403
|
+
<COVERAGE_PATTERN ENABLED="true">
|
404
|
+
<PATTERN REGEXPS="/.rvm/" INCLUDED="false" />
|
405
|
+
</COVERAGE_PATTERN>
|
406
|
+
</EXTENSION>
|
407
|
+
<EXTENSION ID="org.jetbrains.plugins.ruby.motion.run.MotionSimulatorRunExtension" />
|
408
|
+
<RUBY_RUN_CONFIG NAME="SCRIPT_PATH" VALUE="" />
|
409
|
+
<RUBY_RUN_CONFIG NAME="SCRIPT_ARGS" VALUE="" />
|
410
|
+
<method />
|
411
|
+
</configuration>
|
412
|
+
<configuration default="true" type="TestUnitRunConfigurationType" factoryName="Test::Unit/Shoulda/Minitest">
|
413
|
+
<predefined_log_file id="RUBY_TESTUNIT" enabled="true" />
|
414
|
+
<module name="" />
|
415
|
+
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="RUBY_ARGS" VALUE="-e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)" />
|
416
|
+
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="WORK DIR" VALUE="" />
|
417
|
+
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="SHOULD_USE_SDK" VALUE="false" />
|
418
|
+
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="ALTERN_SDK_NAME" VALUE="" />
|
419
|
+
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="myPassParentEnvs" VALUE="true" />
|
420
|
+
<envs />
|
421
|
+
<EXTENSION ID="BundlerRunConfigurationExtension" bundleExecEnabled="false" />
|
422
|
+
<EXTENSION ID="JRubyRunConfigurationExtension" NailgunExecEnabled="false" />
|
423
|
+
<EXTENSION ID="RubyCoverageRunConfigurationExtension" enabled="false" sample_coverage="true" track_test_folders="true" runner="rcov">
|
424
|
+
<COVERAGE_PATTERN ENABLED="true">
|
425
|
+
<PATTERN REGEXPS="/.rvm/" INCLUDED="false" />
|
426
|
+
</COVERAGE_PATTERN>
|
427
|
+
</EXTENSION>
|
428
|
+
<EXTENSION ID="org.jetbrains.plugins.ruby.motion.run.MotionSimulatorRunExtension" />
|
429
|
+
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="TESTS_FOLDER_PATH" VALUE="" />
|
430
|
+
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="TEST_SCRIPT_PATH" VALUE="" />
|
431
|
+
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="TEST_FILE_MASK" VALUE="" />
|
432
|
+
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="TEST_METHOD_NAME" VALUE="" />
|
433
|
+
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="TEST_TEST_TYPE" VALUE="TEST_SCRIPT" />
|
434
|
+
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="DRB" VALUE="false" />
|
435
|
+
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="ZEUS" VALUE="false" />
|
436
|
+
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="SPRING" VALUE="false" />
|
437
|
+
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="RUNNER_OPTIONS" VALUE="" />
|
438
|
+
<method />
|
439
|
+
</configuration>
|
440
|
+
<configuration default="true" type="js.build_tools.gulp" factoryName="Gulp.js">
|
441
|
+
<method />
|
442
|
+
</configuration>
|
443
|
+
</component>
|
444
|
+
<component name="ShelveChangesManager" show_recycled="false" />
|
445
|
+
<component name="SvnConfiguration">
|
446
|
+
<configuration />
|
447
|
+
</component>
|
448
|
+
<component name="TaskManager">
|
449
|
+
<task active="true" id="Default" summary="Default task">
|
450
|
+
<changelist id="94356a28-2fdb-4764-939d-b02f5ae1b450" name="Default" comment="" />
|
451
|
+
<created>1433459253119</created>
|
452
|
+
<option name="number" value="Default" />
|
453
|
+
<updated>1433459253119</updated>
|
454
|
+
</task>
|
455
|
+
<servers />
|
456
|
+
</component>
|
457
|
+
<component name="ToolWindowManager">
|
458
|
+
<frame x="0" y="23" width="1645" height="1027" extended-state="0" />
|
459
|
+
<editor active="true" />
|
460
|
+
<layout>
|
461
|
+
<window_info id="Project" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" weight="0.24984802" sideWeight="0.5" order="1" side_tool="false" content_ui="combo" />
|
462
|
+
<window_info id="TODO" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="10" side_tool="false" content_ui="tabs" />
|
463
|
+
<window_info id="Event Log" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="0" side_tool="true" content_ui="tabs" />
|
464
|
+
<window_info id="Application Servers" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
|
465
|
+
<window_info id="Database" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="0" side_tool="false" content_ui="tabs" />
|
466
|
+
<window_info id="Find" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.3292683" sideWeight="0.5" order="5" side_tool="false" content_ui="tabs" />
|
467
|
+
<window_info id="Version Control" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="2" side_tool="false" content_ui="tabs" />
|
468
|
+
<window_info id="Run" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="6" side_tool="false" content_ui="tabs" />
|
469
|
+
<window_info id="Structure" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.25" sideWeight="0.5" order="2" side_tool="false" content_ui="tabs" />
|
470
|
+
<window_info id="Terminal" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" />
|
471
|
+
<window_info id="Favorites" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="0" side_tool="true" content_ui="tabs" />
|
472
|
+
<window_info id="Debug" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.4" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" />
|
473
|
+
<window_info id="Cvs" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.25" sideWeight="0.5" order="8" side_tool="false" content_ui="tabs" />
|
474
|
+
<window_info id="Hierarchy" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.25" sideWeight="0.5" order="3" side_tool="false" content_ui="combo" />
|
475
|
+
<window_info id="Message" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="4" side_tool="false" content_ui="tabs" />
|
476
|
+
<window_info id="Commander" active="false" anchor="right" auto_hide="false" internal_type="SLIDING" type="SLIDING" visible="false" weight="0.4" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
|
477
|
+
<window_info id="Inspection" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.4" sideWeight="0.5" order="9" side_tool="false" content_ui="tabs" />
|
478
|
+
<window_info id="Ant Build" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.25" sideWeight="0.5" order="2" side_tool="false" content_ui="tabs" />
|
479
|
+
</layout>
|
480
|
+
</component>
|
481
|
+
<component name="VcsContentAnnotationSettings">
|
482
|
+
<option name="myLimit" value="2678400000" />
|
483
|
+
</component>
|
484
|
+
<component name="XDebuggerManager">
|
485
|
+
<breakpoint-manager />
|
486
|
+
<watches-manager />
|
487
|
+
</component>
|
488
|
+
<component name="editorHistoryManager">
|
489
|
+
<entry file="file://$PROJECT_DIR$/app/notification/models/user.rb">
|
490
|
+
<provider selected="true" editor-type-id="text-editor">
|
491
|
+
<state vertical-scroll-proportion="0.0">
|
492
|
+
<caret line="1" column="25" selection-start-line="1" selection-start-column="25" selection-end-line="1" selection-end-column="25" />
|
493
|
+
<folding />
|
494
|
+
</state>
|
495
|
+
</provider>
|
496
|
+
</entry>
|
497
|
+
<entry file="file://$PROJECT_DIR$/app/notification/assets/js/volt-notification.js">
|
498
|
+
<provider selected="true" editor-type-id="text-editor">
|
499
|
+
<state vertical-scroll-proportion="0.0">
|
500
|
+
<caret line="6" column="6" selection-start-line="6" selection-start-column="6" selection-end-line="6" selection-end-column="6" />
|
501
|
+
<folding>
|
502
|
+
<marker date="1433575610000" expanded="true" signature="121:287" placeholder="{...}" />
|
503
|
+
</folding>
|
504
|
+
</state>
|
505
|
+
</provider>
|
506
|
+
</entry>
|
507
|
+
<entry file="file://$PROJECT_DIR$/app/notification/views/main/index.html">
|
508
|
+
<provider selected="true" editor-type-id="text-editor">
|
509
|
+
<state vertical-scroll-proportion="-0.625">
|
510
|
+
<caret line="1" column="0" selection-start-line="1" selection-start-column="0" selection-end-line="1" selection-end-column="0" />
|
511
|
+
<folding />
|
512
|
+
</state>
|
513
|
+
</provider>
|
514
|
+
</entry>
|
515
|
+
<entry file="file://$PROJECT_DIR$/app/notification/models/notification_message.rb">
|
516
|
+
<provider selected="true" editor-type-id="text-editor">
|
517
|
+
<state vertical-scroll-proportion="0.0">
|
518
|
+
<caret line="15" column="0" selection-start-line="15" selection-start-column="0" selection-end-line="15" selection-end-column="0" />
|
519
|
+
<folding />
|
520
|
+
</state>
|
521
|
+
</provider>
|
522
|
+
</entry>
|
523
|
+
<entry file="file://$PROJECT_DIR$/Gemfile">
|
524
|
+
<provider selected="true" editor-type-id="text-editor">
|
525
|
+
<state vertical-scroll-proportion="0.0">
|
526
|
+
<caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
|
527
|
+
<folding />
|
528
|
+
</state>
|
529
|
+
</provider>
|
530
|
+
</entry>
|
531
|
+
<entry file="file://$PROJECT_DIR$/README.md">
|
532
|
+
<provider selected="true" editor-type-id="text-editor">
|
533
|
+
<state vertical-scroll-proportion="0.0">
|
534
|
+
<caret line="10" column="17" selection-start-line="10" selection-start-column="17" selection-end-line="10" selection-end-column="17" />
|
535
|
+
<folding />
|
536
|
+
</state>
|
537
|
+
</provider>
|
538
|
+
</entry>
|
539
|
+
<entry file="file://$PROJECT_DIR$/app/notification/controllers/main_controller.rb">
|
540
|
+
<provider selected="true" editor-type-id="text-editor">
|
541
|
+
<state vertical-scroll-proportion="0.18828452">
|
542
|
+
<caret line="12" column="0" selection-start-line="12" selection-start-column="0" selection-end-line="12" selection-end-column="0" />
|
543
|
+
<folding />
|
544
|
+
</state>
|
545
|
+
</provider>
|
546
|
+
</entry>
|
547
|
+
</component>
|
548
|
+
</project>
|
data/Gemfile
ADDED
data/README.md
ADDED
@@ -0,0 +1,37 @@
|
|
1
|
+
# Volt::Notification
|
2
|
+
|
3
|
+
Implementation of the HTML5 Notification API for Volt
|
4
|
+
|
5
|
+
## Installation
|
6
|
+
|
7
|
+
Add this line to your application's Gemfile:
|
8
|
+
|
9
|
+
gem 'volt-notification'
|
10
|
+
|
11
|
+
And then execute:
|
12
|
+
|
13
|
+
$ bundle
|
14
|
+
|
15
|
+
Or install it yourself as:
|
16
|
+
|
17
|
+
$ gem install volt-notification
|
18
|
+
|
19
|
+
## Usage
|
20
|
+
|
21
|
+
add the tag <:notification> to your view.
|
22
|
+
|
23
|
+
To send a notification to all users, add a NotificaitonMessage to the page._notification_messages arraymodel:
|
24
|
+
|
25
|
+
`page._notification_messages << NotificationMessage.say('Title','Body of the message')`
|
26
|
+
|
27
|
+
To send a notification to the logged in user, add a NotificationMessage to the current_user:
|
28
|
+
|
29
|
+
`Volt.current_user._notification_messages << NotificaitonMessage.say('Title','Body of the message')`
|
30
|
+
|
31
|
+
## Contributing
|
32
|
+
|
33
|
+
1. Fork it ( http://github.com/[my-github-username]/volt-notification/fork )
|
34
|
+
2. Create your feature branch (`git checkout -b my-new-feature`)
|
35
|
+
3. Commit your changes (`git commit -am 'Add some feature'`)
|
36
|
+
4. Push to the branch (`git push origin my-new-feature`)
|
37
|
+
5. Create new Pull Request
|
data/Rakefile
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
require "bundler/gem_tasks"
|
@@ -0,0 +1,9 @@
|
|
1
|
+
if ('Notification' in window) {
|
2
|
+
// console.log('Notification object exists')
|
3
|
+
if (!window.Notification.permission) {
|
4
|
+
// console.log('requesting permission')
|
5
|
+
window.Notification.requestPermission();
|
6
|
+
//} else {
|
7
|
+
// console.log('already has permission')
|
8
|
+
}
|
9
|
+
}
|
@@ -0,0 +1 @@
|
|
1
|
+
# Component dependencies
|
@@ -0,0 +1,10 @@
|
|
1
|
+
# Place any code you want to run when the component is included on the client
|
2
|
+
# or server.
|
3
|
+
|
4
|
+
# To include code only on the client use:
|
5
|
+
# if RUBY_PLATFORM == 'opal'
|
6
|
+
#
|
7
|
+
# To include code only on the server, use:
|
8
|
+
# unless RUBY_PLATFORM == 'opal'
|
9
|
+
# ^^ this will not send compile in code in the conditional to the client.
|
10
|
+
# ^^ this include code required in the conditional.
|
@@ -0,0 +1 @@
|
|
1
|
+
# Component routes
|
@@ -0,0 +1,75 @@
|
|
1
|
+
module Notification
|
2
|
+
class MainController < Volt::ModelController
|
3
|
+
|
4
|
+
def index
|
5
|
+
page._notification_messages.on('added') do |pos|
|
6
|
+
puts "message_added #{pos.to_s}"
|
7
|
+
notification = page._notification_messages[pos]
|
8
|
+
volt_notify(notification)
|
9
|
+
end
|
10
|
+
|
11
|
+
Volt.current_user.then do |user |
|
12
|
+
user._notification_messages.on('added') do |pos|
|
13
|
+
|
14
|
+
puts "message_added #{pos.to_s}"
|
15
|
+
notification = page._notification_messages[pos]
|
16
|
+
volt_notify(notification)
|
17
|
+
end if user
|
18
|
+
end
|
19
|
+
end
|
20
|
+
|
21
|
+
def auto_close_time
|
22
|
+
#puts attrs.auto_close_time
|
23
|
+
attrs.auto_close_time ? attrs.auto_close_time.to_i : 0
|
24
|
+
|
25
|
+
end
|
26
|
+
|
27
|
+
def default_icon
|
28
|
+
attrs.default_icon ? attrs.default_icon : 'favicon.ico'
|
29
|
+
end
|
30
|
+
|
31
|
+
def direction
|
32
|
+
attrs.direction ? attrs.direction : 'auto'
|
33
|
+
end
|
34
|
+
|
35
|
+
def volt_notify(msg)
|
36
|
+
#puts "volt_notify"
|
37
|
+
if `'Notification' in window`
|
38
|
+
#puts "has Notifican Object"
|
39
|
+
|
40
|
+
` if (!window.Notification.permission) {
|
41
|
+
console.log('requesting permission')
|
42
|
+
window.Notification.requestPermission();
|
43
|
+
}`
|
44
|
+
if (`window.Notification.permission`)
|
45
|
+
puts "has permission: #{msg.body}"
|
46
|
+
ztitle = msg.title
|
47
|
+
zbody = msg.body
|
48
|
+
zdir = msg.direction ? msg.direction : direction
|
49
|
+
zlang = msg.language
|
50
|
+
zicon = msg.icon && msg.icon != '' ? msg.icon : default_icon
|
51
|
+
ztag = msg.tag
|
52
|
+
|
53
|
+
`notification = new window.Notification(ztitle,
|
54
|
+
{dir: zdir,
|
55
|
+
lang: zlang,
|
56
|
+
icon: zicon,
|
57
|
+
tag: ztag,
|
58
|
+
body: zbody});`
|
59
|
+
#puts notification
|
60
|
+
end
|
61
|
+
|
62
|
+
if (auto_close_time > 0)
|
63
|
+
act = auto_close_time
|
64
|
+
puts "autoclose"
|
65
|
+
`setTimeout(function () {
|
66
|
+
notification.close(); //closes the notification
|
67
|
+
}, act);`
|
68
|
+
end
|
69
|
+
end
|
70
|
+
end
|
71
|
+
|
72
|
+
private
|
73
|
+
|
74
|
+
end
|
75
|
+
end
|
@@ -0,0 +1,15 @@
|
|
1
|
+
class NotificationMessage < Volt::Model
|
2
|
+
field :body, String
|
3
|
+
field :icon, String
|
4
|
+
field :direction, String
|
5
|
+
field :tag, String
|
6
|
+
field :language, String
|
7
|
+
field :title, String
|
8
|
+
|
9
|
+
def self.say(title, body)
|
10
|
+
msg = NotificationMessage.new
|
11
|
+
msg.title = title
|
12
|
+
msg.body = body
|
13
|
+
msg
|
14
|
+
end
|
15
|
+
end
|
@@ -0,0 +1 @@
|
|
1
|
+
<:Body>
|
@@ -0,0 +1,18 @@
|
|
1
|
+
# If you need to require in code in the gem's app folder, keep in mind that
|
2
|
+
# the app is not on the load path when the gem is required. Use
|
3
|
+
# app/{gemname}/config/initializers/boot.rb to require in client or server
|
4
|
+
# code.
|
5
|
+
#
|
6
|
+
# Also, in volt apps, you typically use the lib folder in the
|
7
|
+
# app/{componentname} folder instead of this lib folder. This lib folder is
|
8
|
+
# for setting up gem code when Bundler.require is called. (or the gem is
|
9
|
+
# required.)
|
10
|
+
#
|
11
|
+
# If you need to configure volt in some way, you can add a Volt.configure block
|
12
|
+
# in this file.
|
13
|
+
|
14
|
+
module Volt
|
15
|
+
module Notification
|
16
|
+
# Your code goes here...
|
17
|
+
end
|
18
|
+
end
|
@@ -0,0 +1,23 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
lib = File.expand_path('../lib', __FILE__)
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
+
require 'volt/notification/version'
|
5
|
+
|
6
|
+
Gem::Specification.new do |spec|
|
7
|
+
spec.name = "volt-notification"
|
8
|
+
spec.version = Volt::Notification::VERSION
|
9
|
+
spec.authors = ["Bugfish Corp"]
|
10
|
+
spec.email = ["support@bugfish.io"]
|
11
|
+
spec.summary = %q{HTML5 Notifications for Volt}
|
12
|
+
spec.description = %q{Implementation of HTML5 notifications for the volt framework}
|
13
|
+
spec.homepage = ""
|
14
|
+
spec.license = "MIT"
|
15
|
+
|
16
|
+
spec.files = `git ls-files -z`.split("\x0")
|
17
|
+
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
|
18
|
+
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
19
|
+
spec.require_paths = ["lib"]
|
20
|
+
|
21
|
+
spec.add_development_dependency "volt", "~> 0.9.2.0"
|
22
|
+
spec.add_development_dependency "rake"
|
23
|
+
end
|
metadata
ADDED
@@ -0,0 +1,96 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: volt-notification
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Bugfish Corp
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2015-06-06 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: volt
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: 0.9.2.0
|
20
|
+
type: :development
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: 0.9.2.0
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: rake
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - ">="
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '0'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - ">="
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '0'
|
41
|
+
description: Implementation of HTML5 notifications for the volt framework
|
42
|
+
email:
|
43
|
+
- support@bugfish.io
|
44
|
+
executables: []
|
45
|
+
extensions: []
|
46
|
+
extra_rdoc_files: []
|
47
|
+
files:
|
48
|
+
- ".gitignore"
|
49
|
+
- ".idea/.name"
|
50
|
+
- ".idea/.rakeTasks"
|
51
|
+
- ".idea/misc.xml"
|
52
|
+
- ".idea/modules.xml"
|
53
|
+
- ".idea/vcs.xml"
|
54
|
+
- ".idea/volt-notification.iml"
|
55
|
+
- ".idea/workspace.xml"
|
56
|
+
- Gemfile
|
57
|
+
- README.md
|
58
|
+
- Rakefile
|
59
|
+
- app/notification/assets/js/volt-notification.js
|
60
|
+
- app/notification/config/dependencies.rb
|
61
|
+
- app/notification/config/initializers/boot.rb
|
62
|
+
- app/notification/config/routes.rb
|
63
|
+
- app/notification/controllers/main_controller.rb
|
64
|
+
- app/notification/models/notification_message.rb
|
65
|
+
- app/notification/models/user.rb
|
66
|
+
- app/notification/views/main/index.html
|
67
|
+
- lib/volt/notification.rb
|
68
|
+
- lib/volt/notification/version.rb
|
69
|
+
- spec/app/main/models/notifications_spec.rb
|
70
|
+
- volt-notification.gemspec
|
71
|
+
homepage: ''
|
72
|
+
licenses:
|
73
|
+
- MIT
|
74
|
+
metadata: {}
|
75
|
+
post_install_message:
|
76
|
+
rdoc_options: []
|
77
|
+
require_paths:
|
78
|
+
- lib
|
79
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
80
|
+
requirements:
|
81
|
+
- - ">="
|
82
|
+
- !ruby/object:Gem::Version
|
83
|
+
version: '0'
|
84
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
85
|
+
requirements:
|
86
|
+
- - ">="
|
87
|
+
- !ruby/object:Gem::Version
|
88
|
+
version: '0'
|
89
|
+
requirements: []
|
90
|
+
rubyforge_project:
|
91
|
+
rubygems_version: 2.4.7
|
92
|
+
signing_key:
|
93
|
+
specification_version: 4
|
94
|
+
summary: HTML5 Notifications for Volt
|
95
|
+
test_files:
|
96
|
+
- spec/app/main/models/notifications_spec.rb
|