Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add faux gem license headers #27

Merged
merged 3 commits into from
May 24, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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