minimum-term 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -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,220 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: minimum-term
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.2.0
5
+ platform: ruby
6
+ authors:
7
+ - Jannis Hermanns
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2015-10-21 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: '4.2'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '4.2'
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: colorize
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - ">="
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
62
+ type: :runtime
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - ">="
67
+ - !ruby/object:Gem::Version
68
+ version: '0'
69
+ - !ruby/object:Gem::Dependency
70
+ name: bundler
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - "~>"
74
+ - !ruby/object:Gem::Version
75
+ version: '1'
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - "~>"
81
+ - !ruby/object:Gem::Version
82
+ version: '1'
83
+ - !ruby/object:Gem::Dependency
84
+ name: guard-bundler
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - "~>"
88
+ - !ruby/object:Gem::Version
89
+ version: '2.1'
90
+ type: :development
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - "~>"
95
+ - !ruby/object:Gem::Version
96
+ version: '2.1'
97
+ - !ruby/object:Gem::Dependency
98
+ name: guard-ctags-bundler
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - "~>"
102
+ - !ruby/object:Gem::Version
103
+ version: '1.4'
104
+ type: :development
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - "~>"
109
+ - !ruby/object:Gem::Version
110
+ version: '1.4'
111
+ - !ruby/object:Gem::Dependency
112
+ name: guard-rspec
113
+ requirement: !ruby/object:Gem::Requirement
114
+ requirements:
115
+ - - "~>"
116
+ - !ruby/object:Gem::Version
117
+ version: '4.6'
118
+ type: :development
119
+ prerelease: false
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ requirements:
122
+ - - "~>"
123
+ - !ruby/object:Gem::Version
124
+ version: '4.6'
125
+ - !ruby/object:Gem::Dependency
126
+ name: rspec
127
+ requirement: !ruby/object:Gem::Requirement
128
+ requirements:
129
+ - - "~>"
130
+ - !ruby/object:Gem::Version
131
+ version: '3.3'
132
+ type: :development
133
+ prerelease: false
134
+ version_requirements: !ruby/object:Gem::Requirement
135
+ requirements:
136
+ - - "~>"
137
+ - !ruby/object:Gem::Version
138
+ version: '3.3'
139
+ - !ruby/object:Gem::Dependency
140
+ name: simplecov-rcov
141
+ requirement: !ruby/object:Gem::Requirement
142
+ requirements:
143
+ - - "~>"
144
+ - !ruby/object:Gem::Version
145
+ version: '0.2'
146
+ type: :development
147
+ prerelease: false
148
+ version_requirements: !ruby/object:Gem::Requirement
149
+ requirements:
150
+ - - "~>"
151
+ - !ruby/object:Gem::Version
152
+ version: '0.2'
153
+ description: Specify which objects your services publish or consume in MSON (markdown)
154
+ and let this gem validate these contracts.
155
+ email:
156
+ - jannis@gmail.com
157
+ executables: []
158
+ extensions: []
159
+ extra_rdoc_files: []
160
+ files:
161
+ - ".gitignore"
162
+ - ".rspec"
163
+ - ".ruby-gemset"
164
+ - ".ruby-version"
165
+ - Gemfile
166
+ - Guardfile
167
+ - README.markdown
168
+ - Rakefile
169
+ - circle.yml
170
+ - lib/minimum-term.rb
171
+ - lib/minimum-term/compare/json_schema.rb
172
+ - lib/minimum-term/consume_contract.rb
173
+ - lib/minimum-term/consumed_object.rb
174
+ - lib/minimum-term/contract.rb
175
+ - lib/minimum-term/conversion.rb
176
+ - lib/minimum-term/conversion/apiary_to_json_schema.rb
177
+ - lib/minimum-term/conversion/data_structure.rb
178
+ - lib/minimum-term/conversion/error.rb
179
+ - lib/minimum-term/infrastructure.rb
180
+ - lib/minimum-term/object_description.rb
181
+ - lib/minimum-term/publish_contract.rb
182
+ - lib/minimum-term/published_object.rb
183
+ - lib/minimum-term/service.rb
184
+ - lib/minimum-term/tasks.rb
185
+ - lib/minimum-term/version.rb
186
+ - minimum-term.gemspec
187
+ - stuff/contracts/author/consume.mson
188
+ - stuff/contracts/author/publish.mson
189
+ - stuff/contracts/edward/consume.mson
190
+ - stuff/contracts/edward/publish.mson
191
+ - stuff/explore/blueprint.apib
192
+ - stuff/explore/swagger.yaml
193
+ - stuff/explore/test.apib
194
+ - stuff/explore/test.mson
195
+ - stuff/explore/tmp.txt
196
+ homepage: https://github.com/moviepilot/minimum-term
197
+ licenses:
198
+ - MIT
199
+ metadata: {}
200
+ post_install_message:
201
+ rdoc_options: []
202
+ require_paths:
203
+ - lib
204
+ required_ruby_version: !ruby/object:Gem::Requirement
205
+ requirements:
206
+ - - ">="
207
+ - !ruby/object:Gem::Version
208
+ version: '0'
209
+ required_rubygems_version: !ruby/object:Gem::Requirement
210
+ requirements:
211
+ - - ">="
212
+ - !ruby/object:Gem::Version
213
+ version: '0'
214
+ requirements: []
215
+ rubyforge_project:
216
+ rubygems_version: 2.4.8
217
+ signing_key:
218
+ specification_version: 4
219
+ summary: Markdown publish/consume contract parser and validator
220
+ test_files: []