brauser 3.3.2 → 4.0.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.
Files changed (67) hide show
  1. checksums.yaml +4 -4
  2. data/.rubocop.yml +6 -0
  3. data/.travis-gemfile +4 -5
  4. data/.travis.yml +2 -2
  5. data/CHANGELOG.md +4 -0
  6. data/Gemfile +7 -8
  7. data/README.md +31 -95
  8. data/Rakefile +0 -1
  9. data/brauser.gemspec +4 -4
  10. data/default_definitions/browsers.rb +50 -0
  11. data/default_definitions/languages.rb +118 -0
  12. data/default_definitions/platforms.rb +24 -0
  13. data/doc/Brauser.html +6 -6
  14. data/doc/Brauser/Browser.html +3867 -580
  15. data/doc/Brauser/Definitions.html +537 -0
  16. data/doc/Brauser/Definitions/Base.html +342 -0
  17. data/doc/Brauser/Definitions/Browser.html +1047 -0
  18. data/doc/Brauser/Definitions/Language.html +496 -0
  19. data/doc/Brauser/Definitions/Platform.html +686 -0
  20. data/doc/Brauser/Hooks.html +2 -2
  21. data/doc/Brauser/Hooks/RubyOnRails.html +9 -9
  22. data/doc/Brauser/Parser.html +513 -0
  23. data/doc/Brauser/Value.html +601 -0
  24. data/doc/Brauser/Version.html +5 -5
  25. data/doc/_index.html +25 -108
  26. data/doc/class_list.html +1 -1
  27. data/doc/file.README.html +33 -97
  28. data/doc/index.html +33 -97
  29. data/doc/method_list.html +72 -120
  30. data/doc/top-level-namespace.html +2 -2
  31. data/lib/brauser.rb +13 -15
  32. data/lib/brauser/browser.rb +195 -66
  33. data/lib/brauser/definitions/base.rb +71 -0
  34. data/lib/brauser/definitions/browser.rb +80 -0
  35. data/lib/brauser/definitions/language.rb +29 -0
  36. data/lib/brauser/definitions/platform.rb +42 -0
  37. data/lib/brauser/hooks.rb +1 -2
  38. data/lib/brauser/parser.rb +47 -0
  39. data/lib/brauser/value.rb +39 -0
  40. data/lib/brauser/version.rb +3 -4
  41. data/spec/brauser/browser_spec.rb +73 -564
  42. data/spec/brauser/default_definitions_spec.rb +129 -0
  43. data/spec/brauser/definitions/base_spec.rb +48 -0
  44. data/spec/brauser/definitions/browser_spec.rb +47 -0
  45. data/spec/brauser/definitions/language_spec.rb +18 -0
  46. data/spec/brauser/definitions/platform_spec.rb +36 -0
  47. data/spec/brauser/hooks_spec.rb +5 -6
  48. data/spec/brauser/parser_spec.rb +31 -0
  49. data/spec/brauser/value_spec.rb +34 -0
  50. data/spec/coverage_helper.rb +0 -1
  51. data/spec/spec_helper.rb +0 -1
  52. metadata +50 -23
  53. data/lib/brauser/browseable/attributes.rb +0 -95
  54. data/lib/brauser/browseable/general.rb +0 -104
  55. data/lib/brauser/browseable/parsing.rb +0 -127
  56. data/lib/brauser/browseable/partial_querying.rb +0 -116
  57. data/lib/brauser/browseable/querying.rb +0 -63
  58. data/lib/brauser/browseable/register.rb +0 -73
  59. data/lib/brauser/definition.rb +0 -80
  60. data/lib/brauser/definitions/browsers.rb +0 -68
  61. data/lib/brauser/definitions/languages.rb +0 -130
  62. data/lib/brauser/definitions/platforms.rb +0 -30
  63. data/lib/brauser/query.rb +0 -36
  64. data/lib/brauser/queryable/chainers.rb +0 -56
  65. data/lib/brauser/queryable/queries.rb +0 -60
  66. data/spec/brauser/definition_spec.rb +0 -39
  67. data/spec/brauser/query_spec.rb +0 -111
@@ -72,7 +72,7 @@
72
72
 
73
73
  <p>A framework agnostic browser detection and querying helper.</p>
74
74
 
75
- <p>http://sw.cow.tc/brauser</p>
75
+ <p>http://sw.cowtech.it/brauser</p>
76
76
 
77
77
  <p>http://rdoc.info/gems/brauser</p>
78
78
 
@@ -82,7 +82,7 @@
82
82
 
83
83
  <h3 id="installation">Installation</h3>
84
84
 
85
- <p>Brauser comes with a Ruby on Rails hooks (more framework to follow), so for Rails you have just to add this to your Gemfile:</p>
85
+ <p>Brauser comes with a Ruby on Rails hooks (more frameworks to follow), so for Rails you have just to add this to your Gemfile:</p>
86
86
 
87
87
  <p><code>ruby
88
88
  gem "brauser"
