Skip to content

Commit

Permalink
Add faux gem license headers (#27)
Browse files Browse the repository at this point in the history
It was decided on Slack that for the vendored Faux gem we should keep
the original MIT license.
This PR adds that license as a header to all Faux gem files.
  • Loading branch information
navarone-feekery authored May 24, 2024
1 parent fc0f854 commit 9bfd29f
Show file tree
Hide file tree
Showing 27 changed files with 157 additions and 0 deletions.
6 changes: 6 additions & 0 deletions vendor/faux/lib/faux.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
#
# Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
# or more contributor license agreements. Licensed under the MIT License;
# see LICENSE file in the project root for details
#

require 'active_support'
require 'json'
require 'rack/mount'
Expand Down
6 changes: 6 additions & 0 deletions vendor/faux/lib/faux/element/atom_feed.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
#
# Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
# or more contributor license agreements. Licensed under the MIT License;
# see LICENSE file in the project root for details
#

module Faux
module Element
class AtomFeed < Base
Expand Down
6 changes: 6 additions & 0 deletions vendor/faux/lib/faux/element/base.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
#
# Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
# or more contributor license agreements. Licensed under the MIT License;
# see LICENSE file in the project root for details
#

module Faux
module Element
class Base
Expand Down
6 changes: 6 additions & 0 deletions vendor/faux/lib/faux/element/fixture.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
#
# Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
# or more contributor license agreements. Licensed under the MIT License;
# see LICENSE file in the project root for details
#

module Faux
module Element
class Fixture < Base
Expand Down
6 changes: 6 additions & 0 deletions vendor/faux/lib/faux/element/page.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
#
# Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
# or more contributor license agreements. Licensed under the MIT License;
# see LICENSE file in the project root for details
#

module Faux
module Element
class Page < Base
Expand Down
6 changes: 6 additions & 0 deletions vendor/faux/lib/faux/element/path_with_content_length.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
#
# Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
# or more contributor license agreements. Licensed under the MIT License;
# see LICENSE file in the project root for details
#

require 'active_support/core_ext/numeric'

module Faux
Expand Down
6 changes: 6 additions & 0 deletions vendor/faux/lib/faux/element/robots.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
#
# Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
# or more contributor license agreements. Licensed under the MIT License;
# see LICENSE file in the project root for details
#

module Faux
module Element
class Robots < Base
Expand Down
6 changes: 6 additions & 0 deletions vendor/faux/lib/faux/element/sitemap.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
#
# Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
# or more contributor license agreements. Licensed under the MIT License;
# see LICENSE file in the project root for details
#

require 'stringio'
require 'nokogiri'
require 'zlib'
Expand Down
6 changes: 6 additions & 0 deletions vendor/faux/lib/faux/helpers/url.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
#
# Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
# or more contributor license agreements. Licensed under the MIT License;
# see LICENSE file in the project root for details
#

module Faux
module Helpers
module Url
Expand Down
6 changes: 6 additions & 0 deletions vendor/faux/lib/faux/middleware/reporter.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
#
# Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
# or more contributor license agreements. Licensed under the MIT License;
# see LICENSE file in the project root for details
#

module Faux
module Middleware

Expand Down
5 changes: 5 additions & 0 deletions vendor/faux/lib/faux/version.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
#
# Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
# or more contributor license agreements. Licensed under the MIT License;
# see LICENSE file in the project root for details
#
module Faux
VERSION = '0.1.0'
end
6 changes: 6 additions & 0 deletions vendor/faux/lib/site.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
#
# Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
# or more contributor license agreements. Licensed under the MIT License;
# see LICENSE file in the project root for details
#

# frozen_string_literal: true

require 'rack'
Expand Down
5 changes: 5 additions & 0 deletions vendor/faux/sites/fixture_site.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
#
# Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
# or more contributor license agreements. Licensed under the MIT License;
# see LICENSE file in the project root for details
#
class FixtureSite < Faux::Base
fixture '/' do
path 'spec/fixtures/simple.html'
Expand Down
5 changes: 5 additions & 0 deletions vendor/faux/sites/robots_txt_respect_rules.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
#
# Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
# or more contributor license agreements. Licensed under the MIT License;
# see LICENSE file in the project root for details
#
class RobotsTxtRespectRules < Faux::Base
page '/' do
body do
Expand Down
5 changes: 5 additions & 0 deletions vendor/faux/sites/simple_site.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
#
# Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
# or more contributor license agreements. Licensed under the MIT License;
# see LICENSE file in the project root for details
#
class SimpleSite < Faux::Base
page '/' do
head { atom_to '/feed' }
Expand Down
5 changes: 5 additions & 0 deletions vendor/faux/sites/sitemap_pointing_to_sitemaps.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
#
# Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
# or more contributor license agreements. Licensed under the MIT License;
# see LICENSE file in the project root for details
#
class SitemapPointingToSitemaps < Faux::Base
robots do
user_agent '*'
Expand Down
6 changes: 6 additions & 0 deletions vendor/faux/spec/faux/element/atom_feed_spec.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
#
# Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
# or more contributor license agreements. Licensed under the MIT License;
# see LICENSE file in the project root for details
#

require 'spec_helper'

describe Faux::Element::AtomFeed do
Expand Down
6 changes: 6 additions & 0 deletions vendor/faux/spec/faux/element/base_spec.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
#
# Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
# or more contributor license agreements. Licensed under the MIT License;
# see LICENSE file in the project root for details
#

require 'spec_helper'

describe Faux::Element::Base do
Expand Down
6 changes: 6 additions & 0 deletions vendor/faux/spec/faux/element/fixture_spec.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
#
# Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
# or more contributor license agreements. Licensed under the MIT License;
# see LICENSE file in the project root for details
#

require 'spec_helper'

describe Faux::Element::Fixture do
Expand Down
6 changes: 6 additions & 0 deletions vendor/faux/spec/faux/element/page_spec.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
#
# Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
# or more contributor license agreements. Licensed under the MIT License;
# see LICENSE file in the project root for details
#

require 'spec_helper'

describe Faux::Element::Page do
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
#
# Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
# or more contributor license agreements. Licensed under the MIT License;
# see LICENSE file in the project root for details
#

require 'spec_helper'

describe Faux::Element::PathWithContentLength do
Expand Down
6 changes: 6 additions & 0 deletions vendor/faux/spec/faux/element/robots_spec.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
#
# Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
# or more contributor license agreements. Licensed under the MIT License;
# see LICENSE file in the project root for details
#

require 'spec_helper'

describe Faux::Element::Robots do
Expand Down
6 changes: 6 additions & 0 deletions vendor/faux/spec/faux/element/sitemap_spec.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
#
# Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
# or more contributor license agreements. Licensed under the MIT License;
# see LICENSE file in the project root for details
#

require 'spec_helper'

describe Faux::Element::Sitemap do
Expand Down
6 changes: 6 additions & 0 deletions vendor/faux/spec/faux/middleware/reporter_spec.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
#
# Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
# or more contributor license agreements. Licensed under the MIT License;
# see LICENSE file in the project root for details
#

require 'spec_helper'

describe Faux::Middleware::Reporter do
Expand Down
6 changes: 6 additions & 0 deletions vendor/faux/spec/faux/site_spec.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
#
# Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
# or more contributor license agreements. Licensed under the MIT License;
# see LICENSE file in the project root for details
#

require 'spec_helper'

describe Faux::Site do
Expand Down
6 changes: 6 additions & 0 deletions vendor/faux/spec/faux_spec.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
#
# Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
# or more contributor license agreements. Licensed under the MIT License;
# see LICENSE file in the project root for details
#

require 'spec_helper'

describe Faux::Base do
Expand Down
6 changes: 6 additions & 0 deletions vendor/faux/spec/spec_helper.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
#
# Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
# or more contributor license agreements. Licensed under the MIT License;
# see LICENSE file in the project root for details
#

require 'bundler/setup'
require 'rspec'
require 'rack/test'
Expand Down

0 comments on commit 9bfd29f

Please sign in to comment.