Giter Site home page Giter Site logo

Comments (4)

flavorjones avatar flavorjones commented on June 2, 2024

I've confirmed this behavior. Looking into it now.

from licensefinder.

flavorjones avatar flavorjones commented on June 2, 2024

So, this is happening because the rails_12factor gem v0.0.2 has the following gemspec packaged with it:

# -*- encoding: utf-8 -*-
require File.expand_path('../lib/rails_12factor/version', __FILE__)

Gem::Specification.new do |gem|
  gem.authors       = ["Richard Schneeman", "Terence Lee"]
  gem.email         = ["[email protected]", "[email protected]"]
  gem.description   = %q{Run Rails the 12factor way}
  gem.summary       = %q{ Following best practices from http://12factor.net run a maintainable, clean, and scalable app on Rails}
  gem.homepage      = "https://github.com/heroku/rails_12factor"

  gem.executables   = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
  gem.files         = `git ls-files`.split("\n")
  gem.test_files    = `git ls-files -- {test,spec,features}/*`.split("\n")
  gem.name          = "rails_12factor"
  gem.require_paths = ["lib"]
  gem.version       = Rails12factor::VERSION
  gem.license       = 'LICENSE'

  gem.add_dependency "rails_serve_static_assets"
  gem.add_dependency "rails_stdout_logging"
end

the key point being this line:

  gem.license       = 'LICENSE'

and the file named LICENSE packaged in the gem is not MIT.

@mainej, what behavior do you expect from LicenseFinder under these circumstances?

(In the meantime, it looks like the licensing was changed for rails_12factor in this pull request, which was merged in May 2014. However, the gem has not been re-released since June 2013.

@schneems, would you consider pushing a new gem with updated license info?

from licensefinder.

flavorjones avatar flavorjones commented on June 2, 2024

I'm going to close this issues. @mainej, if you'd like to start a conversation about how, generally, LicenseFinder should handle inconsistent license metadata and/or references to unknown or non-existent licenses, I'd love to start that under a new issue. But I think there's nothing actionable around this issue right now.

from licensefinder.

mainej avatar mainej commented on June 2, 2024

@flavorjones agreed, this should be closed. Thanks for figuring out the source of the problem and requesting the rubygems version bump. In general gem/package metadata is much more reliable than any other heuristic license_finder uses. I think it's better to keep LF simple and accept that this sort of thing happens occasionally than to try to make LF handle every possible inconsistency.

from licensefinder.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.