jquery_file_input 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 ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: cf1c9f823dfa7a286c8f8da8200d614b80c255d8
4
+ data.tar.gz: f2b83454287b232058a1a1bea97f85f95e235e8d
5
+ SHA512:
6
+ metadata.gz: ae6bc643ecfa4de9cef4a77ea44297853b2baf9c2ba8a7519517c969c6f225ccf523004d3a5686cfbced95931907d882296b9b482ee40aeb62fc90bd2b7da192
7
+ data.tar.gz: 0f1ee4f3907c4d8b82225f12edfc750d71ac63fdb654960b5009d0febd259a6b3831c1ea96a830c702a31f12e6ab2b3aeaa2a01dbb79736498e34df7dc3ed614
data/.gitignore ADDED
@@ -0,0 +1,9 @@
1
+ /.bundle/
2
+ /.yardoc
3
+ /Gemfile.lock
4
+ /_yardoc/
5
+ /coverage/
6
+ /doc/
7
+ /pkg/
8
+ /spec/reports/
9
+ /tmp/
data/.idea/.name ADDED
@@ -0,0 +1 @@
1
+ file_input
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 file_input-0.1.0.gem into the pkg directory" fullCmd="build" taksId="build" /><RakeTask description="Build and install file_input-0.1.0.gem into system gems" fullCmd="install" taksId="install" /><RakeTask description="Create tag v0.1.0 and build and push file_input-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>
@@ -0,0 +1,4 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="Encoding" useUTFGuessing="true" native2AsciiForPropertiesFiles="false" />
4
+ </project>
@@ -0,0 +1,19 @@
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="bundler (v1.8.5, RVM: ruby-2.1.1) [gem]" level="application" />
17
+ <orderEntry type="library" scope="PROVIDED" name="rake (v10.4.2, RVM: ruby-2.1.1) [gem]" level="application" />
18
+ </component>
19
+ </module>
data/.idea/misc.xml ADDED
@@ -0,0 +1,4 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="ProjectRootManager" version="2" project-jdk-name="RVM: ruby-2.1.1" project-jdk-type="RUBY_SDK" />
4
+ </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/file_input.iml" filepath="$PROJECT_DIR$/.idea/file_input.iml" />
6
+ </modules>
7
+ </component>
8
+ </project>
@@ -0,0 +1,5 @@
1
+ <component name="DependencyValidationManager">
2
+ <state>
3
+ <option name="SKIP_IMPORT_STATEMENTS" value="false" />
4
+ </state>
5
+ </component>
data/.idea/vcs.xml ADDED
@@ -0,0 +1,6 @@
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>
@@ -0,0 +1,397 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="ChangeListManager">
4
+ <list default="true" id="4f4eaabc-99f6-4292-bb16-6319bdd0bf40" name="Default" comment="" />
5
+ <ignored path="file_input.iws" />
6
+ <ignored path=".idea/workspace.xml" />
7
+ <ignored path=".idea/dataSources.local.xml" />
8
+ <option name="EXCLUDED_CONVERTED_TO_IGNORED" value="true" />
9
+ <option name="TRACKING_ENABLED" value="true" />
10
+ <option name="SHOW_DIALOG" value="false" />
11
+ <option name="HIGHLIGHT_CONFLICTS" value="true" />
12
+ <option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
13
+ <option name="LAST_RESOLUTION" value="IGNORE" />
14
+ </component>
15
+ <component name="ChangesViewManager" flattened_view="true" show_ignored="false" />
16
+ <component name="CreatePatchCommitExecutor">
17
+ <option name="PATCH_PATH" value="" />
18
+ </component>
19
+ <component name="DaemonCodeAnalyzer">
20
+ <disable_hints />
21
+ </component>
22
+ <component name="ExecutionTargetManager" SELECTED_TARGET="default_target" />
23
+ <component name="FavoritesManager">
24
+ <favorites_list name="file_input" />
25
+ </component>
26
+ <component name="FileEditorManager">
27
+ <leaf>
28
+ <file leaf-file-name="engine.rb" pinned="false" current-in-tab="false">
29
+ <entry file="file://$PROJECT_DIR$/lib/file_input/engine.rb">
30
+ <provider selected="true" editor-type-id="text-editor">
31
+ <state vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="697">
32
+ <caret line="3" column="5" selection-start-line="3" selection-start-column="5" selection-end-line="3" selection-end-column="5" />
33
+ <folding />
34
+ </state>
35
+ </provider>
36
+ </entry>
37
+ </file>
38
+ <file leaf-file-name="file_input.rb" pinned="false" current-in-tab="false">
39
+ <entry file="file://$PROJECT_DIR$/lib/file_input.rb">
40
+ <provider selected="true" editor-type-id="text-editor">
41
+ <state vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="697">
42
+ <caret line="3" column="26" selection-start-line="3" selection-start-column="26" selection-end-line="3" selection-end-column="26" />
43
+ <folding />
44
+ </state>
45
+ </provider>
46
+ </entry>
47
+ </file>
48
+ <file leaf-file-name="file_input.gemspec" pinned="false" current-in-tab="true">
49
+ <entry file="file://$PROJECT_DIR$/file_input.gemspec">
50
+ <provider selected="true" editor-type-id="text-editor">
51
+ <state vertical-scroll-proportion="0.3970588" vertical-offset="108" max-vertical-offset="858">
52
+ <caret line="15" column="7" selection-start-line="15" selection-start-column="7" selection-end-line="15" selection-end-column="7" />
53
+ <folding />
54
+ </state>
55
+ </provider>
56
+ </entry>
57
+ </file>
58
+ <file leaf-file-name="version.rb" pinned="false" current-in-tab="false">
59
+ <entry file="file://$PROJECT_DIR$/lib/file_input/version.rb">
60
+ <provider selected="true" editor-type-id="text-editor">
61
+ <state vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="661">
62
+ <caret line="3" column="0" selection-start-line="3" selection-start-column="0" selection-end-line="3" selection-end-column="0" />
63
+ <folding />
64
+ </state>
65
+ </provider>
66
+ </entry>
67
+ </file>
68
+ </leaf>
69
+ </component>
70
+ <component name="Git.Settings">
71
+ <option name="RECENT_GIT_ROOT_PATH" value="$PROJECT_DIR$" />
72
+ </component>
73
+ <component name="IdeDocumentHistory">
74
+ <option name="CHANGED_PATHS">
75
+ <list>
76
+ <option value="$PROJECT_DIR$/lib/file_input/engine.rb" />
77
+ <option value="$PROJECT_DIR$/file_input.gemspec" />
78
+ </list>
79
+ </option>
80
+ </component>
81
+ <component name="JsGulpfileManager">
82
+ <detection-done>true</detection-done>
83
+ </component>
84
+ <component name="ProjectFrameBounds">
85
+ <option name="x" value="57" />
86
+ <option name="y" value="-4" />
87
+ <option name="width" value="1309" />
88
+ <option name="height" value="772" />
89
+ </component>
90
+ <component name="ProjectLevelVcsManager" settingsEditedManually="false">
91
+ <OptionsSetting value="true" id="Add" />
92
+ <OptionsSetting value="true" id="Remove" />
93
+ <OptionsSetting value="true" id="Checkout" />
94
+ <OptionsSetting value="true" id="Update" />
95
+ <OptionsSetting value="true" id="Status" />
96
+ <OptionsSetting value="true" id="Edit" />
97
+ <ConfirmationsSetting value="0" id="Add" />
98
+ <ConfirmationsSetting value="0" id="Remove" />
99
+ </component>
100
+ <component name="ProjectView">
101
+ <navigator currentView="ProjectPane" proportions="" version="1">
102
+ <flattenPackages />
103
+ <showMembers />
104
+ <showModules />
105
+ <showLibraryContents />
106
+ <hideEmptyPackages />
107
+ <abbreviatePackageNames />
108
+ <autoscrollToSource />
109
+ <autoscrollFromSource />
110
+ <sortByType />
111
+ </navigator>
112
+ <panes>
113
+ <pane id="ProjectPane">
114
+ <subPane>
115
+ <PATH>
116
+ <PATH_ELEMENT>
117
+ <option name="myItemId" value="file_input" />
118
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
119
+ </PATH_ELEMENT>
120
+ </PATH>
121
+ <PATH>
122
+ <PATH_ELEMENT>
123
+ <option name="myItemId" value="file_input" />
124
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
125
+ </PATH_ELEMENT>
126
+ <PATH_ELEMENT>
127
+ <option name="myItemId" value="file_input" />
128
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
129
+ </PATH_ELEMENT>
130
+ </PATH>
131
+ <PATH>
132
+ <PATH_ELEMENT>
133
+ <option name="myItemId" value="file_input" />
134
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
135
+ </PATH_ELEMENT>
136
+ <PATH_ELEMENT>
137
+ <option name="myItemId" value="file_input" />
138
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
139
+ </PATH_ELEMENT>
140
+ <PATH_ELEMENT>
141
+ <option name="myItemId" value="lib" />
142
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
143
+ </PATH_ELEMENT>
144
+ </PATH>
145
+ <PATH>
146
+ <PATH_ELEMENT>
147
+ <option name="myItemId" value="file_input" />
148
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
149
+ </PATH_ELEMENT>
150
+ <PATH_ELEMENT>
151
+ <option name="myItemId" value="file_input" />
152
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
153
+ </PATH_ELEMENT>
154
+ <PATH_ELEMENT>
155
+ <option name="myItemId" value="lib" />
156
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
157
+ </PATH_ELEMENT>
158
+ <PATH_ELEMENT>
159
+ <option name="myItemId" value="file_input" />
160
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
161
+ </PATH_ELEMENT>
162
+ </PATH>
163
+ <PATH>
164
+ <PATH_ELEMENT>
165
+ <option name="myItemId" value="file_input" />
166
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
167
+ </PATH_ELEMENT>
168
+ <PATH_ELEMENT>
169
+ <option name="myItemId" value="file_input" />
170
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
171
+ </PATH_ELEMENT>
172
+ <PATH_ELEMENT>
173
+ <option name="myItemId" value="bin" />
174
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
175
+ </PATH_ELEMENT>
176
+ </PATH>
177
+ <PATH>
178
+ <PATH_ELEMENT>
179
+ <option name="myItemId" value="file_input" />
180
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
181
+ </PATH_ELEMENT>
182
+ <PATH_ELEMENT>
183
+ <option name="myItemId" value="file_input" />
184
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
185
+ </PATH_ELEMENT>
186
+ <PATH_ELEMENT>
187
+ <option name="myItemId" value="asset" />
188
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
189
+ </PATH_ELEMENT>
190
+ <PATH_ELEMENT>
191
+ <option name="myItemId" value="javascript" />
192
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
193
+ </PATH_ELEMENT>
194
+ </PATH>
195
+ </subPane>
196
+ </pane>
197
+ <pane id="Scope" />
198
+ </panes>
199
+ </component>
200
+ <component name="PropertiesComponent">
201
+ <property name="WebServerToolWindowFactoryState" value="false" />
202
+ <property name="last_opened_file_path" value="$PROJECT_DIR$/../../sample" />
203
+ </component>
204
+ <component name="RunManager">
205
+ <configuration default="true" type="RSpecRunConfigurationType" factoryName="RSpec">
206
+ <predefined_log_file id="RUBY_RSPEC" enabled="true" />
207
+ <module name="" />
208
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="RUBY_ARGS" VALUE="-e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)" />
209
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="WORK DIR" VALUE="" />
210
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SHOULD_USE_SDK" VALUE="false" />
211
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="ALTERN_SDK_NAME" VALUE="" />
212
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="myPassParentEnvs" VALUE="true" />
213
+ <envs />
214
+ <EXTENSION ID="BundlerRunConfigurationExtension" bundleExecEnabled="false" />
215
+ <EXTENSION ID="JRubyRunConfigurationExtension" NailgunExecEnabled="false" />
216
+ <EXTENSION ID="RubyCoverageRunConfigurationExtension" enabled="false" sample_coverage="true" track_test_folders="true" runner="rcov">
217
+ <COVERAGE_PATTERN ENABLED="true">
218
+ <PATTERN REGEXPS="/.rvm/" INCLUDED="false" />
219
+ </COVERAGE_PATTERN>
220
+ </EXTENSION>
221
+ <EXTENSION ID="org.jetbrains.plugins.ruby.motion.run.MotionSimulatorRunExtension" />
222
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TESTS_FOLDER_PATH" VALUE="" />
223
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_SCRIPT_PATH" VALUE="" />
224
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_RUNNER_PATH" VALUE="" />
225
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_FILE_MASK" VALUE="**/*_spec.rb" />
226
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_EXAMPLE_NAME" VALUE="" />
227
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_TEST_TYPE" VALUE="TEST_SCRIPT" />
228
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_ARGS" VALUE="" />
229
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="RUNNER_VERSION" VALUE="" />
230
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="USE_CUSTOM_SPEC_RUNNER" VALUE="false" />
231
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="DRB" VALUE="false" />
232
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="ZEUS" VALUE="false" />
233
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPRING" VALUE="false" />
234
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="FULL_BACKTRACE" VALUE="false" />
235
+ <method />
236
+ </configuration>
237
+ <configuration default="true" type="JavascriptDebugType" factoryName="JavaScript Debug">
238
+ <method />
239
+ </configuration>
240
+ <configuration default="true" type="TestUnitRunConfigurationType" factoryName="Test::Unit/Shoulda/Minitest">
241
+ <predefined_log_file id="RUBY_TESTUNIT" enabled="true" />
242
+ <module name="" />
243
+ <RTEST_RUN_CONFIG_SETTINGS_ID NAME="RUBY_ARGS" VALUE="-e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)" />
244
+ <RTEST_RUN_CONFIG_SETTINGS_ID NAME="WORK DIR" VALUE="" />
245
+ <RTEST_RUN_CONFIG_SETTINGS_ID NAME="SHOULD_USE_SDK" VALUE="false" />
246
+ <RTEST_RUN_CONFIG_SETTINGS_ID NAME="ALTERN_SDK_NAME" VALUE="" />
247
+ <RTEST_RUN_CONFIG_SETTINGS_ID NAME="myPassParentEnvs" VALUE="true" />
248
+ <envs />
249
+ <EXTENSION ID="BundlerRunConfigurationExtension" bundleExecEnabled="false" />
250
+ <EXTENSION ID="JRubyRunConfigurationExtension" NailgunExecEnabled="false" />
251
+ <EXTENSION ID="RubyCoverageRunConfigurationExtension" enabled="false" sample_coverage="true" track_test_folders="true" runner="rcov">
252
+ <COVERAGE_PATTERN ENABLED="true">
253
+ <PATTERN REGEXPS="/.rvm/" INCLUDED="false" />
254
+ </COVERAGE_PATTERN>
255
+ </EXTENSION>
256
+ <EXTENSION ID="org.jetbrains.plugins.ruby.motion.run.MotionSimulatorRunExtension" />
257
+ <RTEST_RUN_CONFIG_SETTINGS_ID NAME="TESTS_FOLDER_PATH" VALUE="" />
258
+ <RTEST_RUN_CONFIG_SETTINGS_ID NAME="TEST_SCRIPT_PATH" VALUE="" />
259
+ <RTEST_RUN_CONFIG_SETTINGS_ID NAME="TEST_FILE_MASK" VALUE="" />
260
+ <RTEST_RUN_CONFIG_SETTINGS_ID NAME="TEST_METHOD_NAME" VALUE="" />
261
+ <RTEST_RUN_CONFIG_SETTINGS_ID NAME="TEST_TEST_TYPE" VALUE="TEST_SCRIPT" />
262
+ <RTEST_RUN_CONFIG_SETTINGS_ID NAME="DRB" VALUE="false" />
263
+ <RTEST_RUN_CONFIG_SETTINGS_ID NAME="ZEUS" VALUE="false" />
264
+ <RTEST_RUN_CONFIG_SETTINGS_ID NAME="SPRING" VALUE="false" />
265
+ <RTEST_RUN_CONFIG_SETTINGS_ID NAME="RUNNER_OPTIONS" VALUE="" />
266
+ <method />
267
+ </configuration>
268
+ <configuration default="true" type="CucumberRunConfigurationType" factoryName="Cucumber">
269
+ <predefined_log_file id="RUBY_CUCUMBER" enabled="true" />
270
+ <module name="" />
271
+ <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="RUBY_ARGS" VALUE="-e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)" />
272
+ <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="WORK DIR" VALUE="" />
273
+ <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="SHOULD_USE_SDK" VALUE="false" />
274
+ <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="ALTERN_SDK_NAME" VALUE="" />
275
+ <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="myPassParentEnvs" VALUE="true" />
276
+ <envs />
277
+ <EXTENSION ID="BundlerRunConfigurationExtension" bundleExecEnabled="false" />
278
+ <EXTENSION ID="JRubyRunConfigurationExtension" NailgunExecEnabled="false" />
279
+ <EXTENSION ID="RubyCoverageRunConfigurationExtension" enabled="false" sample_coverage="true" track_test_folders="true" runner="rcov">
280
+ <COVERAGE_PATTERN ENABLED="true">
281
+ <PATTERN REGEXPS="/.rvm/" INCLUDED="false" />
282
+ </COVERAGE_PATTERN>
283
+ </EXTENSION>
284
+ <EXTENSION ID="org.jetbrains.plugins.ruby.motion.run.MotionSimulatorRunExtension" />
285
+ <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="TEST_FILE_MASK" VALUE="**/*.feature" />
286
+ <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="TEST_TEST_TYPE" VALUE="TEST_SCRIPT" />
287
+ <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="TESTS_FOLDER_PATH" VALUE="" />
288
+ <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="TEST_SCRIPT_PATH" VALUE="" />
289
+ <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="TEST_TAGS_FILTER" VALUE="" />
290
+ <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="TEST_NAME_FILTER" VALUE="" />
291
+ <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="CUCUMBER_ARGS" VALUE="--color -r features" />
292
+ <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="RUNNER_VERSION" VALUE="" />
293
+ <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="FULL_BACKTRACE" VALUE="false" />
294
+ <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="VERBOSE_OPTION" VALUE="false" />
295
+ <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="DRB" VALUE="false" />
296
+ <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="ZEUS" VALUE="false" />
297
+ <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="SPRING" VALUE="false" />
298
+ <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="CUCUMBER_RUNNER_PATH" VALUE="" />
299
+ <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="USE_CUSTOM_RUNNER" VALUE="false" />
300
+ <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="SETTINGS_VERSION" VALUE="2" />
301
+ <method />
302
+ </configuration>
303
+ <configuration default="true" type="js.build_tools.gulp" factoryName="Gulp.js">
304
+ <method />
305
+ </configuration>
306
+ <list size="0" />
307
+ </component>
308
+ <component name="ShelveChangesManager" show_recycled="false" />
309
+ <component name="TaskManager">
310
+ <task active="true" id="Default" summary="Default task">
311
+ <changelist id="4f4eaabc-99f6-4292-bb16-6319bdd0bf40" name="Default" comment="" />
312
+ <created>1426944497530</created>
313
+ <option name="number" value="Default" />
314
+ <updated>1426944497530</updated>
315
+ </task>
316
+ <servers />
317
+ </component>
318
+ <component name="ToolWindowManager">
319
+ <frame x="57" y="-4" width="1309" height="772" extended-state="6" />
320
+ <editor active="true" />
321
+ <layout>
322
+ <window_info id="Changes" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.32924962" sideWeight="0.5" order="-1" side_tool="false" content_ui="tabs" />
323
+ <window_info id="Terminal" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" weight="0.33026114" sideWeight="0.5" order="-1" side_tool="false" content_ui="tabs" />
324
+ <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" />
325
+ <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="-1" side_tool="false" content_ui="tabs" />
326
+ <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="false" content_ui="tabs" />
327
+ <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" />
328
+ <window_info id="Project" active="true" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" weight="0.24940805" sideWeight="0.5" order="0" side_tool="false" content_ui="combo" />
329
+ <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" />
330
+ <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" />
331
+ <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="-1" side_tool="true" content_ui="tabs" />
332
+ <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="-1" side_tool="true" content_ui="tabs" />
333
+ <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" />
334
+ <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" />
335
+ <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" />
336
+ <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" />
337
+ <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" />
338
+ <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="0" side_tool="false" content_ui="tabs" />
339
+ <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" />
340
+ <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" />
341
+ </layout>
342
+ </component>
343
+ <component name="Vcs.Log.UiProperties">
344
+ <option name="RECENTLY_FILTERED_USER_GROUPS">
345
+ <collection />
346
+ </option>
347
+ <option name="RECENTLY_FILTERED_BRANCH_GROUPS">
348
+ <collection />
349
+ </option>
350
+ </component>
351
+ <component name="VcsContentAnnotationSettings">
352
+ <option name="myLimit" value="2678400000" />
353
+ </component>
354
+ <component name="VcsManagerConfiguration">
355
+ <option name="myTodoPanelSettings">
356
+ <TodoPanelSettings />
357
+ </option>
358
+ </component>
359
+ <component name="XDebuggerManager">
360
+ <breakpoint-manager />
361
+ <watches-manager />
362
+ </component>
363
+ <component name="editorHistoryManager">
364
+ <entry file="file://$PROJECT_DIR$/lib/file_input/version.rb">
365
+ <provider selected="true" editor-type-id="text-editor">
366
+ <state vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="661">
367
+ <caret line="3" column="0" selection-start-line="3" selection-start-column="0" selection-end-line="3" selection-end-column="0" />
368
+ <folding />
369
+ </state>
370
+ </provider>
371
+ </entry>
372
+ <entry file="file://$PROJECT_DIR$/lib/file_input/engine.rb">
373
+ <provider selected="true" editor-type-id="text-editor">
374
+ <state vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="697">
375
+ <caret line="3" column="5" selection-start-line="3" selection-start-column="5" selection-end-line="3" selection-end-column="5" />
376
+ <folding />
377
+ </state>
378
+ </provider>
379
+ </entry>
380
+ <entry file="file://$PROJECT_DIR$/lib/file_input.rb">
381
+ <provider selected="true" editor-type-id="text-editor">
382
+ <state vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="697">
383
+ <caret line="3" column="26" selection-start-line="3" selection-start-column="26" selection-end-line="3" selection-end-column="26" />
384
+ <folding />
385
+ </state>
386
+ </provider>
387
+ </entry>
388
+ <entry file="file://$PROJECT_DIR$/file_input.gemspec">
389
+ <provider selected="true" editor-type-id="text-editor">
390
+ <state vertical-scroll-proportion="0.3970588" vertical-offset="108" max-vertical-offset="858">
391
+ <caret line="15" column="7" selection-start-line="15" selection-start-column="7" selection-end-line="15" selection-end-column="7" />
392
+ <folding />
393
+ </state>
394
+ </provider>
395
+ </entry>
396
+ </component>
397
+ </project>
data/.rspec ADDED
@@ -0,0 +1,2 @@
1
+ --format documentation
2
+ --color
data/.travis.yml ADDED
@@ -0,0 +1,3 @@
1
+ language: ruby
2
+ rvm:
3
+ - 2.1.1
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Specify your gem's dependencies in file_input.gemspec
4
+ gemspec
data/README.md ADDED
@@ -0,0 +1,39 @@
1
+ # FileInput
2
+
3
+ Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/file_input`. To experiment with that code, run `bin/console` for an interactive prompt.
4
+
5
+ TODO: Delete this and the text above, and describe your gem
6
+
7
+ ## Installation
8
+
9
+ Add this line to your application's Gemfile:
10
+
11
+ ```ruby
12
+ gem 'file_input'
13
+ ```
14
+
15
+ And then execute:
16
+
17
+ $ bundle
18
+
19
+ Or install it yourself as:
20
+
21
+ $ gem install file_input
22
+
23
+ ## Usage
24
+
25
+ TODO: Write usage instructions here
26
+
27
+ ## Development
28
+
29
+ After checking out the repo, run `bin/setup` to install dependencies. Then, run `bin/console` for an interactive prompt that will allow you to experiment.
30
+
31
+ To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release` to create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
32
+
33
+ ## Contributing
34
+
35
+ 1. Fork it ( https://github.com/[my-github-username]/file_input/fork )
36
+ 2. Create your feature branch (`git checkout -b my-new-feature`)
37
+ 3. Commit your changes (`git commit -am 'Add some feature'`)
38
+ 4. Push to the branch (`git push origin my-new-feature`)
39
+ 5. Create a new Pull Request
data/Rakefile ADDED
@@ -0,0 +1,2 @@
1
+ require "bundler/gem_tasks"
2
+
@@ -0,0 +1,97 @@
1
+ /**
2
+ * --------------------------------------------------------------------
3
+ * jQuery customfileinput plugin
4
+ * Author: Scott Jehl, scott@filamentgroup.com
5
+ * Copyright (c) 2009 Filament Group
6
+ * licensed under MIT (filamentgroup.com/examples/mit-license.txt)
7
+ * --------------------------------------------------------------------
8
+ */
9
+ (function( $ ){
10
+ $.fn.customFileInput = function(){
11
+ //apply events and styles for file input element
12
+ var fileInput = $(this)
13
+ .addClass('customfile-input') //add class for CSS
14
+ .mouseover(function(){ upload.addClass('customfile-hover'); })
15
+ .mouseout(function(){ upload.removeClass('customfile-hover'); })
16
+ .focus(function(){
17
+ upload.addClass('customfile-focus');
18
+ fileInput.data('val', fileInput.val());
19
+ })
20
+ .blur(function(){
21
+ upload.removeClass('customfile-focus');
22
+ $(this).trigger('checkChange');
23
+ })
24
+ .bind('disable',function(){
25
+ fileInput.attr('disabled',true);
26
+ upload.addClass('customfile-disabled');
27
+ })
28
+ .bind('enable',function(){
29
+ fileInput.removeAttr('disabled');
30
+ upload.removeClass('customfile-disabled');
31
+ })
32
+ .bind('checkChange', function(){
33
+ if(fileInput.val() && fileInput.val() != fileInput.data('val')){
34
+ fileInput.trigger('change');
35
+ }
36
+ })
37
+ .bind('change',function(){
38
+ //get file name
39
+ var fileName = $(this).val().split(/\\/).pop();
40
+ //get file extension
41
+ var fileExt = 'customfile-ext-' + fileName.split('.').pop().toLowerCase();
42
+ //update the feedback
43
+ uploadFeedback
44
+ .text(fileName) //set feedback text to filename
45
+ .removeClass(uploadFeedback.data('fileExt') || '') //remove any existing file extension class
46
+ .addClass(fileExt) //add file extension class
47
+ .data('fileExt', fileExt) //store file extension for class removal on next change
48
+ .addClass('customfile-feedback-populated'); //add class to show populated state
49
+ //change text of button
50
+ uploadButton.text('Change');
51
+ })
52
+ .click(function(){ //for IE and Opera, make sure change fires after choosing a file, using an async callback
53
+ fileInput.data('val', fileInput.val());
54
+ setTimeout(function(){
55
+ fileInput.trigger('checkChange');
56
+ },100);
57
+ });
58
+
59
+ //create custom control container
60
+ var upload = $('<div class="customfile"></div>');
61
+ //create custom control button
62
+ var uploadButton = $('<span class="customfile-button" aria-hidden="true">Browse</span>').appendTo(upload);
63
+ //create custom control feedback
64
+ var uploadFeedback = $('<span class="customfile-feedback" aria-hidden="true">Browse...</span>').appendTo(upload);
65
+
66
+ //match disabled state
67
+ if(fileInput.is('[disabled]')){
68
+ fileInput.trigger('disable');
69
+ }
70
+ //create custom control container
71
+ var upload = $('<div class="customfile"></div>');
72
+ //create custom control button
73
+ var uploadButton = $('<span class="customfile-button" aria-hidden="true">Browse</span>').appendTo(upload);
74
+ //create custom control feedback
75
+ var uploadFeedback = $('<span class="customfile-feedback" aria-hidden="true">Browse...</span>').appendTo(upload);
76
+
77
+ //match disabled state
78
+ if (fileInput.is('[disabled]')) {
79
+ fileInput.trigger('disable');
80
+ }
81
+
82
+ //on mousemove, keep file input under the cursor to steal click
83
+ upload
84
+ .mousemove(function (e) {
85
+ fileInput.css({
86
+ 'left': e.pageX - upload.offset().left - fileInput.outerWidth() + 20, //position right side 20px right of cursor X)
87
+ 'top': e.pageY - upload.offset().top - $(window).scrollTop() - 3
88
+ });
89
+ })
90
+ .insertAfter(fileInput); //insert after the input
91
+
92
+ fileInput.appendTo(upload);
93
+
94
+ //return jQuery
95
+ return $(this);
96
+ };
97
+ })(jQuery);
data/bin/console ADDED
@@ -0,0 +1,14 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require "bundler/setup"
4
+ require "file_input"
5
+
6
+ # You can add fixtures and/or initialization code here to make experimenting
7
+ # with your gem easier. You can also use a different console, if you like.
8
+
9
+ # (If you use this, don't forget to add pry to your Gemfile!)
10
+ # require "pry"
11
+ # Pry.start
12
+
13
+ require "irb"
14
+ IRB.start
data/bin/setup ADDED
@@ -0,0 +1,7 @@
1
+ #!/bin/bash
2
+ set -euo pipefail
3
+ IFS=$'\n\t'
4
+
5
+ bundle install
6
+
7
+ # Do any other automated setup that you need to do here
@@ -0,0 +1,26 @@
1
+ # coding: utf-8
2
+ lib = File.expand_path('../lib', __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require 'file_input/version'
5
+
6
+ Gem::Specification.new do |spec|
7
+ spec.name = "jquery_file_input"
8
+ spec.version = FileInput::VERSION
9
+ spec.authors = ["Shiva Bhusal"]
10
+ spec.email = ["cba.bhusal@outlook.com"]
11
+
12
+ spec.summary = %q{Beautify simple file input field }
13
+ spec.description = %q{Beautify simple file input field;}
14
+
15
+ spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
16
+ spec.bindir = "exe"
17
+ spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
18
+ spec.require_paths = ["lib"]
19
+
20
+ if spec.respond_to?(:metadata)
21
+ # spec.metadata['allowed_push_host'] = ""
22
+ end
23
+
24
+ spec.add_development_dependency "bundler", "~> 1.8"
25
+ spec.add_development_dependency "rake", "~> 10.0"
26
+ end
@@ -0,0 +1,5 @@
1
+ module FileInput
2
+ class Engine < Rails::Engine
3
+
4
+ end
5
+ end
@@ -0,0 +1,3 @@
1
+ module FileInput
2
+ VERSION = "0.1.0"
3
+ end
data/lib/file_input.rb ADDED
@@ -0,0 +1,5 @@
1
+ require "file_input/version"
2
+ require 'file_input/engine'
3
+ module FileInput
4
+ # Your code goes here...
5
+ end
metadata ADDED
@@ -0,0 +1,93 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: jquery_file_input
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - Shiva Bhusal
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2015-03-21 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: bundler
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '1.8'
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '1.8'
27
+ - !ruby/object:Gem::Dependency
28
+ name: rake
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '10.0'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '10.0'
41
+ description: Beautify simple file input field;
42
+ email:
43
+ - cba.bhusal@outlook.com
44
+ executables: []
45
+ extensions: []
46
+ extra_rdoc_files: []
47
+ files:
48
+ - ".gitignore"
49
+ - ".idea/.name"
50
+ - ".idea/.rakeTasks"
51
+ - ".idea/encodings.xml"
52
+ - ".idea/file_input.iml"
53
+ - ".idea/misc.xml"
54
+ - ".idea/modules.xml"
55
+ - ".idea/scopes/scope_settings.xml"
56
+ - ".idea/vcs.xml"
57
+ - ".idea/workspace.xml"
58
+ - ".rspec"
59
+ - ".travis.yml"
60
+ - Gemfile
61
+ - README.md
62
+ - Rakefile
63
+ - asset/javascript/jQuery.fileinput.js
64
+ - bin/console
65
+ - bin/setup
66
+ - file_input.gemspec
67
+ - lib/file_input.rb
68
+ - lib/file_input/engine.rb
69
+ - lib/file_input/version.rb
70
+ homepage:
71
+ licenses: []
72
+ metadata: {}
73
+ post_install_message:
74
+ rdoc_options: []
75
+ require_paths:
76
+ - lib
77
+ required_ruby_version: !ruby/object:Gem::Requirement
78
+ requirements:
79
+ - - ">="
80
+ - !ruby/object:Gem::Version
81
+ version: '0'
82
+ required_rubygems_version: !ruby/object:Gem::Requirement
83
+ requirements:
84
+ - - ">="
85
+ - !ruby/object:Gem::Version
86
+ version: '0'
87
+ requirements: []
88
+ rubyforge_project:
89
+ rubygems_version: 2.4.6
90
+ signing_key:
91
+ specification_version: 4
92
+ summary: Beautify simple file input field
93
+ test_files: []