aslon_superfish 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,5 @@
1
+ lib/**/*.rb
2
+ bin/*
3
+ -
4
+ features/**/*.feature
5
+ LICENSE.txt
@@ -0,0 +1 @@
1
+ aslon_superfish
@@ -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 gem into pkg/" fullCmd="build" taksId="build" /><RakeTask description="Remove rcov products for rcov" fullCmd="clobber_rcov" taksId="clobber_rcov" /><RakeTask description="Remove rdoc products" fullCmd="clobber_rdoc" taksId="clobber_rdoc" /><RakeTask description="Start IRB with all runtime dependencies loaded" fullCmd="console[script]" taksId="console[script]" /><RakeGroup description="" fullCmd="" taksId="gemcutter"><RakeTask description="Release gem to Gemcutter" fullCmd="gemcutter:release" taksId="release" /></RakeGroup><RakeTask description="Generate and validate gemspec" fullCmd="gemspec" taksId="gemspec" /><RakeGroup description="" fullCmd="" taksId="gemspec"><RakeTask description="Display the gemspec for debugging purposes, as jeweler knows it (not from the filesystem)" fullCmd="gemspec:debug" taksId="debug" /><RakeTask description="Regenerate the gemspec on the filesystem" fullCmd="gemspec:generate" taksId="generate" /><RakeTask description="Regenerate and validate gemspec, and then commits and pushes to git" fullCmd="gemspec:release" taksId="release" /><RakeTask description="Validates the gemspec on the filesystem" fullCmd="gemspec:validate" taksId="validate" /></RakeGroup><RakeGroup description="" fullCmd="" taksId="git"><RakeTask description="Tag and push release to git" fullCmd="git:release" taksId="release" /></RakeGroup><RakeTask description="Build and install gem using `gem install`" fullCmd="install" taksId="install" /><RakeTask description="Analyze code coverage with tests" fullCmd="rcov" taksId="rcov" /><RakeTask description="Build the rdoc HTML Files" fullCmd="rdoc" taksId="rdoc" /><RakeTask description="Release gem" fullCmd="release" taksId="release" /><RakeTask description="Force a rebuild of the RDOC files" fullCmd="rerdoc" taksId="rerdoc" /><RakeTask description="Run tests" fullCmd="test" taksId="test" /><RakeTask description="Displays the current version" fullCmd="version" taksId="version" /><RakeGroup description="" fullCmd="" taksId="version"><RakeGroup description="" fullCmd="" taksId="bump"><RakeTask description="Bump the major version by 1" fullCmd="version:bump:major" taksId="major" /><RakeTask description="Bump the a minor version by 1" fullCmd="version:bump:minor" taksId="minor" /><RakeTask description="Bump the patch version by 1" fullCmd="version:bump:patch" taksId="patch" /></RakeGroup><RakeTask description="Writes out an explicit version" fullCmd="version:write" taksId="write" /></RakeGroup><RakeTask description="" fullCmd="clobber" taksId="clobber" /><RakeTask description="" fullCmd="console" taksId="console" /><RakeTask description="" fullCmd="default" taksId="default" /><RakeTask description="" fullCmd="gemspec_required" taksId="gemspec_required" /><RakeTask description="" fullCmd="rdoc/index.html" taksId="rdoc/index.html" /><RakeTask description="" fullCmd="version_required" taksId="version_required" /></RakeGroup></Settings>
@@ -0,0 +1,15 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <module type="RUBY_MODULE" version="4">
3
+ <component name="NewModuleRootManager">
4
+ <content url="file://$MODULE_DIR$" />
5
+ <orderEntry type="inheritedJdk" />
6
+ <orderEntry type="sourceFolder" forTests="false" />
7
+ <orderEntry type="library" scope="PROVIDED" name="git (v1.2.5, RVM: ruby-1.9.2-p290) [gem]" level="application" />
8
+ <orderEntry type="library" scope="PROVIDED" name="shoulda (v2.11.3, RVM: ruby-1.9.2-p290) [gem]" level="application" />
9
+ <orderEntry type="library" scope="PROVIDED" name="jeweler (v1.6.4, RVM: ruby-1.9.2-p290) [gem]" level="application" />
10
+ <orderEntry type="library" scope="PROVIDED" name="rcov (v0.9.11, RVM: ruby-1.9.2-p290) [gem]" level="application" />
11
+ <orderEntry type="library" scope="PROVIDED" name="bundler (v1.0.18, RVM: ruby-1.9.2-p290) [gem]" level="application" />
12
+ <orderEntry type="library" scope="PROVIDED" name="rake (v0.9.2.2, RVM: ruby-1.9.2-p290) [gem]" level="application" />
13
+ </component>
14
+ </module>
15
+
@@ -0,0 +1,5 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="Encoding" useUTFGuessing="true" native2AsciiForPropertiesFiles="false" />
4
+ </project>
5
+
@@ -0,0 +1,11 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="DependencyValidationManager">
4
+ <option name="SKIP_IMPORT_STATEMENTS" value="false" />
5
+ </component>
6
+ <component name="ProjectResources">
7
+ <default-html-doctype>http://www.w3.org/1999/xhtml</default-html-doctype>
8
+ </component>
9
+ <component name="ProjectRootManager" version="2" project-jdk-name="RVM: ruby-1.9.2-p290" project-jdk-type="RUBY_SDK" />
10
+ </project>
11
+
@@ -0,0 +1,9 @@
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/aslon_superfish.iml" filepath="$PROJECT_DIR$/.idea/aslon_superfish.iml" />
6
+ </modules>
7
+ </component>
8
+ </project>
9
+
@@ -0,0 +1,7 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="VcsDirectoryMappings">
4
+ <mapping directory="$PROJECT_DIR$" vcs="Git" />
5
+ </component>
6
+ </project>
7
+
@@ -0,0 +1,379 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="ChangeListManager">
4
+ <list default="true" id="d5ebf486-1681-4df0-bf7b-3100aa8fbc20" name="Default" comment="">
5
+ <change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/app/assets/javascripts/superfish/hoverIntent.js" />
6
+ <change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/app/assets/javascripts/superfish/superfish.js" />
7
+ <change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/app/assets/javascripts/superfish/supersubs.js" />
8
+ <change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/app/assets/stylesheets/superfish/superfish.css.sass" />
9
+ <change type="MODIFICATION" beforePath="$PROJECT_DIR$/Rakefile" afterPath="$PROJECT_DIR$/Rakefile" />
10
+ <change type="MODIFICATION" beforePath="$PROJECT_DIR$/lib/aslon_superfish.rb" afterPath="$PROJECT_DIR$/lib/aslon_superfish.rb" />
11
+ </list>
12
+ <ignored path="aslon_superfish.iws" />
13
+ <ignored path=".idea/workspace.xml" />
14
+ <option name="TRACKING_ENABLED" value="true" />
15
+ <option name="SHOW_DIALOG" value="false" />
16
+ <option name="HIGHLIGHT_CONFLICTS" value="true" />
17
+ <option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
18
+ <option name="LAST_RESOLUTION" value="IGNORE" />
19
+ </component>
20
+ <component name="ChangesViewManager" flattened_view="true" show_ignored="false" />
21
+ <component name="CreatePatchCommitExecutor">
22
+ <option name="PATCH_PATH" value="" />
23
+ <option name="REVERSE_PATCH" value="false" />
24
+ </component>
25
+ <component name="DaemonCodeAnalyzer">
26
+ <disable_hints />
27
+ </component>
28
+ <component name="FavoritesManager">
29
+ <favorites_list name="aslon_superfish" />
30
+ </component>
31
+ <component name="FileEditorManager">
32
+ <leaf>
33
+ <file leaf-file-name="aslon_superfish.rb" pinned="false" current="false" current-in-tab="false">
34
+ <entry file="file://$PROJECT_DIR$/lib/aslon_superfish.rb">
35
+ <provider selected="true" editor-type-id="text-editor">
36
+ <state line="4" column="22" selection-start="168" selection-end="168" vertical-scroll-proportion="0.0">
37
+ <folding />
38
+ </state>
39
+ </provider>
40
+ </entry>
41
+ </file>
42
+ <file leaf-file-name="Rakefile" pinned="false" current="true" current-in-tab="true">
43
+ <entry file="file://$PROJECT_DIR$/Rakefile">
44
+ <provider selected="true" editor-type-id="text-editor">
45
+ <state line="20" column="59" selection-start="627" selection-end="627" vertical-scroll-proportion="0.4326241">
46
+ <folding />
47
+ </state>
48
+ </provider>
49
+ </entry>
50
+ </file>
51
+ </leaf>
52
+ </component>
53
+ <component name="FindManager">
54
+ <FindUsagesManager>
55
+ <setting name="OPEN_NEW_TAB" value="false" />
56
+ </FindUsagesManager>
57
+ </component>
58
+ <component name="Git.Settings">
59
+ <option name="CHECKOUT_INCLUDE_TAGS" value="false" />
60
+ <option name="UPDATE_CHANGES_POLICY" value="STASH" />
61
+ </component>
62
+ <component name="IdeDocumentHistory">
63
+ <option name="changedFiles">
64
+ <list>
65
+ <option value="$PROJECT_DIR$/lib/aslon_superfish.rb" />
66
+ <option value="$PROJECT_DIR$/Rakefile" />
67
+ </list>
68
+ </option>
69
+ </component>
70
+ <component name="ProjectLevelVcsManager" settingsEditedManually="false">
71
+ <OptionsSetting value="true" id="Add" />
72
+ <OptionsSetting value="true" id="Remove" />
73
+ <OptionsSetting value="true" id="Checkout" />
74
+ <OptionsSetting value="true" id="Update" />
75
+ <OptionsSetting value="true" id="Status" />
76
+ <OptionsSetting value="true" id="Edit" />
77
+ <ConfirmationsSetting value="0" id="Add" />
78
+ <ConfirmationsSetting value="0" id="Remove" />
79
+ </component>
80
+ <component name="ProjectReloadState">
81
+ <option name="STATE" value="0" />
82
+ </component>
83
+ <component name="ProjectView">
84
+ <navigator currentView="ProjectPane" proportions="" version="1" splitterProportion="0.5">
85
+ <flattenPackages />
86
+ <showMembers />
87
+ <showModules />
88
+ <showLibraryContents />
89
+ <hideEmptyPackages />
90
+ <abbreviatePackageNames />
91
+ <autoscrollToSource />
92
+ <autoscrollFromSource />
93
+ <sortByType />
94
+ </navigator>
95
+ <panes>
96
+ <pane id="ProjectPane">
97
+ <subPane>
98
+ <PATH>
99
+ <PATH_ELEMENT>
100
+ <option name="myItemId" value="aslon_superfish" />
101
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
102
+ </PATH_ELEMENT>
103
+ </PATH>
104
+ <PATH>
105
+ <PATH_ELEMENT>
106
+ <option name="myItemId" value="aslon_superfish" />
107
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
108
+ </PATH_ELEMENT>
109
+ <PATH_ELEMENT>
110
+ <option name="myItemId" value="aslon_superfish" />
111
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
112
+ </PATH_ELEMENT>
113
+ </PATH>
114
+ <PATH>
115
+ <PATH_ELEMENT>
116
+ <option name="myItemId" value="aslon_superfish" />
117
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
118
+ </PATH_ELEMENT>
119
+ <PATH_ELEMENT>
120
+ <option name="myItemId" value="aslon_superfish" />
121
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
122
+ </PATH_ELEMENT>
123
+ <PATH_ELEMENT>
124
+ <option name="myItemId" value="app" />
125
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
126
+ </PATH_ELEMENT>
127
+ <PATH_ELEMENT>
128
+ <option name="myItemId" value="assets" />
129
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
130
+ </PATH_ELEMENT>
131
+ <PATH_ELEMENT>
132
+ <option name="myItemId" value="stylesheets" />
133
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
134
+ </PATH_ELEMENT>
135
+ <PATH_ELEMENT>
136
+ <option name="myItemId" value="superfish" />
137
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
138
+ </PATH_ELEMENT>
139
+ </PATH>
140
+ <PATH>
141
+ <PATH_ELEMENT>
142
+ <option name="myItemId" value="aslon_superfish" />
143
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
144
+ </PATH_ELEMENT>
145
+ <PATH_ELEMENT>
146
+ <option name="myItemId" value="aslon_superfish" />
147
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
148
+ </PATH_ELEMENT>
149
+ <PATH_ELEMENT>
150
+ <option name="myItemId" value="app" />
151
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
152
+ </PATH_ELEMENT>
153
+ <PATH_ELEMENT>
154
+ <option name="myItemId" value="assets" />
155
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
156
+ </PATH_ELEMENT>
157
+ <PATH_ELEMENT>
158
+ <option name="myItemId" value="javascripts" />
159
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
160
+ </PATH_ELEMENT>
161
+ <PATH_ELEMENT>
162
+ <option name="myItemId" value="superfish" />
163
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
164
+ </PATH_ELEMENT>
165
+ </PATH>
166
+ </subPane>
167
+ </pane>
168
+ <pane id="Scope" />
169
+ <pane id="Favorites" />
170
+ </panes>
171
+ </component>
172
+ <component name="PropertiesComponent">
173
+ <property name="options.splitter.main.proportions" value="0.3" />
174
+ <property name="WebServerToolWindowFactoryState" value="false" />
175
+ <property name="options.lastSelected" value="preferences.externalResources" />
176
+ <property name="options.searchVisible" value="true" />
177
+ <property name="options.splitter.details.proportions" value="0.2" />
178
+ </component>
179
+ <component name="RecentsManager">
180
+ <key name="CopyFile.RECENT_KEYS">
181
+ <recent name="$PROJECT_DIR$" />
182
+ </key>
183
+ </component>
184
+ <component name="RunManager">
185
+ <configuration default="true" type="RSpecRunConfigurationType" factoryName="RSpec">
186
+ <predefined_log_file id="RUBY_RSPEC" enabled="true" />
187
+ <module name="" />
188
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="RUBY_ARGS" VALUE="-e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)" />
189
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="WORK DIR" VALUE="" />
190
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SHOULD_USE_SDK" VALUE="false" />
191
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="ALTERN_SDK_NAME" VALUE="" />
192
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="myPassParentEnvs" VALUE="true" />
193
+ <envs />
194
+ <EXTENSION ID="BundlerRunConfigurationExtension" bundleExecEnabled="false" />
195
+ <EXTENSION ID="RubyCoverageRunConfigurationExtension" enabled="false" track_test_folders="true" runner="rcov">
196
+ <COVERAGE_PATTERN ENABLED="true">
197
+ <PATTERN REGEXPS="/.rvm/" INCLUDED="false" />
198
+ </COVERAGE_PATTERN>
199
+ </EXTENSION>
200
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TESTS_FOLDER_PATH" VALUE="" />
201
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_SCRIPT_PATH" VALUE="" />
202
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_RUNNER_PATH" VALUE="" />
203
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_FILE_MASK" VALUE="**/*_spec.rb" />
204
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_EXAMPLE_NAME" VALUE="" />
205
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_TEST_TYPE" VALUE="TEST_SCRIPT" />
206
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_ARGS" VALUE="" />
207
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="RUNNER_VERSION" VALUE="" />
208
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="USE_CUSTOM_SPEC_RUNNER" VALUE="false" />
209
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="DRB" VALUE="false" />
210
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="FULL_BACKTRACE" VALUE="false" />
211
+ <method />
212
+ </configuration>
213
+ <configuration default="true" type="CucumberRunConfigurationType" factoryName="Cucumber">
214
+ <predefined_log_file id="RUBY_CUCUMBER" enabled="true" />
215
+ <module name="" />
216
+ <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="RUBY_ARGS" VALUE="-e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)" />
217
+ <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="WORK DIR" VALUE="" />
218
+ <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="SHOULD_USE_SDK" VALUE="false" />
219
+ <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="ALTERN_SDK_NAME" VALUE="" />
220
+ <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="myPassParentEnvs" VALUE="true" />
221
+ <envs>
222
+ <env name="ANSICON" value="" />
223
+ </envs>
224
+ <EXTENSION ID="BundlerRunConfigurationExtension" bundleExecEnabled="false" />
225
+ <EXTENSION ID="RubyCoverageRunConfigurationExtension" enabled="false" track_test_folders="true" runner="rcov">
226
+ <COVERAGE_PATTERN ENABLED="true">
227
+ <PATTERN REGEXPS="/.rvm/" INCLUDED="false" />
228
+ </COVERAGE_PATTERN>
229
+ </EXTENSION>
230
+ <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="TEST_FILE_MASK" VALUE="**/*.feature" />
231
+ <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="TEST_TEST_TYPE" VALUE="TEST_SCRIPT" />
232
+ <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="TESTS_FOLDER_PATH" VALUE="" />
233
+ <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="TEST_SCRIPT_PATH" VALUE="" />
234
+ <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="TEST_TAGS_FILTER" VALUE="" />
235
+ <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="TEST_NAME_FILTER" VALUE="" />
236
+ <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="CUCUMBER_ARGS" VALUE="--color -r features" />
237
+ <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="RUNNER_VERSION" VALUE="" />
238
+ <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="FULL_BACKTRACE" VALUE="false" />
239
+ <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="VERBOSE_OPTION" VALUE="false" />
240
+ <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="DRB" VALUE="false" />
241
+ <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="CUCUMBER_RUNNER_PATH" VALUE="" />
242
+ <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="USE_CUSTOM_RUNNER" VALUE="false" />
243
+ <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="SETTINGS_VERSION" VALUE="2" />
244
+ <method />
245
+ </configuration>
246
+ <configuration default="true" type="TestUnitRunConfigurationType" factoryName="Test::Unit/Shoulda">
247
+ <predefined_log_file id="RUBY_TESTUNIT" enabled="true" />
248
+ <module name="" />
249
+ <RTEST_RUN_CONFIG_SETTINGS_ID NAME="RUBY_ARGS" VALUE="-e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)" />
250
+ <RTEST_RUN_CONFIG_SETTINGS_ID NAME="WORK DIR" VALUE="" />
251
+ <RTEST_RUN_CONFIG_SETTINGS_ID NAME="SHOULD_USE_SDK" VALUE="false" />
252
+ <RTEST_RUN_CONFIG_SETTINGS_ID NAME="ALTERN_SDK_NAME" VALUE="" />
253
+ <RTEST_RUN_CONFIG_SETTINGS_ID NAME="myPassParentEnvs" VALUE="true" />
254
+ <envs />
255
+ <EXTENSION ID="BundlerRunConfigurationExtension" bundleExecEnabled="false" />
256
+ <EXTENSION ID="RubyCoverageRunConfigurationExtension" enabled="false" track_test_folders="true" runner="rcov">
257
+ <COVERAGE_PATTERN ENABLED="true">
258
+ <PATTERN REGEXPS="/.rvm/" INCLUDED="false" />
259
+ </COVERAGE_PATTERN>
260
+ </EXTENSION>
261
+ <RTEST_RUN_CONFIG_SETTINGS_ID NAME="TESTS_FOLDER_PATH" VALUE="" />
262
+ <RTEST_RUN_CONFIG_SETTINGS_ID NAME="TEST_SCRIPT_PATH" VALUE="" />
263
+ <RTEST_RUN_CONFIG_SETTINGS_ID NAME="TEST_CLASS_NAME" VALUE="" />
264
+ <RTEST_RUN_CONFIG_SETTINGS_ID NAME="TEST_FILE_MASK" VALUE="" />
265
+ <RTEST_RUN_CONFIG_SETTINGS_ID NAME="TEST_METHOD_NAME" VALUE="" />
266
+ <RTEST_RUN_CONFIG_SETTINGS_ID NAME="TEST_TEST_TYPE" VALUE="TEST_SCRIPT" />
267
+ <RTEST_RUN_CONFIG_SETTINGS_ID NAME="INHERITANCE_CHECK_DISABLED" VALUE="false" />
268
+ <RTEST_RUN_CONFIG_SETTINGS_ID NAME="DRB" VALUE="false" />
269
+ <method />
270
+ </configuration>
271
+ <list size="0" />
272
+ </component>
273
+ <component name="ShelveChangesManager" show_recycled="false" />
274
+ <component name="SvnConfiguration" maxAnnotateRevisions="500">
275
+ <option name="USER" value="" />
276
+ <option name="PASSWORD" value="" />
277
+ <option name="mySSHConnectionTimeout" value="30000" />
278
+ <option name="mySSHReadTimeout" value="30000" />
279
+ <option name="LAST_MERGED_REVISION" />
280
+ <option name="MERGE_DRY_RUN" value="false" />
281
+ <option name="MERGE_DIFF_USE_ANCESTRY" value="true" />
282
+ <option name="UPDATE_LOCK_ON_DEMAND" value="false" />
283
+ <option name="IGNORE_SPACES_IN_MERGE" value="false" />
284
+ <option name="DETECT_NESTED_COPIES" value="true" />
285
+ <option name="CHECK_NESTED_FOR_QUICK_MERGE" value="false" />
286
+ <option name="IGNORE_SPACES_IN_ANNOTATE" value="true" />
287
+ <option name="SHOW_MERGE_SOURCES_IN_ANNOTATE" value="true" />
288
+ <option name="FORCE_UPDATE" value="false" />
289
+ <myIsUseDefaultProxy>false</myIsUseDefaultProxy>
290
+ </component>
291
+ <component name="TaskManager">
292
+ <task active="true" id="Default" summary="Default task">
293
+ <created>1328216199913</created>
294
+ <updated>1328216199913</updated>
295
+ </task>
296
+ <servers />
297
+ </component>
298
+ <component name="ToolWindowManager">
299
+ <frame x="46" y="22" width="1387" height="792" extended-state="0" />
300
+ <editor active="false" />
301
+ <layout>
302
+ <window_info id="Messages" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" weight="0.32937685" sideWeight="0.5" order="-1" side_tool="false" content_ui="tabs" />
303
+ <window_info id="Changes" 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" />
304
+ <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="6" side_tool="false" content_ui="tabs" />
305
+ <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="1" side_tool="true" content_ui="tabs" />
306
+ <window_info id="Dependency Viewer" 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" />
307
+ <window_info id="Project" active="true" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" weight="0.24944974" sideWeight="0.6706231" order="0" side_tool="false" content_ui="tabs" />
308
+ <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="3" side_tool="false" content_ui="tabs" />
309
+ <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="2" side_tool="false" content_ui="tabs" />
310
+ <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="-1" side_tool="false" content_ui="tabs" />
311
+ <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="4" side_tool="false" content_ui="tabs" />
312
+ <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="0" side_tool="false" content_ui="tabs" />
313
+ <window_info id="Find" 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" />
314
+ <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="1" side_tool="false" content_ui="tabs" />
315
+ <window_info id="Commander" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.4" sideWeight="0.5" order="0" side_tool="false" content_ui="tabs" />
316
+ <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="5" side_tool="false" content_ui="tabs" />
317
+ <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="2" side_tool="false" content_ui="combo" />
318
+ </layout>
319
+ </component>
320
+ <component name="VcsManagerConfiguration">
321
+ <option name="OFFER_MOVE_TO_ANOTHER_CHANGELIST_ON_PARTIAL_COMMIT" value="true" />
322
+ <option name="CHECK_CODE_SMELLS_BEFORE_PROJECT_COMMIT" value="true" />
323
+ <option name="CHECK_NEW_TODO" value="true" />
324
+ <option name="myTodoPanelSettings">
325
+ <value>
326
+ <are-packages-shown value="false" />
327
+ <are-modules-shown value="false" />
328
+ <flatten-packages value="false" />
329
+ <is-autoscroll-to-source value="false" />
330
+ </value>
331
+ </option>
332
+ <option name="PERFORM_UPDATE_IN_BACKGROUND" value="true" />
333
+ <option name="PERFORM_COMMIT_IN_BACKGROUND" value="true" />
334
+ <option name="PERFORM_EDIT_IN_BACKGROUND" value="true" />
335
+ <option name="PERFORM_CHECKOUT_IN_BACKGROUND" value="true" />
336
+ <option name="PERFORM_ADD_REMOVE_IN_BACKGROUND" value="true" />
337
+ <option name="PERFORM_ROLLBACK_IN_BACKGROUND" value="false" />
338
+ <option name="CHECK_LOCALLY_CHANGED_CONFLICTS_IN_BACKGROUND" value="false" />
339
+ <option name="ENABLE_BACKGROUND_PROCESSES" value="false" />
340
+ <option name="CHANGED_ON_SERVER_INTERVAL" value="60" />
341
+ <option name="SHOW_ONLY_CHANGED_IN_SELECTION_DIFF" value="true" />
342
+ <option name="CHECK_COMMIT_MESSAGE_SPELLING" value="true" />
343
+ <option name="DEFAULT_PATCH_EXTENSION" value="patch" />
344
+ <option name="FORCE_NON_EMPTY_COMMENT" value="false" />
345
+ <option name="LAST_COMMIT_MESSAGE" />
346
+ <option name="MAKE_NEW_CHANGELIST_ACTIVE" value="true" />
347
+ <option name="OPTIMIZE_IMPORTS_BEFORE_PROJECT_COMMIT" value="false" />
348
+ <option name="CHECK_FILES_UP_TO_DATE_BEFORE_COMMIT" value="false" />
349
+ <option name="REFORMAT_BEFORE_PROJECT_COMMIT" value="false" />
350
+ <option name="REFORMAT_BEFORE_FILE_COMMIT" value="false" />
351
+ <option name="FILE_HISTORY_DIALOG_COMMENTS_SPLITTER_PROPORTION" value="0.8" />
352
+ <option name="FILE_HISTORY_DIALOG_SPLITTER_PROPORTION" value="0.5" />
353
+ <option name="ACTIVE_VCS_NAME" />
354
+ <option name="UPDATE_GROUP_BY_PACKAGES" value="false" />
355
+ <option name="UPDATE_GROUP_BY_CHANGELIST" value="false" />
356
+ <option name="SHOW_FILE_HISTORY_AS_TREE" value="false" />
357
+ <option name="FILE_HISTORY_SPLITTER_PROPORTION" value="0.6" />
358
+ </component>
359
+ <component name="XDebuggerManager">
360
+ <breakpoint-manager />
361
+ </component>
362
+ <component name="editorHistoryManager">
363
+ <entry file="file://$PROJECT_DIR$/lib/aslon_superfish.rb">
364
+ <provider selected="true" editor-type-id="text-editor">
365
+ <state line="4" column="22" selection-start="168" selection-end="168" vertical-scroll-proportion="0.0">
366
+ <folding />
367
+ </state>
368
+ </provider>
369
+ </entry>
370
+ <entry file="file://$PROJECT_DIR$/Rakefile">
371
+ <provider selected="true" editor-type-id="text-editor">
372
+ <state line="20" column="59" selection-start="627" selection-end="627" vertical-scroll-proportion="0.4326241">
373
+ <folding />
374
+ </state>
375
+ </provider>
376
+ </entry>
377
+ </component>
378
+ </project>
379
+
data/Gemfile ADDED
@@ -0,0 +1,13 @@
1
+ source "http://rubygems.org"
2
+ # Add dependencies required to use your gem here.
3
+ # Example:
4
+ # gem "activesupport", ">= 2.3.5"
5
+
6
+ # Add dependencies to develop your gem here.
7
+ # Include everything needed to run rake, tests, features, etc.
8
+ group :development do
9
+ gem "shoulda", ">= 0"
10
+ gem "bundler", "~> 1.0.0"
11
+ gem "jeweler", "~> 1.6.4"
12
+ gem "rcov", ">= 0"
13
+ end
@@ -0,0 +1,20 @@
1
+ GEM
2
+ remote: http://rubygems.org/
3
+ specs:
4
+ git (1.2.5)
5
+ jeweler (1.6.4)
6
+ bundler (~> 1.0)
7
+ git (>= 1.2.5)
8
+ rake
9
+ rake (0.9.2.2)
10
+ rcov (0.9.11)
11
+ shoulda (2.11.3)
12
+
13
+ PLATFORMS
14
+ ruby
15
+
16
+ DEPENDENCIES
17
+ bundler (~> 1.0.0)
18
+ jeweler (~> 1.6.4)
19
+ rcov
20
+ shoulda
@@ -0,0 +1,20 @@
1
+ Copyright (c) 2012 aslon
2
+
3
+ Permission is hereby granted, free of charge, to any person obtaining
4
+ a copy of this software and associated documentation files (the
5
+ "Software"), to deal in the Software without restriction, including
6
+ without limitation the rights to use, copy, modify, merge, publish,
7
+ distribute, sublicense, and/or sell copies of the Software, and to
8
+ permit persons to whom the Software is furnished to do so, subject to
9
+ the following conditions:
10
+
11
+ The above copyright notice and this permission notice shall be
12
+ included in all copies or substantial portions of the Software.
13
+
14
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
18
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
19
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@@ -0,0 +1,19 @@
1
+ = aslon_superfish
2
+
3
+ Description goes here.
4
+
5
+ == Contributing to aslon_superfish
6
+
7
+ * Check out the latest master to make sure the feature hasn't been implemented or the bug hasn't been fixed yet
8
+ * Check out the issue tracker to make sure someone already hasn't requested it and/or contributed it
9
+ * Fork the project
10
+ * Start a feature/bugfix branch
11
+ * Commit and push until you are happy with your contribution
12
+ * Make sure to add tests for it. This is important so I don't break it in a future version unintentionally.
13
+ * Please try not to mess with the Rakefile, version, or history. If you want to have your own version, or is otherwise necessary, that is fine, but please isolate to its own commit so I can cherry-pick around it.
14
+
15
+ == Copyright
16
+
17
+ Copyright (c) 2012 aslon. See LICENSE.txt for
18
+ further details.
19
+
@@ -0,0 +1,53 @@
1
+ # encoding: utf-8
2
+
3
+ require 'rubygems'
4
+ require 'bundler'
5
+ begin
6
+ Bundler.setup(:default, :development)
7
+ rescue Bundler::BundlerError => e
8
+ $stderr.puts e.message
9
+ $stderr.puts "Run `bundle install` to install missing gems"
10
+ exit e.status_code
11
+ end
12
+ require 'rake'
13
+
14
+ require 'jeweler'
15
+ Jeweler::Tasks.new do |gem|
16
+ # gem is a Gem::Specification... see http://docs.rubygems.org/read/chapter/20 for more options
17
+ gem.name = "aslon_superfish"
18
+ gem.homepage = "http://github.com/aslon/aslon_superfish"
19
+ gem.license = "MIT"
20
+ gem.summary = %Q{assets for js menu superfish}
21
+ gem.description = %Q{assets for js menu superfish js+CSS}
22
+ gem.email = ""
23
+ gem.authors = ["aslon"]
24
+ # dependencies defined in Gemfile
25
+ end
26
+ Jeweler::RubygemsDotOrgTasks.new
27
+
28
+ require 'rake/testtask'
29
+ Rake::TestTask.new(:test) do |test|
30
+ test.libs << 'lib' << 'test'
31
+ test.pattern = 'test/**/test_*.rb'
32
+ test.verbose = true
33
+ end
34
+
35
+ require 'rcov/rcovtask'
36
+ Rcov::RcovTask.new do |test|
37
+ test.libs << 'test'
38
+ test.pattern = 'test/**/test_*.rb'
39
+ test.verbose = true
40
+ test.rcov_opts << '--exclude "gems/*"'
41
+ end
42
+
43
+ task :default => :test
44
+
45
+ require 'rake/rdoctask'
46
+ Rake::RDocTask.new do |rdoc|
47
+ version = File.exist?('VERSION') ? File.read('VERSION') : ""
48
+
49
+ rdoc.rdoc_dir = 'rdoc'
50
+ rdoc.title = "aslon_superfish #{version}"
51
+ rdoc.rdoc_files.include('README*')
52
+ rdoc.rdoc_files.include('lib/**/*.rb')
53
+ end
data/VERSION ADDED
@@ -0,0 +1 @@
1
+ 0.0.1
@@ -0,0 +1,84 @@
1
+ (function($){
2
+ /* hoverIntent by Brian Cherne */
3
+ $.fn.hoverIntent = function(f,g) {
4
+ // default configuration options
5
+ var cfg = {
6
+ sensitivity: 7,
7
+ interval: 100,
8
+ timeout: 0
9
+ };
10
+ // override configuration options with user supplied object
11
+ cfg = $.extend(cfg, g ? { over: f, out: g } : f );
12
+
13
+ // instantiate variables
14
+ // cX, cY = current X and Y position of mouse, updated by mousemove event
15
+ // pX, pY = previous X and Y position of mouse, set by mouseover and polling interval
16
+ var cX, cY, pX, pY;
17
+
18
+ // A private function for getting mouse position
19
+ var track = function(ev) {
20
+ cX = ev.pageX;
21
+ cY = ev.pageY;
22
+ };
23
+
24
+ // A private function for comparing current and previous mouse position
25
+ var compare = function(ev,ob) {
26
+ ob.hoverIntent_t = clearTimeout(ob.hoverIntent_t);
27
+ // compare mouse positions to see if they've crossed the threshold
28
+ if ( ( Math.abs(pX-cX) + Math.abs(pY-cY) ) < cfg.sensitivity ) {
29
+ $(ob).unbind("mousemove",track);
30
+ // set hoverIntent state to true (so mouseOut can be called)
31
+ ob.hoverIntent_s = 1;
32
+ return cfg.over.apply(ob,[ev]);
33
+ } else {
34
+ // set previous coordinates for next time
35
+ pX = cX; pY = cY;
36
+ // use self-calling timeout, guarantees intervals are spaced out properly (avoids JavaScript timer bugs)
37
+ ob.hoverIntent_t = setTimeout( function(){compare(ev, ob);} , cfg.interval );
38
+ }
39
+ };
40
+
41
+ // A private function for delaying the mouseOut function
42
+ var delay = function(ev,ob) {
43
+ ob.hoverIntent_t = clearTimeout(ob.hoverIntent_t);
44
+ ob.hoverIntent_s = 0;
45
+ return cfg.out.apply(ob,[ev]);
46
+ };
47
+
48
+ // A private function for handling mouse 'hovering'
49
+ var handleHover = function(e) {
50
+ // next three lines copied from jQuery.hover, ignore children onMouseOver/onMouseOut
51
+ var p = (e.type == "mouseover" ? e.fromElement : e.toElement) || e.relatedTarget;
52
+ while ( p && p != this ) { try { p = p.parentNode; } catch(e) { p = this; } }
53
+ if ( p == this ) { return false; }
54
+
55
+ // copy objects to be passed into t (required for event object to be passed in IE)
56
+ var ev = jQuery.extend({},e);
57
+ var ob = this;
58
+
59
+ // cancel hoverIntent timer if it exists
60
+ if (ob.hoverIntent_t) { ob.hoverIntent_t = clearTimeout(ob.hoverIntent_t); }
61
+
62
+ // else e.type == "onmouseover"
63
+ if (e.type == "mouseover") {
64
+ // set "previous" X and Y position based on initial entry point
65
+ pX = ev.pageX; pY = ev.pageY;
66
+ // update "current" X and Y position based on mousemove
67
+ $(ob).bind("mousemove",track);
68
+ // start polling interval (self-calling timeout) to compare mouse coordinates over time
69
+ if (ob.hoverIntent_s != 1) { ob.hoverIntent_t = setTimeout( function(){compare(ev,ob);} , cfg.interval );}
70
+
71
+ // else e.type == "onmouseout"
72
+ } else {
73
+ // unbind expensive mousemove event
74
+ $(ob).unbind("mousemove",track);
75
+ // if hoverIntent state is true, then call the mouseOut function after the specified delay
76
+ if (ob.hoverIntent_s == 1) { ob.hoverIntent_t = setTimeout( function(){delay(ev,ob);} , cfg.timeout );}
77
+ }
78
+ };
79
+
80
+ // bind the function to the two event listeners
81
+ return this.mouseover(handleHover).mouseout(handleHover);
82
+ };
83
+
84
+ })(jQuery);
@@ -0,0 +1,121 @@
1
+
2
+ /*
3
+ * Superfish v1.4.8 - jQuery menu widget
4
+ * Copyright (c) 2008 Joel Birch
5
+ *
6
+ * Dual licensed under the MIT and GPL licenses:
7
+ * http://www.opensource.org/licenses/mit-license.php
8
+ * http://www.gnu.org/licenses/gpl.html
9
+ *
10
+ * CHANGELOG: http://users.tpg.com.au/j_birch/plugins/superfish/changelog.txt
11
+ */
12
+
13
+ ;(function($){
14
+ $.fn.superfish = function(op){
15
+
16
+ var sf = $.fn.superfish,
17
+ c = sf.c,
18
+ $arrow = $(['<span class="',c.arrowClass,'"> &#187;</span>'].join('')),
19
+ over = function(){
20
+ var $$ = $(this), menu = getMenu($$);
21
+ clearTimeout(menu.sfTimer);
22
+ $$.showSuperfishUl().siblings().hideSuperfishUl();
23
+ },
24
+ out = function(){
25
+ var $$ = $(this), menu = getMenu($$), o = sf.op;
26
+ clearTimeout(menu.sfTimer);
27
+ menu.sfTimer=setTimeout(function(){
28
+ o.retainPath=($.inArray($$[0],o.$path)>-1);
29
+ $$.hideSuperfishUl();
30
+ if (o.$path.length && $$.parents(['li.',o.hoverClass].join('')).length<1){over.call(o.$path);}
31
+ },o.delay);
32
+ },
33
+ getMenu = function($menu){
34
+ var menu = $menu.parents(['ul.',c.menuClass,':first'].join(''))[0];
35
+ sf.op = sf.o[menu.serial];
36
+ return menu;
37
+ },
38
+ addArrow = function($a){ $a.addClass(c.anchorClass).append($arrow.clone()); };
39
+
40
+ return this.each(function() {
41
+ var s = this.serial = sf.o.length;
42
+ var o = $.extend({},sf.defaults,op);
43
+ o.$path = $('li.'+o.pathClass,this).slice(0,o.pathLevels).each(function(){
44
+ $(this).addClass([o.hoverClass,c.bcClass].join(' '))
45
+ .filter('li:has(ul)').removeClass(o.pathClass);
46
+ });
47
+ sf.o[s] = sf.op = o;
48
+
49
+ $('li:has(ul)',this)[($.fn.hoverIntent && !o.disableHI) ? 'hoverIntent' : 'hover'](over,out).each(function() {
50
+ if (o.autoArrows) addArrow( $('>a:first-child',this) );
51
+ })
52
+ .not('.'+c.bcClass)
53
+ .hideSuperfishUl();
54
+
55
+ var $a = $('a',this);
56
+ $a.each(function(i){
57
+ var $li = $a.eq(i).parents('li');
58
+ $a.eq(i).focus(function(){over.call($li);}).blur(function(){out.call($li);});
59
+ });
60
+ o.onInit.call(this);
61
+
62
+ }).each(function() {
63
+ var menuClasses = [c.menuClass];
64
+ if (sf.op.dropShadows && !($.browser.msie && $.browser.version < 7)) menuClasses.push(c.shadowClass);
65
+ $(this).addClass(menuClasses.join(' '));
66
+ });
67
+ };
68
+
69
+ var sf = $.fn.superfish;
70
+ sf.o = [];
71
+ sf.op = {};
72
+ sf.IE7fix = function(){
73
+ var o = sf.op;
74
+ if ($.browser.msie && $.browser.version > 6 && o.dropShadows && o.animation.opacity!=undefined)
75
+ this.toggleClass(sf.c.shadowClass+'-off');
76
+ };
77
+ sf.c = {
78
+ bcClass : 'sf-breadcrumb',
79
+ menuClass : 'sf-js-enabled',
80
+ anchorClass : 'sf-with-ul',
81
+ arrowClass : 'sf-sub-indicator',
82
+ shadowClass : 'sf-shadow'
83
+ };
84
+ sf.defaults = {
85
+ hoverClass : 'sfHover',
86
+ pathClass : 'overideThisToUse',
87
+ pathLevels : 1,
88
+ delay : 800,
89
+ animation : {opacity:'show'},
90
+ speed : 'normal',
91
+ autoArrows : true,
92
+ dropShadows : true,
93
+ disableHI : false, // true disables hoverIntent detection
94
+ onInit : function(){}, // callback functions
95
+ onBeforeShow: function(){},
96
+ onShow : function(){},
97
+ onHide : function(){}
98
+ };
99
+ $.fn.extend({
100
+ hideSuperfishUl : function(){
101
+ var o = sf.op,
102
+ not = (o.retainPath===true) ? o.$path : '';
103
+ o.retainPath = false;
104
+ var $ul = $(['li.',o.hoverClass].join(''),this).add(this).not(not).removeClass(o.hoverClass)
105
+ .find('>ul').hide().css('visibility','hidden');
106
+ o.onHide.call($ul);
107
+ return this;
108
+ },
109
+ showSuperfishUl : function(){
110
+ var o = sf.op,
111
+ sh = sf.c.shadowClass+'-off',
112
+ $ul = this.addClass(o.hoverClass)
113
+ .find('>ul:hidden').css('visibility','visible');
114
+ sf.IE7fix.call($ul);
115
+ o.onBeforeShow.call($ul);
116
+ $ul.animate(o.animation,o.speed,function(){ sf.IE7fix.call($ul); o.onShow.call($ul); });
117
+ return this;
118
+ }
119
+ });
120
+
121
+ })(jQuery);
@@ -0,0 +1,90 @@
1
+
2
+ /*
3
+ * Supersubs v0.2b - jQuery plugin
4
+ * Copyright (c) 2008 Joel Birch
5
+ *
6
+ * Dual licensed under the MIT and GPL licenses:
7
+ * http://www.opensource.org/licenses/mit-license.php
8
+ * http://www.gnu.org/licenses/gpl.html
9
+ *
10
+ *
11
+ * This plugin automatically adjusts submenu widths of suckerfish-style menus to that of
12
+ * their longest list item children. If you use this, please expect bugs and report them
13
+ * to the jQuery Google Group with the word 'Superfish' in the subject line.
14
+ *
15
+ */
16
+
17
+ ;(function($){ // $ will refer to jQuery within this closure
18
+
19
+ $.fn.supersubs = function(options){
20
+ var opts = $.extend({}, $.fn.supersubs.defaults, options);
21
+ // return original object to support chaining
22
+ return this.each(function() {
23
+ // cache selections
24
+ var $$ = $(this);
25
+ // support metadata
26
+ var o = $.meta ? $.extend({}, opts, $$.data()) : opts;
27
+ // get the font size of menu.
28
+ // .css('fontSize') returns various results cross-browser, so measure an em dash instead
29
+ var fontsize = $('<li id="menu-fontsize">&#8212;</li>').css({
30
+ 'padding' : 0,
31
+ 'position' : 'absolute',
32
+ 'top' : '-999em',
33
+ 'width' : 'auto'
34
+ }).appendTo($$).width(); //clientWidth is faster, but was incorrect here
35
+ // remove em dash
36
+ $('#menu-fontsize').remove();
37
+ // cache all ul elements
38
+ $ULs = $$.find('ul');
39
+ // loop through each ul in menu
40
+ $ULs.each(function(i) {
41
+ // cache this ul
42
+ var $ul = $ULs.eq(i);
43
+ // get all (li) children of this ul
44
+ var $LIs = $ul.children();
45
+ // get all anchor grand-children
46
+ var $As = $LIs.children('a');
47
+ // force content to one line and save current float property
48
+ var liFloat = $LIs.css('white-space','nowrap').css('float');
49
+ // remove width restrictions and floats so elements remain vertically stacked
50
+ var emWidth = $ul.add($LIs).add($As).css({
51
+ 'float' : 'none',
52
+ 'width' : 'auto'
53
+ })
54
+ // this ul will now be shrink-wrapped to longest li due to position:absolute
55
+ // so save its width as ems. Clientwidth is 2 times faster than .width() - thanks Dan Switzer
56
+ .end().end()[0].clientWidth / fontsize;
57
+ // add more width to ensure lines don't turn over at certain sizes in various browsers
58
+ emWidth += o.extraWidth;
59
+ // restrict to at least minWidth and at most maxWidth
60
+ if (emWidth > o.maxWidth) { emWidth = o.maxWidth; }
61
+ else if (emWidth < o.minWidth) { emWidth = o.minWidth; }
62
+ emWidth += 'em';
63
+ // set ul to width in ems
64
+ $ul.css('width',emWidth);
65
+ // restore li floats to avoid IE bugs
66
+ // set li width to full width of this ul
67
+ // revert white-space to normal
68
+ $LIs.css({
69
+ 'float' : liFloat,
70
+ 'width' : '100%',
71
+ 'white-space' : 'normal'
72
+ })
73
+ // update offset position of descendant ul to reflect new width of parent
74
+ .each(function(){
75
+ var $childUl = $('>ul',this);
76
+ var offsetDirection = $childUl.css('left')!==undefined ? 'left' : 'right';
77
+ $childUl.css(offsetDirection,emWidth);
78
+ });
79
+ });
80
+
81
+ });
82
+ };
83
+ // expose defaults
84
+ $.fn.supersubs.defaults = {
85
+ minWidth : 9, // requires em unit.
86
+ maxWidth : 25, // requires em unit.
87
+ extraWidth : 0 // extra width can ensure lines don't sometimes turn over due to slight browser differences in how they round-off values
88
+ };
89
+
90
+ })(jQuery); // plugin code ends
@@ -0,0 +1,180 @@
1
+ $menu_color: #cccccc
2
+ $menu_down_color: white
3
+ $txt_color: #333333
4
+ $txt_color_hover: grey
5
+ $hover1_color: #4C4C4C
6
+ $hover2_color: #eff3fb
7
+ $top_border_selected: yellow
8
+ toto
9
+ color: #333333
10
+ /*** ESSENTIAL STYLES **
11
+ #menu
12
+ .sf-menu
13
+ margin: 0
14
+ padding: 0
15
+ list-style: none
16
+ *
17
+ margin: 0
18
+ padding: 0
19
+ list-style: none
20
+ line-height: 1.0
21
+ ul
22
+ position: absolute
23
+ top: -999em
24
+ width: 10em
25
+ /* left offset of submenus need to match (see below)
26
+ li
27
+ width: 100%
28
+ li
29
+ &:hover
30
+ visibility: inherit
31
+ /* fixes IE7 'sticky bug'
32
+ float: left
33
+ position: relative
34
+ a
35
+ display: block
36
+ position: relative
37
+ color: #CCCCCC
38
+ li
39
+ &:hover ul, &.sfHover ul
40
+ left: 0
41
+ top: 2.45em
42
+ /* match top ul list item height
43
+ z-index: 99
44
+
45
+ ul.sf-menu li
46
+ &:hover li ul, &.sfHover li ul
47
+ top: -999em
48
+ li
49
+ &:hover ul, &.sfHover ul
50
+ left: 10em
51
+ /* match ul width
52
+ top: 0
53
+ &:hover li ul, &.sfHover li ul
54
+ top: -999em
55
+ li
56
+ &:hover ul, &.sfHover ul
57
+ left: 10em
58
+ /* match ul width
59
+ top: 0
60
+
61
+ /*** DEMO SKIN **
62
+
63
+
64
+ /*** arrows *
65
+
66
+ .sf-sub-indicator
67
+ position: absolute
68
+ display: block
69
+ right: .75em
70
+ top: 1.05em
71
+ /* IE6 only
72
+ width: 10px
73
+ height: 10px
74
+ text-indent: -999em
75
+ overflow: hidden
76
+ background: url('/images/superfish/arrows-ffffff.png') no-repeat -10px -100px
77
+ /* 8-bit indexed alpha png. IE6 gets solid image only
78
+
79
+ a
80
+ > .sf-sub-indicator
81
+ /* give all except IE6 the correct values
82
+ top: .8em
83
+ background-position: 0 -100px
84
+ /* use translucent arrow for modern browsers
85
+ &:focus > .sf-sub-indicator, &:hover > .sf-sub-indicator, &:active > .sf-sub-indicator
86
+ background-position: -10px -100px
87
+ /* arrow hovers for modern browsers
88
+
89
+ /* apply hovers to modern browsers
90
+
91
+ li
92
+ &:hover > a > .sf-sub-indicator, &.sfHover > a > .sf-sub-indicator
93
+ background-position: -10px -100px
94
+ /* arrow hovers for modern browsers
95
+
96
+ /* point right for anchors in subs
97
+
98
+ .sf-menu ul
99
+ .sf-sub-indicator
100
+ background-position: -10px 0
101
+ a
102
+ > .sf-sub-indicator
103
+ background-position: 0 0
104
+ &:focus > .sf-sub-indicator, &:hover > .sf-sub-indicator, &:active > .sf-sub-indicator
105
+ background-position: -10px 0
106
+ /* arrow hovers for modern browsers
107
+ li
108
+ &:hover > a > .sf-sub-indicator, &.sfHover > a > .sf-sub-indicator
109
+ background-position: -10px 0
110
+ /* arrow hovers for modern browsers
111
+
112
+ /* apply hovers to modern browsers
113
+
114
+ /*** shadows for all but IE6 **
115
+
116
+ .sf-shadow ul
117
+ background: url('/images/superfish/shadow.png') no-repeat bottom right
118
+ padding: 0 8px 9px 0
119
+ -moz-border-radius-bottomleft: 17px
120
+ -moz-border-radius-topright: 17px
121
+ -webkit-border-top-right-radius: 17px
122
+ -webkit-border-bottom-left-radius: 17px
123
+ &.sf-shadow-off
124
+ background: transparent
125
+
126
+
127
+ ul.sf-menu>li>ul>li
128
+ a:visited
129
+ color: $txt_color
130
+ a:hover
131
+ color: $txt_color_hover
132
+ background: #eff3fb
133
+
134
+ ul.sf-menu>li>a.selected
135
+ border-top: 2px solid $top_border_selected
136
+ padding-top: 0.59em
137
+ .sf-with-ul
138
+ background: yellow
139
+ .sf-menu
140
+ float: left
141
+ margin-bottom: 0 em
142
+ a
143
+ padding: .75em 1em
144
+ text-decoration: none
145
+ /* visited pseudo selector so IE6 applies text colour
146
+ color: $txt_color
147
+ &:visited
148
+ /* visited pseudo selector so IE6 applies text colour
149
+ color: $txt_color
150
+ a.selected
151
+ font-weight: bold
152
+ color: $txt_color
153
+
154
+ li
155
+ background: $menu_color
156
+ &:hover
157
+ background: $hover1_color
158
+ outline: 0
159
+ li
160
+ &:hover
161
+ background: $hover2_color
162
+ outline: 0
163
+ a
164
+ color: white
165
+ //&:focus
166
+ // color: yellow
167
+ &:hover
168
+ color: $txt_color_hover
169
+ //&:active
170
+ // //background: blue
171
+ // color: red
172
+ // outline: 0
173
+ &.sf-with-ul
174
+ padding-right: 2.25em
175
+ min-width: 1px
176
+ /* trigger IE7 hasLayout so spans position accurately
177
+
178
+ li.sfHover
179
+ a
180
+ background: $menu_down_color
@@ -0,0 +1,5 @@
1
+ module AslonSuperfish
2
+ # uniquement pour mettre vendor/Asset dans le load path (cf doc asset exemple rails-jquery)
3
+ class Engine < ::Rails::Engine
4
+ end
5
+ end
@@ -0,0 +1,18 @@
1
+ require 'rubygems'
2
+ require 'bundler'
3
+ begin
4
+ Bundler.setup(:default, :development)
5
+ rescue Bundler::BundlerError => e
6
+ $stderr.puts e.message
7
+ $stderr.puts "Run `bundle install` to install missing gems"
8
+ exit e.status_code
9
+ end
10
+ require 'test/unit'
11
+ require 'shoulda'
12
+
13
+ $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
14
+ $LOAD_PATH.unshift(File.dirname(__FILE__))
15
+ require 'aslon_superfish'
16
+
17
+ class Test::Unit::TestCase
18
+ end
@@ -0,0 +1,7 @@
1
+ require 'helper'
2
+
3
+ class TestAslonSuperfish < Test::Unit::TestCase
4
+ should "probably rename this file and start testing for real" do
5
+ flunk "hey buddy, you should probably rename this file and start testing for real"
6
+ end
7
+ end
metadata ADDED
@@ -0,0 +1,116 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: aslon_superfish
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ prerelease:
6
+ platform: ruby
7
+ authors:
8
+ - aslon
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+ date: 2012-02-02 00:00:00.000000000Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: shoulda
16
+ requirement: &70315620911560 !ruby/object:Gem::Requirement
17
+ none: false
18
+ requirements:
19
+ - - ! '>='
20
+ - !ruby/object:Gem::Version
21
+ version: '0'
22
+ type: :development
23
+ prerelease: false
24
+ version_requirements: *70315620911560
25
+ - !ruby/object:Gem::Dependency
26
+ name: bundler
27
+ requirement: &70315620911080 !ruby/object:Gem::Requirement
28
+ none: false
29
+ requirements:
30
+ - - ~>
31
+ - !ruby/object:Gem::Version
32
+ version: 1.0.0
33
+ type: :development
34
+ prerelease: false
35
+ version_requirements: *70315620911080
36
+ - !ruby/object:Gem::Dependency
37
+ name: jeweler
38
+ requirement: &70315620910600 !ruby/object:Gem::Requirement
39
+ none: false
40
+ requirements:
41
+ - - ~>
42
+ - !ruby/object:Gem::Version
43
+ version: 1.6.4
44
+ type: :development
45
+ prerelease: false
46
+ version_requirements: *70315620910600
47
+ - !ruby/object:Gem::Dependency
48
+ name: rcov
49
+ requirement: &70315620910120 !ruby/object:Gem::Requirement
50
+ none: false
51
+ requirements:
52
+ - - ! '>='
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
55
+ type: :development
56
+ prerelease: false
57
+ version_requirements: *70315620910120
58
+ description: assets for js menu superfish js+CSS
59
+ email: ''
60
+ executables: []
61
+ extensions: []
62
+ extra_rdoc_files:
63
+ - LICENSE.txt
64
+ - README.rdoc
65
+ files:
66
+ - .document
67
+ - .idea/.name
68
+ - .idea/.rakeTasks
69
+ - .idea/aslon_superfish.iml
70
+ - .idea/encodings.xml
71
+ - .idea/misc.xml
72
+ - .idea/modules.xml
73
+ - .idea/vcs.xml
74
+ - .idea/workspace.xml
75
+ - Gemfile
76
+ - Gemfile.lock
77
+ - LICENSE.txt
78
+ - README.rdoc
79
+ - Rakefile
80
+ - VERSION
81
+ - app/assets/javascripts/superfish/hoverIntent.js
82
+ - app/assets/javascripts/superfish/superfish.js
83
+ - app/assets/javascripts/superfish/supersubs.js
84
+ - app/assets/stylesheets/superfish/superfish.css.sass
85
+ - lib/aslon_superfish.rb
86
+ - test/helper.rb
87
+ - test/test_aslon_superfish.rb
88
+ homepage: http://github.com/aslon/aslon_superfish
89
+ licenses:
90
+ - MIT
91
+ post_install_message:
92
+ rdoc_options: []
93
+ require_paths:
94
+ - lib
95
+ required_ruby_version: !ruby/object:Gem::Requirement
96
+ none: false
97
+ requirements:
98
+ - - ! '>='
99
+ - !ruby/object:Gem::Version
100
+ version: '0'
101
+ segments:
102
+ - 0
103
+ hash: -114356908681620480
104
+ required_rubygems_version: !ruby/object:Gem::Requirement
105
+ none: false
106
+ requirements:
107
+ - - ! '>='
108
+ - !ruby/object:Gem::Version
109
+ version: '0'
110
+ requirements: []
111
+ rubyforge_project:
112
+ rubygems_version: 1.8.10
113
+ signing_key:
114
+ specification_version: 3
115
+ summary: assets for js menu superfish
116
+ test_files: []