browserino 4.2.2 → 4.2.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 37c6fcbd053aed59747809deaea6929e5976122d
4
- data.tar.gz: c1537369b440e7f09a7705fef2aa05c51153c81a
3
+ metadata.gz: 6fea195ef7e07ff27c218fe70dbc5c58e4d8e33d
4
+ data.tar.gz: d54446680900ffd3f572824db6ca424a7f527974
5
5
  SHA512:
6
- metadata.gz: 530f0170b314b9d15b41c896c6c36481040cc685ca1a62ded05890882b77e702a95faa2c0b9f5a1dffc20fe8ce754b33bf140de62b655a9ee824785e4dd76c8f
7
- data.tar.gz: 491343e822f040ccc3fb27ffe4c9c0880fec951d261562687cf4d169368c38155c7016d30a0cde799088e430aa1a920dd472fd764a3c32fc34008fc5652961d1
6
+ metadata.gz: c0f0958e93d0aec69a9a0be73d6951fe4298192a7683b8e7bf34d8b4afc9dde7cb7ca4b4a4163043704c93b996d3c36225f328966a2ff4db47c34cfe3f2e63c2
7
+ data.tar.gz: 4429f8015e122e8616014ac8cafd7c2cd8ec60d772a67677f5adf8364973347a38c839e19c7986d22cee42306b5d94eaa56b7c79cbee7f101cacaa0812cab52a
data/.rubocop.yml CHANGED
@@ -31,6 +31,9 @@ Style/MethodMissing:
31
31
  Metrics/BlockLength:
32
32
  Enabled: false
33
33
 
34
+ Metrics/CyclomaticComplexity:
35
+ Max: 10
36
+
34
37
  Metrics/AbcSize:
35
38
  Max: 15
36
39
 
data/CHANGELOG.md CHANGED
@@ -1,6 +1,12 @@
1
1
  # Changelog
2
2
  _dates are in dd-mm-yyyy format_
3
3
 
4
+ ### 30-04-2017 VERSION 4.1.0
5
+
6
+ - Changed some internal naming
7
+ - Added ~200 additional browsers / bots
8
+ - Added list of browsers / bots and platforms to the documentation
9
+
4
10
  ### 22-04-2017 VERSION 4.0.0
5
11
 
6
12
  - Complete rewrite
data/README.md CHANGED
@@ -1,3 +1,6 @@
1
+ Browserino
2
+ ---
3
+
1
4
  Browserino has been completely rewritten! While some components remain backwards compatible, the inner workings of Browserino have completely changed.
2
5
  It has taken on a DSL-like form to allow for easy addition of features and more detection in general. This allowed me to clean up lots of constants and other messy constructions I've built to add things such as aliasses for instance. The test suite had also become a quite cumbersome task to maintain, it was hard to read and all the test data was structured using Ruby, again using structures more complex than they could and should be.
3
6
 
