blueprint_agreement 0.0.1 → 0.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/LICENSE +6 -6
- data/README.md +37 -2
- data/lib/blueprint_agreement/config.rb +4 -0
- data/lib/blueprint_agreement/version.rb +1 -1
- metadata +2 -3
- data/LICENSE.txt +0 -22
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: b6971282fd0079d859385e38eedf8225b2cb999f
|
|
4
|
+
data.tar.gz: 7a99fd35c50aa4e7a028e340b59d7995cfabc607
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: a474783b2a4b7f4df85a37b373b1f57f38078010432454950c6e722bb59e9a0ace5aec4cdbd1c44ba989236e302bb909c0dfecd05184bed0cfdd18c4e5983be9
|
|
7
|
+
data.tar.gz: f62943d8c414a9e954bb638394ce38300bfb1efe991c57deaf7f00d66fa85997e179553d7b8ac295dc978398edb7dc0ee68fe7a1f840633b5afd346b1ab5577d
|
data/LICENSE
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
MIT License
|
|
2
2
|
|
|
3
|
-
Copyright (c)
|
|
3
|
+
Copyright (c) 2016, Blueprint Agreement
|
|
4
4
|
|
|
5
5
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
6
|
of this software and associated documentation files (the "Software"), to deal
|
|
@@ -9,13 +9,13 @@ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
|
9
9
|
copies of the Software, and to permit persons to whom the Software is
|
|
10
10
|
furnished to do so, subject to the following conditions:
|
|
11
11
|
|
|
12
|
-
The above copyright notice and this permission notice shall be included in
|
|
13
|
-
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
14
|
|
|
15
15
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
16
|
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
17
|
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
18
|
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
19
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
21
|
-
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
data/README.md
CHANGED
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
# Blueprint Agreement
|
|
2
2
|
|
|
3
|
+
[](https://travis-ci.org/charly-palencia/blueprint-agreement)
|
|
4
|
+
[](https://codeclimate.com/github/charly-palencia/blueprint-agreement)
|
|
5
|
+
|
|
3
6
|
A Minitest API Documentation Matcher based on ApiBluePrint schema.
|
|
4
7
|
|
|
5
8
|
Note: This Gem Is Currently on Development.
|
|
@@ -69,14 +72,46 @@ describe Test do
|
|
|
69
72
|
end
|
|
70
73
|
end
|
|
71
74
|
```
|
|
75
|
+
### Debug Mode
|
|
76
|
+
|
|
77
|
+
use a env variable calls `AGREEMENT_LOUD`
|
|
78
|
+
|
|
79
|
+
``` bash
|
|
80
|
+
$ AGREEMENT_LOUD=true rake test
|
|
81
|
+
```
|
|
82
|
+
|
|
83
|
+
Output:
|
|
84
|
+
|
|
85
|
+
``` bash
|
|
86
|
+
...Drakov server output...
|
|
87
|
+
[DRAKOV] GET /message example
|
|
88
|
+
|
|
89
|
+
Method: GET
|
|
90
|
+
Path: http://localhost:8082/message
|
|
72
91
|
|
|
92
|
+
Details
|
|
93
|
+
|
|
94
|
+
Headers:
|
|
95
|
+
|
|
96
|
+
|
|
97
|
+
Content-Type=application/json
|
|
98
|
+
Authorization=Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.example
|
|
99
|
+
|
|
100
|
+
Body:
|
|
101
|
+
|
|
102
|
+
{"param_1": "hi"}
|
|
103
|
+
|
|
104
|
+
|
|
105
|
+
```
|
|
73
106
|
### Config File
|
|
74
107
|
|
|
75
108
|
/config/initializer/blueprint_agreement.rb
|
|
76
109
|
|
|
77
110
|
``` ruby
|
|
78
|
-
BlueprintAgreement::Config.
|
|
79
|
-
|
|
111
|
+
BlueprintAgreement::Config.configure do |config|
|
|
112
|
+
config.port = '8082'
|
|
113
|
+
config.server_path = '.'
|
|
114
|
+
end
|
|
80
115
|
```
|
|
81
116
|
|
|
82
117
|
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: blueprint_agreement
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Charly Palencia
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2016-
|
|
11
|
+
date: 2016-12-15 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|
|
@@ -92,7 +92,6 @@ files:
|
|
|
92
92
|
- ".travis.yml"
|
|
93
93
|
- Gemfile
|
|
94
94
|
- LICENSE
|
|
95
|
-
- LICENSE.txt
|
|
96
95
|
- README.md
|
|
97
96
|
- Rakefile
|
|
98
97
|
- blueprint_agreement.gemspec
|
data/LICENSE.txt
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
Copyright (c) 2016 Charly Palencia
|
|
2
|
-
|
|
3
|
-
MIT License
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining
|
|
6
|
-
a copy of this software and associated documentation files (the
|
|
7
|
-
"Software"), to deal in the Software without restriction, including
|
|
8
|
-
without limitation the rights to use, copy, modify, merge, publish,
|
|
9
|
-
distribute, sublicense, and/or sell copies of the Software, and to
|
|
10
|
-
permit persons to whom the Software is furnished to do so, subject to
|
|
11
|
-
the following conditions:
|
|
12
|
-
|
|
13
|
-
The above copyright notice and this permission notice shall be
|
|
14
|
-
included in all copies or substantial portions of the Software.
|
|
15
|
-
|
|
16
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
17
|
-
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
18
|
-
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
|
19
|
-
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
|
20
|
-
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
|
21
|
-
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
|
22
|
-
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|