@@ -102,11 +102,15 @@ browser = Brauser::Browser.new(USER_AGENT_HEADER, ACCEPT_LANGUAGE_HEADER)
102
102
 
103
103
  <h3 id="getting-browser-information">Getting browser information</h3>
104
104
 
105
- <p>Once you instantiate the browser, you can query the browser about <code>name</code>, <code>version</code> and <code>platform</code>. You can also get readable name and platforms via <code>readable_name</code> and <code>platform_name</code>.</p>
105
+ <p>Once you instantiate the browser, you can query the browser about <code>name</code>, <code>version</code>, <code>platform</code>, <code>languages</code>. </p>
106
106
 
107
- <p>The version is returned as a <code>String</code>, and you can use <code>Brauser::Browser.compare_versions</code> to compare against another version.</p>
107
+ <p>You can also get readable name and platforms via <code>human_name</code>, <code>human_platform</code>, <code>human_languages</code>.</p>
108
108
 
109
- <p>The name and the platform are returned as <code>Symbol</code> and can be in the range of names and engines registered via <code>register_browser</code>, <code>register_default_browsers</code>, <code>register_platform</code> and <code>register_default_platforms</code>.</p>
109
+ <p>The version is handle via the <a href="http://dazuma.github.io/versionomy/">versionomy</a> gem.</p>
110
+
111
+ <p>The name and the platform are returned as <code>Symbol</code> and can be in the range of names and engines registered via <code>Brauser::Definitions.register</code>.</p>
112
+
113
+ <p>The languages are returned as an hash where values are the priorities.</p>
110
114
 
111
115
  <p>Also, you can get global information using <code>browser.to_s</code> or <code>browser.classes</code>. This will return an array or a string already formatted to be used in your views to scope your CSS.</p>
112
116
 
@@ -128,126 +132,58 @@ browser = Brauser::Browser.new(USER_AGENT_HEADER, ACCEPT_LANGUAGE_HEADER)
128
132
 
129
133
  <h3 id="querying-the-browser">Querying the browser</h3>
130
134
 
131
- <p>Brauser supports querying about name (method <code>is</code>), version (method <code>v</code>), platform (method <code>on</code>) and language (method <code>accepts</code>).</p>
135
+ <p>Brauser supports querying about name, version, platform, language.</p>
132
136
 
133
- <p>The <code>is</code> method queries about a browser name (or a list of names) and optionally by version and platform:</p>
137
+ <p>name and platform support querying via the <code>==</code> operator, which supports a single value or a list of values. </p>
134
138
 
135
139
  <p><code>ruby
136
140
  # We talk about the ending ? later.
137
- browser.is?(:chrome)
141
+ browser.name == :chrome
138
142
  # =&gt; true
139
- browser.is?([:msie, :firefox])
140
- # =&gt; false
141
- browser.is?(:chrome, {lt: "2"}, :osx)
142
- # =&gt; true
143
- browser.is?(:chrome, "&gt;= 3", :windows)
143
+ browser.name == [:msie, :firefox]
144
144
  # =&gt; false
145
145
  </code></p>
146
146
 
147
- <p>The method <code>is</code> is the only which supports direct internal propagation to version and platform.</p>
148
-
149
- <p>The <code>version</code> (short: <code>v</code>) method queries about the browser version. You can specify the comparison with an hash or a little expression.</p>
150
-
151
- <p>In the case of hash, the syntax is <code>{:operator =&gt; value}</code>, where <code>:operator</code> is one of <code>[:lt, :lte, :eq, :gte, :gt]</code> and value can be a Float or a String.</p>
152
-
153
- <p>In the case of expression, the syntax is <code>OPERATOR VALUE &amp;&amp; ..</code>, where <code>OPERATOR</code> is one of <code>["&lt;", "&lt;=", "=", "==", "&gt;=", "&gt;"]</code> and value specifies the version.</p>
154
-
155
- <p>Examples:</p>
147
+ <p>The version is delegated to the versionomy gem. You can use comparison operator. The right hand part must be either a <code>String</code> or a <code>Versionomy::Value</code>.</p>
156
148
 
157
149
  <p><code>ruby
158
- # Those two methods are equivalent.
159
- browser.version?({lt: "2", gt: 1})
160
- # =&gt; true
161
- browser.is?("&lt; 2 &amp;&amp; &gt; 1")
150
+ browser.version == "3"
151
+ # =&gt; false
152
+ browser.version &gt;= "2"
162
153
  # =&gt; true
163
154
  </code></p>
164
155
 
165
- <p>The method <code>on</code> check is the current browser in one of the specified platform. The platform should be passed as <code>Symbol</code>.</p>
156
+ <p>The language support querying via the <code>accepts?</code> method, which supports a single value or a list of values.</p>
166
157
 
167
158
  <p><code>ruby
168
- browser.on?(:osx)
159
+ browser.accepts?(:it)
169
160
  # =&gt; true
