urbanadventurer / WhatWeb

Next generation web scanner
https://www.morningstarsecurity.com/research/whatweb
GNU General Public License v2.0
5.19k stars 885 forks source link

Add a gemfile.lock #403

Open oregonpillow opened 9 months ago

oregonpillow commented 9 months ago

There is a dependency issue with addressable as seen in previously unresolved issue https://github.com/urbanadventurer/WhatWeb/issues/320 and also within my efforts to build whatweb for homebrew installations, as proposed here https://github.com/Homebrew/homebrew-core/pull/140724#discussion_r1321729864 .

@urbanadventurer i've spent considerable time trying to troubleshoot this to no avail, could you assist in providing any advice on providing a gemfile.lock? I'm not very familiar with ruby but my understanding is that would specifiy versions for gemfiles. Using bundle install doesn't seem to be installing addressable on different systems.

bcoles commented 9 months ago

There is a dependency issue with addressable as seen in previously unresolved issue #320

As per #320, do you have multiple versions of Ruby / bundle installed?

Alternatively, does this patch help? #378

could you assist in providing any advice on providing a gemfile.lock? I'm not very familiar with ruby but my understanding is that would specifiy versions for gemfiles. Using bundle install doesn't seem to be installing addressable on different systems.

Using bundle install should generate a Gemfile.lock. Here's one from my Linux dev system:

GEM
  remote: https://rubygems.org/
  specs:
    addressable (2.8.5)
      public_suffix (>= 2.0.2, < 6.0)
    ast (2.4.2)
    base64 (0.1.1)
    bundler-audit (0.9.1)
      bundler (>= 1.2.0, < 3)
      thor (~> 1.0)
    coderay (1.1.3)
    docile (1.4.0)
    ipaddr (1.2.5)
    json (2.6.3)
    language_server-protocol (3.17.0.3)
    method_source (1.0.0)
    minitest (5.20.0)
    parallel (1.23.0)
    parser (3.2.2.3)
      ast (~> 2.4.1)
      racc
    pry (0.14.2)
      coderay (~> 1.1)
      method_source (~> 1.0)
    psych (5.1.0)
      stringio
    public_suffix (5.0.3)
    racc (1.7.1)
    rainbow (3.1.1)
    rake (13.0.6)
    rb-readline (0.5.5)
    rdoc (6.5.0)
      psych (>= 4.0.0)
    regexp_parser (2.8.1)
    rexml (3.2.6)
    rubocop (1.56.3)
      base64 (~> 0.1.1)
      json (~> 2.3)
      language_server-protocol (>= 3.17.0)
      parallel (~> 1.10)
      parser (>= 3.2.2.3)
      rainbow (>= 2.2.2, < 4.0)
      regexp_parser (>= 1.8, < 3.0)
      rexml (>= 3.2.5, < 4.0)
      rubocop-ast (>= 1.28.1, < 2.0)
      ruby-progressbar (~> 1.7)
      unicode-display_width (>= 2.4.0, < 3.0)
    rubocop-ast (1.29.0)
      parser (>= 3.2.1.0)
    ruby-progressbar (1.13.0)
    simplecov (0.22.0)
      docile (~> 1.1)
      simplecov-html (~> 0.11)
      simplecov_json_formatter (~> 0.1)
    simplecov-html (0.12.3)
    simplecov_json_formatter (0.1.4)
    stringio (3.0.8)
    thor (1.2.2)
    unicode-display_width (2.4.2)

PLATFORMS
  x86_64-linux

DEPENDENCIES
  addressable
  bundler-audit
  ipaddr
  json
  minitest
  pry
  rake
  rb-readline
  rdoc
  rubocop
  simplecov

BUNDLED WITH
   2.4.8