Skip to content

Commit

Permalink
Merge pull request #235 from ttmc/add-more-licensing-info
Browse files Browse the repository at this point in the history
Add more licensing info
  • Loading branch information
ttmc committed Aug 13, 2018
2 parents 124586d + cc203c5 commit 80bf01e
Show file tree
Hide file tree
Showing 49 changed files with 217 additions and 17 deletions.
4 changes: 4 additions & 0 deletions .ci/travis-before-install.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
#!/bin/bash
# Copyright BigchainDB GmbH and BigchainDB contributors
# SPDX-License-Identifier: (Apache-2.0 AND CC-BY-4.0)
# Code is Apache-2.0 and docs are CC-BY-4.0


sudo apt-get update
sudo apt-get -y -o Dpkg::Options::="--force-confnew" install docker-ce
Expand Down
4 changes: 4 additions & 0 deletions .ci/travis-before-script.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
#!/bin/bash
# Copyright BigchainDB GmbH and BigchainDB contributors
# SPDX-License-Identifier: (Apache-2.0 AND CC-BY-4.0)
# Code is Apache-2.0 and docs are CC-BY-4.0


set -e -x

Expand Down
4 changes: 4 additions & 0 deletions .ci/travis-install.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
#!/bin/bash
# Copyright BigchainDB GmbH and BigchainDB contributors
# SPDX-License-Identifier: (Apache-2.0 AND CC-BY-4.0)
# Code is Apache-2.0 and docs are CC-BY-4.0


set -e -x

Expand Down
4 changes: 4 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# Copyright BigchainDB GmbH and BigchainDB contributors
# SPDX-License-Identifier: (Apache-2.0 AND CC-BY-4.0)
# Code is Apache-2.0 and docs are CC-BY-4.0

sudo: required

services:
Expand Down
6 changes: 6 additions & 0 deletions API.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
<!---
Copyright BigchainDB GmbH and BigchainDB contributors
SPDX-License-Identifier: (Apache-2.0 AND CC-BY-4.0)
Code is Apache-2.0 and docs are CC-BY-4.0
--->

<!-- Generated by documentation.js. Update this documentation by updating the source code. -->

### Table of Contents
Expand Down
6 changes: 6 additions & 0 deletions CODE_OF_CONDUCT.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
<!---
Copyright BigchainDB GmbH and BigchainDB contributors
SPDX-License-Identifier: (Apache-2.0 AND CC-BY-4.0)
Code is Apache-2.0 and docs are CC-BY-4.0
--->

# Contributor Code of Conduct

## Our Pledge
Expand Down
5 changes: 5 additions & 0 deletions CONTRIBUTING.rst
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@

.. Copyright BigchainDB GmbH and BigchainDB contributors
SPDX-License-Identifier: (Apache-2.0 AND CC-BY-4.0)
Code is Apache-2.0 and docs are CC-BY-4.0
.. highlight:: shell

============
Expand Down
4 changes: 4 additions & 0 deletions LICENSE-docs
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
The official BigchainDB documentation, _except for the short code snippets
embedded within it_, is licensed under a Creative Commons Attribution-
ShareAlike 4.0 International license, the full text of which can be found
at http://creativecommons.org/licenses/by-sa/4.0/legalcode
25 changes: 9 additions & 16 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
<!---
Copyright BigchainDB GmbH and BigchainDB contributors
SPDX-License-Identifier: (Apache-2.0 AND CC-BY-4.0)
Code is Apache-2.0 and docs are CC-BY-4.0
--->

# [![js-bigchaindb-driver](media/repo-banner@2x.png)](https://www.bigchaindb.com)

