device_detector_regexes 0.1.5 → 0.1.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +3 -0
- data/Gemfile.lock +9 -1
- data/Rakefile +9 -26
- data/device_detector_regexes.gemspec +2 -0
- data/lib/device_detector_regexes.rb +3 -0
- data/lib/device_detector_regexes/version.rb +1 -1
- metadata +30 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ad6232451deddc309294ce7250b139d60748fa59776f605addac999af935741d
|
4
|
+
data.tar.gz: bd19223354637e5cc3ed59b99150e9c312bdd77257e13b1305625eb6508a09ae
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3220a77311b6646e988f4a824c312464c272b1177df5fec3daad0389bd54c7c1f35e81dcd4ac7989b662378cad69c240ed4764d2493342a2f8d2f542ea71aba7
|
7
|
+
data.tar.gz: 59f45197e19112495b7242804c98d56ee216b14a0b18257d111e3de9224b2f4c818fffc9be01585f3e81956ebf67be8e675501e2df2991768c9e721dcb483040
|
data/CHANGELOG.md
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,18 +1,24 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
device_detector_regexes (0.1.
|
4
|
+
device_detector_regexes (0.1.6)
|
5
5
|
device_detector
|
6
6
|
|
7
7
|
GEM
|
8
8
|
remote: https://rubygems.org/
|
9
9
|
specs:
|
10
10
|
ast (2.4.0)
|
11
|
+
coderay (1.1.2)
|
11
12
|
device_detector (1.0.3)
|
12
13
|
jaro_winkler (1.5.4)
|
14
|
+
method_source (0.9.2)
|
15
|
+
minitest (5.11.3)
|
13
16
|
parallel (1.19.1)
|
14
17
|
parser (2.7.0.4)
|
15
18
|
ast (~> 2.4.0)
|
19
|
+
pry (0.12.2)
|
20
|
+
coderay (~> 1.1.0)
|
21
|
+
method_source (~> 0.9.0)
|
16
22
|
rainbow (3.0.0)
|
17
23
|
rexml (3.2.4)
|
18
24
|
rubocop (0.80.1)
|
@@ -31,6 +37,8 @@ PLATFORMS
|
|
31
37
|
|
32
38
|
DEPENDENCIES
|
33
39
|
device_detector_regexes!
|
40
|
+
minitest
|
41
|
+
pry
|
34
42
|
rubocop
|
35
43
|
|
36
44
|
BUNDLED WITH
|
data/Rakefile
CHANGED
@@ -1,29 +1,12 @@
|
|
1
|
-
|
1
|
+
# frozen_string_literal: true
|
2
2
|
|
3
|
-
require
|
3
|
+
require 'bundler/gem_tasks'
|
4
|
+
require 'rake/testtask'
|
4
5
|
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
["client", "feed_readers.yml"],
|
10
|
-
["client", "libraries.yml"],
|
11
|
-
["client", "mediaplayers.yml"],
|
12
|
-
["client", "mobile_apps.yml"],
|
13
|
-
["client", "pim.yml"],
|
14
|
-
["device", "cameras.yml"],
|
15
|
-
["device", "car_browsers.yml"],
|
16
|
-
["device", "consoles.yml"],
|
17
|
-
["device", "mobiles.yml"],
|
18
|
-
["device", "portable_media_player.yml"],
|
19
|
-
["device", "televisions.yml"],
|
20
|
-
[".", "bots.yml"],
|
21
|
-
[".", "oss.yml"],
|
22
|
-
[".", "vendorfragments.yml"]
|
23
|
-
]
|
24
|
-
|
25
|
-
files.each do |dir, filename|
|
26
|
-
FileUtils.mkdir_p "#{args[:target_dir]}/regexes/#{dir}"
|
27
|
-
File.open("#{args[:target_dir]}/regexes/#{dir}/#{filename}", "a") { |file| file.write("[] # live an empty array here if the file is empty") }
|
28
|
-
end
|
6
|
+
Rake::TestTask.new(:test) do |t|
|
7
|
+
t.libs << 'test'
|
8
|
+
t.libs << 'lib'
|
9
|
+
t.test_files = FileList['test/**/*_test.rb']
|
29
10
|
end
|
11
|
+
|
12
|
+
task default: :test
|
@@ -1,5 +1,6 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
+
require 'pathname'
|
3
4
|
require 'device_detector'
|
4
5
|
|
5
6
|
module DeviceDetectorRegexes; end
|
@@ -18,6 +19,8 @@ class DeviceDetector
|
|
18
19
|
end
|
19
20
|
|
20
21
|
class Parser
|
22
|
+
private
|
23
|
+
|
21
24
|
def filepaths
|
22
25
|
filenames.each_with_object([]) do |filename, filenames|
|
23
26
|
# push custom files first due to higher precedence lookup than default files
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: device_detector_regexes
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kirill Karpinovsky
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-03-
|
11
|
+
date: 2020-03-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: device_detector
|
@@ -24,6 +24,34 @@ dependencies:
|
|
24
24
|
- - ">="
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '0'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: minitest
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - ">="
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '0'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - ">="
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: pry
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - ">="
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '0'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - ">="
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0'
|
27
55
|
- !ruby/object:Gem::Dependency
|
28
56
|
name: rubocop
|
29
57
|
requirement: !ruby/object:Gem::Requirement
|