@@ -14,7 +17,71 @@ The below sections will explain how the new Browserino works, enjoy!
14
17
  [![Coverage Status](https://img.shields.io/coveralls/SidOfc/browserino.svg)](https://coveralls.io/github/SidOfc/browserino?branch=master)
15
18
  [![Code Climate](https://img.shields.io/codeclimate/github/SidOfc/browserino.svg)](https://img.shields.io/codeclimate/github/SidOfc/browserino)
16
19
 
17
- ---
20
+ ## TOC
21
+
22
+ - [Status](#status)
23
+ - [TOC](#toc)
24
+ - [Sources](#sources)
25
+ - [Changelog](#changelog)
26
+ - [12-10-2017 VERSION 4.2.2](#12-10-2017-version-422)
27
+ - [11-06-2017 VERSION 4.2.1](#11-06-2017-version-421)
28
+ - [30-04-2017 VERSION 4.1.0](#30-04-2017-version-410)
29
+ - [Installation](#installation)
30
+ - [Usage](#usage)
31
+ - [Rails (>= 3.2.0)](#rails--320)
32
+ - [Initializer](#initializer)
33
+ - [General](#general)
34
+ - [Client](#client)
35
+ - [Formatting](#formatting)
36
+ - [Non version-like properties](#non-version-like-properties)
37
+ - [Version-like properties](#version-like-properties)
38
+ - [Config](#config)
39
+ - [Matchers](#matchers)
40
+ - [Aliasses](#aliasses)
41
+ - [Labels](#labels)
42
+ - [Methods](#methods)
43
+ - [\#name](#name)
44
+ - [\#name?(sym, opts = {})](#namesym-opts--)
45
+ - [\#version](#version)
46
+ - [\#version?(version)](#versionversion)
47
+ - [\#engine](#engine)
48
+ - [\#engine?(sym, opts = {})](#enginesym-opts--)
49
+ - [\#engine_version](#engine_version)
50
+ - [\#engine_version?(version)](#engine_versionversion)
51
+ - [\#platform](#platform)
52
+ - [\#platform?(sym, opts = {})](#platformsym-opts--)
53
+ - [\#platform_label](#platform_label)
54
+ - [\#platform_version](#platform_version)
55
+ - [\#platform_version?(version)](#platform_versionversion)
56
+ - [\#device](#device)
57
+ - [\#device?(sym)](#devicesym)
58
+ - [\#architecture](#architecture)
59
+ - [\#architecture?(sym)](#architecturesym)
60
+ - [\#x64?](#x64)
61
+ - [\#x32?](#x32)
62
+ - [\#mobile and #mobile?](#mobile-and-mobile)
63
+ - [\#type](#type)
64
+ - [\#type?(sym)](#typesym)
65
+ - [\#like](#like)
66
+ - [\#like?(sym, opts = {})](#likesym-opts--)
67
+ - [\#is?(sym, opts = {})](#issym-opts--)
68
+ - [\#not](#not)
69
+ - [\#not?(sym, opts = {})](#notsym-opts--)
70
+ - [Magic methods](#magic-methods)
71
+ - [Names](#names)
72
+ - [Aliasses](#aliasses-1)
73
+ - [Supported](#supported)
74
+ - [Browsers](#browsers)
75
+ - [Bots](#bots)
76
+ - [Validators](#validators)
77
+ - [Libraries](#libraries)
78
+ - [Email Clients](#email-clients)
79
+ - [RSS](#rss)
80
+ - [Platforms](#platforms)
81
+ - [Android](#android)
82
+ - [Windows](#windows)
83
+ - [Macintosh](#macintosh)
84
+ - [Devices](#devices)
18
85
 
19
86
  ## Sources
20
87
 
@@ -36,6 +103,11 @@ Many thanks to the creators and maintainers of the following sources of user age
36
103
  _dates are in dd-mm-yyyy format_
37
104
  older changes can be found in the [changelog](/projects/browserino/changelog/)
38
105
 
106
+ ### 24-12-2017 VERSION 4.2.3
107
+
108
+ - Loosened some Android label version ranges
109
+ - `Browserino::Version` can now also parse floats float `1.1` equals major version 1, minor version 1, patch level 0
110
+
39
111
  ### 12-10-2017 VERSION 4.2.2
40
112
 
41
113
  - Added support for `high_sierra`
@@ -51,12 +123,6 @@ older changes can be found in the [changelog](/projects/browserino/changelog/)
51
123
  - Added `not?` method which is the opposite of `is?`
52
124
  - Added `:mediaplayer` type
53
125
 
54
- ### 30-04-2017 VERSION 4.1.0
55
-
56
- - Changed some internal naming
57
- - Added ~200 additional browsers / bots
58
- - Added list of browsers / bots and platforms to the documentation
59
-
60
126
  ## Installation
61
127
 
62
128
  Add this line to your application's Gemfile:
@@ -412,7 +478,7 @@ This means that for a `client.is? :firefox` you can do `client.is? :ff` or `clie
412
478
  ##### Labels
413
479
 
414
480
  A label could be a codename or a specific OS name for instance, it applies to a name and it's respective version combination.
415
- It autodetects against which version it should match, this will always be the correct version. Here are some examples (also not the complete file - [source](https://github.com/SidOfc/browserino/blob/master/lib/browserino/definitions/labels.rb):
481
+ It autodetects against which version it should match, this will always be the correct version. Here are some examples (also not the complete file - [source](https://github.com/SidOfc/browserino/blob/master/lib/browserino/definitions/labels.rb)):
416
482
 
417
483
  ```ruby
418
484
  # small subset of labels from the source
@@ -20,11 +20,11 @@ Browserino.config.define do
20
20
  label :honeycomb, for: :android, range: '3'..'3.2.6'
21
21
  label :ice_cream_sandwich, for: :android, range: '4'..'4.0.4'
22
22
  label :jelly_bean, for: :android, range: '4.1'..'4.3.1'
23
- label :kitkat, for: :android, range: '4.4'..'4.4.4'
24
- label :lollipop, for: :android, range: '5'..'5.1.1'
25
- label :marshmallow, for: :android, range: '6'..'6.1.1'
26
- label :nougat, for: :android, range: '7'..'7.1.1'
27
- label :oreo, for: :android, range: '8.0'..'8.0.9'
23
+ label :kitkat, for: :android, range: '4.4'..'4.9.9'
24
+ label :lollipop, for: :android, range: '5'..'5.9.9'
25
+ label :marshmallow, for: :android, range: '6'..'6.9.9'
26
+ label :nougat, for: :android, range: '7'..'7.9.9'
27
+ label :oreo, for: :android, range: '8.0'..'8.9.9'
28
28
 
29
29
  label :cheetah, for: :macintosh, range: '10.0'..'10.0.9'
30
30
  label :puma, for: :macintosh, range: '10.1'..'10.1.9'
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Browserino
4
- def self.version(current = '4.2.2')
4
+ def self.version(current = '4.2.3')
5
5
  @version ||= Version.new current
6
6
  end
7
7
 
@@ -67,6 +67,7 @@ module Browserino
67
67
  when Array then val
68
68
  when Hash then [val[:major], val[:minor], val[:patch]]
69
69
  when Symbol then []
70
+ when Float then val.to_s.split('.').map(&:to_i)
70
71
  else val.to_a
71
72
  end.map(&:to_i)
72
73
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: browserino
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.2.2
4
+ version: 4.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sidney Liebrand
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-10-12 00:00:00.000000000 Z
11
+ date: 2017-12-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler