rest_shifter 0.0.26 → 0.0.27
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/Dockerfile +1 -1
- data/README.md +9 -1
- data/lib/rest_shifter/version.rb +1 -1
- data/rest_shifter.gemspec +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 4699d3d7c96098bae552c250e4582ea8c0a49c41
|
|
4
|
+
data.tar.gz: bf650623af2c0657b6b65cdcd3dfb730af2ac722
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 34e9eab967b6c8f72757fae5776fb5c98a782b0dcf1825d60579dc332af561ed7c0066be9e1d10fdb97717d4e0cc2e0ce4da643695197557e608ccbe8ea00591
|
|
7
|
+
data.tar.gz: bb0cf806e05f5c4e6a441df80c5a853be86beff1dae8727ad38259f9fe552b72f922ddc3cf062fa701da13fc717fee0937d09e364730b3b72d3fb07e166742c4
|
data/Dockerfile
CHANGED
data/README.md
CHANGED
|
@@ -104,11 +104,19 @@ When using with docker you don't need to add either ruby or the gem itself to yo
|
|
|
104
104
|
$ docker pull camiloribeiro/rest_shifter:latest
|
|
105
105
|
$ docker run -it -v $PWD/spec/flavors:/root/.rest_shifter/flavors -p 8080:8080 camiloribeiro/rest_shifter -s
|
|
106
106
|
|
|
107
|
-
Access http://
|
|
107
|
+
Access http://localhost:8080/hello_world
|
|
108
108
|
It should return a 200 ok response status with the json:
|
|
109
109
|
|
|
110
110
|
$ { "hello_world" : "Your service is working fine. :D" }
|
|
111
111
|
|
|
112
|
+
Or you can also run a version in https:
|
|
113
|
+
|
|
114
|
+
$ docker run -it -v $PWD/spec/flavors:/root/.rest_shifter/flavors -p 8080:4443 camiloribeiro/rest_shifter -X
|
|
115
|
+
|
|
116
|
+
Access http://localhost:8080/hello_world
|
|
117
|
+
|
|
118
|
+
It should return a 200 ok response status with the json:
|
|
119
|
+
|
|
112
120
|
Replace the spec/flavors for a directory where you have your flavor files as described in this document. The container uses rest_shifter as endpoint, so if you want to start in SSL mode, just use -S instead. All the other parameters also work with the docker container entrypoint.
|
|
113
121
|
|
|
114
122
|
Developing
|
data/lib/rest_shifter/version.rb
CHANGED
data/rest_shifter.gemspec
CHANGED
|
@@ -30,7 +30,7 @@ Gem::Specification.new do |s|
|
|
|
30
30
|
s.add_development_dependency 'nyan-cat-formatter'
|
|
31
31
|
s.add_development_dependency 'rack-test'
|
|
32
32
|
|
|
33
|
-
s.add_dependency 'icecream', '
|
|
33
|
+
s.add_dependency 'icecream', '= 0.0.15'
|
|
34
34
|
s.add_dependency 'sinatra'
|
|
35
35
|
s.add_dependency 'rack-ssl'
|
|
36
36
|
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: rest_shifter
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.27
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Camilo Ribeiro
|
|
@@ -126,14 +126,14 @@ dependencies:
|
|
|
126
126
|
name: icecream
|
|
127
127
|
requirement: !ruby/object:Gem::Requirement
|
|
128
128
|
requirements:
|
|
129
|
-
- - '
|
|
129
|
+
- - '='
|
|
130
130
|
- !ruby/object:Gem::Version
|
|
131
131
|
version: 0.0.15
|
|
132
132
|
type: :runtime
|
|
133
133
|
prerelease: false
|
|
134
134
|
version_requirements: !ruby/object:Gem::Requirement
|
|
135
135
|
requirements:
|
|
136
|
-
- - '
|
|
136
|
+
- - '='
|
|
137
137
|
- !ruby/object:Gem::Version
|
|
138
138
|
version: 0.0.15
|
|
139
139
|
- !ruby/object:Gem::Dependency
|