agent_orange 0.0.7 → 0.0.8
Sign up to get free protection for your applications and to get access to all the features.
- data/bin/agent_orange_example +1 -1
- data/lib/agent_orange/user_agent.rb +2 -4
- data/lib/agent_orange/version.rb +1 -1
- metadata +3 -3
data/bin/agent_orange_example
CHANGED
@@ -9,10 +9,8 @@ module AgentOrange
|
|
9
9
|
attr_accessor :user_language
|
10
10
|
attr_accessor :device
|
11
11
|
|
12
|
-
def initialize(
|
13
|
-
self.parse(
|
14
|
-
|
15
|
-
yield self if block_given?
|
12
|
+
def initialize(user_agent_string)
|
13
|
+
self.parse(user_agent_string)
|
16
14
|
end
|
17
15
|
|
18
16
|
def parse(user_agent)
|
data/lib/agent_orange/version.rb
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
module AgentOrange
|
2
|
-
VERSION = "0.0.
|
2
|
+
VERSION = "0.0.8" # This is for the gem and does not conflict with the rest of the functionality
|
3
3
|
|
4
4
|
class Version
|
5
5
|
attr_accessor :major, :minor, :patch_level, :build_number
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: agent_orange
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 15
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 0.0.
|
9
|
+
- 8
|
10
|
+
version: 0.0.8
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Kevin Elliott
|