swagger-api 0.1.4 → 0.1.5
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/.gitlab-ci.yml +65 -0
- data/README.md +7 -5
- data/lib/swagger/api.rb +2 -0
- data/lib/swagger/api/version.rb +1 -1
- data/swagger.yml +46 -0
- metadata +3 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b579ec62c5fa7318e04f098dc340ab925431588e05b28554509c6bd83d2b881f
|
4
|
+
data.tar.gz: 1e4c0e97b6414775da7fcd11703e5f7d4f2d1c825e5434c426d5d22d3f219abe
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 279b6a523ef0cd39a4c652177e47c2e46596a9ddcb27ed91f7e6ab51ed9169f126301f3a9e0a404e9abf33960fac7a277b18c989bcdeea1e6c697b3a1ebc23fd
|
7
|
+
data.tar.gz: 98f27a8c8aa1c4a9154bc69963831b65e757620c2c6f571a28a7f4a2fae192340033967780263f7423b9cc347a72311a85957cb85578f21c5c792dae9bafe8b4
|
data/.gitlab-ci.yml
ADDED
@@ -0,0 +1,65 @@
|
|
1
|
+
stages:
|
2
|
+
- build
|
3
|
+
- deploy
|
4
|
+
- test
|
5
|
+
- push
|
6
|
+
|
7
|
+
rspec:
|
8
|
+
stage: test
|
9
|
+
image: registry.gitlab.com/fullmeasure/public/docker/rails-mysql-node:latest
|
10
|
+
variables:
|
11
|
+
MYSQL_ROOT_PASSWORD: 'root'
|
12
|
+
DB_ROOT_PASS: 'root'
|
13
|
+
RAILS_ENV: test
|
14
|
+
services:
|
15
|
+
- docker:dind
|
16
|
+
- mysql:5.6
|
17
|
+
- redis:latest
|
18
|
+
before_script:
|
19
|
+
- bundle install --quiet
|
20
|
+
- bundle exec rake db:create >> /dev/null
|
21
|
+
- bundle exec rake db:migrate
|
22
|
+
- npm install -g bower --quiet >> /dev/null
|
23
|
+
- npm install -g yarn --quiet >> /dev/null
|
24
|
+
- bower install --allow-root --silent
|
25
|
+
- yarn install --silent
|
26
|
+
- bundle exec rake assets:yarn_install
|
27
|
+
script:
|
28
|
+
- bundle exec rspec
|
29
|
+
artifacts:
|
30
|
+
name: "$CI_COMMIT_REF_NAME-$CI_COMMIT_SHA"
|
31
|
+
when: always
|
32
|
+
expire_in: 1 week
|
33
|
+
paths:
|
34
|
+
- coverage/
|
35
|
+
only:
|
36
|
+
- /^master$/
|
37
|
+
|
38
|
+
codequality:
|
39
|
+
stage: test
|
40
|
+
allow_failure: true
|
41
|
+
image: docker:latest
|
42
|
+
variables:
|
43
|
+
DOCKER_DRIVER: overlay
|
44
|
+
services:
|
45
|
+
- docker:dind
|
46
|
+
script:
|
47
|
+
- docker pull codeclimate/codeclimate
|
48
|
+
- docker run --env CODECLIMATE_CODE="$PWD" --volume "$PWD":/code --volume /var/run/docker.sock:/var/run/docker.sock --volume /tmp/cc:/tmp/cc codeclimate/codeclimate:0.69.0 init
|
49
|
+
- docker run --env CODECLIMATE_CODE="$PWD" --volume "$PWD":/code --volume /var/run/docker.sock:/var/run/docker.sock --volume /tmp/cc:/tmp/cc codeclimate/codeclimate:0.69.0 analyze -f json > codeclimate.json || true
|
50
|
+
artifacts:
|
51
|
+
paths: [codeclimate.json]
|
52
|
+
|
53
|
+
|
54
|
+
deploy:
|
55
|
+
stage: deploy
|
56
|
+
retry: 2
|
57
|
+
image: registry.gitlab.com/fullmeasure/public/docker/rails-mysql-node:latest
|
58
|
+
before_script:
|
59
|
+
- gem install gem-release
|
60
|
+
- gem bump patch
|
61
|
+
- gem build swagger-api
|
62
|
+
script:
|
63
|
+
- gem push swagger-api
|
64
|
+
only:
|
65
|
+
- /(^master$)/
|
data/README.md
CHANGED
@@ -1,8 +1,6 @@
|
|
1
1
|
# Swagger::Api
|
2
2
|
|
3
|
-
|
4
|
-
|
5
|
-
TODO: Delete this and the text above, and describe your gem
|
3
|
+
A gem to make swagger documentation easier to create
|
6
4
|
|
7
5
|
## Installation
|
8
6
|
|
@@ -22,7 +20,11 @@ Or install it yourself as:
|
|
22
20
|
|
23
21
|
## Usage
|
24
22
|
|
25
|
-
|
23
|
+
Create a swagger.yml and place it in you gem directory (see swagger.yml in root directory for an example)
|
24
|
+
|
25
|
+
$ bundle exec rake swagger:api
|
26
|
+
|
27
|
+
This will create
|
26
28
|
|
27
29
|
## Development
|
28
30
|
|
@@ -32,7 +34,7 @@ To install this gem onto your local machine, run `bundle exec rake install`. To
|
|
32
34
|
|
33
35
|
## Contributing
|
34
36
|
|
35
|
-
Bug reports and pull requests are welcome on GitHub at https://
|
37
|
+
Bug reports and pull requests are welcome on GitHub at https://gitlab.com/fullmeasure/swagger-api/swagger-api. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
|
36
38
|
|
37
39
|
## License
|
38
40
|
|
data/lib/swagger/api.rb
CHANGED
data/lib/swagger/api/version.rb
CHANGED
data/swagger.yml
ADDED
@@ -0,0 +1,46 @@
|
|
1
|
+
info:
|
2
|
+
version: 1.0.0-oas
|
3
|
+
title: FME Integrations
|
4
|
+
description: Student basic information and audiences
|
5
|
+
servers:
|
6
|
+
cm_production:
|
7
|
+
url: https://cm.fullmeasureed.com/api/webservices
|
8
|
+
cm_stage:
|
9
|
+
url: https://cm.stage.fullmeasureed.com/api/webservices
|
10
|
+
iwu_production:
|
11
|
+
url: https://iwu.fullmeasureed.com/api/webservices
|
12
|
+
iwu_stage:
|
13
|
+
url: https://iwu.stage.fullmeasureed.com/api/webservices
|
14
|
+
development:
|
15
|
+
url: https://localhost:3000/api/webservices
|
16
|
+
controllers:
|
17
|
+
- name: Api::WebServices::StudentsController
|
18
|
+
model: Student
|
19
|
+
columns:
|
20
|
+
only:
|
21
|
+
- id
|
22
|
+
- first_name
|
23
|
+
- last_name
|
24
|
+
- email
|
25
|
+
- mobile_phone_number
|
26
|
+
- external_student_id
|
27
|
+
- type
|
28
|
+
|
29
|
+
required:
|
30
|
+
- id
|
31
|
+
- first_name
|
32
|
+
- last_name
|
33
|
+
- email
|
34
|
+
- mobile_phone_number
|
35
|
+
- external_student_id
|
36
|
+
- type
|
37
|
+
|
38
|
+
- name: Api::WebServices::AudiencesController
|
39
|
+
model: Audience
|
40
|
+
|
41
|
+
- name: Api::WebServices::AudienceStudentsController
|
42
|
+
actions:
|
43
|
+
except:
|
44
|
+
- update
|
45
|
+
model: AudienceStudent
|
46
|
+
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: swagger-api
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Full Measure Education
|
@@ -75,6 +75,7 @@ extensions: []
|
|
75
75
|
extra_rdoc_files: []
|
76
76
|
files:
|
77
77
|
- ".gitignore"
|
78
|
+
- ".gitlab-ci.yml"
|
78
79
|
- ".rspec"
|
79
80
|
- ".travis.yml"
|
80
81
|
- CODE_OF_CONDUCT.md
|
@@ -103,6 +104,7 @@ files:
|
|
103
104
|
- lib/swagger/api/version.rb
|
104
105
|
- lib/swagger/railtie.rb
|
105
106
|
- swagger-api.gemspec
|
107
|
+
- swagger.yml
|
106
108
|
homepage: https://gitlab.com/fullmeasure/public/swagger-api/swagger-api
|
107
109
|
licenses:
|
108
110
|
- MIT
|