lacerda 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +10 -0
- data/.rspec +2 -0
- data/.ruby-gemset +1 -0
- data/.ruby-version +1 -0
- data/CHANGELOG.markdown +8 -0
- data/Gemfile +2 -0
- data/Guardfile +41 -0
- data/README.md +65 -0
- data/Rakefile +9 -0
- data/circle.yml +3 -0
- data/lacerda.gemspec +35 -0
- data/lib/lacerda.rb +10 -0
- data/lib/lacerda/compare/json_schema.rb +123 -0
- data/lib/lacerda/consume_contract.rb +18 -0
- data/lib/lacerda/consumed_object.rb +16 -0
- data/lib/lacerda/contract.rb +34 -0
- data/lib/lacerda/conversion.rb +132 -0
- data/lib/lacerda/conversion/apiary_to_json_schema.rb +9 -0
- data/lib/lacerda/conversion/data_structure.rb +93 -0
- data/lib/lacerda/conversion/error.rb +7 -0
- data/lib/lacerda/infrastructure.rb +74 -0
- data/lib/lacerda/object_description.rb +34 -0
- data/lib/lacerda/publish_contract.rb +22 -0
- data/lib/lacerda/published_object.rb +14 -0
- data/lib/lacerda/service.rb +63 -0
- data/lib/lacerda/tasks.rb +66 -0
- data/lib/lacerda/version.rb +3 -0
- data/stuff/contracts/author/consume.mson +0 -0
- data/stuff/contracts/author/publish.mson +20 -0
- data/stuff/contracts/edward/consume.mson +7 -0
- data/stuff/contracts/edward/publish.mson +0 -0
- data/stuff/explore/blueprint.apib +239 -0
- data/stuff/explore/swagger.yaml +139 -0
- data/stuff/explore/test.apib +14 -0
- data/stuff/explore/test.mson +239 -0
- data/stuff/explore/tmp.txt +27 -0
- metadata +250 -0
@@ -0,0 +1,139 @@
|
|
1
|
+
# this is an example of the Uber API
|
2
|
+
# as a demonstration of an API spec in YAML
|
3
|
+
swagger: '2.0'
|
4
|
+
info:
|
5
|
+
title: Moviepilot.com
|
6
|
+
description: Edward
|
7
|
+
version: "5.2.1"
|
8
|
+
# the domain of the service
|
9
|
+
host: api.moviepilot.com
|
10
|
+
# array of all schemes that your API supports
|
11
|
+
schemes:
|
12
|
+
- http
|
13
|
+
# will be prefixed to all paths
|
14
|
+
basePath: /v4
|
15
|
+
produces:
|
16
|
+
- application/json
|
17
|
+
paths:
|
18
|
+
/posts/{id}:
|
19
|
+
get:
|
20
|
+
summary: Post
|
21
|
+
description: |
|
22
|
+
Post including author information and so forth
|
23
|
+
parameters:
|
24
|
+
- name: id
|
25
|
+
in: path
|
26
|
+
description: External id.
|
27
|
+
required: true
|
28
|
+
type: number
|
29
|
+
format: integer
|
30
|
+
tags:
|
31
|
+
- Posts
|
32
|
+
responses:
|
33
|
+
200:
|
34
|
+
description: A post
|
35
|
+
schema:
|
36
|
+
type: object
|
37
|
+
properties:
|
38
|
+
id:
|
39
|
+
type: number
|
40
|
+
slug:
|
41
|
+
type: string
|
42
|
+
title:
|
43
|
+
type: string
|
44
|
+
html_body:
|
45
|
+
type: string
|
46
|
+
total_comments_count:
|
47
|
+
type: number
|
48
|
+
created_at:
|
49
|
+
type: string
|
50
|
+
questionnaire_id:
|
51
|
+
type: number
|
52
|
+
template:
|
53
|
+
type: string
|
54
|
+
abstract:
|
55
|
+
type: string
|
56
|
+
keywords:
|
57
|
+
type: array
|
58
|
+
items:
|
59
|
+
type: string
|
60
|
+
cover_image_url:
|
61
|
+
type: string
|
62
|
+
cover_image_caption:
|
63
|
+
type: string
|
64
|
+
seo_title:
|
65
|
+
type: string
|
66
|
+
social_title:
|
67
|
+
type: string
|
68
|
+
social_abstract:
|
69
|
+
type: string
|
70
|
+
suggested_facebook_page_id:
|
71
|
+
type: string
|
72
|
+
comments_disabled:
|
73
|
+
type: boolean
|
74
|
+
is_mobile_post:
|
75
|
+
type: boolean
|
76
|
+
legacy_type:
|
77
|
+
type: string
|
78
|
+
og_image_url:
|
79
|
+
type: string
|
80
|
+
published_at:
|
81
|
+
type: string
|
82
|
+
first_published_at:
|
83
|
+
type: string
|
84
|
+
last_published_at:
|
85
|
+
type: string
|
86
|
+
promoted:
|
87
|
+
type: boolean
|
88
|
+
cover_video:
|
89
|
+
type: string
|
90
|
+
view_count:
|
91
|
+
type: number
|
92
|
+
comment_count:
|
93
|
+
type: number
|
94
|
+
author:
|
95
|
+
type: object
|
96
|
+
in_reply_to:
|
97
|
+
type: object
|
98
|
+
properties:
|
99
|
+
id:
|
100
|
+
type: number
|
101
|
+
type:
|
102
|
+
type: string
|
103
|
+
first_published_at:
|
104
|
+
type: string
|
105
|
+
last_published_at:
|
106
|
+
type: string
|
107
|
+
slug:
|
108
|
+
type: string
|
109
|
+
title:
|
110
|
+
type: string
|
111
|
+
author:
|
112
|
+
type: object
|
113
|
+
properties:
|
114
|
+
id:
|
115
|
+
type: number
|
116
|
+
name:
|
117
|
+
type: string
|
118
|
+
user_name:
|
119
|
+
type: string
|
120
|
+
related_objects:
|
121
|
+
type: array
|
122
|
+
items:
|
123
|
+
properties:
|
124
|
+
id:
|
125
|
+
type: number
|
126
|
+
type:
|
127
|
+
type: string
|
128
|
+
slug:
|
129
|
+
type: string
|
130
|
+
name:
|
131
|
+
type: string
|
132
|
+
image_url:
|
133
|
+
type: string
|
134
|
+
subscriber_count:
|
135
|
+
type: number
|
136
|
+
required:
|
137
|
+
- id
|
138
|
+
- title
|
139
|
+
- html_body
|
@@ -0,0 +1,14 @@
|
|
1
|
+
FORMAT: 1A
|
2
|
+
HOST: http://api.moviepilot.com/
|
3
|
+
|
4
|
+
# Edward
|
5
|
+
|
6
|
+
# Status [/v2]
|
7
|
+
|
8
|
+
## GET
|
9
|
+
|
10
|
+
+ Response 200 (application/json)
|
11
|
+
+ Body
|
12
|
+
+ Attributes
|
13
|
+
- name: Mila (string, required) - Given name
|
14
|
+
- email: hello@max-and-mila.com (string, optional) - User's email
|
@@ -0,0 +1,239 @@
|
|
1
|
+
FORMAT: 1A
|
2
|
+
HOST: http://api.moviepilot.com/
|
3
|
+
|
4
|
+
# Edward
|
5
|
+
|
6
|
+
# Status [/v2]
|
7
|
+
|
8
|
+
We'll forward you to the v2 status resource
|
9
|
+
|
10
|
+
## Retrieve the Entry Point [GET]
|
11
|
+
|
12
|
+
+ Response 200 (application/json; charset=utf-8)
|
13
|
+
+ Body
|
14
|
+
+ Attributes
|
15
|
+
- version: 5.2.1 (string, required) - Version number of currently deployed Edward
|
16
|
+
- server_time: `2015-08-11T08:19:41.556-07:00` (string, required) - Server's time
|
17
|
+
- user_id: 888448 (number, optional) - Requesting user's id
|
18
|
+
|
19
|
+
## Group Posts
|
20
|
+
|
21
|
+
Resources related to posts in the API.
|
22
|
+
|
23
|
+
## Post [/v4/posts/{id}]
|
24
|
+
|
25
|
+
+ Parameters
|
26
|
+
+ id: `3461151` (number, required) - External id
|
27
|
+
|
28
|
+
### View a post [GET]
|
29
|
+
|
30
|
+
+ Response 200 (application/json; charset=utf-8)
|
31
|
+
|
32
|
+
+ Body
|
33
|
+
|
34
|
+
{
|
35
|
+
"id": 3461151,
|
36
|
+
"slug": "it-would-not-have-cost-marketing-any-more-money-to-add-black-widow-on",
|
37
|
+
"title": "It would not have cost marketing any more money to add Black Widow on...",
|
38
|
+
"html_body": "<p>... the cover (or Hawkeye, for that matter). And would it not have been better to take the chance at one more sale by having her on than to lose a sale by not having her on?And don't say that the main characters would then have been smaller because they could have placed Black Widow to the left and behind or above the main characters without changing their relative size.</p>",
|
39
|
+
"total_comments_count": 0,
|
40
|
+
"created_at": "2015-08-11T06:23:50.000-07:00",
|
41
|
+
"questionnaire_id": null,
|
42
|
+
"template": null,
|
43
|
+
"abstract": null,
|
44
|
+
"keywords": null,
|
45
|
+
"cover_image_url": null,
|
46
|
+
"cover_image_caption": null,
|
47
|
+
"seo_title": null,
|
48
|
+
"social_title": null,
|
49
|
+
"social_abstract": null,
|
50
|
+
"suggested_facebook_page_id": "1525889887653500",
|
51
|
+
"comments_disabled": false,
|
52
|
+
"is_mobile_post": false,
|
53
|
+
"legacy_type": "post",
|
54
|
+
"og_image_url": "http://images-cdn.moviepilot.com/image/upload/v1431953404/pocket_post_big2_ct9cex.png",
|
55
|
+
"published_at": "2015-08-11T06:23:50.000-07:00",
|
56
|
+
"first_published_at": "2015-08-11T06:23:50.000-07:00",
|
57
|
+
"last_published_at": "2015-08-11T06:23:50.000-07:00",
|
58
|
+
"promoted": null,
|
59
|
+
"cover_video": {},
|
60
|
+
"view_count": 0,
|
61
|
+
"comment_count": 0,
|
62
|
+
"author": {
|
63
|
+
"id": 1394326,
|
64
|
+
"name": "Richard Lemay",
|
65
|
+
"first_name": "Richard",
|
66
|
+
"last_name": "Lemay",
|
67
|
+
"user_name": null,
|
68
|
+
"image_url": "https://graph.facebook.com/695180451/picture",
|
69
|
+
"description": null,
|
70
|
+
"followers_count": 1,
|
71
|
+
"verified": "contributor",
|
72
|
+
"user_subscription_count": 3,
|
73
|
+
"weekly_readers": 0,
|
74
|
+
"contributions_count": 1,
|
75
|
+
"contribution_view_count": 0,
|
76
|
+
"contribution_comments_count": 0,
|
77
|
+
"facebook_id": "695180451",
|
78
|
+
"twitter_handle": null,
|
79
|
+
"location": null,
|
80
|
+
"avatar_image_url": null,
|
81
|
+
"cover_image_url": null,
|
82
|
+
"provider_image_url": "https://graph.facebook.com/695180451/picture",
|
83
|
+
"flags": [],
|
84
|
+
"roles": [
|
85
|
+
"contributor"
|
86
|
+
],
|
87
|
+
"profile_public": true,
|
88
|
+
"auto_promote_posts": true
|
89
|
+
},
|
90
|
+
"in_reply_to": {
|
91
|
+
"id": 3457913,
|
92
|
+
"type": "post",
|
93
|
+
"first_published_at": "2015-08-10T07:02:09.000-07:00",
|
94
|
+
"last_published_at": "2015-08-10T07:17:08.000-07:00",
|
95
|
+
"slug": "black-widow-was-just-snubbed-by-marvel-again",
|
96
|
+
"title": "Black Widow Was Just Snubbed by Marvel...AGAIN",
|
97
|
+
"author": {
|
98
|
+
"id": 1311215,
|
99
|
+
"name": "Kit Simpson Browne",
|
100
|
+
"user_name": "Kitsb"
|
101
|
+
}
|
102
|
+
},
|
103
|
+
"related_objects": [
|
104
|
+
{
|
105
|
+
"id": 205406,
|
106
|
+
"type": "tag",
|
107
|
+
"slug": "superheroes",
|
108
|
+
"name": "Superheroes",
|
109
|
+
"image_url": "http://images-cdn.moviepilot.com/image/upload/c_fill,h_237,t_mp_quality,w_600/-14cf0c53-33e1-41be-abb6-4490542ec6db.gif",
|
110
|
+
"subscriber_count": 45802
|
111
|
+
},
|
112
|
+
{
|
113
|
+
"id": 932254,
|
114
|
+
"type": "tag",
|
115
|
+
"slug": "marvel",
|
116
|
+
"name": "Marvel",
|
117
|
+
"image_url": "http://images-cdn.moviepilot.com/image/upload/c_fill,h_211,t_mp_quality,w_500/-76cc31d4-897f-486c-9dbb-8e22fd30cf1b.gif",
|
118
|
+
"subscriber_count": 8627
|
119
|
+
},
|
120
|
+
{
|
121
|
+
"id": 958506,
|
122
|
+
"type": "tag",
|
123
|
+
"slug": "casting",
|
124
|
+
"name": "Casting",
|
125
|
+
"image_url": "http://images-cdn.moviepilot.com/image/upload/c_fill,h_400,t_mp_quality,w_960/-364bed3a-81c7-4e44-8735-3500b536e23d.jpg",
|
126
|
+
"subscriber_count": 668
|
127
|
+
},
|
128
|
+
{
|
129
|
+
"id": 958518,
|
130
|
+
"type": "tag",
|
131
|
+
"slug": "opinion",
|
132
|
+
"name": "Opinion",
|
133
|
+
"image_url": "http://images-cdn.moviepilot.com/image/upload/c_fill,h_205,t_mp_quality,w_400/-f08c141c-387b-4dc2-a399-8aadd4084155.gif",
|
134
|
+
"subscriber_count": 236
|
135
|
+
},
|
136
|
+
{
|
137
|
+
"id": 958527,
|
138
|
+
"type": "tag",
|
139
|
+
"slug": "industry",
|
140
|
+
"name": "Industry",
|
141
|
+
"image_url": "http://images-cdn.moviepilot.com/image/upload/c_fill,h_235,t_mp_quality,w_416/-71298c11-8adb-4db0-8375-7d921f732dc2.gif",
|
142
|
+
"subscriber_count": 9
|
143
|
+
},
|
144
|
+
{
|
145
|
+
"id": 958545,
|
146
|
+
"type": "tag",
|
147
|
+
"slug": "rumors",
|
148
|
+
"name": "Rumors",
|
149
|
+
"image_url": "http://images-cdn.moviepilot.com/image/upload/c_fill,h_433,t_mp_quality,w_580/-b44f55e3-0f23-4192-bf77-de110b2f7f9a.gif",
|
150
|
+
"subscriber_count": 178
|
151
|
+
},
|
152
|
+
{
|
153
|
+
"id": 959395,
|
154
|
+
"type": "tag",
|
155
|
+
"slug": "creators",
|
156
|
+
"name": "Creators",
|
157
|
+
"image_url": "http://images-cdn.moviepilot.com/image/upload/c_fill,h_600,t_mp_quality,w_600/-10293491-38f3-4d79-a119-1897cd86c90a.jpg",
|
158
|
+
"subscriber_count": 657
|
159
|
+
},
|
160
|
+
{
|
161
|
+
"id": 959428,
|
162
|
+
"type": "tag",
|
163
|
+
"slug": "news",
|
164
|
+
"name": "News",
|
165
|
+
"image_url": "http://images-cdn.moviepilot.com/image/upload/c_fill,h_450,t_mp_quality,w_960/-e837b84b-712a-4c9a-8663-3117601c7856.jpg",
|
166
|
+
"subscriber_count": 665
|
167
|
+
},
|
168
|
+
{
|
169
|
+
"id": 960923,
|
170
|
+
"type": "tag",
|
171
|
+
"slug": "editorial",
|
172
|
+
"name": "Editorial",
|
173
|
+
"image_url": "http://images-cdn.moviepilot.com/image/upload/c_fill,h_300,t_mp_quality,w_500/-daff61f2-3d14-4c50-ac51-1ece761e6c71.gif",
|
174
|
+
"subscriber_count": 60
|
175
|
+
},
|
176
|
+
{
|
177
|
+
"id": 978148,
|
178
|
+
"type": "tag",
|
179
|
+
"slug": "dvd-blu-ray",
|
180
|
+
"name": "DVD & Blu-ray",
|
181
|
+
"image_url": "http://images-cdn.moviepilot.com/image/upload/c_fill,h_235,t_mp_quality,w_500/-c6dfb789-4d04-4810-a627-5cce20d77e19.gif",
|
182
|
+
"subscriber_count": 27
|
183
|
+
},
|
184
|
+
{
|
185
|
+
"id": 1070824,
|
186
|
+
"type": "tag",
|
187
|
+
"slug": "black-widow",
|
188
|
+
"name": "Black Widow",
|
189
|
+
"image_url": "http://images-cdn.moviepilot.com/image/upload/c_fill,h_380,t_mp_quality,w_920/-ee6baf50-8e27-491a-b2a5-4fbea6edfa2a.jpg",
|
190
|
+
"subscriber_count": 1573
|
191
|
+
},
|
192
|
+
{
|
193
|
+
"id": 1096390,
|
194
|
+
"type": "tag",
|
195
|
+
"slug": "mcu",
|
196
|
+
"name": "Marvel Cinematic Universe",
|
197
|
+
"image_url": "http://images-cdn.moviepilot.com/image/upload/c_fill,h_250,t_mp_quality,w_500/-f71691fc-3123-40ce-8b56-bc14a69f1527.gif",
|
198
|
+
"subscriber_count": 2076
|
199
|
+
},
|
200
|
+
{
|
201
|
+
"id": 1327911,
|
202
|
+
"type": "tag",
|
203
|
+
"slug": "plot",
|
204
|
+
"name": "Plot",
|
205
|
+
"image_url": "http://images-cdn.moviepilot.com/image/upload/c_fill,h_463,t_mp_quality,w_850/-ee8b3c7a-6017-4208-8753-0eeee8ba2c6c.png",
|
206
|
+
"subscriber_count": 3
|
207
|
+
}
|
208
|
+
]
|
209
|
+
}
|
210
|
+
|
211
|
+
|
212
|
+
+ Attributes
|
213
|
+
- id: 3461151 (number, required) - Post's id
|
214
|
+
- slug: `it-would-not-have-cost-marketing-any-more-money-to-add-black-widow-on` (string, required) - Url slug
|
215
|
+
- title: `It would not have cost marketing any more money to add Black Widow on...` (string, required) - Title
|
216
|
+
- html_body: <p>foo</p> (string, required) - Full HTML Body
|
217
|
+
- total_comments_count: 0 (number, required) - Amount of comments
|
218
|
+
- created_at: 2015-08-11T06:23:50.000-07:00 (string, required) - ActiveRecord creation date
|
219
|
+
- questionnaire_id: null (number, optional) - Attached questionaire
|
220
|
+
- template: null (string, optional) - Not sure, perhaps a legacy type?
|
221
|
+
- abstract: null (string, optional) - Not used at the moment, this is from tarantula days
|
222
|
+
- keywords: null (string, optional)
|
223
|
+
- cover_image_url: null (string, optional)
|
224
|
+
- cover_image_caption: null (string, optional)
|
225
|
+
- seo_title: null (string, optional)
|
226
|
+
- social_title: null (string, optional)
|
227
|
+
- social_abstract: null (string, optional)
|
228
|
+
- suggested_facebook_page_id: "1525889887653500" (string, optional)
|
229
|
+
- comments_disabled: false (boolean, optional)
|
230
|
+
- is_mobile_post: false (boolean, optional)
|
231
|
+
- legacy_type: "post" (string, required)
|
232
|
+
- og_image_url: "http://images-cdn.moviepilot.com/image/upload/v1431953404/pocket_post_big2_ct9cex.png" (string, required)
|
233
|
+
- published_at: "2015-08-11T06:23:50.000-07:00" (string, required)
|
234
|
+
- first_published_at: "2015-08-11T06:23:50.000-07:00" (string, required)
|
235
|
+
- last_published_at: "2015-08-11T06:23:50.000-07:00" (string, required)
|
236
|
+
- promoted: null (string, optional)
|
237
|
+
- cover_video: {} (object, optional)
|
238
|
+
- view_count: 0 (number, required)
|
239
|
+
- comment_count: 0 (number, required)
|
@@ -0,0 +1,27 @@
|
|
1
|
+
- id: 3461151 (number, required) - Post's id
|
2
|
+
- slug: `it-would-not-have-cost-marketing-any-more-money-to-add-black-widow-on` (string, required) - Url slug fro mtitle
|
3
|
+
- title: `It would not have cost marketing any more money to add Black Widow on...` (string, required) - Post's Title
|
4
|
+
- html_body: <p>foo</p> (string, required) - Full HTML body of the post
|
5
|
+
- total_comments_count: 0
|
6
|
+
- created_at: "2015-08-11T06:23:50.000-07:00"
|
7
|
+
- questionnaire_id: null
|
8
|
+
- template: null
|
9
|
+
- abstract: null
|
10
|
+
- keywords: null
|
11
|
+
- cover_image_url: null
|
12
|
+
- cover_image_caption: null
|
13
|
+
- seo_title: null
|
14
|
+
- social_title: null
|
15
|
+
- social_abstract: null
|
16
|
+
- suggested_facebook_page_id: "1525889887653500"
|
17
|
+
- comments_disabled: false
|
18
|
+
- is_mobile_post: false
|
19
|
+
- legacy_type: "post"
|
20
|
+
- og_image_url: "http://images-cdn.moviepilot.com/image/upload/v1431953404/pocket_post_big2_ct9cex.png"
|
21
|
+
- published_at: "2015-08-11T06:23:50.000-07:00"
|
22
|
+
- first_published_at: "2015-08-11T06:23:50.000-07:00"
|
23
|
+
- last_published_at: "2015-08-11T06:23:50.000-07:00"
|
24
|
+
- promoted: null
|
25
|
+
- cover_video: {}
|
26
|
+
- view_count: 0
|
27
|
+
- comment_count: 0
|
metadata
ADDED
@@ -0,0 +1,250 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: lacerda
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.3.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Jannis Hermanns
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2015-10-28 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: activesupport
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - ">="
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '0'
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ">="
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '0'
|
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.2'
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '10.2'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: json-schema
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "~>"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '2.5'
|
48
|
+
type: :runtime
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "~>"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '2.5'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: redsnow
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - "~>"
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0.4'
|
62
|
+
type: :runtime
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - "~>"
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '0.4'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: colorize
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - ">="
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '0'
|
76
|
+
type: :runtime
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - ">="
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '0'
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: bundler
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - "~>"
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '1'
|
90
|
+
type: :development
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - "~>"
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: '1'
|
97
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
name: guard-bundler
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - "~>"
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: '2.1'
|
104
|
+
type: :development
|
105
|
+
prerelease: false
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - "~>"
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: '2.1'
|
111
|
+
- !ruby/object:Gem::Dependency
|
112
|
+
name: guard-ctags-bundler
|
113
|
+
requirement: !ruby/object:Gem::Requirement
|
114
|
+
requirements:
|
115
|
+
- - "~>"
|
116
|
+
- !ruby/object:Gem::Version
|
117
|
+
version: '1.4'
|
118
|
+
type: :development
|
119
|
+
prerelease: false
|
120
|
+
version_requirements: !ruby/object:Gem::Requirement
|
121
|
+
requirements:
|
122
|
+
- - "~>"
|
123
|
+
- !ruby/object:Gem::Version
|
124
|
+
version: '1.4'
|
125
|
+
- !ruby/object:Gem::Dependency
|
126
|
+
name: guard-rspec
|
127
|
+
requirement: !ruby/object:Gem::Requirement
|
128
|
+
requirements:
|
129
|
+
- - "~>"
|
130
|
+
- !ruby/object:Gem::Version
|
131
|
+
version: '4.6'
|
132
|
+
type: :development
|
133
|
+
prerelease: false
|
134
|
+
version_requirements: !ruby/object:Gem::Requirement
|
135
|
+
requirements:
|
136
|
+
- - "~>"
|
137
|
+
- !ruby/object:Gem::Version
|
138
|
+
version: '4.6'
|
139
|
+
- !ruby/object:Gem::Dependency
|
140
|
+
name: rspec
|
141
|
+
requirement: !ruby/object:Gem::Requirement
|
142
|
+
requirements:
|
143
|
+
- - "~>"
|
144
|
+
- !ruby/object:Gem::Version
|
145
|
+
version: '3.3'
|
146
|
+
type: :development
|
147
|
+
prerelease: false
|
148
|
+
version_requirements: !ruby/object:Gem::Requirement
|
149
|
+
requirements:
|
150
|
+
- - "~>"
|
151
|
+
- !ruby/object:Gem::Version
|
152
|
+
version: '3.3'
|
153
|
+
- !ruby/object:Gem::Dependency
|
154
|
+
name: coveralls
|
155
|
+
requirement: !ruby/object:Gem::Requirement
|
156
|
+
requirements:
|
157
|
+
- - "~>"
|
158
|
+
- !ruby/object:Gem::Version
|
159
|
+
version: '0.8'
|
160
|
+
type: :development
|
161
|
+
prerelease: false
|
162
|
+
version_requirements: !ruby/object:Gem::Requirement
|
163
|
+
requirements:
|
164
|
+
- - "~>"
|
165
|
+
- !ruby/object:Gem::Version
|
166
|
+
version: '0.8'
|
167
|
+
- !ruby/object:Gem::Dependency
|
168
|
+
name: codeclimate-test-reporter
|
169
|
+
requirement: !ruby/object:Gem::Requirement
|
170
|
+
requirements:
|
171
|
+
- - ">="
|
172
|
+
- !ruby/object:Gem::Version
|
173
|
+
version: '0'
|
174
|
+
type: :development
|
175
|
+
prerelease: false
|
176
|
+
version_requirements: !ruby/object:Gem::Requirement
|
177
|
+
requirements:
|
178
|
+
- - ">="
|
179
|
+
- !ruby/object:Gem::Version
|
180
|
+
version: '0'
|
181
|
+
description: Specify which objects your services publish or consume in MSON (markdown)
|
182
|
+
and let this gem validate these contracts.
|
183
|
+
email:
|
184
|
+
- jannis@gmail.com
|
185
|
+
executables: []
|
186
|
+
extensions: []
|
187
|
+
extra_rdoc_files: []
|
188
|
+
files:
|
189
|
+
- ".gitignore"
|
190
|
+
- ".rspec"
|
191
|
+
- ".ruby-gemset"
|
192
|
+
- ".ruby-version"
|
193
|
+
- CHANGELOG.markdown
|
194
|
+
- Gemfile
|
195
|
+
- Guardfile
|
196
|
+
- README.md
|
197
|
+
- Rakefile
|
198
|
+
- circle.yml
|
199
|
+
- lacerda.gemspec
|
200
|
+
- lib/lacerda.rb
|
201
|
+
- lib/lacerda/compare/json_schema.rb
|
202
|
+
- lib/lacerda/consume_contract.rb
|
203
|
+
- lib/lacerda/consumed_object.rb
|
204
|
+
- lib/lacerda/contract.rb
|
205
|
+
- lib/lacerda/conversion.rb
|
206
|
+
- lib/lacerda/conversion/apiary_to_json_schema.rb
|
207
|
+
- lib/lacerda/conversion/data_structure.rb
|
208
|
+
- lib/lacerda/conversion/error.rb
|
209
|
+
- lib/lacerda/infrastructure.rb
|
210
|
+
- lib/lacerda/object_description.rb
|
211
|
+
- lib/lacerda/publish_contract.rb
|
212
|
+
- lib/lacerda/published_object.rb
|
213
|
+
- lib/lacerda/service.rb
|
214
|
+
- lib/lacerda/tasks.rb
|
215
|
+
- lib/lacerda/version.rb
|
216
|
+
- stuff/contracts/author/consume.mson
|
217
|
+
- stuff/contracts/author/publish.mson
|
218
|
+
- stuff/contracts/edward/consume.mson
|
219
|
+
- stuff/contracts/edward/publish.mson
|
220
|
+
- stuff/explore/blueprint.apib
|
221
|
+
- stuff/explore/swagger.yaml
|
222
|
+
- stuff/explore/test.apib
|
223
|
+
- stuff/explore/test.mson
|
224
|
+
- stuff/explore/tmp.txt
|
225
|
+
homepage: https://github.com/moviepilot/lacerda
|
226
|
+
licenses:
|
227
|
+
- MIT
|
228
|
+
metadata: {}
|
229
|
+
post_install_message:
|
230
|
+
rdoc_options: []
|
231
|
+
require_paths:
|
232
|
+
- lib
|
233
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
234
|
+
requirements:
|
235
|
+
- - ">="
|
236
|
+
- !ruby/object:Gem::Version
|
237
|
+
version: '0'
|
238
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
239
|
+
requirements:
|
240
|
+
- - ">="
|
241
|
+
- !ruby/object:Gem::Version
|
242
|
+
version: '0'
|
243
|
+
requirements: []
|
244
|
+
rubyforge_project:
|
245
|
+
rubygems_version: 2.4.8
|
246
|
+
signing_key:
|
247
|
+
specification_version: 4
|
248
|
+
summary: Markdown publish/consume contract parser and validator
|
249
|
+
test_files: []
|
250
|
+
has_rdoc:
|