browserino 2.8.0 → 2.8.2
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 +13 -5
- data/CHANGELOG.md +22 -0
- data/README.md +6 -23
- data/browserino.gemspec +0 -2
- data/lib/browserino/version.rb +1 -1
- metadata +20 -49
- data/Guardfile +0 -70
checksums.yaml
CHANGED
|
@@ -1,7 +1,15 @@
|
|
|
1
1
|
---
|
|
2
|
-
|
|
3
|
-
metadata.gz:
|
|
4
|
-
|
|
2
|
+
!binary "U0hBMQ==":
|
|
3
|
+
metadata.gz: !binary |-
|
|
4
|
+
NmRhZGNiNmJhOWU2YjY1NWJmYWY1NmNhNWU1MmJmZTkxOGQ1YjJjNg==
|
|
5
|
+
data.tar.gz: !binary |-
|
|
6
|
+
NGI4OGE0YjM1MjljZmI0NWRkMzdjODQ4NTQ1MGM1NTg2MjRjZDlmOQ==
|
|
5
7
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
|
|
8
|
+
metadata.gz: !binary |-
|
|
9
|
+
NjNlMzUzNGMxNGQ1OGQ3MzU1NTQ1MDRhYWRlM2U0YmY3OGJmZjM2ZTc3ZjEw
|
|
10
|
+
MjhjYWJhYmRkYWFkZGRhZDcyMTBiYjhiMjYzMTU2MzAzNTUyMDQ1MjczYTY2
|
|
11
|
+
MGZmZjU3N2EyYmFhYzdlMzg3ZmI5NjFiYzg5NGEyZDg3YzBjMTM=
|
|
12
|
+
data.tar.gz: !binary |-
|
|
13
|
+
MWVlNmZiYThlMGU4MmFmYzNmYzk0YjVkZDM5NDhiYjAzODRkNGIwOWRhYTcy
|
|
14
|
+
MWQ4OWRjYTU4NWRlYTE0NWVkM2QxZjk5MTdiOWIyMzBmODcxOGJmMWVhNDc4
|
|
15
|
+
MmVjYWIxZGFhMmM2ZWM1Y2Y0OGE3MmFkOTRiM2RlOGZiZmIwMTc=
|
data/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,28 @@
|
|
|
1
1
|
## CHANGELOG
|
|
2
2
|
_dates are in dd-mm-yyyy format_
|
|
3
3
|
|
|
4
|
+
#### 22-01-2016 VERSION 2.6.0
|
|
5
|
+
|
|
6
|
+
- Fixed `to_a` method
|
|
7
|
+
- Fixed `to_s` method
|
|
8
|
+
- Removed **bot** suffixes from every bot name
|
|
9
|
+
- Replaced `googlebot?` with `google?`
|
|
10
|
+
- Replaced `msnbot?` with `msn?`
|
|
11
|
+
- Replaced `bingbot?` with `bing?`
|
|
12
|
+
- Replaced `yandexbot?` with `yandex?`
|
|
13
|
+
- Replaced `exabot?` with `exa?`
|
|
14
|
+
- Added `platform?` method
|
|
15
|
+
- Added `browser?` method
|
|
16
|
+
- Added `social_media?` method
|
|
17
|
+
- Added `facebook?` and `fb?` methods
|
|
18
|
+
- Added `twitter?` method
|
|
19
|
+
- Added `linkedin?` method
|
|
20
|
+
- Added `instagram?` method
|
|
21
|
+
- Added `pinterest?` method
|
|
22
|
+
- Added `tumblr?` method
|
|
23
|
+
- Added support for the Brave browser and the `brave?` method
|
|
24
|
+
- Added `ff?` method
|
|
25
|
+
|
|
4
26
|
#### 20-01-2016 VERSION 2.5.4
|
|
5
27
|
|
|
6
28
|
- formatted / refactored code with rubocop
|
data/README.md
CHANGED
|
@@ -21,6 +21,10 @@ Useragent references:
|
|
|
21
21
|
_dates are in dd-mm-yyyy format_
|
|
22
22
|
_older changes can be found in the [CHANGELOG.md](/CHANGELOG.md)_
|
|
23
23
|
|
|
24
|
+
#### 27-05-2016 VERSION 2.8.2
|
|
25
|
+
|
|
26
|
+
- Removed Guard gem dependency
|
|
27
|
+
|
|
24
28
|
#### 26-05-2016 VERSION 2.8.0
|
|
25
29
|
|
|
26
30
|
- Added `search_engine?` method
|
|
@@ -28,33 +32,12 @@ _older changes can be found in the [CHANGELOG.md](/CHANGELOG.md)_
|
|
|
28
32
|
- Added `ask?` method
|
|
29
33
|
- Added `duckduckgo?` and alias `ddg?` methods
|
|
30
34
|
- Fixed `respond_to?` method signature
|
|
35
|
+
- Added executable for parsing useragents in terminal
|
|
31
36
|
|
|
32
37
|
#### 02-03-2016 VERSION 2.7.0
|
|
33
38
|
|
|
34
39
|
- Added `solaris?` method
|
|
35
40
|
|
|
36
|
-
#### 22-01-2016 VERSION 2.6.0
|
|
37
|
-
|
|
38
|
-
- Fixed `to_a` method
|
|
39
|
-
- Fixed `to_s` method
|
|
40
|
-
- Removed **bot** suffixes from every bot name
|
|
41
|
-
- Replaced `googlebot?` with `google?`
|
|
42
|
-
- Replaced `msnbot?` with `msn?`
|
|
43
|
-
- Replaced `bingbot?` with `bing?`
|
|
44
|
-
- Replaced `yandexbot?` with `yandex?`
|
|
45
|
-
- Replaced `exabot?` with `exa?`
|
|
46
|
-
- Added `platform?` method
|
|
47
|
-
- Added `browser?` method
|
|
48
|
-
- Added `social_media?` method
|
|
49
|
-
- Added `facebook?` and `fb?` methods
|
|
50
|
-
- Added `twitter?` method
|
|
51
|
-
- Added `linkedin?` method
|
|
52
|
-
- Added `instagram?` method
|
|
53
|
-
- Added `pinterest?` method
|
|
54
|
-
- Added `tumblr?` method
|
|
55
|
-
- Added support for the Brave browser and the `brave?` method
|
|
56
|
-
- Added `ff?` method
|
|
57
|
-
|
|
58
41
|
## Installation
|
|
59
42
|
|
|
60
43
|
Add the following to your applications Gemfile:
|
|
@@ -99,7 +82,7 @@ Browserino.parse '<user agent>'
|
|
|
99
82
|
Browserino is also usable in the command line
|
|
100
83
|
|
|
101
84
|
```
|
|
102
|
-
~$ browserino
|
|
85
|
+
~$ browserino parse <ua>
|
|
103
86
|
```
|
|
104
87
|
|
|
105
88
|
Output
|
data/browserino.gemspec
CHANGED
|
@@ -21,8 +21,6 @@ Gem::Specification.new do |spec|
|
|
|
21
21
|
spec.add_development_dependency "bundler", "~> 1.10"
|
|
22
22
|
spec.add_development_dependency "rake", "~> 10.0"
|
|
23
23
|
spec.add_development_dependency "rspec"
|
|
24
|
-
spec.add_development_dependency "guard"
|
|
25
|
-
spec.add_development_dependency "guard-rspec"
|
|
26
24
|
spec.add_development_dependency "coveralls"
|
|
27
25
|
spec.add_development_dependency "pry"
|
|
28
26
|
end
|
data/lib/browserino/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,111 +1,83 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: browserino
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 2.8.
|
|
4
|
+
version: 2.8.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Sidney Liebrand
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2016-05-
|
|
11
|
+
date: 2016-05-27 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
|
16
16
|
requirements:
|
|
17
|
-
- -
|
|
17
|
+
- - ~>
|
|
18
18
|
- !ruby/object:Gem::Version
|
|
19
19
|
version: '1.10'
|
|
20
20
|
type: :development
|
|
21
21
|
prerelease: false
|
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
|
23
23
|
requirements:
|
|
24
|
-
- -
|
|
24
|
+
- - ~>
|
|
25
25
|
- !ruby/object:Gem::Version
|
|
26
26
|
version: '1.10'
|
|
27
27
|
- !ruby/object:Gem::Dependency
|
|
28
28
|
name: rake
|
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
|
30
30
|
requirements:
|
|
31
|
-
- -
|
|
31
|
+
- - ~>
|
|
32
32
|
- !ruby/object:Gem::Version
|
|
33
33
|
version: '10.0'
|
|
34
34
|
type: :development
|
|
35
35
|
prerelease: false
|
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
|
37
37
|
requirements:
|
|
38
|
-
- -
|
|
38
|
+
- - ~>
|
|
39
39
|
- !ruby/object:Gem::Version
|
|
40
40
|
version: '10.0'
|
|
41
41
|
- !ruby/object:Gem::Dependency
|
|
42
42
|
name: rspec
|
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
|
44
44
|
requirements:
|
|
45
|
-
- -
|
|
45
|
+
- - ! '>='
|
|
46
46
|
- !ruby/object:Gem::Version
|
|
47
47
|
version: '0'
|
|
48
48
|
type: :development
|
|
49
49
|
prerelease: false
|
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
|
51
51
|
requirements:
|
|
52
|
-
- -
|
|
53
|
-
- !ruby/object:Gem::Version
|
|
54
|
-
version: '0'
|
|
55
|
-
- !ruby/object:Gem::Dependency
|
|
56
|
-
name: guard
|
|
57
|
-
requirement: !ruby/object:Gem::Requirement
|
|
58
|
-
requirements:
|
|
59
|
-
- - ">="
|
|
60
|
-
- !ruby/object:Gem::Version
|
|
61
|
-
version: '0'
|
|
62
|
-
type: :development
|
|
63
|
-
prerelease: false
|
|
64
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
65
|
-
requirements:
|
|
66
|
-
- - ">="
|
|
67
|
-
- !ruby/object:Gem::Version
|
|
68
|
-
version: '0'
|
|
69
|
-
- !ruby/object:Gem::Dependency
|
|
70
|
-
name: guard-rspec
|
|
71
|
-
requirement: !ruby/object:Gem::Requirement
|
|
72
|
-
requirements:
|
|
73
|
-
- - ">="
|
|
74
|
-
- !ruby/object:Gem::Version
|
|
75
|
-
version: '0'
|
|
76
|
-
type: :development
|
|
77
|
-
prerelease: false
|
|
78
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
79
|
-
requirements:
|
|
80
|
-
- - ">="
|
|
52
|
+
- - ! '>='
|
|
81
53
|
- !ruby/object:Gem::Version
|
|
82
54
|
version: '0'
|
|
83
55
|
- !ruby/object:Gem::Dependency
|
|
84
56
|
name: coveralls
|
|
85
57
|
requirement: !ruby/object:Gem::Requirement
|
|
86
58
|
requirements:
|
|
87
|
-
- -
|
|
59
|
+
- - ! '>='
|
|
88
60
|
- !ruby/object:Gem::Version
|
|
89
61
|
version: '0'
|
|
90
62
|
type: :development
|
|
91
63
|
prerelease: false
|
|
92
64
|
version_requirements: !ruby/object:Gem::Requirement
|
|
93
65
|
requirements:
|
|
94
|
-
- -
|
|
66
|
+
- - ! '>='
|
|
95
67
|
- !ruby/object:Gem::Version
|
|
96
68
|
version: '0'
|
|
97
69
|
- !ruby/object:Gem::Dependency
|
|
98
70
|
name: pry
|
|
99
71
|
requirement: !ruby/object:Gem::Requirement
|
|
100
72
|
requirements:
|
|
101
|
-
- -
|
|
73
|
+
- - ! '>='
|
|
102
74
|
- !ruby/object:Gem::Version
|
|
103
75
|
version: '0'
|
|
104
76
|
type: :development
|
|
105
77
|
prerelease: false
|
|
106
78
|
version_requirements: !ruby/object:Gem::Requirement
|
|
107
79
|
requirements:
|
|
108
|
-
- -
|
|
80
|
+
- - ! '>='
|
|
109
81
|
- !ruby/object:Gem::Version
|
|
110
82
|
version: '0'
|
|
111
83
|
description:
|
|
@@ -116,15 +88,14 @@ executables:
|
|
|
116
88
|
extensions: []
|
|
117
89
|
extra_rdoc_files: []
|
|
118
90
|
files:
|
|
119
|
-
-
|
|
120
|
-
-
|
|
121
|
-
-
|
|
122
|
-
-
|
|
123
|
-
-
|
|
91
|
+
- .coveralls.yml
|
|
92
|
+
- .gitignore
|
|
93
|
+
- .rspec
|
|
94
|
+
- .rubocop.yml
|
|
95
|
+
- .travis.yml
|
|
124
96
|
- CHANGELOG.md
|
|
125
97
|
- CODE_OF_CONDUCT.md
|
|
126
98
|
- Gemfile
|
|
127
|
-
- Guardfile
|
|
128
99
|
- LICENSE.txt
|
|
129
100
|
- README.md
|
|
130
101
|
- Rakefile
|
|
@@ -166,17 +137,17 @@ require_paths:
|
|
|
166
137
|
- lib
|
|
167
138
|
required_ruby_version: !ruby/object:Gem::Requirement
|
|
168
139
|
requirements:
|
|
169
|
-
- -
|
|
140
|
+
- - ! '>='
|
|
170
141
|
- !ruby/object:Gem::Version
|
|
171
142
|
version: '0'
|
|
172
143
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
173
144
|
requirements:
|
|
174
|
-
- -
|
|
145
|
+
- - ! '>='
|
|
175
146
|
- !ruby/object:Gem::Version
|
|
176
147
|
version: '0'
|
|
177
148
|
requirements: []
|
|
178
149
|
rubyforge_project:
|
|
179
|
-
rubygems_version: 2.
|
|
150
|
+
rubygems_version: 2.4.8
|
|
180
151
|
signing_key:
|
|
181
152
|
specification_version: 4
|
|
182
153
|
summary: A browser identification gem with Rails (>= 3.2.0) integration
|
data/Guardfile
DELETED
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
# A sample Guardfile
|
|
2
|
-
# More info at https://github.com/guard/guard#readme
|
|
3
|
-
|
|
4
|
-
## Uncomment and set this to only include directories you want to watch
|
|
5
|
-
# directories %w(app lib config test spec features) \
|
|
6
|
-
# .select{|d| Dir.exists?(d) ? d : UI.warning("Directory #{d} does not exist")}
|
|
7
|
-
|
|
8
|
-
## Note: if you are using the `directories` clause above and you are not
|
|
9
|
-
## watching the project directory ('.'), then you will want to move
|
|
10
|
-
## the Guardfile to a watched dir and symlink it back, e.g.
|
|
11
|
-
#
|
|
12
|
-
# $ mkdir config
|
|
13
|
-
# $ mv Guardfile config/
|
|
14
|
-
# $ ln -s config/Guardfile .
|
|
15
|
-
#
|
|
16
|
-
# and, you'll have to watch "config/Guardfile" instead of "Guardfile"
|
|
17
|
-
|
|
18
|
-
# Note: The cmd option is now required due to the increasing number of ways
|
|
19
|
-
# rspec may be run, below are examples of the most common uses.
|
|
20
|
-
# * bundler: 'bundle exec rspec'
|
|
21
|
-
# * bundler binstubs: 'bin/rspec'
|
|
22
|
-
# * spring: 'bin/rspec' (This will use spring if running and you have
|
|
23
|
-
# installed the spring binstubs per the docs)
|
|
24
|
-
# * zeus: 'zeus rspec' (requires the server to be started separately)
|
|
25
|
-
# * 'just' rspec: 'rspec'
|
|
26
|
-
|
|
27
|
-
guard :rspec, cmd: "bundle exec rspec" do
|
|
28
|
-
require "guard/rspec/dsl"
|
|
29
|
-
dsl = Guard::RSpec::Dsl.new(self)
|
|
30
|
-
|
|
31
|
-
# Feel free to open issues for suggestions and improvements
|
|
32
|
-
|
|
33
|
-
# RSpec files
|
|
34
|
-
rspec = dsl.rspec
|
|
35
|
-
watch(rspec.spec_helper) { rspec.spec_dir }
|
|
36
|
-
watch(rspec.spec_support) { rspec.spec_dir }
|
|
37
|
-
watch(rspec.spec_files)
|
|
38
|
-
|
|
39
|
-
# Ruby files
|
|
40
|
-
ruby = dsl.ruby
|
|
41
|
-
dsl.watch_spec_files_for(ruby.lib_files)
|
|
42
|
-
|
|
43
|
-
# Rails files
|
|
44
|
-
rails = dsl.rails(view_extensions: %w(erb haml slim))
|
|
45
|
-
dsl.watch_spec_files_for(rails.app_files)
|
|
46
|
-
dsl.watch_spec_files_for(rails.views)
|
|
47
|
-
|
|
48
|
-
watch(rails.controllers) do |m|
|
|
49
|
-
[
|
|
50
|
-
rspec.spec.("routing/#{m[1]}_routing"),
|
|
51
|
-
rspec.spec.("controllers/#{m[1]}_controller"),
|
|
52
|
-
rspec.spec.("acceptance/#{m[1]}")
|
|
53
|
-
]
|
|
54
|
-
end
|
|
55
|
-
|
|
56
|
-
# Rails config changes
|
|
57
|
-
watch(rails.spec_helper) { rspec.spec_dir }
|
|
58
|
-
watch(rails.routes) { "#{rspec.spec_dir}/routing" }
|
|
59
|
-
watch(rails.app_controller) { "#{rspec.spec_dir}/controllers" }
|
|
60
|
-
|
|
61
|
-
# Capybara features specs
|
|
62
|
-
watch(rails.view_dirs) { |m| rspec.spec.("features/#{m[1]}") }
|
|
63
|
-
watch(rails.layouts) { |m| rspec.spec.("features/#{m[1]}") }
|
|
64
|
-
|
|
65
|
-
# Turnip features and steps
|
|
66
|
-
watch(%r{^spec/acceptance/(.+)\.feature$})
|
|
67
|
-
watch(%r{^spec/acceptance/steps/(.+)_steps\.rb$}) do |m|
|
|
68
|
-
Dir[File.join("**/#{m[1]}.feature")][0] || "spec/acceptance"
|
|
69
|
-
end
|
|
70
|
-
end
|