> Official JavaScript driver for [BigchainDB](https://github.com/bigchaindb/bigchaindb) to create transactions in Node.js and the browser.
Expand Down Expand Up @@ -183,21 +189,8 @@ npm run doc

* inspired by [`js-bigchaindb-quickstart`](https://github.com/sohkai/js-bigchaindb-quickstart) of @sohkhai [thanks]
* BigchainDB <dev@bigchaindb.com>
* BigchainDB contributors

## License

```
Copyright 2017 BigchainDB GmbH
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
## Licenses

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
```
See [LICENSE](LICENSE) and [LICENSE-docs](LICENSE-docs).
4 changes: 4 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# Copyright BigchainDB GmbH and BigchainDB contributors
# SPDX-License-Identifier: (Apache-2.0 AND CC-BY-4.0)
# Code is Apache-2.0 and docs are CC-BY-4.0

version: '2.1'

services:
Expand Down
6 changes: 6 additions & 0 deletions docs/README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,8 @@
<!---
Copyright BigchainDB GmbH and BigchainDB contributors
SPDX-License-Identifier: (Apache-2.0 AND CC-BY-4.0)
Code is Apache-2.0 and docs are CC-BY-4.0
--->

# BigchainDBJavaScriptDriverDocs
BigchainDB JavaScript Driver Documentation with Sphinx
5 changes: 5 additions & 0 deletions docs/source/advanced.rst
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@

.. Copyright BigchainDB GmbH and BigchainDB contributors
SPDX-License-Identifier: (Apache-2.0 AND CC-BY-4.0)
Code is Apache-2.0 and docs are CC-BY-4.0
=================
Advanced Examples
=================
Expand Down
5 changes: 4 additions & 1 deletion docs/source/conf.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
# Copyright BigchainDB GmbH and BigchainDB contributors
# SPDX-License-Identifier: (Apache-2.0 AND CC-BY-4.0)
# Code is Apache-2.0 and docs are CC-BY-4.0

#
# BigchainDB Javascript Driver documentation build configuration file, created by
# sphinx-quickstart on Wed Aug 2 15:39:03 2017.
Expand Down
5 changes: 5 additions & 0 deletions docs/source/index.rst
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@

.. Copyright BigchainDB GmbH and BigchainDB contributors
SPDX-License-Identifier: (Apache-2.0 AND CC-BY-4.0)
Code is Apache-2.0 and docs are CC-BY-4.0
BigchainDB Javascript Driver Documentation
==========================================

Expand Down
5 changes: 5 additions & 0 deletions docs/source/quickstart.rst
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@

.. Copyright BigchainDB GmbH and BigchainDB contributors
SPDX-License-Identifier: (Apache-2.0 AND CC-BY-4.0)
Code is Apache-2.0 and docs are CC-BY-4.0
=========================
Quickstart / Installation
=========================
Expand Down
5 changes: 5 additions & 0 deletions docs/source/readme.rst
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@

.. Copyright BigchainDB GmbH and BigchainDB contributors
SPDX-License-Identifier: (Apache-2.0 AND CC-BY-4.0)
Code is Apache-2.0 and docs are CC-BY-4.0
BigchainDB JavaScript Driver
============================

Expand Down
5 changes: 5 additions & 0 deletions docs/source/usage.rst
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@

.. Copyright BigchainDB GmbH and BigchainDB contributors
SPDX-License-Identifier: (Apache-2.0 AND CC-BY-4.0)
Code is Apache-2.0 and docs are CC-BY-4.0
====================
Basic Usage Examples
====================
Expand Down
6 changes: 6 additions & 0 deletions docs/upgrade-guides/0.3.0.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
<!---
Copyright BigchainDB GmbH and BigchainDB contributors
SPDX-License-Identifier: (Apache-2.0 AND CC-BY-4.0)
Code is Apache-2.0 and docs are CC-BY-4.0
--->

# Updating js-bigchaindb-driver from v0.1.x to v0.3.0

The latest version of js-bigchaindb-driver contains breaking changes to its
Expand Down
6 changes: 6 additions & 0 deletions examples/README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
<!---
Copyright BigchainDB GmbH and BigchainDB contributors
SPDX-License-Identifier: (Apache-2.0 AND CC-BY-4.0)
Code is Apache-2.0 and docs are CC-BY-4.0
--->

# Quick Notes
`dotenv` is listed as a dependencies in `package.json`.
If you want to use this, add a `.env` file to the root of this project (same level as this `README.md` file)
Expand Down
4 changes: 4 additions & 0 deletions examples/src/basic-usage-async-await.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// Copyright BigchainDB GmbH and BigchainDB contributors
// SPDX-License-Identifier: (Apache-2.0 AND CC-BY-4.0)
// Code is Apache-2.0 and docs are CC-BY-4.0

/* eslint-disable import/no-unresolved */

const driver = require('bigchaindb-driver')
Expand Down
4 changes: 4 additions & 0 deletions examples/src/basic-usage.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// Copyright BigchainDB GmbH and BigchainDB contributors
// SPDX-License-Identifier: (Apache-2.0 AND CC-BY-4.0)
// Code is Apache-2.0 and docs are CC-BY-4.0

/* eslint-disable import/no-unresolved */

const driver = require('bigchaindb-driver')
Expand Down
4 changes: 4 additions & 0 deletions examples/src/query-assets.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// Copyright BigchainDB GmbH and BigchainDB contributors
// SPDX-License-Identifier: (Apache-2.0 AND CC-BY-4.0)
// Code is Apache-2.0 and docs are CC-BY-4.0

/* eslint-disable import/no-unresolved */

const driver = require('bigchaindb-driver')
Expand Down
4 changes: 4 additions & 0 deletions examples/src/seed-func.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// Copyright BigchainDB GmbH and BigchainDB contributors
// SPDX-License-Identifier: (Apache-2.0 AND CC-BY-4.0)
// Code is Apache-2.0 and docs are CC-BY-4.0

/* eslint-disable import/no-unresolved */

import bip39 from 'bip39'
Expand Down
4 changes: 4 additions & 0 deletions plugins/add-vendors-plugin.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// Copyright BigchainDB GmbH and BigchainDB contributors
// SPDX-License-Identifier: (Apache-2.0 AND CC-BY-4.0)
// Code is Apache-2.0 and docs are CC-BY-4.0

const { ConcatSource } = require('webpack-sources')

module.exports = class AddVendorsPlugin {
Expand Down
4 changes: 4 additions & 0 deletions src/Ed25519Keypair.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// Copyright BigchainDB GmbH and BigchainDB contributors
// SPDX-License-Identifier: (Apache-2.0 AND CC-BY-4.0)
// Code is Apache-2.0 and docs are CC-BY-4.0

import base58 from 'bs58'
import nacl from 'tweetnacl'

Expand Down
4 changes: 4 additions & 0 deletions src/baseRequest.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// Copyright BigchainDB GmbH and BigchainDB contributors
// SPDX-License-Identifier: (Apache-2.0 AND CC-BY-4.0)
// Code is Apache-2.0 and docs are CC-BY-4.0

import { Promise } from 'es6-promise'
import fetchPonyfill from 'fetch-ponyfill'
import { vsprintf } from 'sprintf-js'
Expand Down
4 changes: 4 additions & 0 deletions src/connection.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// Copyright BigchainDB GmbH and BigchainDB contributors
// SPDX-License-Identifier: (Apache-2.0 AND CC-BY-4.0)
// Code is Apache-2.0 and docs are CC-BY-4.0

import request from './request'

const HEADER_BLACKLIST = ['content-type']
Expand Down
4 changes: 4 additions & 0 deletions src/format_text.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// Copyright BigchainDB GmbH and BigchainDB contributors
// SPDX-License-Identifier: (Apache-2.0 AND CC-BY-4.0)
// Code is Apache-2.0 and docs are CC-BY-4.0

import { sprintf } from 'sprintf-js'


Expand Down
4 changes: 4 additions & 0 deletions src/index.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// Copyright BigchainDB GmbH and BigchainDB contributors
// SPDX-License-Identifier: (Apache-2.0 AND CC-BY-4.0)
// Code is Apache-2.0 and docs are CC-BY-4.0

export Ed25519Keypair from './Ed25519Keypair'

export Connection from './connection'
Expand Down
4 changes: 4 additions & 0 deletions src/request.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// Copyright BigchainDB GmbH and BigchainDB contributors
// SPDX-License-Identifier: (Apache-2.0 AND CC-BY-4.0)
// Code is Apache-2.0 and docs are CC-BY-4.0

import baseRequest from './baseRequest'
import sanitize from './sanitize'

Expand Down
4 changes: 4 additions & 0 deletions src/sanitize.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// Copyright BigchainDB GmbH and BigchainDB contributors
// SPDX-License-Identifier: (Apache-2.0 AND CC-BY-4.0)
// Code is Apache-2.0 and docs are CC-BY-4.0

import coreIncludes from 'core-js/library/fn/array/includes'
import coreObjectEntries from 'core-js/library/fn/object/entries'

Expand Down
4 changes: 4 additions & 0 deletions src/sha256Hash.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// Copyright BigchainDB GmbH and BigchainDB contributors
// SPDX-License-Identifier: (Apache-2.0 AND CC-BY-4.0)
// Code is Apache-2.0 and docs are CC-BY-4.0

import sha3 from 'js-sha3'

export default function sha256Hash(data) {
Expand Down
4 changes: 4 additions & 0 deletions src/stringify_as_query_param.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// Copyright BigchainDB GmbH and BigchainDB contributors
// SPDX-License-Identifier: (Apache-2.0 AND CC-BY-4.0)
// Code is Apache-2.0 and docs are CC-BY-4.0

import coreObjectEntries from 'core-js/library/fn/object/entries'
import decamelize from 'decamelize'
import queryString from 'query-string'
Expand Down
4 changes: 4 additions & 0 deletions src/transaction.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// Copyright BigchainDB GmbH and BigchainDB contributors
// SPDX-License-Identifier: (Apache-2.0 AND CC-BY-4.0)
// Code is Apache-2.0 and docs are CC-BY-4.0

import { Buffer } from 'buffer'
import stableStringify from 'json-stable-stringify'
import clone from 'clone'
Expand Down
4 changes: 4 additions & 0 deletions src/utils/ccJsonLoad.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// Copyright BigchainDB GmbH and BigchainDB contributors
// SPDX-License-Identifier: (Apache-2.0 AND CC-BY-4.0)
// Code is Apache-2.0 and docs are CC-BY-4.0

import { Buffer } from 'buffer'
import base58 from 'bs58'
import cc from 'crypto-conditions'
Expand Down
4 changes: 4 additions & 0 deletions src/utils/ccJsonify.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// Copyright BigchainDB GmbH and BigchainDB contributors
// SPDX-License-Identifier: (Apache-2.0 AND CC-BY-4.0)
// Code is Apache-2.0 and docs are CC-BY-4.0

import base58 from 'bs58'

/**
Expand Down
4 changes: 4 additions & 0 deletions test/base-request/test_baseRequest.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// Copyright BigchainDB GmbH and BigchainDB contributors
// SPDX-License-Identifier: (Apache-2.0 AND CC-BY-4.0)
// Code is Apache-2.0 and docs are CC-BY-4.0

import test from 'ava'
import baseRequest from '../../src/baseRequest'

Expand Down
4 changes: 4 additions & 0 deletions test/connection/test_connection.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// Copyright BigchainDB GmbH and BigchainDB contributors
// SPDX-License-Identifier: (Apache-2.0 AND CC-BY-4.0)
// Code is Apache-2.0 and docs are CC-BY-4.0

import test from 'ava'
import sinon from 'sinon'

Expand Down
4 changes: 4 additions & 0 deletions test/constants.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// Copyright BigchainDB GmbH and BigchainDB contributors
// SPDX-License-Identifier: (Apache-2.0 AND CC-BY-4.0)
// Code is Apache-2.0 and docs are CC-BY-4.0

import test from 'ava'
import { Transaction, Ed25519Keypair } from '../src'
// TODO: Find out if ava has something like conftest, if so put this there.
Expand Down
4 changes: 4 additions & 0 deletions test/integration/test_integration.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// Copyright BigchainDB GmbH and BigchainDB contributors
// SPDX-License-Identifier: (Apache-2.0 AND CC-BY-4.0)
// Code is Apache-2.0 and docs are CC-BY-4.0

import test from 'ava'
import { Ed25519Keypair, Transaction, Connection } from '../../src'

Expand Down
4 changes: 4 additions & 0 deletions test/sanitize/test_sanitize.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// Copyright BigchainDB GmbH and BigchainDB contributors
// SPDX-License-Identifier: (Apache-2.0 AND CC-BY-4.0)
// Code is Apache-2.0 and docs are CC-BY-4.0

import test from 'ava'
import rewire from 'rewire'

Expand Down
4 changes: 4 additions & 0 deletions test/text-format/test_format_text.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// Copyright BigchainDB GmbH and BigchainDB contributors
// SPDX-License-Identifier: (Apache-2.0 AND CC-BY-4.0)
// Code is Apache-2.0 and docs are CC-BY-4.0

import test from 'ava'
import formatText from '../../src/format_text'

Expand Down
4 changes: 4 additions & 0 deletions test/transaction/test_cryptoconditions.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// Copyright BigchainDB GmbH and BigchainDB contributors
// SPDX-License-Identifier: (Apache-2.0 AND CC-BY-4.0)
// Code is Apache-2.0 and docs are CC-BY-4.0

import test from 'ava'
import cc from 'crypto-conditions'
import { Ed25519Keypair, Transaction, ccJsonLoad } from '../../src'
Expand Down
4 changes: 4 additions & 0 deletions test/transaction/test_transaction.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// Copyright BigchainDB GmbH and BigchainDB contributors
// SPDX-License-Identifier: (Apache-2.0 AND CC-BY-4.0)
// Code is Apache-2.0 and docs are CC-BY-4.0

import test from 'ava'
import sinon from 'sinon'

Expand Down

0 comments on commit 80bf01e

Please sign in to comment.