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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b05de0aada665a43509a4e8fe98ccc07b5af9033
4
- data.tar.gz: 2da0ab1502163df9f913a44e04ac8aa11e17093a
3
+ metadata.gz: b6971282fd0079d859385e38eedf8225b2cb999f
4
+ data.tar.gz: 7a99fd35c50aa4e7a028e340b59d7995cfabc607
5
5
  SHA512:
6
- metadata.gz: d5bcb4201a35022d0ebd95877a0e8066d293e162c40ff8882dee4d09a4926ab49248b8d99cd1938991a3a91cc1dd89bb1258930382aaffc34e0a1acb279b234d
7
- data.tar.gz: 41ac19df8f3ddb8249c27ad9d073e9f53db68423aafcca0f877b04afe8353230e3bcae58df2d84c1c9af9d8664196b32b98c4aed59b57f91bb7fd5f148c21c58
6
+ metadata.gz: a474783b2a4b7f4df85a37b373b1f57f38078010432454950c6e722bb59e9a0ace5aec4cdbd1c44ba989236e302bb909c0dfecd05184bed0cfdd18c4e5983be9
7
+ data.tar.gz: f62943d8c414a9e954bb638394ce38300bfb1efe991c57deaf7f00d66fa85997e179553d7b8ac295dc978398edb7dc0ee68fe7a1f840633b5afd346b1ab5577d
data/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
- The MIT License
1
+ MIT License
2
2
 
3
- Copyright (c) 2010-2016 Google, Inc. http://angularjs.org
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
- all copies or substantial portions of the Software.
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
- THE SOFTWARE.
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
+ [![Build Status](https://travis-ci.org/charly-palencia/blueprint-agreement.svg?branch=master)](https://travis-ci.org/charly-palencia/blueprint-agreement)
4
+ [![Code Climate](https://codeclimate.com/github/charly-palencia/blueprint-agreement/badges/gpa.svg)](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.port = '8081' #Default port for Drakov Server
79
- BlueprintAgreement::Config.server_path= './docs' #Default server path for Drakov Server
111
+ BlueprintAgreement::Config.configure do |config|
112
+ config.port = '8082'
113
+ config.server_path = '.'
114
+ end
80
115
  ```
81
116
 
82
117
 
@@ -9,6 +9,10 @@ module BlueprintAgreement
9
9
  @port = port
10
10
  end
11
11
 
12
+ def server_path=(server_path)
13
+ @server_path = server_path
14
+ end
15
+
12
16
  def active_service?
13
17
  !!@@active_service
14
18
  end
@@ -1,3 +1,3 @@
1
1
  module BlueprintAgreement
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
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.1
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-09-30 00:00:00.000000000 Z
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.