brauser 3.2.6 → 3.3.0
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 +4 -4
 - data/.gitignore +1 -0
 - data/.rubocop.yml +29 -0
 - data/.travis-gemfile +1 -1
 - data/.travis.yml +2 -1
 - data/Gemfile +3 -3
 - data/README.md +6 -6
 - data/brauser.gemspec +1 -1
 - data/doc/Brauser.html +7 -7
 - data/doc/Brauser/Browseable.html +127 -0
 - data/doc/Brauser/{BrowserMethods → Browseable}/Attributes.html +34 -30
 - data/doc/Brauser/Browseable/DefaultDefinitions.html +387 -0
 - data/doc/Brauser/{BrowserMethods → Browseable}/General.html +9 -9
 - data/doc/Brauser/{BrowserMethods → Browseable}/General/ClassMethods.html +33 -33
 - data/doc/Brauser/{BrowserMethods → Browseable}/Parsing.html +23 -23
 - data/doc/Brauser/{BrowserMethods → Browseable}/PartialQuerying.html +59 -53
 - data/doc/Brauser/{BrowserMethods → Browseable}/Querying.html +43 -37
 - data/doc/Brauser/{BrowserMethods → Browseable}/Register.html +9 -9
 - data/doc/Brauser/Browseable/Register/ClassMethods.html +516 -0
 - data/doc/Brauser/Browser.html +787 -1362
 - data/doc/Brauser/Definition.html +230 -40
 - data/doc/Brauser/Hooks.html +4 -4
 - data/doc/Brauser/Hooks/RubyOnRails.html +4 -4
 - data/doc/Brauser/Query.html +53 -53
 - data/doc/Brauser/{BrowserMethods.html → Queryable.html} +13 -11
 - data/doc/Brauser/{Chainers.html → Queryable/Chainers.html} +51 -45
 - data/doc/Brauser/{Queries.html → Queryable/Queries.html} +47 -41
 - data/doc/Brauser/Version.html +6 -6
 - data/doc/_index.html +41 -27
 - data/doc/class_list.html +1 -1
 - data/doc/css/style.css +1 -0
 - data/doc/file.README.html +10 -10
 - data/doc/frames.html +1 -1
 - data/doc/index.html +10 -10
 - data/doc/method_list.html +68 -74
 - data/doc/top-level-namespace.html +4 -4
 - data/lib/brauser.rb +14 -3
 - data/lib/brauser/browseable/attributes.rb +95 -0
 - data/lib/brauser/browseable/general.rb +104 -0
 - data/lib/brauser/browseable/parsing.rb +127 -0
 - data/lib/brauser/browseable/partial_querying.rb +116 -0
 - data/lib/brauser/browseable/querying.rb +63 -0
 - data/lib/brauser/browseable/register.rb +73 -0
 - data/lib/brauser/browser.rb +34 -741
 - data/lib/brauser/definition.rb +30 -5
 - data/lib/brauser/definitions/browsers.rb +66 -0
 - data/lib/brauser/definitions/languages.rb +130 -0
 - data/lib/brauser/definitions/platforms.rb +30 -0
 - data/lib/brauser/query.rb +4 -99
 - data/lib/brauser/queryable/chainers.rb +56 -0
 - data/lib/brauser/queryable/queries.rb +60 -0
 - data/lib/brauser/version.rb +3 -2
 - data/spec/brauser/browser_spec.rb +26 -29
 - data/spec/brauser/query_spec.rb +15 -13
 - metadata +30 -17
 - data/.bundle/install.log +0 -106
 - data/doc/Brauser/BrowserMethods/Register/ClassMethods.html +0 -770
 
| 
         @@ -0,0 +1,60 @@ 
     | 
|
| 
      
 1 
     | 
    
         
            +
            # encoding: utf-8
         
     | 
| 
      
 2 
     | 
    
         
            +
            #
         
     | 
| 
      
 3 
     | 
    
         
            +
            # This file is part of the brauser gem. Copyright (C) 2013 and above Shogun <shogun@cowtech.it>.
         
     | 
| 
      
 4 
     | 
    
         
            +
            # Licensed under the MIT license, which can be found at http://www.opensource.org/licenses/mit-license.php.
         
     | 
| 
      
 5 
     | 
    
         
            +
            #
         
     | 
| 
      
 6 
     | 
    
         
            +
             
     | 
| 
      
 7 
     | 
    
         
            +
            module Brauser
         
     | 
| 
      
 8 
     | 
    
         
            +
              # The interface of brauser queries.
         
     | 
| 
      
 9 
     | 
    
         
            +
              module Queryable
         
     | 
| 
      
 10 
     | 
    
         
            +
                # Methods to make queries.
         
     | 
| 
      
 11 
     | 
    
         
            +
                module Queries
         
     | 
| 
      
 12 
     | 
    
         
            +
                  # Checks if the browser is a specific name and optionally of a specific version and platform.
         
     | 
| 
      
 13 
     | 
    
         
            +
                  #
         
     | 
| 
      
 14 
     | 
    
         
            +
                  # This version returns a boolean and it is equal to append a call to `#result` to the method `#is`.
         
     | 
| 
      
 15 
     | 
    
         
            +
                  #
         
     | 
| 
      
 16 
     | 
    
         
            +
                  # @see #v?
         
     | 
| 
      
 17 
     | 
    
         
            +
                  # @see #on?
         
     | 
| 
      
 18 
     | 
    
         
            +
                  #
         
     | 
| 
      
 19 
     | 
    
         
            +
                  # @param names [Symbol|Array] A list of specific names to match. Also, this meta-names are supported: `:capable` and `:tablet`.
         
     | 
| 
      
 20 
     | 
    
         
            +
                  # @param versions [Hash] An hash with specific version to match against. Need to be in any form that `#v` understands.
         
     | 
| 
      
 21 
     | 
    
         
            +
                  # @param platforms [Symbol|Array] A list of specific platform to match. Valid values are all those possible for the platform attribute.
         
     | 
| 
      
 22 
     | 
    
         
            +
                  # @return [Boolean] `true` if current browser matches, `false` otherwise.
         
     | 
| 
      
 23 
     | 
    
         
            +
                  def is?(names = [], versions = {}, platforms = [])
         
     | 
| 
      
 24 
     | 
    
         
            +
                    @result ? @target.is?(names, versions, platforms) : @result
         
     | 
| 
      
 25 
     | 
    
         
            +
                  end
         
     | 
| 
      
 26 
     | 
    
         
            +
             
     | 
| 
      
 27 
     | 
    
         
            +
                  # Checks if the browser is a specific version.
         
     | 
| 
      
 28 
     | 
    
         
            +
                  #
         
     | 
| 
      
 29 
     | 
    
         
            +
                  # This version returns a boolean and it is equal to append a call to `#result` to the method `#v`.
         
     | 
| 
      
 30 
     | 
    
         
            +
                  #
         
     | 
| 
      
 31 
     | 
    
         
            +
                  # @param versions [String|Hash] A string in the form `operator version && ...` (example: `>= 7 && < 4`) or an hash with specific version to match against,
         
     | 
| 
      
 32 
     | 
    
         
            +
                  #   in form `{:operator => version}`, where operator is one of `:lt, :lte, :eq, :gt, :gte`.
         
     | 
| 
      
 33 
     | 
    
         
            +
                  # @return [Boolean] `true` if current browser matches, `false` otherwise.
         
     | 
| 
      
 34 
     | 
    
         
            +
                  def version?(versions = {})
         
     | 
| 
      
 35 
     | 
    
         
            +
                    @result ? @target.version?(versions) : @result
         
     | 
| 
      
 36 
     | 
    
         
            +
                  end
         
     | 
| 
      
 37 
     | 
    
         
            +
                  alias_method :v?, :version?
         
     | 
| 
      
 38 
     | 
    
         
            +
             
     | 
| 
      
 39 
     | 
    
         
            +
                  # Check if the browser is on a specific platform.
         
     | 
| 
      
 40 
     | 
    
         
            +
                  #
         
     | 
| 
      
 41 
     | 
    
         
            +
                  # This version returns a boolean and it is equal to append a call to `#result` to the method `#on.
         
     | 
| 
      
 42 
     | 
    
         
            +
                  #
         
     | 
| 
      
 43 
     | 
    
         
            +
                  # @param platforms [Symbol|Array] A list of specific platform to match.
         
     | 
| 
      
 44 
     | 
    
         
            +
                  # @return [Boolean] `true` if current browser matches, `false` otherwise.
         
     | 
| 
      
 45 
     | 
    
         
            +
                  def on?(platforms = [])
         
     | 
| 
      
 46 
     | 
    
         
            +
                    @result ? @target.on?(platforms) : @result
         
     | 
| 
      
 47 
     | 
    
         
            +
                  end
         
     | 
| 
      
 48 
     | 
    
         
            +
             
     | 
| 
      
 49 
     | 
    
         
            +
                  # Check if the browser accepts the specified languages.
         
     | 
| 
      
 50 
     | 
    
         
            +
                  #
         
     | 
| 
      
 51 
     | 
    
         
            +
                  # This version returns a boolean and it is equal to append a call to `#result` to the method `#accepts.
         
     | 
| 
      
 52 
     | 
    
         
            +
                  #
         
     | 
| 
      
 53 
     | 
    
         
            +
                  # @param langs [String|Array] A list of languages to match against.
         
     | 
