browserino 4.2.1 → 4.2.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +235 -0
- data/README.md +1237 -2
- data/browserino.gemspec +1 -1
- data/lib/browserino/definitions/labels.rb +38 -36
- data/lib/browserino/matcher.rb +1 -1
- data/lib/browserino/version.rb +1 -1
- metadata +5 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 37c6fcbd053aed59747809deaea6929e5976122d
|
4
|
+
data.tar.gz: c1537369b440e7f09a7705fef2aa05c51153c81a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 530f0170b314b9d15b41c896c6c36481040cc685ca1a62ded05890882b77e702a95faa2c0b9f5a1dffc20fe8ce754b33bf140de62b655a9ee824785e4dd76c8f
|
7
|
+
data.tar.gz: 491343e822f040ccc3fb27ffe4c9c0880fec951d261562687cf4d169368c38155c7016d30a0cde799088e430aa1a920dd472fd764a3c32fc34008fc5652961d1
|
data/CHANGELOG.md
ADDED
@@ -0,0 +1,235 @@
|
|
1
|
+
# Changelog
|
2
|
+
_dates are in dd-mm-yyyy format_
|
3
|
+
|
4
|
+
### 22-04-2017 VERSION 4.0.0
|
5
|
+
|
6
|
+
- Complete rewrite
|
7
|
+
- Complete documentation rewrite
|
8
|
+
|
9
|
+
#### 14-11-2016 VERSION 2.12.0
|
10
|
+
|
11
|
+
- Added support for SamsungBrowser
|
12
|
+
- Added `samsungbrowser?` method
|
13
|
+
- Added support for `:samsungbrowser` (`Symbol` and `String`) in methods
|
14
|
+
- Added support for Tizen
|
15
|
+
- Added `tizen?` method
|
16
|
+
- Added support for `:tizen` (`Symbol` and `String`) in methods
|
17
|
+
- Added support for WebOS
|
18
|
+
- Added `webos?` method
|
19
|
+
- Added support for `:webos` (`Symbol` and `String`) in methods
|
20
|
+
- Added support for WebOSBrowser
|
21
|
+
- Added `webosbrowser?` method
|
22
|
+
- Added support for `:webosbrowser` (`Symbol` and `String`) in methods
|
23
|
+
- Added Android Nougat (7.0 and 7.1) detection
|
24
|
+
- merged OS map files into _/core/mappings.rb_ and removed the _lib/maps_ folder
|
25
|
+
- Reduced amount of (overkill) tests
|
26
|
+
|
27
|
+
#### 13-11-2016 VERSION 2.11.0
|
28
|
+
|
29
|
+
- Add `:macos` alias for `:macintosh` systems.
|
30
|
+
- Added support for MacOS `:sierra` alias in methods.
|
31
|
+
- Added deprecation notice for dropping support of Ruby < 2.0.0
|
32
|
+
|
33
|
+
#### 19-10-2016 VERSION 2.10.1.1
|
34
|
+
|
35
|
+
- Test on ruby 2.3.1
|
36
|
+
- Fix missing questionmarks on method names in the README.
|
37
|
+
- Change gem homepage to io domain
|
38
|
+
|
39
|
+
#### 25-08-2016 VERSION 2.10.1
|
40
|
+
|
41
|
+
- Replaced `require` with `require_relative` where possible
|
42
|
+
- Fixed cli not loading due to failing `require`
|
43
|
+
|
44
|
+
#### 24-07-2016 VERSION 2.10.0
|
45
|
+
|
46
|
+
- Added support for the servo browser:
|
47
|
+
- Added `servo?` method
|
48
|
+
|
49
|
+
- Added detection for various programming languages:
|
50
|
+
- Added `library?` method
|
51
|
+
- Added `php?` method
|
52
|
+
- Added `perl?` method
|
53
|
+
- Added `python?` method
|
54
|
+
- Added `java?` method
|
55
|
+
- Added `curl?` method
|
56
|
+
- Added `pycurl?` method
|
57
|
+
|
58
|
+
#### 29-05-2016 VERSION 2.9.0
|
59
|
+
|
60
|
+
- Stricter checking for:
|
61
|
+
* `social_media?`
|
62
|
+
* `bot?`
|
63
|
+
* `browser?`
|
64
|
+
* `platform?`
|
65
|
+
|
66
|
+
These methods used to be callable with unrelated symbols
|
67
|
+
(e.g `agent.platform?(:firefox) # => true`), they will now correctly return false.
|
68
|
+
- Added support for consoles
|
69
|
+
* Added `console?` method
|
70
|
+
* Added `wii?`, `playstation?`, `xbox?` and `nintendo_ds?` methods
|
71
|
+
- Added general `name` method to store any browser / bot / search engine / social media agent
|
72
|
+
- `social_media_name`, `search_engine_name` and `bot_name` are now aliasses of `name`
|
73
|
+
- removed `:bot_name` from data structure (now stored in a general `name` property)
|
74
|
+
- removed `:browser_name` from data structure (now stored in a general `name` property)
|
75
|
+
- Added `console_name` method to get the name of a console
|
76
|
+
|
77
|
+
#### 27-05-2016 VERSION 2.8.2
|
78
|
+
|
79
|
+
- Removed Guard gem dependency
|
80
|
+
|
81
|
+
#### 26-05-2016 VERSION 2.8.0
|
82
|
+
|
83
|
+
- Added `search_engine?` method
|
84
|
+
- Added `holmes?` method
|
85
|
+
- Added `ask?` method
|
86
|
+
- Added `duckduckgo?` and alias `ddg?` methods
|
87
|
+
- Fixed `respond_to?` method signature
|
88
|
+
- Added executable for parsing useragents in terminal
|
89
|
+
|
90
|
+
#### 02-03-2016 VERSION 2.7.0
|
91
|
+
|
92
|
+
- Added `solaris?` method
|
93
|
+
|
94
|
+
#### 22-01-2016 VERSION 2.6.0
|
95
|
+
|
96
|
+
- Fixed `to_a` method
|
97
|
+
- Fixed `to_s` method
|
98
|
+
- Removed **bot** suffixes from every bot name
|
99
|
+
- Replaced `googlebot?` with `google?`
|
100
|
+
- Replaced `msnbot?` with `msn?`
|
101
|
+
- Replaced `bingbot?` with `bing?`
|
102
|
+
- Replaced `yandexbot?` with `yandex?`
|
103
|
+
- Replaced `exabot?` with `exa?`
|
104
|
+
- Added `platform?` method
|
105
|
+
- Added `browser?` method
|
106
|
+
- Added `social_media?` method
|
107
|
+
- Added `facebook?` and `fb?` methods
|
108
|
+
- Added `twitter?` method
|
109
|
+
- Added `linkedin?` method
|
110
|
+
- Added `instagram?` method
|
111
|
+
- Added `pinterest?` method
|
112
|
+
- Added `tumblr?` method
|
113
|
+
- Added support for the Brave browser and the `brave?` method
|
114
|
+
- Added `ff?` method
|
115
|
+
|
116
|
+
#### 20-01-2016 VERSION 2.5.4
|
117
|
+
|
118
|
+
- formatted / refactored code with rubocop
|
119
|
+
- iOS `system_name full: true` returns the version no. of iOS if found
|
120
|
+
|
121
|
+
#### 19-01-2016 VERSION 2.5.3
|
122
|
+
|
123
|
+
- Minor refactoring of code
|
124
|
+
|
125
|
+
#### 15-01-2016 VERSION 2.5.2
|
126
|
+
|
127
|
+
- **DEPRECATE** Custom return values (passed through `Browserino.parse`) will no longer alter the output of the agent object
|
128
|
+
- Added support for windows phone detection
|
129
|
+
- Added `windows_phone?` method
|
130
|
+
|
131
|
+
#### 12-01-2016 VERSION 2.5.1
|
132
|
+
|
133
|
+
- Patched blackberry mapping, this used to be done by model number instead but is now corrected
|
134
|
+
|
135
|
+
#### 12-01-2016 VERSION 2.5.0
|
136
|
+
|
137
|
+
- Added support for the Vivaldi browser
|
138
|
+
- New method `#vivaldi?`
|
139
|
+
- Added support for the bsd family of operating systems
|
140
|
+
- New method `#bsd?`
|
141
|
+
- Fixed using symbols for system version identification (e.g. `:vista` or `:el_capitan`) without a version number
|
142
|
+
|
143
|
+
#### 11-01-2016 VERSION 2.4.1(.1)
|
144
|
+
|
145
|
+
- Caching the agent object in Rails
|
146
|
+
- **DEPRECATE** Using a custom return value for when a property isn't found
|
147
|
+
|
148
|
+
#### 10-01-2016 VERSION 2.4.0
|
149
|
+
|
150
|
+
- Added rails integration
|
151
|
+
|
152
|
+
#### 06-01-2016 VERSION 2.3.0
|
153
|
+
|
154
|
+
- Added `#compat?` method to test if IE is in compatibility mode
|
155
|
+
- Extended `#browser_version` to now also take an argument
|
156
|
+
- Added `#locale` method
|
157
|
+
- Empty UA's are identified as bots through `#bot?`
|
158
|
+
|
159
|
+
#### 04-01-2016 VERSION 2.2.0
|
160
|
+
|
161
|
+
- Added more bots
|
162
|
+
- `#bot?` method can now take a bot name as argument to check for an exact bot
|
163
|
+
|
164
|
+
#### 04-01-2016 VERSION 2.1.0
|
165
|
+
|
166
|
+
- Small restructuring of test suite
|
167
|
+
- Added bot detection
|
168
|
+
- Added `#bot?` method
|
169
|
+
- Added dynamic method support for bots
|
170
|
+
- Added support for the seamonkey browser
|
171
|
+
|
172
|
+
#### 03-01-2016 VERSION 2.0.0
|
173
|
+
|
174
|
+
- **IMPORTANT** Changed behaviour of all dynamic methods to include version as an argument rather than in the method name.
|
175
|
+
- **IMPORTANT** Changed the behaviour of version checking to be more strict
|
176
|
+
- Changed tests to reflect new behaviour
|
177
|
+
- Added convenience methods `#win?`, `#osx?` and `#bb?`
|
178
|
+
|
179
|
+
#### 03-01-2016 VERSION 1.6.0
|
180
|
+
|
181
|
+
- Added more tests
|
182
|
+
- Added more browsers to check: *(bolt, opera mini and ucbrowser)*
|
183
|
+
- Added `#known?` method to check if the agent is known
|
184
|
+
- Added a `#ua` method to return the User Agent string as given to `Browserino.parse()`
|
185
|
+
- Added `#x64?` and `#x32?` convenience methods to check system architecture
|
186
|
+
- Added `#mobile?` to check wether or not a user agent is mobile
|
187
|
+
- Moved older changelogs to its own [CHANGELOG.md](https://github.com/SidOfc/browserino/blob/master/CHANGELOG.md) file
|
188
|
+
- Changed `#to_s` to add dashes (`-`) between browser names if they have a space
|
189
|
+
- `#to_s` now has an optional (`sep = ''`) parameter that allows info and version numbers to be seperated
|
190
|
+
|
191
|
+
#### 31-12-2015 VERSION 1.5.3
|
192
|
+
|
193
|
+
- Added blackberry support
|
194
|
+
- Added tests for blackberry user agent strings
|
195
|
+
|
196
|
+
#### 31-12-2015 VERSION 1.5.2
|
197
|
+
|
198
|
+
- Added user agents
|
199
|
+
- Patterns could falsely identify a 64bit system, made the pattern more strict
|
200
|
+
- using `X11` in a user agent as a synonym to a `#linux?` system
|
201
|
+
|
202
|
+
#### 23-12-2015 VERSION 1.5.1.1
|
203
|
+
|
204
|
+
- Removed print statements from method
|
205
|
+
- Builds are now executed for Ruby 1.9.3 as well as 2.2.1
|
206
|
+
|
207
|
+
#### 20-12-2015 VERSION 1.5.1
|
208
|
+
|
209
|
+
- Fixed `respond_to?` method which would first return inverted results (e.g. false when it should be true)
|
210
|
+
|
211
|
+
#### 19-12-2015 VERSION 1.5.0
|
212
|
+
|
213
|
+
- Implemented to_s to return a concatenated string of property values
|
214
|
+
- Implemented to_a to return an array with arrays containing property name-value pairs
|
215
|
+
- Implemented to_h to return a hash containing property name-value pairs
|
216
|
+
- Removed unused code
|
217
|
+
|
218
|
+
#### 19-12-2015 VERSION 1.4.0
|
219
|
+
|
220
|
+
- Added not method to invert questions about browser / system
|
221
|
+
- Added random test cases to verify that all inverted answers are correct
|
222
|
+
|
223
|
+
#### 17-12-2015 VERSION 1.3.0
|
224
|
+
|
225
|
+
- Added Edge detection
|
226
|
+
- For supported browsers, it is now possible to check name and version through `method_missing?`
|
227
|
+
|
228
|
+
#### 16-12-2015 VERSION 1.2.0
|
229
|
+
|
230
|
+
- Opera tests didn't run before
|
231
|
+
- For supported systems, it is possible to check OS and version through `method_missing?`
|
232
|
+
|
233
|
+
#### 15-12-2015 VERSION 1.1.2
|
234
|
+
|
235
|
+
- User definable 'unknown' return value
|