fua 1.0.3

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: 315f33351c523bc6c2a64d8a92c0433ef2b413fe
4
+ data.tar.gz: 6dea7c27699fe8e5f8729f82b6a5097a17561f4f
5
+ SHA512:
6
+ metadata.gz: f67c4157669d71b5c3a5b2d86c35602a117aa753a4bfd7a01fad04c7978f87fe59d94de809a821dde7c1d6841740abcf918cd41ea37ddb2c7317bd4cc6f3e5c9
7
+ data.tar.gz: 298abf7ddada28767224ef749880b7a18823fdf9a98a41b2acb956511ed0898c6afa21d0c6741b48702c88ede46a47f026cd69b310e8667ce9ffa9f685576de6
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
+ fua
@@ -0,0 +1,6 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="Encoding">
4
+ <file url="PROJECT" charset="UTF-8" />
5
+ </component>
6
+ </project>
data/.idea/fua.iml ADDED
@@ -0,0 +1,63 @@
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="$MODULE_DIR$/test" />
8
+ <option name="GEM_APP_LIB_PATH" value="$MODULE_DIR$/lib" />
9
+ </configuration>
10
+ </facet>
11
+ </component>
12
+ <component name="ModuleRunConfigurationManager">
13
+ <configuration default="false" name="a" type="RubyRunConfigurationType" factoryName="Ruby" temporary="true">
14
+ <module name="fua" />
15
+ <RUBY_RUN_CONFIG NAME="RUBY_ARGS" VALUE="-e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)" />
16
+ <RUBY_RUN_CONFIG NAME="WORK DIR" VALUE="$MODULE_DIR$/lib/fua" />
17
+ <RUBY_RUN_CONFIG NAME="SHOULD_USE_SDK" VALUE="false" />
18
+ <RUBY_RUN_CONFIG NAME="ALTERN_SDK_NAME" VALUE="" />
19
+ <RUBY_RUN_CONFIG NAME="myPassParentEnvs" VALUE="true" />
20
+ <envs />
21
+ <EXTENSION ID="BundlerRunConfigurationExtension" bundleExecEnabled="false" />
22
+ <EXTENSION ID="JRubyRunConfigurationExtension" NailgunExecEnabled="false" />
23
+ <EXTENSION ID="RubyCoverageRunConfigurationExtension" enabled="false" sample_coverage="true" track_test_folders="true" runner="rcov">
24
+ <COVERAGE_PATTERN ENABLED="true">
25
+ <PATTERN REGEXPS="/.rvm/" INCLUDED="false" />
26
+ </COVERAGE_PATTERN>
27
+ </EXTENSION>
28
+ <RUBY_RUN_CONFIG NAME="SCRIPT_PATH" VALUE="$MODULE_DIR$/lib/fua/a.rb" />
29
+ <RUBY_RUN_CONFIG NAME="SCRIPT_ARGS" VALUE="" />
30
+ <method />
31
+ </configuration>
32
+ <configuration default="false" name="fua" type="RubyRunConfigurationType" factoryName="Ruby" temporary="true">
33
+ <module name="fua" />
34
+ <RUBY_RUN_CONFIG NAME="RUBY_ARGS" VALUE="-e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)" />
35
+ <RUBY_RUN_CONFIG NAME="WORK DIR" VALUE="$MODULE_DIR$/lib" />
36
+ <RUBY_RUN_CONFIG NAME="SHOULD_USE_SDK" VALUE="false" />
37
+ <RUBY_RUN_CONFIG NAME="ALTERN_SDK_NAME" VALUE="" />
38
+ <RUBY_RUN_CONFIG NAME="myPassParentEnvs" VALUE="true" />
39
+ <envs />
40
+ <EXTENSION ID="BundlerRunConfigurationExtension" bundleExecEnabled="false" />
41
+ <EXTENSION ID="JRubyRunConfigurationExtension" NailgunExecEnabled="false" />
42
+ <EXTENSION ID="RubyCoverageRunConfigurationExtension" enabled="false" sample_coverage="true" track_test_folders="true" runner="rcov">
43
+ <COVERAGE_PATTERN ENABLED="true">
44
+ <PATTERN REGEXPS="/.rvm/" INCLUDED="false" />
45
+ </COVERAGE_PATTERN>
46
+ </EXTENSION>
47
+ <RUBY_RUN_CONFIG NAME="SCRIPT_PATH" VALUE="$MODULE_DIR$/lib/fua.rb" />
48
+ <RUBY_RUN_CONFIG NAME="SCRIPT_ARGS" VALUE="" />
49
+ <method />
50
+ </configuration>
51
+ </component>
52
+ <component name="NewModuleRootManager">
53
+ <content url="file://$MODULE_DIR$">
54
+ <sourceFolder url="file://$MODULE_DIR$/test" isTestSource="true" />
55
+ <excludeFolder url="file://$MODULE_DIR$/.bundle" />
56
+ <excludeFolder url="file://$MODULE_DIR$/vendor/bundle" />
57
+ </content>
58
+ <orderEntry type="inheritedJdk" />
59
+ <orderEntry type="sourceFolder" forTests="false" />
60
+ <orderEntry type="library" scope="PROVIDED" name="bundler (v1.13.2, RVM: ruby-2.3.0) [gem]" level="application" />
61
+ <orderEntry type="library" scope="PROVIDED" name="rake (v10.4.2, RVM: ruby-2.3.0) [gem]" level="application" />
62
+ </component>
63
+ </module>
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="RVM: ruby-2.3.0" 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/fua.iml" filepath="$PROJECT_DIR$/.idea/fua.iml" />
6
+ </modules>
7
+ </component>
8
+ </project>
@@ -0,0 +1,465 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="ChangeListManager">
4
+ <list default="true" id="b0b0bbd6-e62b-4b58-a130-1dead241f488" name="Default" comment="" />
5
+ <ignored path="fua.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="CoverageDataManager">
17
+ <SUITE FILE_PATH="coverage/fua@a.coverage" NAME="a Coverage Results" MODIFIED="1480840626744" SOURCE_PROVIDER="com.intellij.coverage.DefaultCoverageFileProvider" RUNNER="rcov" COVERAGE_BY_TEST_ENABLED="true" COVERAGE_TRACING_ENABLED="false" WORKING_DIRECTORY="$PROJECT_DIR$/lib/fua" MODULE_NAME="fua" />
18
+ <SUITE FILE_PATH="coverage/fua@fua.coverage" NAME="fua Coverage Results" MODIFIED="1480841417786" SOURCE_PROVIDER="com.intellij.coverage.DefaultCoverageFileProvider" RUNNER="rcov" COVERAGE_BY_TEST_ENABLED="true" COVERAGE_TRACING_ENABLED="false" WORKING_DIRECTORY="$PROJECT_DIR$/lib" MODULE_NAME="fua" />
19
+ </component>
20
+ <component name="CreatePatchCommitExecutor">
21
+ <option name="PATCH_PATH" value="" />
22
+ </component>
23
+ <component name="ExecutionTargetManager" SELECTED_TARGET="default_target" />
24
+ <component name="FavoritesManager">
25
+ <favorites_list name="fua" />
26
+ </component>
27
+ <component name="FileEditorManager">
28
+ <leaf>
29
+ <file leaf-file-name="Gemfile" pinned="false" current-in-tab="false">
30
+ <entry file="file://$PROJECT_DIR$/Gemfile">
31
+ <provider selected="true" editor-type-id="text-editor">
32
+ <state vertical-scroll-proportion="0.0">
33
+ <caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
34
+ <folding />
35
+ </state>
36
+ </provider>
37
+ </entry>
38
+ </file>
39
+ <file leaf-file-name="fua.rb" pinned="false" current-in-tab="false">
40
+ <entry file="file://$PROJECT_DIR$/lib/fua.rb">
41
+ <provider selected="true" editor-type-id="text-editor">
42
+ <state vertical-scroll-proportion="0.0">
43
+ <caret line="2" column="0" selection-start-line="2" selection-start-column="0" selection-end-line="2" selection-end-column="0" />
44
+ <folding />
45
+ </state>
46
+ </provider>
47
+ </entry>
48
+ </file>
49
+ <file leaf-file-name="fua.gemspec" pinned="false" current-in-tab="false">
50
+ <entry file="file://$PROJECT_DIR$/fua.gemspec">
51
+ <provider selected="true" editor-type-id="text-editor">
52
+ <state vertical-scroll-proportion="0.0">
53
+ <caret line="12" column="168" selection-start-line="12" selection-start-column="168" selection-end-line="12" selection-end-column="168" />
54
+ <folding />
55
+ </state>
56
+ </provider>
57
+ </entry>
58
+ </file>
59
+ <file leaf-file-name="README.md" pinned="false" current-in-tab="false">
60
+ <entry file="file://$PROJECT_DIR$/README.md">
61
+ <provider selected="true" editor-type-id="text-editor">
62
+ <state vertical-scroll-proportion="0.0">
63
+ <caret line="93" column="0" selection-start-line="93" selection-start-column="0" selection-end-line="93" selection-end-column="0" />
64
+ <folding />
65
+ </state>
66
+ </provider>
67
+ </entry>
68
+ </file>
69
+ <file leaf-file-name="version.rb" pinned="false" current-in-tab="true">
70
+ <entry file="file://$PROJECT_DIR$/lib/fua/version.rb">
71
+ <provider selected="true" editor-type-id="text-editor">
72
+ <state vertical-scroll-proportion="0.02923077">
73
+ <caret line="1" column="18" selection-start-line="1" selection-start-column="18" selection-end-line="1" selection-end-column="18" />
74
+ <folding />
75
+ </state>
76
+ </provider>
77
+ </entry>
78
+ </file>
79
+ <file leaf-file-name="LICENSE.txt" pinned="false" current-in-tab="false">
80
+ <entry file="file://$PROJECT_DIR$/LICENSE.txt">
81
+ <provider selected="true" editor-type-id="text-editor">
82
+ <state vertical-scroll-proportion="0.0">
83
+ <caret line="21" column="0" selection-start-line="21" selection-start-column="0" selection-end-line="21" selection-end-column="0" />
84
+ <folding />
85
+ </state>
86
+ </provider>
87
+ </entry>
88
+ </file>
89
+ </leaf>
90
+ </component>
91
+ <component name="IdeDocumentHistory">
92
+ <option name="CHANGED_PATHS">
93
+ <list>
94
+ <option value="$PROJECT_DIR$/lib/fua/a.rb" />
95
+ <option value="$PROJECT_DIR$/lib/fua.rb" />
96
+ <option value="$PROJECT_DIR$/README.md" />
97
+ <option value="$PROJECT_DIR$/fua.gemspec" />
98
+ <option value="$PROJECT_DIR$/lib/fua/version.rb" />
99
+ </list>
100
+ </option>
101
+ </component>
102
+ <component name="JsBuildToolGruntFileManager" detection-done="true" />
103
+ <component name="JsBuildToolPackageJson" detection-done="true" />
104
+ <component name="JsGulpfileManager">
105
+ <detection-done>true</detection-done>
106
+ </component>
107
+ <component name="ProjectFrameBounds">
108
+ <option name="width" value="1600" />
109
+ <option name="height" value="900" />
110
+ </component>
111
+ <component name="ProjectLevelVcsManager" settingsEditedManually="false">
112
+ <OptionsSetting value="true" id="Add" />
113
+ <OptionsSetting value="true" id="Remove" />
114
+ <OptionsSetting value="true" id="Checkout" />
115
+ <OptionsSetting value="true" id="Update" />
116
+ <OptionsSetting value="true" id="Status" />
117
+ <OptionsSetting value="true" id="Edit" />
118
+ <ConfirmationsSetting value="0" id="Add" />
119
+ <ConfirmationsSetting value="0" id="Remove" />
120
+ </component>
121
+ <component name="ProjectView">
122
+ <navigator currentView="ProjectPane" proportions="" version="1">
123
+ <flattenPackages />
124
+ <showMembers />
125
+ <showModules />
126
+ <showLibraryContents />
127
+ <hideEmptyPackages />
128
+ <abbreviatePackageNames />
129
+ <autoscrollToSource />
130
+ <autoscrollFromSource />
131
+ <sortByType />
132
+ <manualOrder />
133
+ <foldersAlwaysOnTop value="true" />
134
+ </navigator>
135
+ <panes>
136
+ <pane id="Scope" />
137
+ <pane id="ProjectPane">
138
+ <subPane>
139
+ <PATH>
140
+ <PATH_ELEMENT>
141
+ <option name="myItemId" value="fua" />
142
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
143
+ </PATH_ELEMENT>
144
+ </PATH>
145
+ <PATH>
146
+ <PATH_ELEMENT>
147
+ <option name="myItemId" value="fua" />
148
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
149
+ </PATH_ELEMENT>
150
+ <PATH_ELEMENT>
151
+ <option name="myItemId" value="fua" />
152
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
153
+ </PATH_ELEMENT>
154
+ </PATH>
155
+ <PATH>
156
+ <PATH_ELEMENT>
157
+ <option name="myItemId" value="fua" />
158
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
159
+ </PATH_ELEMENT>
160
+ <PATH_ELEMENT>
161
+ <option name="myItemId" value="fua" />
162
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
163
+ </PATH_ELEMENT>
164
+ <PATH_ELEMENT>
165
+ <option name="myItemId" value="lib" />
166
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
167
+ </PATH_ELEMENT>
168
+ </PATH>
169
+ <PATH>
170
+ <PATH_ELEMENT>
171
+ <option name="myItemId" value="fua" />
172
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
173
+ </PATH_ELEMENT>
174
+ <PATH_ELEMENT>
175
+ <option name="myItemId" value="fua" />
176
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
177
+ </PATH_ELEMENT>
178
+ <PATH_ELEMENT>
179
+ <option name="myItemId" value="lib" />
180
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
181
+ </PATH_ELEMENT>
182
+ <PATH_ELEMENT>
183
+ <option name="myItemId" value="fua" />
184
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
185
+ </PATH_ELEMENT>
186
+ </PATH>
187
+ </subPane>
188
+ </pane>
189
+ <pane id="Scratches" />
190
+ </panes>
191
+ </component>
192
+ <component name="PropertiesComponent">
193
+ <property name="WebServerToolWindowFactoryState" value="false" />
194
+ <property name="js-jscs-nodeInterpreter" value="/usr/local/bin/node" />
195
+ <property name="FullScreen" value="true" />
196
+ </component>
197
+ <component name="RunManager" selected="Ruby.fua">
198
+ <configuration default="false" name="a" type="RubyRunConfigurationType" factoryName="Ruby" temporary="true">
199
+ <module name="fua" />
200
+ <RUBY_RUN_CONFIG NAME="RUBY_ARGS" VALUE="-e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)" />
201
+ <RUBY_RUN_CONFIG NAME="WORK DIR" VALUE="$MODULE_DIR$/lib/fua" />
202
+ <RUBY_RUN_CONFIG NAME="SHOULD_USE_SDK" VALUE="false" />
203
+ <RUBY_RUN_CONFIG NAME="ALTERN_SDK_NAME" VALUE="" />
204
+ <RUBY_RUN_CONFIG NAME="myPassParentEnvs" VALUE="true" />
205
+ <envs />
206
+ <EXTENSION ID="BundlerRunConfigurationExtension" bundleExecEnabled="false" />
207
+ <EXTENSION ID="JRubyRunConfigurationExtension" NailgunExecEnabled="false" />
208
+ <EXTENSION ID="RubyCoverageRunConfigurationExtension" enabled="false" sample_coverage="true" track_test_folders="true" runner="rcov">
209
+ <COVERAGE_PATTERN ENABLED="true">
210
+ <PATTERN REGEXPS="/.rvm/" INCLUDED="false" />
211
+ </COVERAGE_PATTERN>
212
+ </EXTENSION>
213
+ <RUBY_RUN_CONFIG NAME="SCRIPT_PATH" VALUE="$MODULE_DIR$/lib/fua/a.rb" />
214
+ <RUBY_RUN_CONFIG NAME="SCRIPT_ARGS" VALUE="" />
215
+ <method />
216
+ </configuration>
217
+ <configuration default="false" name="fua" type="RubyRunConfigurationType" factoryName="Ruby" temporary="true">
218
+ <module name="fua" />
219
+ <RUBY_RUN_CONFIG NAME="RUBY_ARGS" VALUE="-e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)" />
220
+ <RUBY_RUN_CONFIG NAME="WORK DIR" VALUE="$MODULE_DIR$/lib" />
221
+ <RUBY_RUN_CONFIG NAME="SHOULD_USE_SDK" VALUE="false" />
222
+ <RUBY_RUN_CONFIG NAME="ALTERN_SDK_NAME" VALUE="" />
223
+ <RUBY_RUN_CONFIG NAME="myPassParentEnvs" VALUE="true" />
224
+ <envs />
225
+ <EXTENSION ID="BundlerRunConfigurationExtension" bundleExecEnabled="false" />
226
+ <EXTENSION ID="JRubyRunConfigurationExtension" NailgunExecEnabled="false" />
227
+ <EXTENSION ID="RubyCoverageRunConfigurationExtension" enabled="false" sample_coverage="true" track_test_folders="true" runner="rcov">
228
+ <COVERAGE_PATTERN ENABLED="true">
229
+ <PATTERN REGEXPS="/.rvm/" INCLUDED="false" />
230
+ </COVERAGE_PATTERN>
231
+ </EXTENSION>
232
+ <RUBY_RUN_CONFIG NAME="SCRIPT_PATH" VALUE="$MODULE_DIR$/lib/fua.rb" />
233
+ <RUBY_RUN_CONFIG NAME="SCRIPT_ARGS" VALUE="" />
234
+ <method />
235
+ </configuration>
236
+ <configuration default="true" type="CucumberRunConfigurationType" factoryName="Cucumber">
237
+ <predefined_log_file id="RUBY_CUCUMBER" enabled="true" />
238
+ <module name="" />
239
+ <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="RUBY_ARGS" VALUE="-e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)" />
240
+ <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="WORK DIR" VALUE="" />
241
+ <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="SHOULD_USE_SDK" VALUE="false" />
242
+ <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="ALTERN_SDK_NAME" VALUE="" />
243
+ <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="myPassParentEnvs" VALUE="true" />
244
+ <envs />
245
+ <EXTENSION ID="BundlerRunConfigurationExtension" bundleExecEnabled="false" />
246
+ <EXTENSION ID="JRubyRunConfigurationExtension" NailgunExecEnabled="false" />
247
+ <EXTENSION ID="RubyCoverageRunConfigurationExtension" enabled="false" sample_coverage="true" track_test_folders="true" runner="rcov">
248
+ <COVERAGE_PATTERN ENABLED="true">
249
+ <PATTERN REGEXPS="/.rvm/" INCLUDED="false" />
250
+ </COVERAGE_PATTERN>
251
+ </EXTENSION>
252
+ <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="TEST_FILE_MASK" VALUE="**/*.feature" />
253
+ <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="TEST_TEST_TYPE" VALUE="TEST_SCRIPT" />
254
+ <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="TESTS_FOLDER_PATH" VALUE="" />
255
+ <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="TEST_SCRIPT_PATH" VALUE="" />
256
+ <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="TEST_TAGS_FILTER" VALUE="" />
257
+ <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="TEST_NAME_FILTER" VALUE="" />
258
+ <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="CUCUMBER_ARGS" VALUE="--color -r features" />
259
+ <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="RUNNER_VERSION" VALUE="" />
260
+ <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="FULL_BACKTRACE" VALUE="false" />
261
+ <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="VERBOSE_OPTION" VALUE="false" />
262
+ <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="DRB" VALUE="false" />
263
+ <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="ZEUS" VALUE="false" />
264
+ <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="SPRING" VALUE="false" />
265
+ <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="CUCUMBER_RUNNER_PATH" VALUE="" />
266
+ <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="USE_CUSTOM_RUNNER" VALUE="false" />
267
+ <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="SETTINGS_VERSION" VALUE="2" />
268
+ <method />
269
+ </configuration>
270
+ <configuration default="true" type="JavascriptDebugType" factoryName="JavaScript Debug">
271
+ <method />
272
+ </configuration>
273
+ <configuration default="true" type="RSpecRunConfigurationType" factoryName="RSpec">
274
+ <predefined_log_file id="RUBY_RSPEC" enabled="true" />
275
+ <module name="" />
276
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="RUBY_ARGS" VALUE="-e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)" />
277
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="WORK DIR" VALUE="" />
278
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SHOULD_USE_SDK" VALUE="false" />
279
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="ALTERN_SDK_NAME" VALUE="" />
280
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="myPassParentEnvs" VALUE="true" />
281
+ <envs />
282
+ <EXTENSION ID="BundlerRunConfigurationExtension" bundleExecEnabled="false" />
283
+ <EXTENSION ID="JRubyRunConfigurationExtension" NailgunExecEnabled="false" />
284
+ <EXTENSION ID="RubyCoverageRunConfigurationExtension" enabled="false" sample_coverage="true" track_test_folders="true" runner="rcov">
285
+ <COVERAGE_PATTERN ENABLED="true">
286
+ <PATTERN REGEXPS="/.rvm/" INCLUDED="false" />
287
+ </COVERAGE_PATTERN>
288
+ </EXTENSION>
289
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TESTS_FOLDER_PATH" VALUE="" />
290
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_SCRIPT_PATH" VALUE="" />
291
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_RUNNER_PATH" VALUE="" />
292
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_FILE_MASK" VALUE="**/*_spec.rb" />
293
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_EXAMPLE_NAME" VALUE="" />
294
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_TEST_TYPE" VALUE="TEST_SCRIPT" />
295
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_ARGS" VALUE="" />
296
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="RUNNER_VERSION" VALUE="" />
297
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="USE_CUSTOM_SPEC_RUNNER" VALUE="false" />
298
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="DRB" VALUE="false" />
299
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="ZEUS" VALUE="false" />
300
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPRING" VALUE="false" />
301
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="FULL_BACKTRACE" VALUE="false" />
302
+ <method />
303
+ </configuration>
304
+ <configuration default="true" type="RubyRunConfigurationType" factoryName="Ruby">
305
+ <module name="" />
306
+ <RUBY_RUN_CONFIG NAME="RUBY_ARGS" VALUE="-e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)" />
307
+ <RUBY_RUN_CONFIG NAME="WORK DIR" VALUE="" />
308
+ <RUBY_RUN_CONFIG NAME="SHOULD_USE_SDK" VALUE="false" />
309
+ <RUBY_RUN_CONFIG NAME="ALTERN_SDK_NAME" VALUE="" />
310
+ <RUBY_RUN_CONFIG NAME="myPassParentEnvs" VALUE="true" />
311
+ <envs />
312
+ <EXTENSION ID="BundlerRunConfigurationExtension" bundleExecEnabled="false" />
313
+ <EXTENSION ID="JRubyRunConfigurationExtension" NailgunExecEnabled="false" />
314
+ <EXTENSION ID="RubyCoverageRunConfigurationExtension" enabled="false" sample_coverage="true" track_test_folders="true" runner="rcov">
315
+ <COVERAGE_PATTERN ENABLED="true">
316
+ <PATTERN REGEXPS="/.rvm/" INCLUDED="false" />
317
+ </COVERAGE_PATTERN>
318
+ </EXTENSION>
319
+ <RUBY_RUN_CONFIG NAME="SCRIPT_PATH" VALUE="" />
320
+ <RUBY_RUN_CONFIG NAME="SCRIPT_ARGS" VALUE="" />
321
+ <method />
322
+ </configuration>
323
+ <configuration default="true" type="TestUnitRunConfigurationType" factoryName="Test::Unit/Shoulda/Minitest">
324
+ <predefined_log_file id="RUBY_TESTUNIT" enabled="true" />
325
+ <module name="" />
326
+ <RTEST_RUN_CONFIG_SETTINGS_ID NAME="RUBY_ARGS" VALUE="-e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)" />
327
+ <RTEST_RUN_CONFIG_SETTINGS_ID NAME="WORK DIR" VALUE="" />
328
+ <RTEST_RUN_CONFIG_SETTINGS_ID NAME="SHOULD_USE_SDK" VALUE="false" />
329
+ <RTEST_RUN_CONFIG_SETTINGS_ID NAME="ALTERN_SDK_NAME" VALUE="" />
330
+ <RTEST_RUN_CONFIG_SETTINGS_ID NAME="myPassParentEnvs" VALUE="true" />
331
+ <envs />
332
+ <EXTENSION ID="BundlerRunConfigurationExtension" bundleExecEnabled="false" />
333
+ <EXTENSION ID="JRubyRunConfigurationExtension" NailgunExecEnabled="false" />
334
+ <EXTENSION ID="RubyCoverageRunConfigurationExtension" enabled="false" sample_coverage="true" track_test_folders="true" runner="rcov">
335
+ <COVERAGE_PATTERN ENABLED="true">
336
+ <PATTERN REGEXPS="/.rvm/" INCLUDED="false" />
337
+ </COVERAGE_PATTERN>
338
+ </EXTENSION>
339
+ <RTEST_RUN_CONFIG_SETTINGS_ID NAME="TESTS_FOLDER_PATH" VALUE="" />
340
+ <RTEST_RUN_CONFIG_SETTINGS_ID NAME="TEST_SCRIPT_PATH" VALUE="" />
341
+ <RTEST_RUN_CONFIG_SETTINGS_ID NAME="TEST_FILE_MASK" VALUE="" />
342
+ <RTEST_RUN_CONFIG_SETTINGS_ID NAME="TEST_METHOD_NAME" VALUE="" />
343
+ <RTEST_RUN_CONFIG_SETTINGS_ID NAME="TEST_TEST_TYPE" VALUE="TEST_SCRIPT" />
344
+ <RTEST_RUN_CONFIG_SETTINGS_ID NAME="DRB" VALUE="false" />
345
+ <RTEST_RUN_CONFIG_SETTINGS_ID NAME="ZEUS" VALUE="false" />
346
+ <RTEST_RUN_CONFIG_SETTINGS_ID NAME="SPRING" VALUE="false" />
347
+ <RTEST_RUN_CONFIG_SETTINGS_ID NAME="RUNNER_OPTIONS" VALUE="" />
348
+ <method />
349
+ </configuration>
350
+ <configuration default="true" type="js.build_tools.gulp" factoryName="Gulp.js">
351
+ <method />
352
+ </configuration>
353
+ <configuration default="true" type="js.build_tools.npm" factoryName="npm">
354
+ <command value="run-script" />
355
+ <scripts />
356
+ <envs />
357
+ <method />
358
+ </configuration>
359
+ <list size="2">
360
+ <item index="0" class="java.lang.String" itemvalue="Ruby.a" />
361
+ <item index="1" class="java.lang.String" itemvalue="Ruby.fua" />
362
+ </list>
363
+ <recent_temporary>
364
+ <list size="2">
365
+ <item index="0" class="java.lang.String" itemvalue="Ruby.fua" />
366
+ <item index="1" class="java.lang.String" itemvalue="Ruby.a" />
367
+ </list>
368
+ </recent_temporary>
369
+ </component>
370
+ <component name="ShelveChangesManager" show_recycled="false" />
371
+ <component name="SvnConfiguration">
372
+ <configuration />
373
+ </component>
374
+ <component name="TaskManager">
375
+ <task active="true" id="Default" summary="Default task">
376
+ <changelist id="b0b0bbd6-e62b-4b58-a130-1dead241f488" name="Default" comment="" />
377
+ <created>1480807099516</created>
378
+ <option name="number" value="Default" />
379
+ <updated>1480807099516</updated>
380
+ </task>
381
+ <servers />
382
+ </component>
383
+ <component name="ToolWindowManager">
384
+ <frame x="0" y="0" width="1600" height="900" extended-state="0" />
385
+ <editor active="true" />
386
+ <layout>
387
+ <window_info id="Project" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" show_stripe_button="true" weight="0.25" sideWeight="0.5" order="0" side_tool="false" content_ui="combo" />
388
+ <window_info id="TODO" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="6" side_tool="false" content_ui="tabs" />
389
+ <window_info id="Event Log" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="-1" side_tool="true" content_ui="tabs" />
390
+ <window_info id="Database" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="-1" side_tool="false" content_ui="tabs" />
391
+ <window_info id="Version Control" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="-1" side_tool="false" content_ui="tabs" />
392
+ <window_info id="Run" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" show_stripe_button="true" weight="0.22866894" sideWeight="0.5" order="2" side_tool="false" content_ui="tabs" />
393
+ <window_info id="Structure" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.25" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
394
+ <window_info id="Terminal" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="-1" side_tool="false" content_ui="tabs" />
395
+ <window_info id="Favorites" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="-1" side_tool="true" content_ui="tabs" />
396
+ <window_info id="Debug" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.4" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" />
397
+ <window_info id="Cvs" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.25" sideWeight="0.5" order="4" side_tool="false" content_ui="tabs" />
398
+ <window_info id="Hierarchy" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.25" sideWeight="0.5" order="2" side_tool="false" content_ui="combo" />
399
+ <window_info id="Message" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="0" side_tool="false" content_ui="tabs" />
400
+ <window_info id="Commander" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.4" sideWeight="0.5" order="0" side_tool="false" content_ui="tabs" />
401
+ <window_info id="Find" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
402
+ <window_info id="Inspection" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.4" sideWeight="0.5" order="5" side_tool="false" content_ui="tabs" />
403
+ <window_info id="Ant Build" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.25" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
404
+ </layout>
405
+ </component>
406
+ <component name="VcsContentAnnotationSettings">
407
+ <option name="myLimit" value="2678400000" />
408
+ </component>
409
+ <component name="XDebuggerManager">
410
+ <breakpoint-manager>
411
+ <option name="time" value="1" />
412
+ </breakpoint-manager>
413
+ <watches-manager />
414
+ </component>
415
+ <component name="editorHistoryManager">
416
+ <entry file="file://$PROJECT_DIR$/LICENSE.txt">
417
+ <provider selected="true" editor-type-id="text-editor">
418
+ <state vertical-scroll-proportion="0.0">
419
+ <caret line="21" column="0" selection-start-line="21" selection-start-column="0" selection-end-line="21" selection-end-column="0" />
420
+ <folding />
421
+ </state>
422
+ </provider>
423
+ </entry>
424
+ <entry file="file://$PROJECT_DIR$/Gemfile">
425
+ <provider selected="true" editor-type-id="text-editor">
426
+ <state vertical-scroll-proportion="0.0">
427
+ <caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
428
+ <folding />
429
+ </state>
430
+ </provider>
431
+ </entry>
432
+ <entry file="file://$PROJECT_DIR$/lib/fua.rb">
433
+ <provider selected="true" editor-type-id="text-editor">
434
+ <state vertical-scroll-proportion="0.0">
435
+ <caret line="2" column="0" selection-start-line="2" selection-start-column="0" selection-end-line="2" selection-end-column="0" />
436
+ <folding />
437
+ </state>
438
+ </provider>
439
+ </entry>
440
+ <entry file="file://$PROJECT_DIR$/README.md">
441
+ <provider selected="true" editor-type-id="text-editor">
442
+ <state vertical-scroll-proportion="0.0">
443
+ <caret line="93" column="0" selection-start-line="93" selection-start-column="0" selection-end-line="93" selection-end-column="0" />
444
+ <folding />
445
+ </state>
446
+ </provider>
447
+ </entry>
448
+ <entry file="file://$PROJECT_DIR$/fua.gemspec">
449
+ <provider selected="true" editor-type-id="text-editor">
450
+ <state vertical-scroll-proportion="0.0">
451
+ <caret line="12" column="168" selection-start-line="12" selection-start-column="168" selection-end-line="12" selection-end-column="168" />
452
+ <folding />
453
+ </state>
454
+ </provider>
455
+ </entry>
456
+ <entry file="file://$PROJECT_DIR$/lib/fua/version.rb">
457
+ <provider selected="true" editor-type-id="text-editor">
458
+ <state vertical-scroll-proportion="0.02923077">
459
+ <caret line="1" column="18" selection-start-line="1" selection-start-column="18" selection-end-line="1" selection-end-column="18" />
460
+ <folding />
461
+ </state>
462
+ </provider>
463
+ </entry>
464
+ </component>
465
+ </project>
@@ -0,0 +1,74 @@
1
+ # Contributor Covenant Code of Conduct
2
+
3
+ ## Our Pledge
4
+
5
+ In the interest of fostering an open and welcoming environment, we as
6
+ contributors and maintainers pledge to making participation in our project and
7
+ our community a harassment-free experience for everyone, regardless of age, body
8
+ size, disability, ethnicity, gender identity and expression, level of experience,
9
+ nationality, personal appearance, race, religion, or sexual identity and
10
+ orientation.
11
+
12
+ ## Our Standards
13
+
14
+ Examples of behavior that contributes to creating a positive environment
15
+ include:
16
+
17
+ * Using welcoming and inclusive language
18
+ * Being respectful of differing viewpoints and experiences
19
+ * Gracefully accepting constructive criticism
20
+ * Focusing on what is best for the community
21
+ * Showing empathy towards other community members
22
+
23
+ Examples of unacceptable behavior by participants include:
24
+
25
+ * The use of sexualized language or imagery and unwelcome sexual attention or
26
+ advances
27
+ * Trolling, insulting/derogatory comments, and personal or political attacks
28
+ * Public or private harassment
29
+ * Publishing others' private information, such as a physical or electronic
30
+ address, without explicit permission
31
+ * Other conduct which could reasonably be considered inappropriate in a
32
+ professional setting
33
+
34
+ ## Our Responsibilities
35
+
36
+ Project maintainers are responsible for clarifying the standards of acceptable
37
+ behavior and are expected to take appropriate and fair corrective action in
38
+ response to any instances of unacceptable behavior.
39
+
40
+ Project maintainers have the right and responsibility to remove, edit, or
41
+ reject comments, commits, code, wiki edits, issues, and other contributions
42
+ that are not aligned to this Code of Conduct, or to ban temporarily or
43
+ permanently any contributor for other behaviors that they deem inappropriate,
44
+ threatening, offensive, or harmful.
45
+
46
+ ## Scope
47
+
48
+ This Code of Conduct applies both within project spaces and in public spaces
49
+ when an individual is representing the project or its community. Examples of
50
+ representing a project or community include using an official project e-mail
51
+ address, posting via an official social media account, or acting as an appointed
52
+ representative at an online or offline event. Representation of a project may be
53
+ further defined and clarified by project maintainers.
54
+
55
+ ## Enforcement
56
+
57
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be
58
+ reported by contacting the project team at behdadahmadi@mail.com. All
59
+ complaints will be reviewed and investigated and will result in a response that
60
+ is deemed necessary and appropriate to the circumstances. The project team is
61
+ obligated to maintain confidentiality with regard to the reporter of an incident.
62
+ Further details of specific enforcement policies may be posted separately.
63
+
64
+ Project maintainers who do not follow or enforce the Code of Conduct in good
65
+ faith may face temporary or permanent repercussions as determined by other
66
+ members of the project's leadership.
67
+
68
+ ## Attribution
69
+
70
+ This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
71
+ available at [http://contributor-covenant.org/version/1/4][version]
72
+
73
+ [homepage]: http://contributor-covenant.org
74
+ [version]: http://contributor-covenant.org/version/1/4/
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Specify your gem's dependencies in fua.gemspec
4
+ gemspec
data/LICENSE.txt ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2016 Behdad Ahmadi
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,110 @@
1
+ # Fua
2
+
3
+ In many Ruby script such as crawlers,you need to change your User-Agent. It can be done by fua so easy and fast. It returns selected real device User Agent string and keep your script away from nested User Agent string.
4
+
5
+ It supports:
6
+
7
+ ::
8
+
9
+ Smartphones :
10
+
11
+ Android(Browser,Firefox,WebView,Chrome,Opera)
12
+ iOS(Saffari,Firefox,Chrome)
13
+ Windows Phone(Browser)
14
+ Blackberry(Browser)
15
+ Palm(Blazer)
16
+ Fennec(Browser)
17
+ Symbian(Browser,Go_Browser,Opera_Mini,Opera)
18
+ Maemo(Browser,Firefox)
19
+ Motorola(MIB)
20
+ FirefoxOS(Browser)
21
+ Samsung(Tizen)
22
+
23
+ ----
24
+
25
+ Desktop :
26
+ Windows(IE,Edge,Firefox,Chrome,Opera,Saffari,SeaMonkey)
27
+ macOS(Saffari,Firefox,Opera,Chrome,Camino,SeaMonkey)
28
+ Google Chrome(Chrome,Firefox)
29
+ FreeBSD(Chrome,Opera,Firefox)
30
+ Linux(Chrome,Opera,Firefox,SeaMonkey)
31
+ Unix(Chrome,Surf,Opera)
32
+
33
+ ---
34
+
35
+ Wearable :
36
+
37
+ Google Glass
38
+
39
+ ---
40
+
41
+ Smart TV :
42
+
43
+ Samsung(Browser,HBB,SmartHub)
44
+ Sharp
45
+ Sony
46
+ Technisat
47
+ VIZIO
48
+ Toshiba
49
+ Philips
50
+ Roku
51
+ tvOS
52
+ LG(Netcast)
53
+ Google TV
54
+ Mapple Browser
55
+ HBB TV
56
+ Google ChromeCast
57
+ Netgear
58
+ Panasonic
59
+
60
+ ---
61
+
62
+ Game Consoles :
63
+
64
+ Xbox One
65
+ Playstation4
66
+
67
+ ## Installation
68
+
69
+ Add this line to your application's Gemfile:
70
+
71
+ ```ruby
72
+ gem 'fua'
73
+ ```
74
+
75
+ And then execute:
76
+
77
+ $ bundle
78
+
79
+ Or install it yourself as:
80
+
81
+ $ gem install fua
82
+
83
+ ## Usage
84
+
85
+ require 'fua'
86
+
87
+ android_chrome_ua = Fua::SmartPhone::Android.new.Chrome
88
+
89
+ xboxOne_ua = Fua::Game_Consoles.new.Xbox_One
90
+
91
+ win_ie_ua = Fua::Desktop::Windows.new.IE
92
+
93
+ And then use your User Agent string in your header of your requests.
94
+
95
+
96
+ ## Development
97
+
98
+ After checking out the repo, run `bin/setup` to install dependencies. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
99
+
100
+ 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`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
101
+
102
+ ## Contributing
103
+
104
+ Bug reports and pull requests are welcome on GitHub at https://github.com/behdadahmadi/fua. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
105
+
106
+
107
+ ## License
108
+
109
+ The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
110
+
data/Rakefile ADDED
@@ -0,0 +1,2 @@
1
+ require "bundler/gem_tasks"
2
+ task :default => :spec
data/bin/console ADDED
@@ -0,0 +1,14 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require "bundler/setup"
4
+ require "fua"
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,8 @@
1
+ #!/usr/bin/env bash
2
+ set -euo pipefail
3
+ IFS=$'\n\t'
4
+ set -vx
5
+
6
+ bundle install
7
+
8
+ # Do any other automated setup that you need to do here
data/fua.gemspec ADDED
@@ -0,0 +1,30 @@
1
+ # coding: utf-8
2
+ lib = File.expand_path('../lib', __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require 'fua/version'
5
+
6
+ Gem::Specification.new do |spec|
7
+ spec.name = "fua"
8
+ spec.version = Fua::VERSION
9
+ spec.authors = ["Behdad Ahmadi"]
10
+ spec.email = ["behdadahmadi@mail.com"]
11
+
12
+ spec.summary = 'Fake User-Agents of about %80 of real devices to use in headers of web crawlers. It keeps your script away from being nested by many UA strings.'
13
+ spec.description = 'Fake User-Agents of about %80 of real devices to use in headers of web crawlers. It keeps your script away from being nested by many UA strings.'
14
+ spec.homepage = "https://github.com/behdadahmadi/fua"
15
+ spec.license = "MIT"
16
+
17
+ # Prevent pushing this gem to RubyGems.org. To allow pushes either set the 'allowed_push_host'
18
+ # to allow pushing to a single host or delete this section to allow pushing to any host.
19
+
20
+
21
+ spec.files = `git ls-files -z`.split("\x0").reject do |f|
22
+ f.match(%r{^(test|spec|features)/})
23
+ end
24
+ spec.bindir = "exe"
25
+ spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
26
+ spec.require_paths = ["lib"]
27
+
28
+ spec.add_development_dependency "bundler", "~> 1.13"
29
+ spec.add_development_dependency "rake", "~> 10.0"
30
+ end
data/lib/fua.rb ADDED
@@ -0,0 +1,260 @@
1
+ require 'bundler/setup'
2
+ require 'fua/version'
3
+
4
+ module Fua
5
+ class SmartPhone
6
+ class Android
7
+ def Browser
8
+ return 'Mozilla/5.0 (Linux; U; Android 4.4.4; Nexus 5 Build/KTU84P) AppleWebkit/534.30 (KHTML, like Gecko) Version/4.0 Mobile Safari/534.30'
9
+ end
10
+ def Firefox
11
+ return 'Mozilla/5.0 (Android 4.4; Mobile; rv:41.0) Gecko/41.0 Firefox/41.0'
12
+ end
13
+ def WebView
14
+ return 'Mozilla/5.0 (Linux; Android 5.1.1; Nexus 5 Build/LMY48B; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/43.0.2357.65 Mobile Safari/537.36'
15
+ end
16
+ def Chrome
17
+ return 'Mozilla/5.0 (Linux; Android 4.0.4; Galaxy Nexus Build/IMM76B) AppleWebKit/535.19 (KHTML, like Gecko) Chrome/18.0.1025.133 Mobile Safari/535.19'
18
+ end
19
+ def Opera
20
+ return 'Opera/12.02 (Android 4.1; Linux; Opera Mobi/ADR-1111101157; U; en-US) Presto/2.9.201 Version/12.02'
21
+ end
22
+ end
23
+ class Ios
24
+ def Saffari
25
+ return 'Mozilla/5.0 (Linux; Android 4.0.4; Galaxy Nexus Build/IMM76B) AppleWebKit/535.19 (KHTML, like Gecko) Chrome/18.0.1025.133 Mobile Safari/535.19'
26
+ end
27
+ def Chrome
28
+ return 'Mozilla/5.0 (iPhone; U; CPU iPhone OS 5_1_1 like Mac OS X; en-gb)AppleWebKit/534.46.0 (KHTML, like Gecko)CriOS/19.0.1084.60 Mobile/9B206 Safari/7534.48.3'
29
+ end
30
+ def Firefox
31
+ return 'Mozilla/5.0 (iPhone; CPU iPhone OS 8_3 like Mac OS X) AppleWebKit/600.1.4 (KHTML, like Gecko) FxiOS/1.0 Mobile/12F69 Safari/600.1.4'
32
+ end
33
+
34
+ end
35
+ class BlackBerry
36
+ def Browser
37
+ return 'Mozilla/5.0 (BlackBerry; U; BlackBerry 9900; en) AppleWebKit/534.11+ (KHTML, like Gecko) Version/7.1.0.346 Mobile Safari/534.11+'
38
+ end
39
+ end
40
+ class WindowsPhone
41
+ def Browser
42
+ return 'Mozilla/5.0 (Mobile; Windows Phone 8.1; Android 4.0; ARM; Trident/7.0; Touch; rv:11.0; IEMobile/11.0; NOKIA; Lumia 520) like iPhone OS 7_0_3 Mac OS X AppleWebKit/537 (KHTML, like Gecko) Mobile Safari/537'
43
+ end
44
+ end
45
+ class Palm
46
+ def Browser
47
+ return 'Mozilla/4.0 (compatible; MSIE 6.0; Windows 95; PalmSource; Blazer 3.0) 16; 160x160'
48
+ end
49
+ end
50
+ class Dorothy
51
+ def Browser
52
+ return 'Mozilla/5.0 (Windows; U; Windows CE; Mobile; like iPhone; ko-kr) AppleWebKit/533.3 (KHTML, like Gecko) Version/4.0 Mobile Safari/533.3 Dorothy'
53
+ end
54
+ end
55
+ class Fennec
56
+ def Browser
57
+ return 'Mozilla/5.0 (Android; Linux armv7l; rv:9.0) Gecko/20111216 Firefox/9.0 Fennec/9.0'
58
+ end
59
+ end
60
+ class Symbian
61
+ def Browser
62
+ return 'Nokia5250/10.0.011 (SymbianOS/9.4; U; Series60/5.0 Mozilla/5.0; Profile/MIDP-2.1 Configuration/CLDC-1.1 ) AppleWebKit/525 (KHTML, like Gecko) Safari/525 3gpp-gba'
63
+ end
64
+ def Go_Browser
65
+ return 'NokiaE66/GoBrowser/2.0.297'
66
+ end
67
+ def Opera_Mini
68
+ return 'Opera/9.80 (J2ME/MIDP; Opera Mini/9.80 (S60; SymbOS; Opera Mobi/23.348; U; en) Presto/2.5.25 Version/10.54'
69
+ end
70
+ def Opera
71
+ return 'Opera/9.80 (S60; SymbOS; Opera Mobi/SYB-1107071606; U; en) Presto/2.8.149 Version/11.10'
72
+ end
73
+ end
74
+ class Maemo
75
+ def Browser
76
+ return 'Mozilla/5.0 (X11; U; Linux armv7l; ru-RU; rv:1.9.2.3pre) Gecko/20100723 Firefox/3.5 Maemo Browser 1.7.4.8 RX-51 N900'
77
+ end
78
+ def Firefox
79
+ return 'Mozilla/5.0 (Maemo; Linux armv7l; rv:10.0.1) Gecko/20100101 Firefox/10.0.1 Fennec/10.0.1'
80
+ end
81
+ end
82
+ class Motorola
83
+ def MIB
84
+ return 'MOT-L7/NA.ACR_RB MIB/2.2.1 Profile/MIDP-2.0 Configuration/CLDC-1.1'
85
+ end
86
+ end
87
+ class FirefoxOS
88
+ def Browser
89
+ return 'Mozilla/5.0 (Mobile; rv:26.0) Gecko/26.0 Firefox/26.0'
90
+ end
91
+ end
92
+ class Samsung
93
+ def Tizen
94
+ return 'Mozilla/5.0 (Linux; U; Tizen 2.0; en-us) AppleWebKit/537.1 (KHTML, like Gecko) Mobile TizenBrowser/2.0'
95
+ end
96
+ end
97
+
98
+ end
99
+ class Desktop
100
+ class Windows
101
+ def IE
102
+ return 'Mozilla/5.0 (Windows NT 10.0; Trident/7.0; rv:11.0) like Gecko'
103
+ end
104
+ def Edge
105
+ return 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/42.0.2311.135 Safari/537.36 Edge/12.10240'
106
+ end
107
+ def Firefox
108
+ return 'Mozilla/5.0 (Windows NT 6.3; rv:36.0) Gecko/20100101 Firefox/36.04'
109
+ end
110
+ def Chrome
111
+ return 'Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/47.0.2526.73 Safari/537.36'
112
+ end
113
+ def Opera
114
+ return 'Opera/9.80 (Windows NT 6.0) Presto/2.12.388 Version'
115
+ end
116
+ def Saffari
117
+ return 'Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/533.20.25 (KHTML, like Gecko) Version/5.0.4 Safari/533.20.27'
118
+ end
119
+ def SeaMonkey
120
+ return 'Mozilla/5.0 (Windows NT 5.2; rv:10.0.1) Gecko/20100101 Firefox/10.0.1 SeaMonkey/2.7.1'
121
+ end
122
+ end
123
+ class MacOS
124
+ def Saffari
125
+ return 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_1) AppleWebKit/601.2.7 (KHTML, like Gecko) Version/9.0.1 Safari/601.2.7'
126
+ end
127
+ def Firefox
128
+ return 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10; rv:33.0) Gecko/20100101 Firefox/33.0'
129
+ end
130
+ def Chrome
131
+ return 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/41.0.2227.1 Safari/537.36'
132
+ end
133
+ def Opera
134
+ return 'Opera/9.80 (Macintosh; Intel Mac OS X 10.6.8; U; fr) Presto/2.9.168 Version/11.52'
135
+ end
136
+ def Camino
137
+ return 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10.5; rv:2.0.1) Gecko/20100101 Firefox/4.0.1 Camino/2.2.1'
138
+ end
139
+ def SeaMonkey
140
+ return 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10.5; rv:10.0.1) Gecko/20100101 Firefox/10.0.1 SeaMonkey/2.7.1'
141
+ end
142
+ end
143
+ class Google_Chrome
144
+ def Chrome
145
+ return 'Mozilla/5.0 (X11; CrOS i686 3912.101.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/27.0.1453.116 Safari/537.36'
146
+ end
147
+ def Firefox
148
+ return 'Mozilla/5.0 (X11; U; CrOS i686 9.10.0; en-US) AppleWebKit/532.5 (KHTML, like Gecko) Gecko/20100101 Firefox/29.0'
149
+ end
150
+
151
+ end
152
+ class FreeBSD
153
+ def Chrome
154
+ return 'Mozilla/5.0 (X11; FreeBSD amd64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/40.0.2214.115 Safari/537.36'
155
+ end
156
+ def Opera
157
+ 'Mozilla/5.0 (X11; U; FreeBSD i386; zh-tw; rv:31.0) Gecko/20100101 Firefox/31.0 Opera/13.0'
158
+ end
159
+ def Firefox
160
+ return 'Mozilla/5.0 (X11; FreeBSD amd64; rv:40.0) Gecko/20100101 Firefox/40.0'
161
+ end
162
+ end
163
+ class Linux
164
+ def Chrome
165
+ return 'Mozilla/5.0 (X11; FreeBSD amd64; rv:40.0) Gecko/20100101 Firefox/40.0'
166
+ end
167
+ def Opera
168
+ return 'Opera/9.80 (X11; Linux i686; Ubuntu/14.10) Presto/2.12.388 Version/12.16'
169
+ end
170
+ def Firefox
171
+ return 'Mozilla/5.0 (X11; Linux i586; rv:31.0) Gecko/20100101 Firefox/31.0'
172
+ end
173
+ def SeaMonkey
174
+ return 'Mozilla/5.0 (X11; Linux i686; rv:10.0.1) Gecko/20100101 Firefox/10.0.1 SeaMonkey/2.7.1'
175
+ end
176
+ end
177
+ class Unix
178
+ def Chrome
179
+ return 'Mozilla/5.0 (X11; Linux i586; rv:31.0) Gecko/20100101 Firefox/31.0'
180
+ end
181
+ def Opera
182
+ return 'Mozilla/5.0 (X11; U; UnixWare) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/45.0.2454.85 Safari/537.36 OPR/32.0.1948.25'
183
+ end
184
+ def Surf
185
+ return 'Mozilla/5.0 (X11; U; Unix; en-US) AppleWebKit/537.15 (KHTML, like Gecko) Chrome/24.0.1295.0 Safari/537.15 Surf/0.6'
186
+ end
187
+ end
188
+
189
+ end
190
+ class Wearable
191
+ def Google_Glass
192
+ return 'Mozilla/5.0 (Linux; U; Android 4.0.4; en-us; Glass 1 Build/IMM76L; XE7) AppleWebKit/534.30 (KHTML, like Gecko) Version/4.0 Mobile Safari/534.30'
193
+ end
194
+ end
195
+ class Smart_TV
196
+ def Samsung
197
+ return 'Mozilla/5.0 (SMART-TV; Linux; Tizen 2.3) AppleWebkit/538.1 (KHTML, like Gecko) SamsungBrowser/1.0 TV Safari/538.1'
198
+ end
199
+ def Samsung_HBB
200
+ return 'HbbTV/1.1.1 (;Samsung;SmartTV2013;T-FXPDEUC-1102.2;;) WebKit'
201
+ end
202
+ def Samsung_SmartHub
203
+ return 'Mozilla/5.0 (SmartHub; SMART-TV; U; Linux/SmartTV) AppleWebKit/531.2+ (KHTML, like Gecko) WebBrowser/1.0 SmartTV Safari/531.2+'
204
+ end
205
+ def Sharp
206
+ return 'Mozilla/5.0 (DTV) AppleWebKit/531.2+ (KHTML, like Gecko) Espial/6.1.5 AQUOSBrowser/2.0 (US01DTV;V;0001;0001)'
207
+ end
208
+ def Sony
209
+ return 'Opera/9.80 (Linux armv7l; InettvBrowser/2.2 (00014A;SonyDTV115;0002;0100) KDL42W650A; CC/GRC) Presto/2.12.362 Version/12.11'
210
+ end
211
+ def Technisat
212
+ return 'Opera/9.80 (Linux sh4; U; HbbTV/1.1.1 (;;;;;); CE-HTML; TechniSat Digit ISIO S; de) Presto/2.9.167 Version/11.50'
213
+ end
214
+ def Toshiba
215
+ return 'Mozilla/5.0 (DTV; TSBNetTV/T32013713.0203.7DD; TVwithVideoPlayer; like Gecko) NetFront/4.1 DTVNetBrowser/2.2 (000039;T32013713;0203;7DD)'
216
+ end
217
+ def VIZIO
218
+ return 'Mozilla/5.0 (Linux; GoogleTV 3.2; VAP430 Build/MASTER) AppleWebKit/534.24 (KHTML, like Gecko) Chrome/11.0.696.77 Safari/534.24'
219
+ end
220
+ def Philips
221
+ return 'Opera/9.80 (Linux mips; HbbTV/1.2.1 (; Philips; ; ; ; ) CE-HTML/1.0 NETTV/4.2.0 PHILIPSTV/1.1.1 Firmware/171.56.0 (PhilipsTV, 1.1.1,) en) Presto/2.12.362 Version/12.11'
222
+ end
223
+ def Roku
224
+ return 'Roku/DVP-5.2 (025.02E03197A)'
225
+ end
226
+ def tvOS
227
+ return 'Mozilla/5.0 (Apple TV; CPU iPhone OS 9_0 like Mac OS X) AppleWebKit/601.1.46 (KHTML, like Gecko) Mobile/13T534YI'
228
+ end
229
+ def LG_Netcast
230
+ return 'Mozilla/5.0 (Linux; NetCast; U) AppleWebKit/538.39.41 (KHTML like Gecko) Chrome/22.0.1229.79 Safari/ 538.39.41 SmartTV/4.6'
231
+ end
232
+ def Mapple_Browser
233
+ return 'Mozilla/5.0 (SmartHub; SMART-TV; U; Linux/SmartTV; Maple2012) AppleWebKit/534.7 (KHTML, like Gecko) SmartTV Safari/534.7'
234
+ end
235
+ def HBB_TV
236
+ return 'Mozilla/5.0 (X11; Linux i686; rv:17.0 ) U; HbbTV/1.1.1 (; TOSHIBA; 32SL863; 19.2.39.208; 3; ) ; ToshibaTP/1.1.1 () ; en) OPR/20.0.1387.24 '
237
+ end
238
+ def Google_TV
239
+ return 'Mozilla/5.0 (X11; U; Linux i686; en-US) AppleWebKit/533.4 (KHTML, like Gecko) Chrome/5.0.375.127 Large Screen Safari/533.4 GoogleTV/ 162671'
240
+ end
241
+ def Google_ChromeCast
242
+ return 'Mozilla/5.0 (CrKey armv7l 1.4.15250) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/31.0.1650.0 Safari/537.36'
243
+ end
244
+ def Netgear
245
+ return 'Mozilla/5.0 (Linux; U; Android 3.2; en-us; GTV100 Build/MASTER) AppleWebKit/534.13 (KHTML, like Gecko) Version/4.0 Safari/534.13'
246
+ end
247
+ def Panasonic
248
+ return 'Mozilla/5.0 (FreeBSD; U; Viera; fr-FR) AppleWebKit/535.1 (KHTML, like Gecko) Viera/1.5.2 Chrome/14.0.835.202 Safari/535.1'
249
+ end
250
+
251
+ end
252
+ class Game_Consoles
253
+ def Xbox_One
254
+ return 'Mozilla/5.0 (compatible; MSIE 10.0; Windows NT 6.2; Trident/6.0; Xbox; Xbox One)'
255
+ end
256
+ def Playstation4
257
+ return 'Mozilla/5.0 (PlayStation 4 2.57) AppleWebKit/537.73 (KHTML, like Gecko)'
258
+ end
259
+ end
260
+ end
@@ -0,0 +1,3 @@
1
+ module Fua
2
+ VERSION = "1.0.3"
3
+ end
metadata ADDED
@@ -0,0 +1,91 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: fua
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.0.3
5
+ platform: ruby
6
+ authors:
7
+ - Behdad Ahmadi
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2016-12-04 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.13'
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '1.13'
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: Fake User-Agents of about %80 of real devices to use in headers of web
42
+ crawlers. It keeps your script away from being nested by many UA strings.
43
+ email:
44
+ - behdadahmadi@mail.com
45
+ executables: []
46
+ extensions: []
47
+ extra_rdoc_files: []
48
+ files:
49
+ - ".gitignore"
50
+ - ".idea/.name"
51
+ - ".idea/encodings.xml"
52
+ - ".idea/fua.iml"
53
+ - ".idea/misc.xml"
54
+ - ".idea/modules.xml"
55
+ - ".idea/workspace.xml"
56
+ - CODE_OF_CONDUCT.md
57
+ - Gemfile
58
+ - LICENSE.txt
59
+ - README.md
60
+ - Rakefile
61
+ - bin/console
62
+ - bin/setup
63
+ - fua.gemspec
64
+ - lib/fua.rb
65
+ - lib/fua/version.rb
66
+ homepage: https://github.com/behdadahmadi/fua
67
+ licenses:
68
+ - MIT
69
+ metadata: {}
70
+ post_install_message:
71
+ rdoc_options: []
72
+ require_paths:
73
+ - lib
74
+ required_ruby_version: !ruby/object:Gem::Requirement
75
+ requirements:
76
+ - - ">="
77
+ - !ruby/object:Gem::Version
78
+ version: '0'
79
+ required_rubygems_version: !ruby/object:Gem::Requirement
80
+ requirements:
81
+ - - ">="
82
+ - !ruby/object:Gem::Version
83
+ version: '0'
84
+ requirements: []
85
+ rubyforge_project:
86
+ rubygems_version: 2.6.8
87
+ signing_key:
88
+ specification_version: 4
89
+ summary: Fake User-Agents of about %80 of real devices to use in headers of web crawlers.
90
+ It keeps your script away from being nested by many UA strings.
91
+ test_files: []