| 
      
 54 
     | 
    
         
            +
                  # @return [Boolean] `true` if current browser matches, `false` otherwise.
         
     | 
| 
      
 55 
     | 
    
         
            +
                  def accepts?(langs = [])
         
     | 
| 
      
 56 
     | 
    
         
            +
                    @result ? @target.accepts?(langs) : @result
         
     | 
| 
      
 57 
     | 
    
         
            +
                  end
         
     | 
| 
      
 58 
     | 
    
         
            +
                end
         
     | 
| 
      
 59 
     | 
    
         
            +
              end
         
     | 
| 
      
 60 
     | 
    
         
            +
            end
         
     | 
    
        data/lib/brauser/version.rb
    CHANGED
    
    | 
         @@ -4,6 +4,7 @@ 
     | 
|
| 
       4 
4 
     | 
    
         
             
            # Licensed under the MIT license, which can be found at http://www.opensource.org/licenses/mit-license.php.
         
     | 
| 
       5 
5 
     | 
    
         
             
            #
         
     | 
| 
       6 
6 
     | 
    
         | 
| 
      
 7 
     | 
    
         
            +
            # A framework agnostic browser detection and querying helper.
         
     | 
| 
       7 
8 
     | 
    
         
             
            module Brauser
         
     | 
| 
       8 
9 
     | 
    
         
             
              # The current version of brauser, according to semantic versioning.
         
     | 
| 
       9 
10 
     | 
    
         
             
              #
         
     | 
| 
         @@ -13,10 +14,10 @@ module Brauser 
     | 
|
| 
       13 
14 
     | 
    
         
             
                MAJOR = 3
         
     | 
| 
       14 
15 
     | 
    
         | 
| 
       15 
16 
     | 
    
         
             
                # The minor version.
         
     | 
| 
       16 
     | 
    
         
            -
                MINOR =  
     | 
| 
      
 17 
     | 
    
         
            +
                MINOR = 3
         
     | 
| 
       17 
18 
     | 
    
         | 
| 
       18 
19 
     | 
    
         
             
                # The patch version.
         
     | 
| 
       19 
     | 
    
         
            -
                PATCH =  
     | 
| 
      
 20 
     | 
    
         
            +
                PATCH = 0
         
     | 
| 
       20 
21 
     | 
    
         | 
| 
       21 
22 
     | 
    
         
             
                # The current version of brauser.
         
     | 
| 
       22 
23 
     | 
    
         
             
                STRING = [MAJOR, MINOR, PATCH].compact.join(".")
         
     | 
| 
         @@ -35,8 +35,8 @@ describe Brauser::Browser do 
     | 
|
| 
       35 
35 
     | 
    
         
             
              end
         
     | 
| 
       36 
36 
     | 
    
         | 
| 
       37 
37 
     | 
    
         
             
              describe ".add_default_browsers" do
         
     | 
| 
       38 
     | 
    
         
            -
                it "should call .add 
     | 
| 
       39 
     | 
    
         
            -
                  expect(::Brauser::Browser).to receive(:add).with(:browsers, an_instance_of(Array)). 
     | 
| 
      
 38 
     | 
    
         
            +
                it "should call .add" do
         
     | 
| 
      
 39 
     | 
    
         
            +
                  expect(::Brauser::Browser).to receive(:add).with(:browsers, an_instance_of(Array)).and_call_original
         
     | 
| 
       40 
40 
     | 
    
         
             
                  ::Brauser::Browser.add_default_browsers
         
     | 
| 
       41 
41 
     | 
    
         
             
                end
         
     | 
| 
       42 
42 
     | 
    
         | 
| 
         @@ -388,7 +388,7 @@ describe Brauser::Browser do 
     | 
|
| 
       388 
388 
     | 
    
         
             
                  browser.version = "9.0"
         
     | 
| 
       389 
389 
     | 
    
         
             
                  expect(browser.is(:capable).result).to be_true
         
     | 
| 
       390 
390 
     | 
    
         | 