170
- browser.on?([:windows, :ios])
171
- # =&gt; false
172
- </code></p>
173
-
174
- <p>At the end, the method <code>accepts</code> checks if the browser accepts one of the specified languages. Languages should be passed as language codes in <code>String</code>.</p>
175
-
176
- <p><code>ruby
177
- browser.accepts?("en")
161
+ browser.accepts?(:it, :en)
178
162
  # =&gt; true
179
- browser.accepts?(["de", "es"])
180
- # =&gt; false
181
163
  </code></p>
182
164
 
183
- <p>Every query method exists in two forms: the concatenation one (the method name doesn’t end with a <code>?</code>.</p>
184
-
185
- <p>The former return a <code>Query</code> object, which supports the same query method of the browser and thus enables concatenation.</p>
186
-
187
- <p>The latter return a boolean object, and it’s equivalent to calling <code>result</code> on the query after concatenation.</p>
188
-
189
- <p>Ideally, you should use the <code>?</code> version to end the query and fetch the result.</p>
165
+ <p>All the querying can be combined in the single method <code>is?</code>:</p>
190
166
 
191
167
  <p><code>ruby
192
- # These expressions are equivalent.
193
- browser.is?(:chrome, {lt: "2"}, :osx)
194
- browser.is(:chrome, {lt: "2"}, :osx).result
195
- browser.is(:chrome).version({lt: "2"}).on?(:osx)
196
- browser.is(:chrome).version({lt: "2"}).on(:osx).result
168
+ browser.is?(name: :chrome, version: "&gt;= 4", platform: [:osx, :windows], languages: :it)
169
+ # =&gt; false
197
170
  </code></p>
198
171
 
199
- <p>Finally, Brauser support dynamic query operator to write simple queries without using concatenation.</p>
172
+ <p>Name, platform and languages can be either symbols or array of symbols. Version must be a query in the form is <code>OPERATOR VALUE &amp;&amp; ..</code>,
173
+ where <code>OPERATOR</code> is one of <code>["&lt;", "&lt;=", "=", "==", "&gt;=", "&gt;"]</code> and value specifies the version.</p>
200
174
 
201
- <p>You construct the method just using operator specified above, separating method name and method arguments with a <code>_</code>.</p>
175
+ <h3 id="adding-new-browsers-platform-and-languages">Adding new browsers, platform and languages.</h3>
202
176
 
203
- <p>For the version, use the expression form but use symbol operators and replace <code>.</code> with <code>_</code> and <code>&amp;&amp;</code> with <code>and</code>.</p>
177
+ <p>To add new browsers, simply call <code>::Brauser::Definitions.register(:browser, :id, ...)</code>.</p>
204
178
 
205
- <p>Example:</p>
206
-
207
- <p>```ruby
208
- # These expressions are equivalent.
209
- browser.is(:chrome).version(“&lt; 2 &amp;&amp; &gt; 1.2”).on(:osx).result
210
- browser.is_chrome_v_lt_2_and_gt_1_2_on_osx.result</p>
211
-
212
- <h1 id="these-expressions-are-equivalent">These expressions are equivalent.</h1>
213
- <p>browser.is(:chrome).version(“&lt; 2 &amp;&amp; &gt; 1.2”).on?(:osx)
214
- browser.is_chrome_v_lt_2_and_gt_1_2_on_osx?
215
- ```</p>
216
-
217
- <h3 id="adding-new-browsers">Adding new browsers</h3>
218
-
219
- <p>To add new browsers, simply call <code>::Brauser::Browser.add(:browsers, ...)</code>.</p>
220
-
221
- <p>This methods accepts a single instance or an array of instances of the <code>::Brauser::Definition</code> class.</p>
179
+ <p>The first argument can be <code>:browser</code>, <code>:platform</code> or <code>:language</code>.
180
+ The second argument is the id of the definition.
181
+ The remaining argument will be passed to the definition constructor.</p>
222
182
 
223
183
  <p>For example, for Google Chrome the call should be:</p>
224
184
 
225
185
  <p><code>ruby
226
- Brauser::Browsers.add(:browsers, ::Brauser::Definition.new(:chrome, "Chrome", /((chrome)|(chromium))/i, /(.+Chrom[a-z]+\/)([a-z0-9.]+)/i))
227
- </code></p>
228
-
229
- <h3 id="adding-new-platforms">Adding new platforms</h3>
230
-
231
- <p>To add new platforms, simply call <code>::Brauser::Browser.add(:platforms, ...)</code>.</p>
232
-
233
- <p>This methods accepts a single instance or an array of instances of the <code>::Brauser::Definition</code> class.</p>
234
-
235
- <p>For example, for Mac OS X the call should be:</p>
236
-
237
- <p><code>ruby
238
- Brauser::Browsers.add(:platforms, ::Brauser::Definition.new(:osx, /mac|macintosh|mac os x/i, "Apple MacOS X"))
239
- </code></p>
240
-
241
- <h3 id="adding-new-languages">Adding new languages</h3>
242
-
243
- <p>To add new languages, simply call <code>::Brauser::Browser.add(:languages, ...)</code>.</p>
244
-
245
- <p>This methods accepts a single instance or an array of instances of the <code>::Brauser::Definition</code> class.</p>
246
-
247
- <p>For example, for Italian the call should be:</p>
248
-
249
- <p><code>ruby
250
- Brauser::Browsers.add(:languages, ::Brauser::Definition.new(:it, "Italian"))
186
+ Brauser::Definitions.register(:browsers, :chrome, "Chrome", /((chrome)|(chromium))/i, /(.+Chrom[a-z]+\/)([a-z0-9.]+)/i)
251
187
  </code></p>
252
188
 
253
189
  <h2 id="contributing-to-brauser">Contributing to brauser</h2>
@@ -270,9 +206,9 @@ Brauser::Browsers.add(:languages, ::Brauser::Definition.new(:it, "Italian"))
270
206
  </div></div>
271
207
 
272
208
  <div id="footer">
273
- Generated on Thu May 22 12:11:27 2014 by
209
+ Generated on Mon Sep 29 16:43:31 2014 by
274
210
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
275
- 0.8.7.4 (ruby-2.1.2).
211
+ 0.8.7.4 (ruby-2.1.3).
276
212
  </div>
277
213
 
278
214
  </body>
@@ -48,56 +48,20 @@
48
48
 
49
49
 
50
50
  <li class="r1 ">
51
- <span class='object_link'><a href="Brauser/Browser.html#accept_language-instance_method" title="Brauser::Browser#accept_language (method)">#accept_language</a></span>
52
- <small>Brauser::Browser</small>
51
+ <span class='object_link'><a href="Brauser/Value.html#%3D%3D-instance_method" title="Brauser::Value#== (method)">#==</a></span>
52
+ <small>Brauser::Value</small>
53
53
  </li>
54
54
 
55
55
 
56
56
  <li class="r2 ">
57
- <span class='object_link'><a href="Brauser/Queryable/Chainers.html#accepts-instance_method" title="Brauser::Queryable::Chainers#accepts (method)">#accepts</a></span>
58
- <small>Brauser::Queryable::Chainers</small>
59
- </li>
60
-
61
-
62
- <li class="r1 ">
63
- <span class='object_link'><a href="Brauser/Browseable/PartialQuerying.html#accepts-instance_method" title="Brauser::Browseable::PartialQuerying#accepts (method)">#accepts</a></span>
64
- <small>Brauser::Browseable::PartialQuerying</small>
65
- </li>
66
-
67
-
68
- <li class="r2 ">
69
- <span class='object_link'><a href="Brauser/Browseable/Querying.html#accepts%3F-instance_method" title="Brauser::Browseable::Querying#accepts? (method)">#accepts?</a></span>
70
- <small>Brauser::Browseable::Querying</small>
71
- </li>
72
-
73
-
74
- <li class="r1 ">
75
- <span class='object_link'><a href="Brauser/Queryable/Queries.html#accepts%3F-instance_method" title="Brauser::Queryable::Queries#accepts? (method)">#accepts?</a></span>
76
- <small>Brauser::Queryable::Queries</small>
77
- </li>
78
-
79
-
80
- <li class="r2 ">
81
- <span class='object_link'><a href="Brauser/Browseable/Register/ClassMethods.html#add-instance_method" title="Brauser::Browseable::Register::ClassMethods#add (method)">#add</a></span>
82
- <small>Brauser::Browseable::Register::ClassMethods</small>
83
- </li>
84
-
85
-
86
- <li class="r1 ">
87
- <span class='object_link'><a href="Brauser/Browseable/Register/ClassMethods.html#add_default_browsers-instance_method" title="Brauser::Browseable::Register::ClassMethods#add_default_browsers (method)">#add_default_browsers</a></span>
88
- <small>Brauser::Browseable::Register::ClassMethods</small>
89
- </li>
90
-
91
-
92
- <li class="r2 ">
93
- <span class='object_link'><a href="Brauser/Browseable/Register/ClassMethods.html#add_default_languages-instance_method" title="Brauser::Browseable::Register::ClassMethods#add_default_languages (method)">#add_default_languages</a></span>
94
- <small>Brauser::Browseable::Register::ClassMethods</small>
57
+ <span class='object_link'><a href="Brauser/Browser.html#accept_language-instance_method" title="Brauser::Browser#accept_language (method)">#accept_language</a></span>
58
+ <small>Brauser::Browser</small>
95
59
  </li>
96
60
 
97
61
 
98
62
  <li class="r1 ">
99
- <span class='object_link'><a href="Brauser/Browseable/Register/ClassMethods.html#add_default_platforms-instance_method" title="Brauser::Browseable::Register::ClassMethods#add_default_platforms (method)">#add_default_platforms</a></span>
100
- <small>Brauser::Browseable::Register::ClassMethods</small>
63
+ <span class='object_link'><a href="Brauser/Browser.html#accepts%3F-instance_method" title="Brauser::Browser#accepts? (method)">#accepts?</a></span>
64
+ <small>Brauser::Browser</small>
101
65
  </li>
102
66
 
103
67
 
@@ -114,206 +78,206 @@
114
78
 
115
79
 
116
80
  <li class="r2 ">
117
- <span class='object_link'><a href="Brauser/Browseable/General/ClassMethods.html#browsers-instance_method" title="Brauser::Browseable::General::ClassMethods#browsers (method)">#browsers</a></span>
118
- <small>Brauser::Browseable::General::ClassMethods</small>
81
+ <span class='object_link'><a href="Brauser/Definitions.html#browsers-class_method" title="Brauser::Definitions.browsers (method)">browsers</a></span>
82
+ <small>Brauser::Definitions</small>
119
83
  </li>
120
84
 
121
85
 
122
86
  <li class="r1 ">
123
- <span class='object_link'><a href="Brauser/Browseable/Attributes.html#classes-instance_method" title="Brauser::Browseable::Attributes#classes (method)">#classes</a></span>
124
- <small>Brauser::Browseable::Attributes</small>
87
+ <span class='object_link'><a href="Brauser/Browser.html#classes-instance_method" title="Brauser::Browser#classes (method)">#classes</a></span>
88
+ <small>Brauser::Browser</small>
125
89
  </li>
126
90
 
127
91
 
128
92
  <li class="r2 ">
129
- <span class='object_link'><a href="Brauser/Browseable/General/ClassMethods.html#compare_versions-instance_method" title="Brauser::Browseable::General::ClassMethods#compare_versions (method)">#compare_versions</a></span>
130
- <small>Brauser::Browseable::General::ClassMethods</small>
93
+ <span class='object_link'><a href="Brauser/Definitions/Language.html#code-instance_method" title="Brauser::Definitions::Language#code (method)">#code</a></span>
94
+ <small>Brauser::Definitions::Language</small>
131
95
  </li>
132
96
 
133
97
 
134
98
  <li class="r1 ">
135
- <span class='object_link'><a href="Brauser/Hooks/RubyOnRails.html#included-class_method" title="Brauser::Hooks::RubyOnRails.included (method)">included</a></span>
136
- <small>Brauser::Hooks::RubyOnRails</small>
99
+ <span class='object_link'><a href="Brauser/Parser.html#disambiguate-class_method" title="Brauser::Parser.disambiguate (method)">disambiguate</a></span>
100
+ <small>Brauser::Parser</small>
137
101
  </li>
138
102
 
139
103
 
140
104
  <li class="r2 ">
141
- <span class='object_link'><a href="Brauser/Query.html#initialize-instance_method" title="Brauser::Query#initialize (method)">#initialize</a></span>
142
- <small>Brauser::Query</small>
105
+ <span class='object_link'><a href="Brauser/Definitions/Browser.html#engine_matcher-instance_method" title="Brauser::Definitions::Browser#engine_matcher (method)">#engine_matcher</a></span>
106
+ <small>Brauser::Definitions::Browser</small>
143
107
  </li>
144
108
 
145
109
 
146
110
  <li class="r1 ">
147
- <span class='object_link'><a href="Brauser/Browser.html#initialize-instance_method" title="Brauser::Browser#initialize (method)">#initialize</a></span>
111
+ <span class='object_link'><a href="Brauser/Browser.html#human_languages-instance_method" title="Brauser::Browser#human_languages (method)">#human_languages</a></span>
148
112
  <small>Brauser::Browser</small>
149
113
  </li>
150
114
 
151
115
 
152
116
  <li class="r2 ">
153
- <span class='object_link'><a href="Brauser/Definition.html#initialize-instance_method" title="Brauser::Definition#initialize (method)">#initialize</a></span>
154
- <small>Brauser::Definition</small>
117
+ <span class='object_link'><a href="Brauser/Browser.html#human_name-instance_method" title="Brauser::Browser#human_name (method)">#human_name</a></span>
118
+ <small>Brauser::Browser</small>
155
119
  </li>
156
120
 
157
121
 
158
122
  <li class="r1 ">
159
- <span class='object_link'><a href="Brauser/Browseable/PartialQuerying.html#is-instance_method" title="Brauser::Browseable::PartialQuerying#is (method)">#is</a></span>
160
- <small>Brauser::Browseable::PartialQuerying</small>
123
+ <span class='object_link'><a href="Brauser/Browser.html#human_platform-instance_method" title="Brauser::Browser#human_platform (method)">#human_platform</a></span>
124
+ <small>Brauser::Browser</small>
161
125
  </li>
162
126
 
163
127
 
164
128
  <li class="r2 ">
165
- <span class='object_link'><a href="Brauser/Queryable/Chainers.html#is-instance_method" title="Brauser::Queryable::Chainers#is (method)">#is</a></span>
166
- <small>Brauser::Queryable::Chainers</small>
129
+ <span class='object_link'><a href="Brauser/Definitions/Base.html#id-instance_method" title="Brauser::Definitions::Base#id (method)">#id</a></span>
130
+ <small>Brauser::Definitions::Base</small>
167
131
  </li>
168
132
 
169
133
 
170
134
  <li class="r1 ">
171
- <span class='object_link'><a href="Brauser/Browseable/Querying.html#is%3F-instance_method" title="Brauser::Browseable::Querying#is? (method)">#is?</a></span>
172
- <small>Brauser::Browseable::Querying</small>
135
+ <span class='object_link'><a href="Brauser/Hooks/RubyOnRails.html#included-class_method" title="Brauser::Hooks::RubyOnRails.included (method)">included</a></span>
136
+ <small>Brauser::Hooks::RubyOnRails</small>
173
137
  </li>
174
138
 
175
139
 
176
140
  <li class="r2 ">
177
- <span class='object_link'><a href="Brauser/Queryable/Queries.html#is%3F-instance_method" title="Brauser::Queryable::Queries#is? (method)">#is?</a></span>
178
- <small>Brauser::Queryable::Queries</small>
141
+ <span class='object_link'><a href="Brauser/Value.html#initialize-instance_method" title="Brauser::Value#initialize (method)">#initialize</a></span>
142
+ <small>Brauser::Value</small>
179
143
  </li>
180
144
 
181
145
 
182
146
  <li class="r1 ">
183
- <span class='object_link'><a href="Brauser/Definition.html#label-instance_method" title="Brauser::Definition#label (method)">#label</a></span>
184
- <small>Brauser::Definition</small>
147
+ <span class='object_link'><a href="Brauser/Definitions/Browser.html#initialize-instance_method" title="Brauser::Definitions::Browser#initialize (method)">#initialize</a></span>
148
+ <small>Brauser::Definitions::Browser</small>
185
149
  </li>
186
150
 
187
151
 
188
152
  <li class="r2 ">
189
- <span class='object_link'><a href="Brauser/Browser.html#languages-instance_method" title="Brauser::Browser#languages (method)">#languages</a></span>
190
- <small>Brauser::Browser</small>
153
+ <span class='object_link'><a href="Brauser/Definitions/Platform.html#initialize-instance_method" title="Brauser::Definitions::Platform#initialize (method)">#initialize</a></span>
154
+ <small>Brauser::Definitions::Platform</small>
191
155
  </li>
192
156
 
193
157
 
194
158
  <li class="r1 ">
195
- <span class='object_link'><a href="Brauser/Browseable/General/ClassMethods.html#languages-instance_method" title="Brauser::Browseable::General::ClassMethods#languages (method)">#languages</a></span>
196
- <small>Brauser::Browseable::General::ClassMethods</small>
159
+ <span class='object_link'><a href="Brauser/Browser.html#initialize-instance_method" title="Brauser::Browser#initialize (method)">#initialize</a></span>
160
+ <small>Brauser::Browser</small>
197
161
  </li>
198
162
 
199
163
 
200
164
  <li class="r2 ">
201
- <span class='object_link'><a href="Brauser/Definition.html#match-instance_method" title="Brauser::Definition#match (method)">#match</a></span>
202
- <small>Brauser::Definition</small>
165
+ <span class='object_link'><a href="Brauser/Definitions/Language.html#initialize-instance_method" title="Brauser::Definitions::Language#initialize (method)">#initialize</a></span>
166
+ <small>Brauser::Definitions::Language</small>
203
167
  </li>
204
168
 
205
169
 
206
170
  <li class="r1 ">
207
- <span class='object_link'><a href="Brauser/Browser.html#method_missing-instance_method" title="Brauser::Browser#method_missing (method)">#method_missing</a></span>
171
+ <span class='object_link'><a href="Brauser/Browser.html#is%3F-instance_method" title="Brauser::Browser#is? (method)">#is?</a></span>
208
172
  <small>Brauser::Browser</small>
209
173
  </li>
210
174
 
211
175
 
212
176
  <li class="r2 ">
213
- <span class='object_link'><a href="Brauser/Browser.html#name-instance_method" title="Brauser::Browser#name (method)">#name</a></span>
177
+ <span class='object_link'><a href="Brauser/Browser.html#languages-instance_method" title="Brauser::Browser#languages (method)">#languages</a></span>
214
178
  <small>Brauser::Browser</small>
215
179
  </li>
216
180
 
217
181
 
218
182
  <li class="r1 ">
219
- <span class='object_link'><a href="Brauser/Queryable/Chainers.html#on-instance_method" title="Brauser::Queryable::Chainers#on (method)">#on</a></span>
220
- <small>Brauser::Queryable::Chainers</small>
183
+ <span class='object_link'><a href="Brauser/Definitions.html#languages-class_method" title="Brauser::Definitions.languages (method)">languages</a></span>
184
+ <small>Brauser::Definitions</small>
221
185
  </li>
222
186
 
223
187
 
224
188
  <li class="r2 ">
225
- <span class='object_link'><a href="Brauser/Browseable/PartialQuerying.html#on-instance_method" title="Brauser::Browseable::PartialQuerying#on (method)">#on</a></span>
226
- <small>Brauser::Browseable::PartialQuerying</small>
189
+ <span class='object_link'><a href="Brauser/Definitions/Base.html#match-instance_method" title="Brauser::Definitions::Base#match (method)">#match</a></span>
190
+ <small>Brauser::Definitions::Base</small>
227
191
  </li>
228
192
 
229
193
 
230
194
  <li class="r1 ">
231
- <span class='object_link'><a href="Brauser/Browseable/Querying.html#on%3F-instance_method" title="Brauser::Browseable::Querying#on? (method)">#on?</a></span>
232
- <small>Brauser::Browseable::Querying</small>
195
+ <span class='object_link'><a href="Brauser/Definitions/Browser.html#match-instance_method" title="Brauser::Definitions::Browser#match (method)">#match</a></span>
196
+ <small>Brauser::Definitions::Browser</small>
233
197
  </li>
234
198
 
235
199
 
236
200
  <li class="r2 ">
237
- <span class='object_link'><a href="Brauser/Queryable/Queries.html#on%3F-instance_method" title="Brauser::Queryable::Queries#on? (method)">#on?</a></span>
238
- <small>Brauser::Queryable::Queries</small>
201
+ <span class='object_link'><a href="Brauser/Definitions/Platform.html#match-instance_method" title="Brauser::Definitions::Platform#match (method)">#match</a></span>
202
+ <small>Brauser::Definitions::Platform</small>
239
203
  </li>
240
204
 
241
205
 
242
206
  <li class="r1 ">
243
- <span class='object_link'><a href="Brauser/Browseable/Parsing.html#parse_accept_language-instance_method" title="Brauser::Browseable::Parsing#parse_accept_language (method)">#parse_accept_language</a></span>
244
- <small>Brauser::Browseable::Parsing</small>
207
+ <span class='object_link'><a href="Brauser/Definitions/Platform.html#matcher-instance_method" title="Brauser::Definitions::Platform#matcher (method)">#matcher</a></span>
208
+ <small>Brauser::Definitions::Platform</small>
245
209
  </li>
246
210
 
247
211
 
248
212
  <li class="r2 ">
249
- <span class='object_link'><a href="Brauser/Browseable/Parsing.html#parse_agent-instance_method" title="Brauser::Browseable::Parsing#parse_agent (method)">#parse_agent</a></span>
250
- <small>Brauser::Browseable::Parsing</small>
213
+ <span class='object_link'><a href="Brauser/Value.html#method_missing-instance_method" title="Brauser::Value#method_missing (method)">#method_missing</a></span>
214
+ <small>Brauser::Value</small>
251
215
  </li>
252
216
 
253
217
 
254
218
  <li class="r1 ">
255
- <span class='object_link'><a href="Brauser/Browser.html#platform-instance_method" title="Brauser::Browser#platform (method)">#platform</a></span>
219
+ <span class='object_link'><a href="Brauser/Browser.html#method_missing-instance_method" title="Brauser::Browser#method_missing (method)">#method_missing</a></span>
256
220
  <small>Brauser::Browser</small>
257
221
  </li>
258
222
 
259
223
 
260
224
  <li class="r2 ">
261
- <span class='object_link'><a href="Brauser/Browseable/Attributes.html#platform_name-instance_method" title="Brauser::Browseable::Attributes#platform_name (method)">#platform_name</a></span>
262
- <small>Brauser::Browseable::Attributes</small>
225
+ <span class='object_link'><a href="Brauser/Definitions/Language.html#name-instance_method" title="Brauser::Definitions::Language#name (method)">#name</a></span>
226
+ <small>Brauser::Definitions::Language</small>
263
227
  </li>
264
228
 
265
229
 
266
230
  <li class="r1 ">
267
- <span class='object_link'><a href="Brauser/Browseable/General/ClassMethods.html#platforms-instance_method" title="Brauser::Browseable::General::ClassMethods#platforms (method)">#platforms</a></span>
268
- <small>Brauser::Browseable::General::ClassMethods</small>
231
+ <span class='object_link'><a href="Brauser/Definitions/Browser.html#name-instance_method" title="Brauser::Definitions::Browser#name (method)">#name</a></span>
232
+ <small>Brauser::Definitions::Browser</small>
269
233
  </li>
270
234
 
271
235
 
272
236
  <li class="r2 ">
273
- <span class='object_link'><a href="Brauser/Definition.html#primary-instance_method" title="Brauser::Definition#primary (method)">#primary</a></span>
274
- <small>Brauser::Definition</small>
237
+ <span class='object_link'><a href="Brauser/Definitions/Platform.html#name-instance_method" title="Brauser::Definitions::Platform#name (method)">#name</a></span>
238
+ <small>Brauser::Definitions::Platform</small>
275
239
  </li>
276
240
 
277
241
 
278
242
  <li class="r1 ">
279
- <span class='object_link'><a href="Brauser/Browseable/Attributes.html#readable_name-instance_method" title="Brauser::Browseable::Attributes#readable_name (method)">#readable_name</a></span>
280
- <small>Brauser::Browseable::Attributes</small>
243
+ <span class='object_link'><a href="Brauser/Browser.html#name-instance_method" title="Brauser::Browser#name (method)">#name</a></span>
244
+ <small>Brauser::Browser</small>
281
245
  </li>
282
246
 
283
247
 
284
248
  <li class="r2 ">
285
- <span class='object_link'><a href="Brauser/Query.html#result-instance_method" title="Brauser::Query#result (method)">#result</a></span>
286
- <small>Brauser::Query</small>
249
+ <span class='object_link'><a href="Brauser/Parser.html#parse_accept_language-instance_method" title="Brauser::Parser#parse_accept_language (method)">#parse_accept_language</a></span>
250
+ <small>Brauser::Parser</small>
287
251
  </li>
288
252
 
289
253
 
290
254
  <li class="r1 ">
291
- <span class='object_link'><a href="Brauser/Definition.html#secondary-instance_method" title="Brauser::Definition#secondary (method)">#secondary</a></span>
292
- <small>Brauser::Definition</small>
255
+ <span class='object_link'><a href="Brauser/Parser.html#parse_agent-instance_method" title="Brauser::Parser#parse_agent (method)">#parse_agent</a></span>
256
+ <small>Brauser::Parser</small>
293
257
  </li>
294
258
 
295
259
 
296
260
  <li class="r2 ">
297
- <span class='object_link'><a href="Brauser/Browseable/Querying.html#supported%3F-instance_method" title="Brauser::Browseable::Querying#supported? (method)">#supported?</a></span>
298
- <small>Brauser::Browseable::Querying</small>
261
+ <span class='object_link'><a href="Brauser/Browser.html#platform-instance_method" title="Brauser::Browser#platform (method)">#platform</a></span>
262
+ <small>Brauser::Browser</small>
299
263
  </li>
300
264
 
301
265
 
302
266
  <li class="r1 ">
303
- <span class='object_link'><a href="Brauser/Definition.html#tag-instance_method" title="Brauser::Definition#tag (method)">#tag</a></span>
304
- <small>Brauser::Definition</small>
267
+ <span class='object_link'><a href="Brauser/Definitions.html#platforms-class_method" title="Brauser::Definitions.platforms (method)">platforms</a></span>
268
+ <small>Brauser::Definitions</small>
305
269
  </li>
306
270
 
307
271
 
308
272
  <li class="r2 ">
309
- <span class='object_link'><a href="Brauser/Query.html#target-instance_method" title="Brauser::Query#target (method)">#target</a></span>
310
- <small>Brauser::Query</small>
273
+ <span class='object_link'><a href="Brauser/Definitions.html#register-class_method" title="Brauser::Definitions.register (method)">register</a></span>
274
+ <small>Brauser::Definitions</small>
311
275
  </li>
312
276
 
313
277
 
314
278
  <li class="r1 ">
315
- <span class='object_link'><a href="Brauser/Queryable/Chainers.html#version-instance_method" title="Brauser::Queryable::Chainers#version (method)">#version</a></span>
316
- <small>Brauser::Queryable::Chainers</small>
279
+ <span class='object_link'><a href="Brauser/Value.html#value-instance_method" title="Brauser::Value#value (method)">#value</a></span>
280
+ <small>Brauser::Value</small>
317
281
  </li>
318
282
 
319
283
 
@@ -324,20 +288,8 @@
324
288
 
325
289
 
326
290
  <li class="r1 ">
327
- <span class='object_link'><a href="Brauser/Browseable/Querying.html#version%3F-instance_method" title="Brauser::Browseable::Querying#version? (method)">#version?</a></span>
328
- <small>Brauser::Browseable::Querying</small>
329
- </li>
330
-
331
-
332
- <li class="r2 ">
333
- <span class='object_link'><a href="Brauser/Queryable/Queries.html#version%3F-instance_method" title="Brauser::Queryable::Queries#version? (method)">#version?</a></span>
334
- <small>Brauser::Queryable::Queries</small>
335
- </li>
336
-
337
-
338
- <li class="r1 ">
339
- <span class='object_link'><a href="Brauser/Browseable/PartialQuerying.html#version_equals_to-instance_method" title="Brauser::Browseable::PartialQuerying#version_equals_to (method)">#version_equals_to</a></span>
340
- <small>Brauser::Browseable::PartialQuerying</small>
291
+ <span class='object_link'><a href="Brauser/Definitions/Browser.html#version_matcher-instance_method" title="Brauser::Definitions::Browser#version_matcher (method)">#version_matcher</a></span>
292
+ <small>Brauser::Definitions::Browser</small>
341
293
  </li>
342
294
 
343
295