user_agent_randomizer 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +0 -5
- data/README.md +18 -3
- data/lib/user_agent_randomizer/version.rb +1 -1
- data/spec/spec_helper.rb +9 -0
- data/user_agent_randomizer.gemspec +2 -0
- metadata +29 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 13e2aa3c79f26a0d8a62d82199fe74b9c5142946
|
4
|
+
data.tar.gz: ef7c620e62057a11659ada3cefe5af283de78ffb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 95e3aa9a4c3cb6a7b1d8588b4b7d027bed10e6105ac3ab9ec5e7c1cff3e1d6a4a69829a44b1cb28aaeb9c85f25ae41ac48685e1a8f6c2e1da5d1b427809d8efa
|
7
|
+
data.tar.gz: 6c79874ebd3c022b723c78ae916f31df557129599e6a294191913b62c233207079ccabf3de1a458adb9152765f260354bd7feaf8fd99b38f48c3265e70ca54bd
|
data/.travis.yml
CHANGED
data/README.md
CHANGED
@@ -1,8 +1,10 @@
|
|
1
1
|
# UserAgentRandomizer
|
2
2
|
|
3
|
-
[![
|
4
|
-
|
5
|
-
[![
|
3
|
+
[![Gem Version][GV img]][Gem Version]
|
4
|
+
[![Build Status][BS img]][Build Status]
|
5
|
+
[![Dependency Status][DS img]][Dependency Status]
|
6
|
+
[![Code Climate][CC img]][Code Climate]
|
7
|
+
[![Coverage Status][CS img]][Coverage Status]
|
6
8
|
|
7
9
|
There exist few use cases where random HTTP User-Agent strings are required. This is the reason why the `user_agent_randomizer` gem exists. Currently the gem provides roundabout 10.700 different User-Agent strings. You can choose a random HTTP User-Agent string from the entire pool as well as fetch a user agent by category.
|
8
10
|
|
@@ -61,3 +63,16 @@ UserAgent.new("desktop_browser")
|
|
61
63
|
5. Create a new Pull Request
|
62
64
|
|
63
65
|
Copyright © 2014 Christoph Pilka, released under the MIT license
|
66
|
+
|
67
|
+
[Gem Version]: https://rubygems.org/gems/user_agent_randomizer
|
68
|
+
[Build Status]: https://travis-ci.org/asconix/user_agent_randomizer
|
69
|
+
[travis pull requests]: https://travis-ci.org/asconix/user_agent_randomizer/pull_requests
|
70
|
+
[Dependency Status]: https://gemnasium.com/asconix/user_agent_randomizer
|
71
|
+
[Code Climate]: https://codeclimate.com/github/asconix/user_agent_randomizer
|
72
|
+
[Coverage Status]: https://coveralls.io/r/asconix/user_agent_randomizer
|
73
|
+
|
74
|
+
[GV img]: https://badge.fury.io/rb/user_agent_randomizer.png
|
75
|
+
[BS img]: https://travis-ci.org/asconix/user_agent_randomizer.png?branch=master
|
76
|
+
[DS img]: https://gemnasium.com/asconix/user_agent_randomizer.png
|
77
|
+
[CC img]: https://codeclimate.com/github/asconix/user_agent_randomizer.png
|
78
|
+
[CS img]: https://coveralls.io/repos/asconix/user_agent_randomizer/badge.png?branch=master
|
data/spec/spec_helper.rb
CHANGED
@@ -1 +1,10 @@
|
|
1
|
+
require 'simplecov'
|
2
|
+
require 'coveralls'
|
3
|
+
|
4
|
+
SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter[
|
5
|
+
SimpleCov::Formatter::HTMLFormatter,
|
6
|
+
Coveralls::SimpleCov::Formatter
|
7
|
+
]
|
8
|
+
SimpleCov.start
|
9
|
+
|
1
10
|
require File.expand_path('../../lib/user_agent', __FILE__)
|
@@ -23,4 +23,6 @@ Gem::Specification.new do |spec|
|
|
23
23
|
spec.add_development_dependency "rake", "~> 10.3"
|
24
24
|
spec.add_development_dependency "rspec", "~> 3.0"
|
25
25
|
spec.add_development_dependency "nokogiri", "~> 1.6"
|
26
|
+
spec.add_development_dependency "simplecov", "~> 0.8"
|
27
|
+
spec.add_development_dependency "coveralls", "~> 0.7"
|
26
28
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: user_agent_randomizer
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Christoph Pilka
|
@@ -66,6 +66,34 @@ dependencies:
|
|
66
66
|
- - "~>"
|
67
67
|
- !ruby/object:Gem::Version
|
68
68
|
version: '1.6'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: simplecov
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - "~>"
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '0.8'
|
76
|
+
type: :development
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - "~>"
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '0.8'
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: coveralls
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - "~>"
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '0.7'
|
90
|
+
type: :development
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - "~>"
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: '0.7'
|
69
97
|
description: In few cases random HTTP User-Agent strings are required that are generated
|
70
98
|
by this gem.
|
71
99
|
email:
|