useragents 0.1.3 → 0.1.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (5) hide show
  1. checksums.yaml +4 -4
  2. data/LICENSE +20 -0
  3. data/README.md +15 -1
  4. data/useragents.gemspec +3 -2
  5. metadata +4 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 08ab7dc53384c41466127321a08f8e2cbc860ae6
4
- data.tar.gz: 57e515b91ba47efb23d3893f6f5c72e1f47b2c14
3
+ metadata.gz: 40889d9e0aa4f92825ee4b8e627d68c01d13c7da
4
+ data.tar.gz: 8211f99b5d2411abb21849ba813133a55865b3d6
5
5
  SHA512:
6
- metadata.gz: 1ac40408c20ea6937fd095b2255b2288dc149f6ba3e4889c2de7bc02fcb6ee06d61e81d785b3e1a3f4055d86183650d320d1a9c352b07bb41489b66130bb5a7f
7
- data.tar.gz: 3cbb3297d08228fd5dde600b9a282c6bb9eaf099c60191b0689e834056c2f6342de624430bcbd1c2106da6a9c722fe0a3db73f98154358d72709f4e873853bc1
6
+ metadata.gz: 7f49fc4b69104c0aeb0040583ddede0b8e58a7de67036ca3ea228693518e50a8fa7f97eea7eca93e4bfe3887791db4d668f320e00a3788f722945fd433c95db9
7
+ data.tar.gz: 119d492e1d6717fd3cc0a7277ab3ecb8c670aa6223bf357b35e604fa2ec8555ef95561b125a36051f16f930021cdeb5eb356a7c27d16554070c23135b4952292
data/LICENSE ADDED
@@ -0,0 +1,20 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2013 debbbbie
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy of
6
+ this software and associated documentation files (the "Software"), to deal in
7
+ the Software without restriction, including without limitation the rights to
8
+ use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
9
+ the Software, and to permit persons to whom the Software is furnished to do so,
10
+ subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
17
+ FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
18
+ COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
19
+ IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
20
+ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/README.md CHANGED
@@ -1,6 +1,18 @@
1
1
  useragents-rb
2
2
  =============
3
3
  [![Build Status](https://travis-ci.org/debbbbie/useragents-rb.png?branch=master)](https://travis-ci.org/debbbbie/useragents-rb)
4
+
5
+ Usually, spiders must disguise themselves with plenty of User-Agents, for some
6
+ servers are smart. The gem `useragents` can give you that!
7
+
8
+ It has frequently-used browsers such as Chrome, Firefox, Internet Explorer, Safari,
9
+ Opera and so on, with frequently-used versions.
10
+
11
+ The usage is simple, just install the gem at first, then `require 'useragents`,
12
+ and at last, `UserAgents.rand()` works for you!
13
+
14
+ Enjoy it!
15
+
4
16
  ## Usage
5
17
 
6
18
  ``` sh
@@ -12,5 +24,7 @@ require 'useragents'
12
24
 
13
25
  # Generate a random useragent for you
14
26
  UserAgents.rand()
15
- # => "Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.8.1.7) Gecko/20070918 Firefox/2.0.0.7"
27
+ # => ""Mozilla/5.0 (Windows NT 6.2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/28.0.1464.0 Safari/537.36"
16
28
  ```
29
+
30
+ Copyright © 2013 debbbbie, released under the MIT license
data/useragents.gemspec CHANGED
@@ -1,15 +1,16 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = "useragents"
3
- s.version = "0.1.3"
3
+ s.version = "0.1.4"
4
4
 
5
5
  s.authors = "debbbbie"
6
6
  s.date = "2013-12-20"
7
7
  s.description = "Generate a random User-Agent for you"
8
8
  s.email = "debbbbie@163.com"
9
- s.files = ["useragents.gemspec", "lib/useragents.rb", "lib/core_ext/blank.rb", "lib/fetch.rb", "lib/useragents.dat", "spec/useragents_spec.rb", "README.md"]
9
+ s.files = ["useragents.gemspec", "lib/useragents.rb", "lib/core_ext/blank.rb", "lib/fetch.rb", "lib/useragents.dat", "spec/useragents_spec.rb", "README.md", "LICENSE"]
10
10
  s.homepage = "https://github.com/debbbbie/useragents-rb"
11
11
  s.require_paths = ["lib"]
12
12
  s.summary = "Generate a random User-Agent for you, use for spiders or anything."
13
+ s.license = 'MIT'
13
14
 
14
15
  s.add_development_dependency "rspec"
15
16
  #s.add_development_dependency "nokogiri"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: useragents
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - debbbbie
@@ -51,8 +51,10 @@ files:
51
51
  - lib/useragents.dat
52
52
  - spec/useragents_spec.rb
53
53
  - README.md
54
+ - LICENSE
54
55
  homepage: https://github.com/debbbbie/useragents-rb
55
- licenses: []
56
+ licenses:
57
+ - MIT
56
58
  metadata: {}
57
59
  post_install_message:
58
60
  rdoc_options: []