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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ddaa358b2058ec6147ee67678e0fae63b9c1728e6658da413e6e65a6c8961e9f
4
- data.tar.gz: 778961a47e48528e655e976456141aa66af6e64d9f8b6dc4da232f052c0b89e4
3
+ metadata.gz: b579ec62c5fa7318e04f098dc340ab925431588e05b28554509c6bd83d2b881f
4
+ data.tar.gz: 1e4c0e97b6414775da7fcd11703e5f7d4f2d1c825e5434c426d5d22d3f219abe
5
5
  SHA512:
6
- metadata.gz: 1ad41c3cdd090efd71bfe97577e2da3bc96485b2674231f49e77a605202e8ddfbb07a81176ddf821158d90b475716f123e60aa8a6c93dd822a645c38586f70c4
7
- data.tar.gz: b4d2820a576c040f26caa413a7c910d13d65df515f2216e5cce8ae9addaf330110274a5382edd626d73ab08757cbf437aa38071368623493898be81427484df9
6
+ metadata.gz: 279b6a523ef0cd39a4c652177e47c2e46596a9ddcb27ed91f7e6ab51ed9169f126301f3a9e0a404e9abf33960fac7a277b18c989bcdeea1e6c697b3a1ebc23fd
7
+ data.tar.gz: 98f27a8c8aa1c4a9154bc69963831b65e757620c2c6f571a28a7f4a2fae192340033967780263f7423b9cc347a72311a85957cb85578f21c5c792dae9bafe8b4
@@ -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
- Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/swagger/api`. To experiment with that code, run `bin/console` for an interactive prompt.
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
- TODO: Write usage instructions here
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://github.com/[USERNAME]/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.
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
 
@@ -12,6 +12,8 @@ module Swagger
12
12
 
13
13
  def self.create
14
14
  @config ||= {
15
+ openapi: '3.0.0',
16
+ security: [{api_key: []}],
15
17
  info: info,
16
18
  servers: [{url: server_url}],
17
19
  paths: Paths.new(controllers: config.controllers).create,
@@ -1,5 +1,5 @@
1
1
  module Swagger
2
2
  module Api
3
- VERSION = "0.1.4"
3
+ VERSION = "0.1.5"
4
4
  end
5
5
  end
@@ -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
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