| 
       391 
     | 
    
         
            -
                  expect(browser).to receive(: 
     | 
| 
      
 391 
     | 
    
         
            +
                  expect(browser).to receive(:version?).exactly(2).and_call_original
         
     | 
| 
       392 
392 
     | 
    
         
             
                  expect(browser).to receive(:on?).and_call_original
         
     | 
| 
       393 
393 
     | 
    
         
             
                  expect(browser.is(:capable, {gte: 8}).result).to be_true
         
     | 
| 
       394 
394 
     | 
    
         
             
                  browser.platform = :windows
         
     | 
| 
         @@ -408,24 +408,28 @@ describe Brauser::Browser do 
     | 
|
| 
       408 
408 
     | 
    
         
             
                end
         
     | 
| 
       409 
409 
     | 
    
         
             
              end
         
     | 
| 
       410 
410 
     | 
    
         | 
| 
       411 
     | 
    
         
            -
              describe "# 
     | 
| 
      
 411 
     | 
    
         
            +
              describe "#version" do
         
     | 
| 
       412 
412 
     | 
    
         
             
                it "should at first call #parse_agent" do
         
     | 
| 
       413 
413 
     | 
    
         
             
                  browser.version = nil
         
     | 
| 
       414 
414 
     | 
    
         
             
                  expect(browser).to receive(:parse_agent)
         
     | 
| 
       415 
415 
     | 
    
         
             
                  browser.v
         
     | 
| 
       416 
416 
     | 
    
         
             
                end
         
     | 
| 
       417 
417 
     | 
    
         | 
| 
      
 418 
     | 
    
         
            +
                it "should return the version if called without arguments" do
         
     | 
| 
      
 419 
     | 
    
         
            +
                  browser.version = "3.4.5"
         
     | 
| 
      
 420 
     | 
    
         
            +
                  expect(browser.version).to eq("3.4.5")
         
     | 
| 
      
 421 
     | 
    
         
            +
                end
         
     | 
| 
      
 422 
     | 
    
         
            +
             
     | 
| 
       418 
423 
     | 
    
         
             
                it "should compare browser versions" do
         
     | 
| 
       419 
424 
     | 
    
         
             
                  browser.version = "3.4.5"
         
     | 
| 
       420 
425 
     | 
    
         | 
| 
       421 
     | 
    
         
            -
                  expect(browser. 
     | 
| 
       422 
     | 
    
         
            -
                  expect(browser. 
     | 
| 
       423 
     | 
    
         
            -
                  expect(browser. 
     | 
| 
       424 
     | 
    
         
            -
                  expect(browser. 
     | 
| 
       425 
     | 
    
         
            -
                  expect(browser. 
     | 
| 
       426 
     | 
    
         
            -
                  expect(browser. 
     | 
| 
       427 
     | 
    
         
            -
                  expect(browser. 
     | 
| 
       428 
     | 
    
         
            -
                  expect(browser.v(foo: "3").result).to be_false
         
     | 
| 
      
 426 
     | 
    
         
            +
                  expect(browser.version(lt: 7).result).to be_true
         
     | 
| 
      
 427 
     | 
    
         
            +
                  expect(browser.version(lte: 3).result).to be_false
         
     | 
| 
      
 428 
     | 
    
         
            +
                  expect(browser.version(eq: 3).result).to be_false
         
     | 
| 
      
 429 
     | 
    
         
            +
                  expect(browser.version(gte: 3).result).to be_true
         
     | 
| 
      
 430 
     | 
    
         
            +
                  expect(browser.version(gt: 4).result).to be_false
         
     | 
| 
      
 431 
     | 
    
         
            +
                  expect(browser.version(gt: 3.5).result).to be_false
         
     | 
| 
      
 432 
     | 
    
         
            +
                  expect(browser.version(foo: "3").result).to be_false
         
     | 
| 
       429 
433 
     | 
    
         
             
                  expect(browser.v(">= 3.5").result).to be_false
         
     | 
| 
       430 
434 
     | 
    
         
             
                  expect(browser.v("< 7 && > 3").result).to be_true
         
     | 
| 
       431 
435 
     | 
    
         
             
                  expect(browser.v("< 7 && > 3 && FOO NO").result).to be_true
         
     | 
| 
         @@ -434,10 +438,10 @@ describe Brauser::Browser do 
     | 
|
| 
       434 
438 
     | 
    
         
             
                end
         
     | 
| 
       435 
439 
     | 
    
         
             
              end
         
     | 
| 
       436 
440 
     | 
    
         | 
| 
       437 
     | 
    
         
            -
              describe "# 
     | 
| 
      
 441 
     | 
    
         
            +
              describe "#version?" do
         
     | 
| 
       438 
442 
     | 
    
         
             
                it "should call the query and then fetch the result" do
         
     | 
| 
       439 
443 
     | 
    
         
             
                  browser.version = "7.0"
         
     | 
| 
       440 
     | 
    
         
            -
                  expect(browser. 
     | 
| 
      
 444 
     | 
    
         
            +
                  expect(browser.version?(">= 8")).to be_false
         
     | 
| 
       441 
445 
     | 
    
         
             
                  expect(browser.v?(">= 7")).to be_true
         
     | 
| 
       442 
446 
     | 
    
         
             
                end
         
     | 
| 
       443 
447 
     | 
    
         
             
              end
         
     | 
| 
         @@ -547,14 +551,14 @@ describe Brauser::Browser do 
     | 
|
| 
       547 
551 
     | 
    
         | 
| 
       548 
552 
     | 
    
         
             
                it "calling the right method" do
         
     | 
| 
       549 
553 
     | 
    
         
             
                  expect(browser).to receive(:is?).with("opera_mobile", {}, []).and_call_original
         
     | 
| 
       550 
     | 
    
         
            -
                  expect(browser).to receive(: 
     | 
| 
      
 554 
     | 
    
         
            +
                  expect(browser).to receive(:version?).with("< 3").and_call_original
         
     | 
| 
       551 
555 
     | 
    
         
             
                  expect(browser).to receive(:on?).with("windows").and_call_original
         
     | 
| 
       552 
556 
     | 
    
         | 
| 
       553 
557 
     | 
    
         
             
                  expect(browser.is_opera_mobile_v_lt_3_on_windows?).to be_true
         
     | 
| 
       554 
558 
     | 
    
         
             
                end
         
     | 
| 
       555 
559 
     | 
    
         | 
| 
       556 
560 
     | 
    
         
             
                it "returning as query" do
         
     | 
| 
       557 
     | 
    
         
            -
                  expect(browser. 
     | 
| 
      
 561 
     | 
    
         
            +
                  expect(browser.is_opera_mobile_version_lt_3_on_windows).to be_a(::Brauser::Query)
         
     | 
| 
       558 
562 
     | 
    
         
             
                end
         
     | 
| 
       559 
563 
     | 
    
         | 
| 
       560 
564 
     | 
    
         
             
                it "returning as boolean" do
         
     | 
| 
         @@ -564,22 +568,22 @@ describe Brauser::Browser do 
     | 
|
| 
       564 
568 
     | 
    
         
             
                it "correctly analyzing version" do
         
     | 
| 
       565 
569 
     | 
    
         
             
                  expect(browser).to receive(:is?).with("opera_mobile", {}, []).at_least(1).and_call_original
         
     | 
| 
       566 
570 
     | 
    
         | 
| 
       567 
     | 
    
         
            -
                  expect(browser).to receive(: 
     | 
| 
      
 571 
     | 
    
         
            +
                  expect(browser).to receive(:version?).with("<= 3").and_call_original
         
     | 
| 
       568 
572 
     | 
    
         
             
                  expect(browser.is_opera_mobile_v_lte_3).to be_true
         
     | 
| 
       569 
573 
     | 
    
         | 
| 
       570 
     | 
    
         
            -
                  expect(browser).to receive(: 
     | 
| 
      
 574 
     | 
    
         
            +
                  expect(browser).to receive(:version?).with("< 3 && >= 3").and_call_original
         
     | 
| 
       571 
575 
     | 
    
         
             
                  expect(browser.is_opera_mobile_v_lt_3_and_gte_3?).to be_false
         
     | 
| 
       572 
576 
     | 
    
         | 
| 
       573 
     | 
    
         
            -
                  expect(browser).to receive(: 
     | 
| 
      
 577 
     | 
    
         
            +
                  expect(browser).to receive(:version?).with("&& >= 3").and_call_original
         
     | 
| 
       574 
578 
     | 
    
         
             
                  expect(browser.is_opera_mobile_v_and_gte_3?).to be_false
         
     | 
| 
       575 
579 
     | 
    
         | 
| 
       576 
     | 
    
         
            -
                  expect(browser).to receive(: 
     | 
| 
      
 580 
     | 
    
         
            +
                  expect(browser).to receive(:version?).with("< 3 &&").and_call_original
         
     | 
| 
       577 
581 
     | 
    
         
             
                  expect(browser.is_opera_mobile_v_lt_3_and?).to be_true
         
     | 
| 
       578 
582 
     | 
    
         | 
| 
       579 
     | 
    
         
            -
                  expect(browser).to receive(: 
     | 
| 
      
 583 
     | 
    
         
            +
                  expect(browser).to receive(:version?).with("> 2").and_return(true)
         
     | 
| 
       580 
584 
     | 
    
         
             
                  expect(browser.is_opera_mobile_v_gt_2?).to be_true
         
     | 
| 
       581 
585 
     | 
    
         | 
| 
       582 
     | 
    
         
            -
                  expect(browser).to receive(: 
     | 
| 
      
 586 
     | 
    
         
            +
                  expect(browser).to receive(:version?).with("== 3.4.5alpha").and_return(false)
         
     | 
| 
       583 
587 
     | 
    
         
             
                  expect(browser.is_opera_mobile_v_eq_3_4_5alpha_is_3?).to be_false
         
     | 
| 
       584 
588 
     | 
    
         
             
                end
         
     | 
| 
       585 
589 
     | 
    
         | 
| 
         @@ -597,11 +601,4 @@ describe Brauser::Browser do 
     | 
|
| 
       597 
601 
     | 
    
         
             
                  expect{ browser.is_opera_mobile_v_lt_3_ona_windows? }.to raise_error(NoMethodError)
         
     | 
| 
       598 
602 
     | 
    
         
             
                end
         
     | 
| 
       599 
603 
     | 
    
         
             
              end
         
     | 
| 
       600 
     | 
    
         
            -
             
     | 
| 
       601 
     | 
    
         
            -
              describe "#to_s" do
         
     | 
| 
       602 
     | 
    
         
            -
                it "should forward to #classes" do
         
     | 
| 
       603 
     | 
    
         
            -
                  expect(browser).to receive(:classes)
         
     | 
| 
       604 
     | 
    
         
            -
                  browser.to_s
         
     | 
| 
       605 
     | 
    
         
            -
                end
         
     | 
| 
       606 
     | 
    
         
            -
              end
         
     | 
| 
       607 
604 
     | 
    
         
             
            end
         
     | 
    
        data/spec/brauser/query_spec.rb
    CHANGED
    
    | 
         @@ -24,17 +24,19 @@ describe Brauser::Query do 
     | 
|
| 
       24 
24 
     | 
    
         
             
                end
         
     | 
| 
       25 
25 
     | 
    
         
             
              end
         
     | 
| 
       26 
26 
     | 
    
         | 
| 
       27 
     | 
    
         
            -
              describe "# 
     | 
| 
      
 27 
     | 
    
         
            +
              describe "#version" do
         
     | 
| 
       28 
28 
     | 
    
         
             
                it "should call the final corresponding method and then return self" do
         
     | 
| 
       29 
     | 
    
         
            -
                  expect(query).to receive(: 
     | 
| 
       30 
     | 
    
         
            -
                  expect(query. 
     | 
| 
      
 29 
     | 
    
         
            +
                  expect(query).to receive(:version?).and_call_original
         
     | 
| 
      
 30 
     | 
    
         
            +
                  expect(query.version(">= 9")).to be(query)
         
     | 
| 
       31 
31 
     | 
    
         
             
                end
         
     | 
| 
       32 
32 
     | 
    
         
             
              end
         
     | 
| 
       33 
33 
     | 
    
         | 
| 
       34 
     | 
    
         
            -
              describe "# 
     | 
| 
      
 34 
     | 
    
         
            +
              describe "#version?" do
         
     | 
| 
       35 
35 
     | 
    
         
             
                it "should call the browser's corresponding method and update the result" do
         
     | 
| 
       36 
     | 
    
         
            -
                  expect(browser).to receive(: 
     | 
| 
       37 
     | 
    
         
            -
                  expect( 
     | 
| 
      
 36 
     | 
    
         
            +
                  expect(browser).to receive(:version?).with(">= 9").and_call_original
         
     | 
| 
      
 37 
     | 
    
         
            +
                  expect(browser).to receive(:version?).with(">= 10").and_call_original
         
     | 
| 
      
 38 
     | 
    
         
            +
                  expect(query.version?(">= 9")).to be_true
         
     | 
| 
      
 39 
     | 
    
         
            +
                  expect(query.v?(">= 10")).to be_true
         
     | 
| 
       38 
40 
     | 
    
         
             
                end
         
     | 
| 
       39 
41 
     | 
    
         
             
              end
         
     | 
| 
       40 
42 
     | 
    
         | 
| 
         @@ -76,31 +78,31 @@ describe Brauser::Query do 
     | 
|
| 
       76 
78 
     | 
    
         | 
| 
       77 
79 
     | 
    
         
             
                it "should call requested methods on the browser and return a query" do
         
     | 
| 
       78 
80 
     | 
    
         
             
                  expect(browser).to receive(:is).and_call_original
         
     | 
| 
       79 
     | 
    
         
            -
                  expect(browser).to receive(: 
     | 
| 
      
 81 
     | 
    
         
            +
                  expect(browser).to receive(:version?).and_call_original
         
     | 
| 
       80 
82 
     | 
    
         
             
                  expect(browser).to receive(:on?).and_call_original
         
     | 
| 
       81 
83 
     | 
    
         | 
| 
       82 
     | 
    
         
            -
                  expect(browser.is(:chrome). 
     | 
| 
      
 84 
     | 
    
         
            +
                  expect(browser.is(:chrome).version(">= 7").on(:osx)).to be_a(::Brauser::Query)
         
     | 
| 
       83 
85 
     | 
    
         
             
                end
         
     | 
| 
       84 
86 
     | 
    
         | 
| 
       85 
87 
     | 
    
         
             
                it "should call methods while result is true" do
         
     | 
| 
       86 
88 
     | 
    
         
             
                  expect(browser).to receive(:is).and_call_original
         
     | 
| 
       87 
     | 
    
         
            -
                  expect(browser).to receive(: 
     | 
| 
      
 89 
     | 
    
         
            +
                  expect(browser).to receive(:version?).and_call_original
         
     | 
| 
       88 
90 
     | 
    
         
             
                  expect(browser).not_to receive(:on?)
         
     | 
| 
       89 
91 
     | 
    
         | 
| 
       90 
     | 
    
         
            -
                  expect(browser.is(:chrome). 
     | 
| 
      
 92 
     | 
    
         
            +
                  expect(browser.is(:chrome).version(">= 9").on(:osx)).to be_a(::Brauser::Query)
         
     | 
| 
       91 
93 
     | 
    
         
             
                end
         
     | 
| 
       92 
94 
     | 
    
         | 
| 
       93 
95 
     | 
    
         
             
                it "when the last method is the question mark, it should return the evaluation to boolean" do
         
     | 
| 
       94 
96 
     | 
    
         
             
                  expect(browser).to receive(:is).and_call_original
         
     | 
| 
       95 
     | 
    
         
            -
                  expect(browser).to receive(: 
     | 
| 
      
 97 
     | 
    
         
            +
                  expect(browser).to receive(:version?).and_call_original
         
     | 
| 
       96 
98 
     | 
    
         
             
                  expect(browser).to receive(:on?).and_call_original
         
     | 
| 
       97 
99 
     | 
    
         | 
| 
       98 
     | 
    
         
            -
                  expect(browser.is(:chrome). 
     | 
| 
      
 100 
     | 
    
         
            +
                  expect(browser.is(:chrome).version(">= 7").on?(:osx)).to be_false
         
     | 
| 
       99 
101 
     | 
    
         
             
                end
         
     | 
| 
       100 
102 
     | 
    
         | 
| 
       101 
103 
     | 
    
         
             
                it "should return the result when ending the query with #result" do
         
     | 
| 
       102 
104 
     | 
    
         
             
                  expect(browser).to receive(:is).and_call_original
         
     | 
| 
       103 
     | 
    
         
            -
                  expect(browser).to receive(: 
     | 
| 
      
 105 
     | 
    
         
            +
                  expect(browser).to receive(:version?).and_call_original
         
     | 
| 
       104 
106 
     | 
    
         
             
                  expect(browser).not_to receive(:on?)
         
     | 
| 
       105 
107 
     | 
    
         | 
| 
       106 
108 
     | 
    
         
             
                  expect(browser.is(:chrome).v(">= 9").on(:osx).result).to be_false
         
     | 
    
        metadata
    CHANGED
    
    | 
         @@ -1,14 +1,14 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            --- !ruby/object:Gem::Specification
         
     | 
| 
       2 
2 
     | 
    
         
             
            name: brauser
         
     | 
| 
       3 
3 
     | 
    
         
             
            version: !ruby/object:Gem::Version
         
     | 
| 
       4 
     | 
    
         
            -
              version: 3. 
     | 
| 
      
 4 
     | 
    
         
            +
              version: 3.3.0
         
     | 
| 
       5 
5 
     | 
    
         
             
            platform: ruby
         
     | 
| 
       6 
6 
     | 
    
         
             
            authors:
         
     | 
| 
       7 
7 
     | 
    
         
             
            - Shogun
         
     | 
| 
       8 
8 
     | 
    
         
             
            autorequire: 
         
     | 
| 
       9 
9 
     | 
    
         
             
            bindir: bin
         
     | 
| 
       10 
10 
     | 
    
         
             
            cert_chain: []
         
     | 
| 
       11 
     | 
    
         
            -
            date: 2014- 
     | 
| 
      
 11 
     | 
    
         
            +
            date: 2014-05-10 00:00:00.000000000 Z
         
     | 
| 
       12 
12 
     | 
    
         
             
            dependencies:
         
     | 
| 
       13 
13 
     | 
    
         
             
            - !ruby/object:Gem::Dependency
         
     | 
| 
       14 
14 
     | 
    
         
             
              name: lazier
         
     | 
| 
         @@ -16,14 +16,14 @@ dependencies: 
     | 
|
| 
       16 
16 
     | 
    
         
             
                requirements:
         
     | 
| 
       17 
17 
     | 
    
         
             
                - - "~>"
         
     | 
| 
       18 
18 
     | 
    
         
             
                  - !ruby/object:Gem::Version
         
     | 
| 
       19 
     | 
    
         
            -
                    version: 3.5. 
     | 
| 
      
 19 
     | 
    
         
            +
                    version: 3.5.3
         
     | 
| 
       20 
20 
     | 
    
         
             
              type: :runtime
         
     | 
| 
       21 
21 
     | 
    
         
             
              prerelease: false
         
     | 
| 
       22 
22 
     | 
    
         
             
              version_requirements: !ruby/object:Gem::Requirement
         
     | 
| 
       23 
23 
     | 
    
         
             
                requirements:
         
     | 
| 
       24 
24 
     | 
    
         
             
                - - "~>"
         
     | 
| 
       25 
25 
     | 
    
         
             
                  - !ruby/object:Gem::Version
         
     | 
| 
       26 
     | 
    
         
            -
                    version: 3.5. 
     | 
| 
      
 26 
     | 
    
         
            +
                    version: 3.5.3
         
     | 
| 
       27 
27 
     | 
    
         
             
            description: A framework agnostic browser detection and querying helper.
         
     | 
| 
       28 
28 
     | 
    
         
             
            email:
         
     | 
| 
       29 
29 
     | 
    
         
             
            - shogun@cowtech.it
         
     | 
| 
         @@ -31,8 +31,8 @@ executables: [] 
     | 
|
| 
       31 
31 
     | 
    
         
             
            extensions: []
         
     | 
| 
       32 
32 
     | 
    
         
             
            extra_rdoc_files: []
         
     | 
| 
       33 
33 
     | 
    
         
             
            files:
         
     | 
| 
       34 
     | 
    
         
            -
            - ".bundle/install.log"
         
     | 
| 
       35 
34 
     | 
    
         
             
            - ".gitignore"
         
     | 
| 
      
 35 
     | 
    
         
            +
            - ".rubocop.yml"
         
     | 
| 
       36 
36 
     | 
    
         
             
            - ".travis-gemfile"
         
     | 
| 
       37 
37 
     | 
    
         
             
            - ".travis.yml"
         
     | 
| 
       38 
38 
     | 
    
         
             
            - ".yardopts"
         
     | 
| 
         @@ -42,22 +42,24 @@ files: 
     | 
|
| 
       42 
42 
     | 
    
         
             
            - Rakefile
         
     | 
| 
       43 
43 
     | 
    
         
             
            - brauser.gemspec
         
     | 
| 
       44 
44 
     | 
    
         
             
            - doc/Brauser.html
         
     | 
| 
      
 45 
     | 
    
         
            +
            - doc/Brauser/Browseable.html
         
     | 
| 
      
 46 
     | 
    
         
            +
            - doc/Brauser/Browseable/Attributes.html
         
     | 
| 
      
 47 
     | 
    
         
            +
            - doc/Brauser/Browseable/DefaultDefinitions.html
         
     | 
| 
      
 48 
     | 
    
         
            +
            - doc/Brauser/Browseable/General.html
         
     | 
| 
      
 49 
     | 
    
         
            +
            - doc/Brauser/Browseable/General/ClassMethods.html
         
     | 
| 
      
 50 
     | 
    
         
            +
            - doc/Brauser/Browseable/Parsing.html
         
     | 
| 
      
 51 
     | 
    
         
            +
            - doc/Brauser/Browseable/PartialQuerying.html
         
     | 
| 
      
 52 
     | 
    
         
            +
            - doc/Brauser/Browseable/Querying.html
         
     | 
| 
      
 53 
     | 
    
         
            +
            - doc/Brauser/Browseable/Register.html
         
     | 
| 
      
 54 
     | 
    
         
            +
            - doc/Brauser/Browseable/Register/ClassMethods.html
         
     | 
| 
       45 
55 
     | 
    
         
             
            - doc/Brauser/Browser.html
         
     | 
| 
       46 
     | 
    
         
            -
            - doc/Brauser/BrowserMethods.html
         
     | 
| 
       47 
     | 
    
         
            -
            - doc/Brauser/BrowserMethods/Attributes.html
         
     | 
| 
       48 
     | 
    
         
            -
            - doc/Brauser/BrowserMethods/General.html
         
     | 
| 
       49 
     | 
    
         
            -
            - doc/Brauser/BrowserMethods/General/ClassMethods.html
         
     | 
| 
       50 
     | 
    
         
            -
            - doc/Brauser/BrowserMethods/Parsing.html
         
     | 
| 
       51 
     | 
    
         
            -
            - doc/Brauser/BrowserMethods/PartialQuerying.html
         
     | 
| 
       52 
     | 
    
         
            -
            - doc/Brauser/BrowserMethods/Querying.html
         
     | 
| 
       53 
     | 
    
         
            -
            - doc/Brauser/BrowserMethods/Register.html
         
     | 
| 
       54 
     | 
    
         
            -
            - doc/Brauser/BrowserMethods/Register/ClassMethods.html
         
     | 
| 
       55 
     | 
    
         
            -
            - doc/Brauser/Chainers.html
         
     | 
| 
       56 
56 
     | 
    
         
             
            - doc/Brauser/Definition.html
         
     | 
| 
       57 
57 
     | 
    
         
             
            - doc/Brauser/Hooks.html
         
     | 
| 
       58 
58 
     | 
    
         
             
            - doc/Brauser/Hooks/RubyOnRails.html
         
     | 
| 
       59 
     | 
    
         
            -
            - doc/Brauser/Queries.html
         
     | 
| 
       60 
59 
     | 
    
         
             
            - doc/Brauser/Query.html
         
     | 
| 
      
 60 
     | 
    
         
            +
            - doc/Brauser/Queryable.html
         
     | 
| 
      
 61 
     | 
    
         
            +
            - doc/Brauser/Queryable/Chainers.html
         
     | 
| 
      
 62 
     | 
    
         
            +
            - doc/Brauser/Queryable/Queries.html
         
     | 
| 
       61 
63 
     | 
    
         
             
            - doc/Brauser/Version.html
         
     | 
| 
       62 
64 
     | 
    
         
             
            - doc/_index.html
         
     | 
| 
       63 
65 
     | 
    
         
             
            - doc/class_list.html
         
     | 
| 
         @@ -74,10 +76,21 @@ files: 
     | 
|
| 
       74 
76 
     | 
    
         
             
            - doc/method_list.html
         
     | 
| 
       75 
77 
     | 
    
         
             
            - doc/top-level-namespace.html
         
     | 
| 
       76 
78 
     | 
    
         
             
            - lib/brauser.rb
         
     | 
| 
      
 79 
     | 
    
         
            +
            - lib/brauser/browseable/attributes.rb
         
     | 
| 
      
 80 
     | 
    
         
            +
            - lib/brauser/browseable/general.rb
         
     | 
| 
      
 81 
     | 
    
         
            +
            - lib/brauser/browseable/parsing.rb
         
     | 
| 
      
 82 
     | 
    
         
            +
            - lib/brauser/browseable/partial_querying.rb
         
     | 
| 
      
 83 
     | 
    
         
            +
            - lib/brauser/browseable/querying.rb
         
     | 
| 
      
 84 
     | 
    
         
            +
            - lib/brauser/browseable/register.rb
         
     | 
| 
       77 
85 
     | 
    
         
             
            - lib/brauser/browser.rb
         
     | 
| 
       78 
86 
     | 
    
         
             
            - lib/brauser/definition.rb
         
     | 
| 
      
 87 
     | 
    
         
            +
            - lib/brauser/definitions/browsers.rb
         
     | 
| 
      
 88 
     | 
    
         
            +
            - lib/brauser/definitions/languages.rb
         
     | 
| 
      
 89 
     | 
    
         
            +
            - lib/brauser/definitions/platforms.rb
         
     | 
| 
       79 
90 
     | 
    
         
             
            - lib/brauser/hooks.rb
         
     | 
| 
       80 
91 
     | 
    
         
             
            - lib/brauser/query.rb
         
     | 
| 
      
 92 
     | 
    
         
            +
            - lib/brauser/queryable/chainers.rb
         
     | 
| 
      
 93 
     | 
    
         
            +
            - lib/brauser/queryable/queries.rb
         
     | 
| 
       81 
94 
     | 
    
         
             
            - lib/brauser/version.rb
         
     | 
| 
       82 
95 
     | 
    
         
             
            - spec/brauser/browser_spec.rb
         
     | 
| 
       83 
96 
     | 
    
         
             
            - spec/brauser/definition_spec.rb
         
     | 
| 
         @@ -106,7 +119,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement 
     | 
|
| 
       106 
119 
     | 
    
         
             
                  version: '0'
         
     | 
| 
       107 
120 
     | 
    
         
             
            requirements: []
         
     | 
| 
       108 
121 
     | 
    
         
             
            rubyforge_project: brauser
         
     | 
| 
       109 
     | 
    
         
            -
            rubygems_version: 2.2. 
     | 
| 
      
 122 
     | 
    
         
            +
            rubygems_version: 2.2.2
         
     | 
| 
       110 
123 
     | 
    
         
             
            signing_key: 
         
     | 
| 
       111 
124 
     | 
    
         
             
            specification_version: 4
         
     | 
| 
       112 
125 
     | 
    
         
             
            summary: A framework agnostic browser detection and querying helper.
         
     | 
    
        data/.bundle/install.log
    DELETED
    
    | 
         @@ -1,106 +0,0 @@ 
     | 
|
| 
       1 
     | 
    
         
            -
            # Logfile created on 2014-01-25 11:05:20 -0800 by logger.rb/44203
         
     | 
| 
       2 
     | 
    
         
            -
            I, [2014-01-25T11:05:20.966559 #33915]  INFO -- : 0:  rake (10.1.1) from /Volumes/DATI/Users/Shogun/.rvm/gems/ruby-2.1.0/specifications/rake-10.1.1.gemspec
         
     | 
| 
       3 
     | 
    
         
            -
            I, [2014-01-25T11:05:20.966951 #33915]  INFO -- : 0:  i18n (0.6.9) from /Volumes/DATI/Users/Shogun/.rvm/gems/ruby-2.1.0/specifications/i18n-0.6.9.gemspec
         
     | 
| 
       4 
     | 
    
         
            -
            I, [2014-01-25T11:05:20.967274 #33915]  INFO -- : 0:  multi_json (1.8.2) from /Volumes/DATI/Users/Shogun/.rvm/gems/ruby-2.1.0/specifications/multi_json-1.8.2.gemspec
         
     | 
| 
       5 
     | 
    
         
            -
            I, [2014-01-25T11:05:20.967597 #33915]  INFO -- : 0:  activesupport (3.2.16) from /Volumes/DATI/Users/Shogun/.rvm/gems/ruby-2.1.0/specifications/activesupport-3.2.16.gemspec
         
     | 
| 
       6 
     | 
    
         
            -
            I, [2014-01-25T11:05:20.967897 #33915]  INFO -- : 0:  atomic (1.1.14) from /Volumes/DATI/Users/Shogun/.rvm/gems/ruby-2.1.0/specifications/atomic-1.1.14.gemspec
         
     | 
| 
       7 
     | 
    
         
            -
            I, [2014-01-25T11:05:20.968183 #33915]  INFO -- : 0:  hashie (2.0.5) from /Volumes/DATI/Users/Shogun/.rvm/gems/ruby-2.1.0/specifications/hashie-2.0.5.gemspec
         
     | 
| 
       8 
     | 
    
         
            -
            I, [2014-01-25T11:05:20.968474 #33915]  INFO -- : 0:  json (1.8.1) from /Volumes/DATI/Users/Shogun/.rvm/rubies/ruby-2.1.0/lib/ruby/gems/2.1.0/specifications/default/json-1.8.1.gemspec
         
     | 
| 
       9 
     | 
    
         
            -
            I, [2014-01-25T11:05:20.968764 #33915]  INFO -- : 0:  r18n-core (1.1.8) from /Volumes/DATI/Users/Shogun/.rvm/gems/ruby-2.1.0/specifications/r18n-core-1.1.8.gemspec
         
     | 
| 
       10 
     | 
    
         
            -
            I, [2014-01-25T11:05:20.969061 #33915]  INFO -- : 0:  r18n-desktop (1.1.8) from /Volumes/DATI/Users/Shogun/.rvm/gems/ruby-2.1.0/specifications/r18n-desktop-1.1.8.gemspec
         
     | 
| 
       11 
     | 
    
         
            -
            I, [2014-01-25T11:05:20.969354 #33915]  INFO -- : 0:  thread_safe (0.1.3) from /Volumes/DATI/Users/Shogun/.rvm/gems/ruby-2.1.0/specifications/thread_safe-0.1.3.gemspec
         
     | 
| 
       12 
     | 
    
         
            -
            I, [2014-01-25T11:05:20.969650 #33915]  INFO -- : 0:  tzinfo (1.1.0) from /Volumes/DATI/Users/Shogun/.rvm/gems/ruby-2.1.0/specifications/tzinfo-1.1.0.gemspec
         
     | 
| 
       13 
     | 
    
         
            -
            I, [2014-01-25T11:05:22.248743 #33915]  INFO -- : 0:  lazier (3.4.0) from /Volumes/DATI/Users/Shogun/.rvm/gems/ruby-2.1.0/specifications/lazier-3.4.0.gemspec
         
     | 
| 
       14 
     | 
    
         
            -
            I, [2014-01-25T11:05:22.314310 #33915]  INFO -- : 0:  brauser (3.3.0) from /Volumes/DATI/Users/Shogun/Programmazione/Ruby/brauser/brauser.gemspec
         
     | 
| 
       15 
     | 
    
         
            -
            I, [2014-01-25T11:05:22.314725 #33915]  INFO -- : 0:  coderay (1.1.0) from /Volumes/DATI/Users/Shogun/.rvm/gems/ruby-2.1.0/specifications/coderay-1.1.0.gemspec
         
     | 
| 
       16 
     | 
    
         
            -
            I, [2014-01-25T11:05:22.315046 #33915]  INFO -- : 0:  mime-types (2.0) from /Volumes/DATI/Users/Shogun/.rvm/gems/ruby-2.1.0/specifications/mime-types-2.0.gemspec
         
     | 
| 
       17 
     | 
    
         
            -
            I, [2014-01-25T11:05:22.315351 #33915]  INFO -- : 0:  rest-client (1.6.7) from /Volumes/DATI/Users/Shogun/.rvm/gems/ruby-2.1.0/specifications/rest-client-1.6.7.gemspec
         
     | 
| 
       18 
     | 
    
         
            -
            I, [2014-01-25T11:05:22.315671 #33915]  INFO -- : 0:  docile (1.1.1) from /Volumes/DATI/Users/Shogun/.rvm/gems/ruby-2.1.0/specifications/docile-1.1.1.gemspec
         
     | 
| 
       19 
     | 
    
         
            -
            I, [2014-01-25T11:05:22.315993 #33915]  INFO -- : 0:  simplecov-html (0.8.0) from /Volumes/DATI/Users/Shogun/.rvm/gems/ruby-2.1.0/specifications/simplecov-html-0.8.0.gemspec
         
     | 
| 
       20 
     | 
    
         
            -
            I, [2014-01-25T11:05:22.316309 #33915]  INFO -- : 0:  simplecov (0.8.2) from /Volumes/DATI/Users/Shogun/.rvm/gems/ruby-2.1.0/specifications/simplecov-0.8.2.gemspec
         
     | 
| 
       21 
     | 
    
         
            -
            I, [2014-01-25T11:05:22.316616 #33915]  INFO -- : 0:  tins (0.13.1) from /Volumes/DATI/Users/Shogun/.rvm/gems/ruby-2.1.0/specifications/tins-0.13.1.gemspec
         
     | 
| 
       22 
     | 
    
         
            -
            I, [2014-01-25T11:05:22.316949 #33915]  INFO -- : 0:  term-ansicolor (1.2.2) from /Volumes/DATI/Users/Shogun/.rvm/gems/ruby-2.1.0/specifications/term-ansicolor-1.2.2.gemspec
         
     | 
| 
       23 
     | 
    
         
            -
            I, [2014-01-25T11:05:22.317300 #33915]  INFO -- : 0:  thor (0.18.1) from /Volumes/DATI/Users/Shogun/.rvm/gems/ruby-2.1.0/specifications/thor-0.18.1.gemspec
         
     | 
| 
       24 
     | 
    
         
            -
            I, [2014-01-25T11:05:22.317621 #33915]  INFO -- : 0:  coveralls (0.7.0) from /Volumes/DATI/Users/Shogun/.rvm/gems/ruby-2.1.0/specifications/coveralls-0.7.0.gemspec
         
     | 
| 
       25 
     | 
    
         
            -
            I, [2014-01-25T11:05:22.317966 #33915]  INFO -- : 0:  diff-lcs (1.2.5) from /Volumes/DATI/Users/Shogun/.rvm/gems/ruby-2.1.0/specifications/diff-lcs-1.2.5.gemspec
         
     | 
| 
       26 
     | 
    
         
            -
            I, [2014-01-25T11:05:22.318291 #33915]  INFO -- : 0:  github-markup (1.0.0) from /Volumes/DATI/Users/Shogun/.rvm/gems/ruby-2.1.0/specifications/github-markup-1.0.0.gemspec
         
     | 
| 
       27 
     | 
    
         
            -
            I, [2014-01-25T11:05:22.318633 #33915]  INFO -- : 0:  kramdown (1.3.1) from /Volumes/DATI/Users/Shogun/.rvm/gems/ruby-2.1.0/specifications/kramdown-1.3.1.gemspec
         
     | 
| 
       28 
     | 
    
         
            -
            I, [2014-01-25T11:05:22.318974 #33915]  INFO -- : 0:  method_source (0.8.2) from /Volumes/DATI/Users/Shogun/.rvm/gems/ruby-2.1.0/specifications/method_source-0.8.2.gemspec
         
     | 
| 
       29 
     | 
    
         
            -
            I, [2014-01-25T11:05:22.319275 #33915]  INFO -- : 0:  slop (3.4.7) from /Volumes/DATI/Users/Shogun/.rvm/gems/ruby-2.1.0/specifications/slop-3.4.7.gemspec
         
     | 
| 
       30 
     | 
    
         
            -
            I, [2014-01-25T11:05:22.319610 #33915]  INFO -- : 0:  pry (0.9.12.4) from /Volumes/DATI/Users/Shogun/.rvm/gems/ruby-2.1.0/specifications/pry-0.9.12.4.gemspec
         
     | 
| 
       31 
     | 
    
         
            -
            I, [2014-01-25T11:05:22.319953 #33915]  INFO -- : 0:  rspec-core (2.14.7) from /Volumes/DATI/Users/Shogun/.rvm/gems/ruby-2.1.0/specifications/rspec-core-2.14.7.gemspec
         
     | 
| 
       32 
     | 
    
         
            -
            I, [2014-01-25T11:05:22.320287 #33915]  INFO -- : 0:  rspec-expectations (2.14.4) from /Volumes/DATI/Users/Shogun/.rvm/gems/ruby-2.1.0/specifications/rspec-expectations-2.14.4.gemspec
         
     | 
| 
       33 
     | 
    
         
            -
            I, [2014-01-25T11:05:22.320629 #33915]  INFO -- : 0:  rspec-mocks (2.14.4) from /Volumes/DATI/Users/Shogun/.rvm/gems/ruby-2.1.0/specifications/rspec-mocks-2.14.4.gemspec
         
     | 
| 
       34 
     | 
    
         
            -
            I, [2014-01-25T11:05:22.320948 #33915]  INFO -- : 0:  rspec (2.14.1) from /Volumes/DATI/Users/Shogun/.rvm/gems/ruby-2.1.0/specifications/rspec-2.14.1.gemspec
         
     | 
| 
       35 
     | 
    
         
            -
            I, [2014-01-25T11:05:22.321279 #33915]  INFO -- : 0:  yard (0.8.7.3) from /Volumes/DATI/Users/Shogun/.rvm/gems/ruby-2.1.0/specifications/yard-0.8.7.3.gemspec
         
     | 
| 
       36 
     | 
    
         
            -
            I, [2014-01-25T11:05:22.321627 #33915]  INFO -- : 0:  bundler (1.5.1) from /Volumes/DATI/Users/Shogun/.rvm/gems/ruby-2.1.0/specifications/bundler-1.5.1.gemspec
         
     | 
| 
       37 
     | 
    
         
            -
            I, [2014-01-25T11:05:57.857738 #34001]  INFO -- : 0:  rake (10.1.1) from /Volumes/DATI/Users/Shogun/.rvm/gems/ruby-2.1.0/specifications/rake-10.1.1.gemspec
         
     | 
| 
       38 
     | 
    
         
            -
            I, [2014-01-25T11:05:57.858204 #34001]  INFO -- : 0:  i18n (0.6.9) from /Volumes/DATI/Users/Shogun/.rvm/gems/ruby-2.1.0/specifications/i18n-0.6.9.gemspec
         
     | 
| 
       39 
     | 
    
         
            -
            I, [2014-01-25T11:05:57.858518 #34001]  INFO -- : 0:  multi_json (1.8.4) from /Volumes/DATI/Users/Shogun/.rvm/gems/ruby-2.1.0/specifications/multi_json-1.8.4.gemspec
         
     | 
| 
       40 
     | 
    
         
            -
            I, [2014-01-25T11:05:57.858821 #34001]  INFO -- : 0:  activesupport (3.2.16) from /Volumes/DATI/Users/Shogun/.rvm/gems/ruby-2.1.0/specifications/activesupport-3.2.16.gemspec
         
     | 
| 
       41 
     | 
    
         
            -
            I, [2014-01-25T11:05:57.859128 #34001]  INFO -- : 0:  atomic (1.1.14) from /Volumes/DATI/Users/Shogun/.rvm/gems/ruby-2.1.0/specifications/atomic-1.1.14.gemspec
         
     | 
| 
       42 
     | 
    
         
            -
            I, [2014-01-25T11:05:57.859412 #34001]  INFO -- : 0:  hashie (2.0.5) from /Volumes/DATI/Users/Shogun/.rvm/gems/ruby-2.1.0/specifications/hashie-2.0.5.gemspec
         
     | 
| 
       43 
     | 
    
         
            -
            I, [2014-01-25T11:05:57.859689 #34001]  INFO -- : 0:  json (1.8.1) from /Volumes/DATI/Users/Shogun/.rvm/rubies/ruby-2.1.0/lib/ruby/gems/2.1.0/specifications/default/json-1.8.1.gemspec
         
     | 
| 
       44 
     | 
    
         
            -
            I, [2014-01-25T11:05:57.859996 #34001]  INFO -- : 0:  r18n-core (1.1.8) from /Volumes/DATI/Users/Shogun/.rvm/gems/ruby-2.1.0/specifications/r18n-core-1.1.8.gemspec
         
     | 
| 
       45 
     | 
    
         
            -
            I, [2014-01-25T11:05:57.860284 #34001]  INFO -- : 0:  r18n-desktop (1.1.8) from /Volumes/DATI/Users/Shogun/.rvm/gems/ruby-2.1.0/specifications/r18n-desktop-1.1.8.gemspec
         
     | 
| 
       46 
     | 
    
         
            -
            I, [2014-01-25T11:05:57.860562 #34001]  INFO -- : 0:  thread_safe (0.1.3) from /Volumes/DATI/Users/Shogun/.rvm/gems/ruby-2.1.0/specifications/thread_safe-0.1.3.gemspec
         
     | 
| 
       47 
     | 
    
         
            -
            I, [2014-01-25T11:05:57.860883 #34001]  INFO -- : 0:  tzinfo (1.1.0) from /Volumes/DATI/Users/Shogun/.rvm/gems/ruby-2.1.0/specifications/tzinfo-1.1.0.gemspec
         
     | 
| 
       48 
     | 
    
         
            -
            I, [2014-01-25T11:05:57.861171 #34001]  INFO -- : 0:  lazier (3.4.0) from /Volumes/DATI/Users/Shogun/.rvm/gems/ruby-2.1.0/specifications/lazier-3.4.0.gemspec
         
     | 
| 
       49 
     | 
    
         
            -
            I, [2014-01-25T11:05:57.932638 #34001]  INFO -- : 0:  brauser (3.2.5) from /Volumes/DATI/Users/Shogun/Programmazione/Ruby/brauser/brauser.gemspec
         
     | 
| 
       50 
     | 
    
         
            -
            I, [2014-01-25T11:05:57.933011 #34001]  INFO -- : 0:  coderay (1.1.0) from /Volumes/DATI/Users/Shogun/.rvm/gems/ruby-2.1.0/specifications/coderay-1.1.0.gemspec
         
     | 
| 
       51 
     | 
    
         
            -
            I, [2014-01-25T11:05:57.933306 #34001]  INFO -- : 0:  mime-types (2.0) from /Volumes/DATI/Users/Shogun/.rvm/gems/ruby-2.1.0/specifications/mime-types-2.0.gemspec
         
     | 
| 
       52 
     | 
    
         
            -
            I, [2014-01-25T11:05:57.933611 #34001]  INFO -- : 0:  rest-client (1.6.7) from /Volumes/DATI/Users/Shogun/.rvm/gems/ruby-2.1.0/specifications/rest-client-1.6.7.gemspec
         
     | 
| 
       53 
     | 
    
         
            -
            I, [2014-01-25T11:05:57.933896 #34001]  INFO -- : 0:  docile (1.1.2) from /Volumes/DATI/Users/Shogun/.rvm/gems/ruby-2.1.0/specifications/docile-1.1.2.gemspec
         
     | 
| 
       54 
     | 
    
         
            -
            I, [2014-01-25T11:05:57.934178 #34001]  INFO -- : 0:  simplecov-html (0.8.0) from /Volumes/DATI/Users/Shogun/.rvm/gems/ruby-2.1.0/specifications/simplecov-html-0.8.0.gemspec
         
     | 
| 
       55 
     | 
    
         
            -
            I, [2014-01-25T11:05:57.934461 #34001]  INFO -- : 0:  simplecov (0.8.2) from /Volumes/DATI/Users/Shogun/.rvm/gems/ruby-2.1.0/specifications/simplecov-0.8.2.gemspec
         
     | 
| 
       56 
     | 
    
         
            -
            I, [2014-01-25T11:05:57.934745 #34001]  INFO -- : 0:  tins (0.13.1) from /Volumes/DATI/Users/Shogun/.rvm/gems/ruby-2.1.0/specifications/tins-0.13.1.gemspec
         
     | 
| 
       57 
     | 
    
         
            -
            I, [2014-01-25T11:05:57.935036 #34001]  INFO -- : 0:  term-ansicolor (1.2.2) from /Volumes/DATI/Users/Shogun/.rvm/gems/ruby-2.1.0/specifications/term-ansicolor-1.2.2.gemspec
         
     | 
| 
       58 
     | 
    
         
            -
            I, [2014-01-25T11:05:57.935307 #34001]  INFO -- : 0:  thor (0.18.1) from /Volumes/DATI/Users/Shogun/.rvm/gems/ruby-2.1.0/specifications/thor-0.18.1.gemspec
         
     | 
| 
       59 
     | 
    
         
            -
            I, [2014-01-25T11:05:57.935591 #34001]  INFO -- : 0:  coveralls (0.7.0) from /Volumes/DATI/Users/Shogun/.rvm/gems/ruby-2.1.0/specifications/coveralls-0.7.0.gemspec
         
     | 
| 
       60 
     | 
    
         
            -
            I, [2014-01-25T11:05:57.935866 #34001]  INFO -- : 0:  diff-lcs (1.2.5) from /Volumes/DATI/Users/Shogun/.rvm/gems/ruby-2.1.0/specifications/diff-lcs-1.2.5.gemspec
         
     | 
| 
       61 
     | 
    
         
            -
            I, [2014-01-25T11:05:57.936150 #34001]  INFO -- : 0:  github-markup (1.0.0) from /Volumes/DATI/Users/Shogun/.rvm/gems/ruby-2.1.0/specifications/github-markup-1.0.0.gemspec
         
     | 
| 
       62 
     | 
    
         
            -
            I, [2014-01-25T11:05:57.936432 #34001]  INFO -- : 0:  kramdown (1.3.1) from /Volumes/DATI/Users/Shogun/.rvm/gems/ruby-2.1.0/specifications/kramdown-1.3.1.gemspec
         
     | 
| 
       63 
     | 
    
         
            -
            I, [2014-01-25T11:05:57.936717 #34001]  INFO -- : 0:  method_source (0.8.2) from /Volumes/DATI/Users/Shogun/.rvm/gems/ruby-2.1.0/specifications/method_source-0.8.2.gemspec
         
     | 
| 
       64 
     | 
    
         
            -
            I, [2014-01-25T11:05:57.937006 #34001]  INFO -- : 0:  slop (3.4.7) from /Volumes/DATI/Users/Shogun/.rvm/gems/ruby-2.1.0/specifications/slop-3.4.7.gemspec
         
     | 
| 
       65 
     | 
    
         
            -
            I, [2014-01-25T11:05:57.937284 #34001]  INFO -- : 0:  pry (0.9.12.4) from /Volumes/DATI/Users/Shogun/.rvm/gems/ruby-2.1.0/specifications/pry-0.9.12.4.gemspec
         
     | 
| 
       66 
     | 
    
         
            -
            I, [2014-01-25T11:05:57.937567 #34001]  INFO -- : 0:  rspec-core (2.14.7) from /Volumes/DATI/Users/Shogun/.rvm/gems/ruby-2.1.0/specifications/rspec-core-2.14.7.gemspec
         
     | 
| 
       67 
     | 
    
         
            -
            I, [2014-01-25T11:05:57.937852 #34001]  INFO -- : 0:  rspec-expectations (2.14.4) from /Volumes/DATI/Users/Shogun/.rvm/gems/ruby-2.1.0/specifications/rspec-expectations-2.14.4.gemspec
         
     | 
| 
       68 
     | 
    
         
            -
            I, [2014-01-25T11:05:57.938127 #34001]  INFO -- : 0:  rspec-mocks (2.14.4) from /Volumes/DATI/Users/Shogun/.rvm/gems/ruby-2.1.0/specifications/rspec-mocks-2.14.4.gemspec
         
     | 
| 
       69 
     | 
    
         
            -
            I, [2014-01-25T11:05:57.938406 #34001]  INFO -- : 0:  rspec (2.14.1) from /Volumes/DATI/Users/Shogun/.rvm/gems/ruby-2.1.0/specifications/rspec-2.14.1.gemspec
         
     | 
| 
       70 
     | 
    
         
            -
            I, [2014-01-25T11:05:57.938676 #34001]  INFO -- : 0:  yard (0.8.7.3) from /Volumes/DATI/Users/Shogun/.rvm/gems/ruby-2.1.0/specifications/yard-0.8.7.3.gemspec
         
     | 
| 
       71 
     | 
    
         
            -
            I, [2014-01-25T11:05:57.938938 #34001]  INFO -- : 0:  bundler (1.5.1) from /Volumes/DATI/Users/Shogun/.rvm/gems/ruby-2.1.0/specifications/bundler-1.5.1.gemspec
         
     | 
| 
       72 
     | 
    
         
            -
            I, [2014-02-16T13:56:57.130628 #39512]  INFO -- : 0:  rake (10.1.1) from /Volumes/DATI/Users/Shogun/.rvm/gems/ruby-2.1.0/specifications/rake-10.1.1.gemspec
         
     | 
| 
       73 
     | 
    
         
            -
            I, [2014-02-16T13:56:57.142206 #39512]  INFO -- : 0:  i18n (0.6.9) from /Volumes/DATI/Users/Shogun/.rvm/gems/ruby-2.1.0/specifications/i18n-0.6.9.gemspec
         
     | 
| 
       74 
     | 
    
         
            -
            I, [2014-02-16T13:56:57.142567 #39512]  INFO -- : 0:  multi_json (1.8.4) from /Volumes/DATI/Users/Shogun/.rvm/gems/ruby-2.1.0/specifications/multi_json-1.8.4.gemspec
         
     | 
| 
       75 
     | 
    
         
            -
            I, [2014-02-16T13:56:57.142891 #39512]  INFO -- : 0:  activesupport (3.2.16) from /Volumes/DATI/Users/Shogun/.rvm/gems/ruby-2.1.0/specifications/activesupport-3.2.16.gemspec
         
     | 
| 
       76 
     | 
    
         
            -
            I, [2014-02-16T13:56:57.143180 #39512]  INFO -- : 0:  atomic (1.1.14) from /Volumes/DATI/Users/Shogun/.rvm/gems/ruby-2.1.0/specifications/atomic-1.1.14.gemspec
         
     | 
| 
       77 
     | 
    
         
            -
            I, [2014-02-16T13:56:57.143491 #39512]  INFO -- : 0:  hashie (2.0.5) from /Volumes/DATI/Users/Shogun/.rvm/gems/ruby-2.1.0/specifications/hashie-2.0.5.gemspec
         
     | 
| 
       78 
     | 
    
         
            -
            I, [2014-02-16T13:56:57.143784 #39512]  INFO -- : 0:  json (1.8.1) from /Volumes/DATI/Users/Shogun/.rvm/rubies/ruby-2.1.0/lib/ruby/gems/2.1.0/specifications/default/json-1.8.1.gemspec
         
     | 
| 
       79 
     | 
    
         
            -
            I, [2014-02-16T13:56:57.144073 #39512]  INFO -- : 0:  r18n-core (1.1.8) from /Volumes/DATI/Users/Shogun/.rvm/gems/ruby-2.1.0/specifications/r18n-core-1.1.8.gemspec
         
     | 
| 
       80 
     | 
    
         
            -
            I, [2014-02-16T13:56:57.144360 #39512]  INFO -- : 0:  r18n-desktop (1.1.8) from /Volumes/DATI/Users/Shogun/.rvm/gems/ruby-2.1.0/specifications/r18n-desktop-1.1.8.gemspec
         
     | 
| 
       81 
     | 
    
         
            -
            I, [2014-02-16T13:56:57.144654 #39512]  INFO -- : 0:  thread_safe (0.1.3) from /Volumes/DATI/Users/Shogun/.rvm/gems/ruby-2.1.0/specifications/thread_safe-0.1.3.gemspec
         
     | 
| 
       82 
     | 
    
         
            -
            I, [2014-02-16T13:56:57.144937 #39512]  INFO -- : 0:  tzinfo (1.1.0) from /Volumes/DATI/Users/Shogun/.rvm/gems/ruby-2.1.0/specifications/tzinfo-1.1.0.gemspec
         
     | 
| 
       83 
     | 
    
         
            -
            I, [2014-02-16T13:56:58.363240 #39512]  INFO -- : 0:  lazier (3.5.0) from /Volumes/DATI/Users/Shogun/.rvm/gems/ruby-2.1.0/specifications/lazier-3.5.0.gemspec
         
     | 
| 
       84 
     | 
    
         
            -
            I, [2014-02-16T13:56:58.673554 #39512]  INFO -- : 0:  brauser (3.2.6) from /Volumes/DATI/Users/Shogun/Programmazione/Ruby/brauser/brauser.gemspec
         
     | 
| 
       85 
     | 
    
         
            -
            I, [2014-02-16T13:56:58.674287 #39512]  INFO -- : 0:  coderay (1.1.0) from /Volumes/DATI/Users/Shogun/.rvm/gems/ruby-2.1.0/specifications/coderay-1.1.0.gemspec
         
     | 
| 
       86 
     | 
    
         
            -
            I, [2014-02-16T13:56:58.674863 #39512]  INFO -- : 0:  mime-types (2.0) from /Volumes/DATI/Users/Shogun/.rvm/gems/ruby-2.1.0/specifications/mime-types-2.0.gemspec
         
     | 
| 
       87 
     | 
    
         
            -
            I, [2014-02-16T13:56:58.675444 #39512]  INFO -- : 0:  rest-client (1.6.7) from /Volumes/DATI/Users/Shogun/.rvm/gems/ruby-2.1.0/specifications/rest-client-1.6.7.gemspec
         
     | 
| 
       88 
     | 
    
         
            -
            I, [2014-02-16T13:56:58.675961 #39512]  INFO -- : 0:  docile (1.1.2) from /Volumes/DATI/Users/Shogun/.rvm/gems/ruby-2.1.0/specifications/docile-1.1.2.gemspec
         
     | 
| 
       89 
     | 
    
         
            -
            I, [2014-02-16T13:56:58.676466 #39512]  INFO -- : 0:  simplecov-html (0.8.0) from /Volumes/DATI/Users/Shogun/.rvm/gems/ruby-2.1.0/specifications/simplecov-html-0.8.0.gemspec
         
     | 
| 
       90 
     | 
    
         
            -
            I, [2014-02-16T13:56:58.677109 #39512]  INFO -- : 0:  simplecov (0.8.2) from /Volumes/DATI/Users/Shogun/.rvm/gems/ruby-2.1.0/specifications/simplecov-0.8.2.gemspec
         
     | 
| 
       91 
     | 
    
         
            -
            I, [2014-02-16T13:56:58.677610 #39512]  INFO -- : 0:  tins (0.13.1) from /Volumes/DATI/Users/Shogun/.rvm/gems/ruby-2.1.0/specifications/tins-0.13.1.gemspec
         
     | 
| 
       92 
     | 
    
         
            -
            I, [2014-02-16T13:56:58.678052 #39512]  INFO -- : 0:  term-ansicolor (1.2.2) from /Volumes/DATI/Users/Shogun/.rvm/gems/ruby-2.1.0/specifications/term-ansicolor-1.2.2.gemspec
         
     | 
| 
       93 
     | 
    
         
            -
            I, [2014-02-16T13:56:58.678469 #39512]  INFO -- : 0:  thor (0.18.1) from /Volumes/DATI/Users/Shogun/.rvm/gems/ruby-2.1.0/specifications/thor-0.18.1.gemspec
         
     | 
| 
       94 
     | 
    
         
            -
            I, [2014-02-16T13:56:58.678891 #39512]  INFO -- : 0:  coveralls (0.7.0) from /Volumes/DATI/Users/Shogun/.rvm/gems/ruby-2.1.0/specifications/coveralls-0.7.0.gemspec
         
     | 
| 
       95 
     | 
    
         
            -
            I, [2014-02-16T13:56:58.679322 #39512]  INFO -- : 0:  diff-lcs (1.2.5) from /Volumes/DATI/Users/Shogun/.rvm/gems/ruby-2.1.0/specifications/diff-lcs-1.2.5.gemspec
         
     | 
| 
       96 
     | 
    
         
            -
            I, [2014-02-16T13:56:58.679724 #39512]  INFO -- : 0:  github-markup (1.0.0) from /Volumes/DATI/Users/Shogun/.rvm/gems/ruby-2.1.0/specifications/github-markup-1.0.0.gemspec
         
     | 
| 
       97 
     | 
    
         
            -
            I, [2014-02-16T13:56:58.680131 #39512]  INFO -- : 0:  kramdown (1.3.1) from /Volumes/DATI/Users/Shogun/.rvm/gems/ruby-2.1.0/specifications/kramdown-1.3.1.gemspec
         
     | 
| 
       98 
     | 
    
         
            -
            I, [2014-02-16T13:56:58.680527 #39512]  INFO -- : 0:  method_source (0.8.2) from /Volumes/DATI/Users/Shogun/.rvm/gems/ruby-2.1.0/specifications/method_source-0.8.2.gemspec
         
     | 
| 
       99 
     | 
    
         
            -
            I, [2014-02-16T13:56:58.680889 #39512]  INFO -- : 0:  slop (3.4.7) from /Volumes/DATI/Users/Shogun/.rvm/gems/ruby-2.1.0/specifications/slop-3.4.7.gemspec
         
     | 
| 
       100 
     | 
    
         
            -
            I, [2014-02-16T13:56:58.681303 #39512]  INFO -- : 0:  pry (0.9.12.4) from /Volumes/DATI/Users/Shogun/.rvm/gems/ruby-2.1.0/specifications/pry-0.9.12.4.gemspec
         
     | 
| 
       101 
     | 
    
         
            -
            I, [2014-02-16T13:56:58.681732 #39512]  INFO -- : 0:  rspec-core (2.14.7) from /Volumes/DATI/Users/Shogun/.rvm/gems/ruby-2.1.0/specifications/rspec-core-2.14.7.gemspec
         
     | 
| 
       102 
     | 
    
         
            -
            I, [2014-02-16T13:56:58.682135 #39512]  INFO -- : 0:  rspec-expectations (2.14.4) from /Volumes/DATI/Users/Shogun/.rvm/gems/ruby-2.1.0/specifications/rspec-expectations-2.14.4.gemspec
         
     | 
| 
       103 
     | 
    
         
            -
            I, [2014-02-16T13:56:58.682523 #39512]  INFO -- : 0:  rspec-mocks (2.14.4) from /Volumes/DATI/Users/Shogun/.rvm/gems/ruby-2.1.0/specifications/rspec-mocks-2.14.4.gemspec
         
     | 
| 
       104 
     | 
    
         
            -
            I, [2014-02-16T13:56:58.682872 #39512]  INFO -- : 0:  rspec (2.14.1) from /Volumes/DATI/Users/Shogun/.rvm/gems/ruby-2.1.0/specifications/rspec-2.14.1.gemspec
         
     | 
| 
       105 
     | 
    
         
            -
            I, [2014-02-16T13:56:58.683229 #39512]  INFO -- : 0:  yard (0.8.7.3) from /Volumes/DATI/Users/Shogun/.rvm/gems/ruby-2.1.0/specifications/yard-0.8.7.3.gemspec
         
     | 
| 
       106 
     | 
    
         
            -
            I, [2014-02-16T13:56:58.683589 #39512]  INFO -- : 0:  bundler (1.5.1) from /Volumes/DATI/Users/Shogun/.rvm/gems/ruby-2.1.0/specifications/bundler-1.5.1.gemspec
         
     |