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.
@@ -23,7 +23,7 @@ def process_user_agent(ua_str)
23
23
  puts "Original User Agent:"
24
24
  puts " #{ua_str}"
25
25
  puts
26
- ua = AgentOrange::UserAgent.new(:user_agent => ua_str)
26
+ ua = AgentOrange::UserAgent.new(ua_str)
27
27
  puts "Parsed Object String:"
28
28
  puts " #{ua}"
29
29
  puts '='*120
@@ -9,10 +9,8 @@ module AgentOrange
9
9
  attr_accessor :user_language
10
10
  attr_accessor :device
11
11
 
12
- def initialize(options = {}, &block)
13
- self.parse(options[:user_agent].to_s)
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)
@@ -1,5 +1,5 @@
1
1
  module AgentOrange
2
- VERSION = "0.0.7" # This is for the gem and does not conflict with the rest of the functionality
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: 17
4
+ hash: 15
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 7
10
- version: 0.0.7
9
+ - 8
10
+ version: 0.0.8
11
11
  platform: ruby
12
12
  authors:
13
13
  - Kevin Elliott