manifoldco_signature 0.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.github/CONDUCT.md +73 -0
- data/.github/CONTRIBUTING.md +74 -0
- data/.gitignore +9 -0
- data/.travis.yml +5 -0
- data/Gemfile +4 -0
- data/LICENSE.md +29 -0
- data/README.md +20 -0
- data/Rakefile +10 -0
- data/bin/console +14 -0
- data/bin/setup +8 -0
- data/lib/manifoldco_signature/version.rb +3 -0
- data/lib/manifoldco_signature.rb +5 -0
- data/manifoldco_signature.gemspec +25 -0
- metadata +98 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 5a3ff3aafe5057d737179dba27c7d91b6fdbbd5b
|
4
|
+
data.tar.gz: 7927ce286d4f39f3a83ebc71d658f32d103d85d5
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 62645710aa36c657705573ee46477ac4628c440d167c113e3a22fa7160926830d9a60393f2a442173329843046c2c54ab3a22d6428f990b9632daf70a4d634a0
|
7
|
+
data.tar.gz: ff52fcf5524d69a37a06e9f75791db423da40311b052be18234a758e75874372cf2b1df1d34b6a430bc6e82e48e4a1f652629ed2f648b74f92799728059792bb
|
data/.github/CONDUCT.md
ADDED
@@ -0,0 +1,73 @@
|
|
1
|
+
# Code of Conduct
|
2
|
+
|
3
|
+
## Our Pledge
|
4
|
+
|
5
|
+
In the interest of fostering an open and welcoming environment, we as
|
6
|
+
contributors and maintainers pledge to making participation in our project and
|
7
|
+
our community a harassment-free experience for everyone, regardless of age,
|
8
|
+
body size, disability, ethnicity, gender identity and expression, level of
|
9
|
+
experience, nationality, personal appearance, race, religion, or sexual
|
10
|
+
identity and orientation.
|
11
|
+
|
12
|
+
## Our Standards
|
13
|
+
|
14
|
+
Examples of behaviour that contributes to creating a positive environment
|
15
|
+
include:
|
16
|
+
|
17
|
+
- Using welcoming and inclusive language
|
18
|
+
- Being respectful of differing viewpoints and experiences
|
19
|
+
- Gracefully accepting constructive criticism
|
20
|
+
- Focusing on what is best for the community
|
21
|
+
- Showing empathy towards other community members
|
22
|
+
|
23
|
+
Examples of unacceptable behaviour by participants include:
|
24
|
+
|
25
|
+
- The use of sexualized language or imagery and unwelcome sexual attention or
|
26
|
+
advances
|
27
|
+
- Trolling, insulting/derogatory comments, and personal or political attacks
|
28
|
+
- Public or private harassment
|
29
|
+
- Publishing others' private information, such as a physical or electronic
|
30
|
+
address, without explicit permission
|
31
|
+
- Other conduct which could reasonably be considered inappropriate in a
|
32
|
+
professional setting
|
33
|
+
|
34
|
+
## Our Responsibilities
|
35
|
+
|
36
|
+
Project maintainers are responsible for clarifying the standards of acceptable
|
37
|
+
behaviour and are expected to take appropriate and fair corrective action in
|
38
|
+
response to any instances of unacceptable behaviour.
|
39
|
+
|
40
|
+
Project maintainers have the right and responsibility to remove, edit, or
|
41
|
+
reject comments, commits, code, wiki edits, issues, and other contributions
|
42
|
+
that are not aligned to this Code of Conduct, or to ban temporarily or
|
43
|
+
permanently any contributor for other behaviours that they deem inappropriate,
|
44
|
+
threatening, offensive, or harmful.
|
45
|
+
|
46
|
+
## Scope
|
47
|
+
|
48
|
+
This Code of Conduct applies both within project spaces and in public spaces
|
49
|
+
when an individual is representing the project or its community. Examples of
|
50
|
+
representing a project or community include using an official project e-mail
|
51
|
+
address, posting via an official social media account, or acting as an
|
52
|
+
appointed representative at an online or offline event. Representation of a
|
53
|
+
project may be further defined and clarified by project maintainers.
|
54
|
+
|
55
|
+
## Enforcement
|
56
|
+
|
57
|
+
Instances of abusive, harassing, or otherwise unacceptable behavior may be
|
58
|
+
reported by contacting the project team at
|
59
|
+
[hello@manifold.co](mailto:hello@manifold.co). All complaints will be reviewed
|
60
|
+
and investigated and will result in a response that is deemed necessary and
|
61
|
+
appropriate to the circumstances. The project team is obligated to maintain
|
62
|
+
confidentiality with regard to the reporter of an incident. Further details of
|
63
|
+
specific enforcement policies may be posted separately.
|
64
|
+
|
65
|
+
Project maintainers who do not follow or enforce the Code of Conduct in good
|
66
|
+
faith may face temporary or permanent repercussions as determined by other
|
67
|
+
members of the project's leadership.
|
68
|
+
|
69
|
+
## Attribution
|
70
|
+
|
71
|
+
This Code of Conduct is adapted from the Contributor Covenant, version 1.4,
|
72
|
+
available at
|
73
|
+
[http://contributor-covenant.org/version/1/4](http://contributor-covenant.org/version/1/4).
|
@@ -0,0 +1,74 @@
|
|
1
|
+
# Contributing Guidelines
|
2
|
+
|
3
|
+
Contributions are always welcome; however, please read this document in its
|
4
|
+
entirety before submitting a Pull Request or Reporting a bug.
|
5
|
+
|
6
|
+
### Table of Contents
|
7
|
+
|
8
|
+
- [Reporting a bug](#reporting-a-bug)
|
9
|
+
- [Security disclosure](#security-disclosure)
|
10
|
+
- [Creating an issue](#creating-an-issue)
|
11
|
+
- [Feature requests](#feature-requests)
|
12
|
+
- [Opening a pull request](#opening-a-pull-request)
|
13
|
+
- [Code of Conduct](#code-of-conduct)
|
14
|
+
- [License](#license)
|
15
|
+
- [Contributor license agreement](#contributor-license-agreement)
|
16
|
+
|
17
|
+
---------------
|
18
|
+
|
19
|
+
# Reporting a Bug
|
20
|
+
|
21
|
+
Think you've found a bug? Let us know!
|
22
|
+
|
23
|
+
### Security disclosure
|
24
|
+
|
25
|
+
Security is a top priority for us. If you have encountered a security issue
|
26
|
+
please responsibly disclose it by following our [security
|
27
|
+
disclosure](../docs/security.md) document.
|
28
|
+
|
29
|
+
# Creating an Issue
|
30
|
+
|
31
|
+
Your issue must follow these guidelines for it to be considered:
|
32
|
+
|
33
|
+
#### Before submitting
|
34
|
+
|
35
|
+
- Check you’re on the latest version, we may have already fixed your bug!
|
36
|
+
- [Search our issue
|
37
|
+
tracker](https://github.com/manifoldco/ruby-manifoldco-signature/issues/search&type=issues)
|
38
|
+
for your problem, someone may have already reported it
|
39
|
+
|
40
|
+
# Opening a Pull Request
|
41
|
+
|
42
|
+
To contribute, [fork](https://help.github.com/articles/fork-a-repo/)
|
43
|
+
`ruby-manifoldco-signature`, commit your changes, and [open a pull
|
44
|
+
request](https://help.github.com/articles/using-pull-requests/).
|
45
|
+
|
46
|
+
Your request will be reviewed as soon as possible. You may be asked to make
|
47
|
+
changes to your submission during the review process.
|
48
|
+
|
49
|
+
#### Before submitting
|
50
|
+
|
51
|
+
- Run the tests using `make ci`
|
52
|
+
- Test your change thoroughly
|
53
|
+
|
54
|
+
|
55
|
+
# Code of Conduct
|
56
|
+
|
57
|
+
All community members are expected to adhere to our [code of
|
58
|
+
conduct](./CONDUCT.md).
|
59
|
+
|
60
|
+
|
61
|
+
# License
|
62
|
+
|
63
|
+
ruby-manifoldco-signature is released under the [BSD 3-Clause
|
64
|
+
License](../LICENSE.md).
|
65
|
+
|
66
|
+
|
67
|
+
# Contributor license agreement
|
68
|
+
|
69
|
+
For legal purposes all contributors must sign a [contributor license
|
70
|
+
agreement](https://cla-assistant.io/manifoldco/ruby-manifoldco-signature),
|
71
|
+
either for an individual or corporation, before a pull request can be accepted.
|
72
|
+
|
73
|
+
You will be prompted to sign the agreement by CLA Assistant (bot) when you open
|
74
|
+
a Pull Request for the first time.
|
data/.gitignore
ADDED
data/.travis.yml
ADDED
data/Gemfile
ADDED
data/LICENSE.md
ADDED
@@ -0,0 +1,29 @@
|
|
1
|
+
BSD 3-Clause License
|
2
|
+
|
3
|
+
Copyright (c) 2017, Arigato Machine Inc.
|
4
|
+
All rights reserved.
|
5
|
+
|
6
|
+
Redistribution and use in source and binary forms, with or without
|
7
|
+
modification, are permitted provided that the following conditions are met:
|
8
|
+
|
9
|
+
* Redistributions of source code must retain the above copyright notice, this
|
10
|
+
list of conditions and the following disclaimer.
|
11
|
+
|
12
|
+
* Redistributions in binary form must reproduce the above copyright notice,
|
13
|
+
this list of conditions and the following disclaimer in the documentation
|
14
|
+
and/or other materials provided with the distribution.
|
15
|
+
|
16
|
+
* Neither the name of the copyright holder nor the names of its
|
17
|
+
contributors may be used to endorse or promote products derived from
|
18
|
+
this software without specific prior written permission.
|
19
|
+
|
20
|
+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
21
|
+
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
22
|
+
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
23
|
+
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
|
24
|
+
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
25
|
+
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
26
|
+
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
27
|
+
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
28
|
+
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
29
|
+
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
data/README.md
ADDED
@@ -0,0 +1,20 @@
|
|
1
|
+
# manifoldco_signature
|
2
|
+
|
3
|
+
Verify signed HTTP requests from Manifold.
|
4
|
+
|
5
|
+
## Installation
|
6
|
+
|
7
|
+
Add this line to your application's Gemfile:
|
8
|
+
|
9
|
+
```ruby
|
10
|
+
gem 'manifoldco_signature'
|
11
|
+
```
|
12
|
+
|
13
|
+
And then execute:
|
14
|
+
|
15
|
+
$ bundle
|
16
|
+
|
17
|
+
Or install it yourself as:
|
18
|
+
|
19
|
+
$ gem install manifoldco_signature
|
20
|
+
|
data/Rakefile
ADDED
data/bin/console
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
|
3
|
+
require "bundler/setup"
|
4
|
+
require "manifoldco_signature"
|
5
|
+
|
6
|
+
# You can add fixtures and/or initialization code here to make experimenting
|
7
|
+
# with your gem easier. You can also use a different console, if you like.
|
8
|
+
|
9
|
+
# (If you use this, don't forget to add pry to your Gemfile!)
|
10
|
+
# require "pry"
|
11
|
+
# Pry.start
|
12
|
+
|
13
|
+
require "irb"
|
14
|
+
IRB.start(__FILE__)
|
data/bin/setup
ADDED
@@ -0,0 +1,25 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
lib = File.expand_path('../lib', __FILE__)
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
+
require 'manifoldco_signature/version'
|
5
|
+
|
6
|
+
Gem::Specification.new do |spec|
|
7
|
+
spec.name = "manifoldco_signature"
|
8
|
+
spec.version = ManifoldcoSignature::VERSION
|
9
|
+
spec.authors = ["James Bowes"]
|
10
|
+
spec.email = ["jbowes@repl.ca"]
|
11
|
+
|
12
|
+
spec.summary = "Verify signed HTTP requests from Manifold"
|
13
|
+
spec.homepage = "https://github.com/manifoldco/ruby-manifoldco-signaturek"
|
14
|
+
|
15
|
+
spec.files = `git ls-files -z`.split("\x0").reject do |f|
|
16
|
+
f.match(%r{^(test|spec|features)/})
|
17
|
+
end
|
18
|
+
spec.bindir = "exe"
|
19
|
+
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
20
|
+
spec.require_paths = ["lib"]
|
21
|
+
|
22
|
+
spec.add_development_dependency "bundler", "~> 1.14"
|
23
|
+
spec.add_development_dependency "rake", "~> 10.0"
|
24
|
+
spec.add_development_dependency "minitest", "~> 5.0"
|
25
|
+
end
|
metadata
ADDED
@@ -0,0 +1,98 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: manifoldco_signature
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- James Bowes
|
8
|
+
autorequire:
|
9
|
+
bindir: exe
|
10
|
+
cert_chain: []
|
11
|
+
date: 2017-03-05 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: bundler
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - ~>
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '1.14'
|
20
|
+
type: :development
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ~>
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '1.14'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: rake
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - ~>
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '10.0'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - ~>
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '10.0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: minitest
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - ~>
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '5.0'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - ~>
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '5.0'
|
55
|
+
description:
|
56
|
+
email:
|
57
|
+
- jbowes@repl.ca
|
58
|
+
executables: []
|
59
|
+
extensions: []
|
60
|
+
extra_rdoc_files: []
|
61
|
+
files:
|
62
|
+
- .github/CONDUCT.md
|
63
|
+
- .github/CONTRIBUTING.md
|
64
|
+
- .gitignore
|
65
|
+
- .travis.yml
|
66
|
+
- Gemfile
|
67
|
+
- LICENSE.md
|
68
|
+
- README.md
|
69
|
+
- Rakefile
|
70
|
+
- bin/console
|
71
|
+
- bin/setup
|
72
|
+
- lib/manifoldco_signature.rb
|
73
|
+
- lib/manifoldco_signature/version.rb
|
74
|
+
- manifoldco_signature.gemspec
|
75
|
+
homepage: https://github.com/manifoldco/ruby-manifoldco-signaturek
|
76
|
+
licenses: []
|
77
|
+
metadata: {}
|
78
|
+
post_install_message:
|
79
|
+
rdoc_options: []
|
80
|
+
require_paths:
|
81
|
+
- lib
|
82
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
83
|
+
requirements:
|
84
|
+
- - '>='
|
85
|
+
- !ruby/object:Gem::Version
|
86
|
+
version: '0'
|
87
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
88
|
+
requirements:
|
89
|
+
- - '>='
|
90
|
+
- !ruby/object:Gem::Version
|
91
|
+
version: '0'
|
92
|
+
requirements: []
|
93
|
+
rubyforge_project:
|
94
|
+
rubygems_version: 2.0.14.1
|
95
|
+
signing_key:
|
96
|
+
specification_version: 4
|
97
|
+
summary: Verify signed HTTP requests from Manifold
|
98
|
+
test_files: []
|