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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5fa92b28e6542f50833c1ea09bc983cd68a1a1bf81432769cf363ca1f7e35039
4
- data.tar.gz: 26e4ce16e1e5fb4220531911b526b39025b2512acb30b5e52c369401969eb18e
3
+ metadata.gz: ad6232451deddc309294ce7250b139d60748fa59776f605addac999af935741d
4
+ data.tar.gz: bd19223354637e5cc3ed59b99150e9c312bdd77257e13b1305625eb6508a09ae
5
5
  SHA512:
6
- metadata.gz: 606a041f2257a535298fd6ee3924d93e1edace18fc99e655adb0a4d173acab91c5f4c920d61a252bf1aaba9db7deb07fba6d2aaa4dd9f2d315a43771b95d9ea0
7
- data.tar.gz: 51e5e8c098816dd0bf12e3eb4ed6011d30ad2e2392760d206d72cd727e552d377d2937bb6ce3fbc1326c4ea99048200458407968930bd347e37756eb5c1c6019
6
+ metadata.gz: 3220a77311b6646e988f4a824c312464c272b1177df5fec3daad0389bd54c7c1f35e81dcd4ac7989b662378cad69c240ed4764d2493342a2f8d2f542ea71aba7
7
+ data.tar.gz: 59f45197e19112495b7242804c98d56ee216b14a0b18257d111e3de9224b2f4c818fffc9be01585f3e81956ebf67be8e675501e2df2991768c9e721dcb483040
@@ -1,5 +1,8 @@
1
1
  # Change log
2
2
 
3
+ ## [0.1.5]
4
+ Add tests
5
+
3
6
  ## [0.1.5]
4
7
  Add rubocop, fix offences
5
8
 
@@ -1,18 +1,24 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- device_detector_regexes (0.1.4)
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
- require "bundler/gem_tasks"
1
+ # frozen_string_literal: true
2
2
 
3
- require "fileutils"
3
+ require 'bundler/gem_tasks'
4
+ require 'rake/testtask'
4
5
 
5
- task :map_into, [:target_dir] do |t, args|
6
- files = [
7
- ["client", "browser_engine.yml"],
8
- ["client", "browsers.yml"],
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
@@ -29,5 +29,7 @@ Gem::Specification.new do |spec|
29
29
  spec.require_paths = ['lib']
30
30
 
31
31
  spec.add_dependency 'device_detector'
32
+ spec.add_development_dependency 'minitest'
33
+ spec.add_development_dependency 'pry'
32
34
  spec.add_development_dependency 'rubocop'
33
35
  end
@@ -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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module DeviceDetectorRegexes
4
- VERSION = '0.1.5'
4
+ VERSION = '0.1.6'
5
5
  end
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.5
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-16 00:00:00.000000000 Z
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