device_detector 0.5.0 → 0.5.1

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5cebfa5ab895685c658cb212632694961983b77a
4
- data.tar.gz: 96f37aaa81a00446b3f74ce13dbc2983469c47a3
3
+ metadata.gz: 5f0bf4f5cd10e7dd06b4825842c96ab9ce0d5236
4
+ data.tar.gz: dd414ed24f7701367f5e5cf05b3502a7a9a82461
5
5
  SHA512:
6
- metadata.gz: 375d2e3f948dc4d94b03bf0a8222770da2c501af96eeebf772b59019d0f24398eca51656e7e7d47b7abb2beaf6186d96f403a273c62207a8204e4973bf758997
7
- data.tar.gz: 1b9ac09cf40a683eaf5f15c7a50098b88747f3208c0efbb0a550783bd634c25b6e85a3e4513ddef98d12cc0e6ced63bb446f7fdcbff0fdd805d93f0f67c1b123
6
+ metadata.gz: 4ffd8b88962d13e6f550cd279001cd9dafb06e40e791a23c85b6dc130155805612c4560db1b5eba45c357cb45d91e0ac9fde920060c29b8a1627af77ae602e5b
7
+ data.tar.gz: d16742dca52e42f7deed6714e9f71bcee501c2538423af8d54edb90da52f2a6104bc6291b631c6c1bc6a35ea1be7a8457e326ed31526ae9dac03f6a05eeeea3b
data/README.md CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  ![Podigee DeviceDetector Travisci Badge](https://travis-ci.org/podigee/device_detector.svg)
4
4
 
5
- User agent parser and device detector backed by the largest, most precise and up-to-date agent and device database.
5
+ DeviceDetector is a precise and fast user agent parser and device detector written in Ruby, backed by the largest and most up-to-date user agent database.
6
6
 
7
7
  DeviceDetector will parse any user agent and detect the browser, operating system, device used (desktop, tablet, mobile, tv, cars, console, etc.), brand and model.
8
8
 
@@ -46,9 +46,10 @@ client.os_name # => 'Windows'
46
46
  client.os_full_version # => '8'
47
47
 
48
48
  # For many devices, you can also query the device name (usually the model name)
49
- # Look into regexes/devices/mobiles.yml to see what devices can be detected
50
49
  client.device_name # => 'iPhone 5'
51
- client.device_type # => 'smartphone' # device types can be one of `smartphone`, `tablet`, `console`, `portable media player`, `tv`, `car browser` or `camera`
50
+ # Device types can be one of the following: smartphone, tablet, console,
51
+ # portable media player, tv, car browser, camera
52
+ client.device_type # => 'smartphone'
52
53
  ```
53
54
 
54
55
  `DeviceDetector` will return `nil` on all attributes, if the `user_agent` is unknown.
@@ -10,7 +10,7 @@ Gem::Specification.new do |spec|
10
10
  spec.email = ['yagooar@gmail.com']
11
11
  spec.summary = %q{Precise and fast user agent parser and device detector}
12
12
  spec.description = %q{Precise and fast user agent parser and device detector, backed by the largest and most up-to-date agent and device database}
13
- spec.homepage = 'https://github.com/podigee/device_detector'
13
+ spec.homepage = 'http://podigee.github.io/device_detector'
14
14
  spec.license = 'LGPLv3'
15
15
 
16
16
  spec.files = `git ls-files -z`.split("\x0")
@@ -18,6 +18,8 @@ Gem::Specification.new do |spec|
18
18
  spec.test_files = spec.files.grep(%r{^(spec)/})
19
19
  spec.require_paths = ['lib']
20
20
 
21
+ spec.required_ruby_version = '>= 1.9.3'
22
+
21
23
  spec.add_development_dependency 'rspec' ,'~> 3.1', '>= 3.1.0'
22
24
  spec.add_development_dependency 'pry', '~> 0.10'
23
25
  end
@@ -1,3 +1,3 @@
1
1
  class DeviceDetector
2
- VERSION = '0.5.0'
2
+ VERSION = '0.5.1'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: device_detector
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
4
+ version: 0.5.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mati Sójka
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2015-03-17 00:00:00.000000000 Z
12
+ date: 2015-03-19 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rspec
@@ -92,7 +92,7 @@ files:
92
92
  - spec/device_detector/version_extractor_spec.rb
93
93
  - spec/device_detector_spec.rb
94
94
  - spec/spec_helper.rb
95
- homepage: https://github.com/podigee/device_detector
95
+ homepage: http://podigee.github.io/device_detector
96
96
  licenses:
97
97
  - LGPLv3
98
98
  metadata: {}
@@ -104,7 +104,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
104
104
  requirements:
105
105
  - - ">="
106
106
  - !ruby/object:Gem::Version
107
- version: '0'
107
+ version: 1.9.3
108
108
  required_rubygems_version: !ruby/object:Gem::Requirement
109
109
  requirements:
110
110
  - - ">="