user_agent_generator 0.0.1 → 0.0.2

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: f3635f2ec7a80f71eae104dfe2ffdcde8aff2c85
4
- data.tar.gz: c53f021f71e5900e117b6f8b17eaa157d632fbfd
3
+ metadata.gz: 5bc5921e3e932a0b124ee9c133884e78d49ef9ae
4
+ data.tar.gz: 90bf0adaa1f657c913d7642c2201427a15362e53
5
5
  SHA512:
6
- metadata.gz: b3b75726112f9b39b0d7d73f79f66a369efb458b4d4a3b4ef92d785fe50f76a7d67909de52f7eeb3d2ae93b706869071e7fc74d04db072955151e82077dce0bb
7
- data.tar.gz: c20a598a7bd8a956317609a2de112133d4dc0d048baf39233716cc51b37b8ba62ab8249c2afbc8e5bd30b4dc64efba822662382260b0db9d7afb7a02115677bb
6
+ metadata.gz: 65b6b8ab2752c79b2fa08ce6e3ed2c3a82392fb5bd07a46723aef44579fecd6acb7fd9332de406f3020ee89ea49f9b00330cef8777609603f126da21fb76de73
7
+ data.tar.gz: 4485c374ef21c316cd98e15888752eb7b0d97190156d517360b20ddca93868d7f2012f218442e3622d69fe784b91e1cbd9f26ad77d2f55c0c08a275ff9d6c84b
@@ -64,11 +64,11 @@ module UserAgentGenerator
64
64
  os_index = string.index('()') + 1
65
65
  if @options[:windows]
66
66
  string = string.insert(os_index, "Windows NT 6.1; WOW64; rv:#{version[0, 2]}.0")
67
- gecko_index = string.index('Gecko/') + 7
67
+ gecko_index = string.index('Gecko/') + 6
68
68
  string.insert(gecko_index, '20100101')
69
69
  elsif @options[:android]
70
70
  string = string.insert(os_index, "Android; Mobile; rv:#{version[0, 2]}.0")
71
- gecko_index = string.index('Gecko/') + 7
71
+ gecko_index = string.index('Gecko/') + 6
72
72
  string.insert(gecko_index, "#{version}")
73
73
  else
74
74
  string
data/readme.md CHANGED
@@ -21,21 +21,21 @@ E.g., /Path_to_folder/user_agent_generator
21
21
 
22
22
  Then, you can type ruby bin/user_agent_generator into the command line followed by several options
23
23
 
24
- -w --windows This will generate a string assuming a Windows, 64-bit OS
24
+ `-w --windows` This will generate a string assuming a Windows, 64-bit OS
25
25
 
26
- -a --android This will generate a string assuming an Android operating system
26
+ `-a --android` This will generate a string assuming an Android operating system
27
27
 
28
- -i --iOS This will generate a string assuming an iPad is being used
28
+ `-i --iOS` This will generate a string assuming an iPad is being used
29
29
 
30
- -c --chrome This will generate a string using Chrome
30
+ `-c --chrome` This will generate a string using Chrome
31
31
 
32
- -f --firefox This will generate a string using Firefox
32
+ `-f --firefox` This will generate a string using Firefox
33
33
 
34
- -s --safari This will generate a string using Safari
34
+ `-s --safari` This will generate a string using Safari
35
35
 
36
- -v --version This allows you to specify what version you are using
36
+ `-v --version` This allows you to specify what version you are using
37
37
 
38
- -h --help This will print out a help prompt
38
+ `-h --help` This will print out a help prompt
39
39
 
40
40
  Do not use more than one browser option, or more than one OS option.
41
41
  The Version option is necessary.
@@ -2,9 +2,9 @@ require 'rake'
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = 'user_agent_generator'
5
- s.version = '0.0.1'
5
+ s.version = '0.0.2'
6
6
  s.executables << 'user_agent_generator'
7
- s.date = '2015-12-01'
7
+ s.date = '2015-12-02'
8
8
  s.summary = "Creates User Agent strings"
9
9
  s.description = "A very basic user agent generator for use with the user agent overrider extenstion in firefox"
10
10
  s.authors = ["Korey Enright"]
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: user_agent_generator
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Korey Enright
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-12-01 00:00:00.000000000 Z
11
+ date: 2015-12-02 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: A very basic user agent generator for use with the user agent overrider
14
14
  extenstion in firefox