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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 46058c0143f1f92461d483617da6a497dee3e3cb
4
- data.tar.gz: 4808d296f0c6346d339fcb22ac938eb4d0a1caf9
3
+ metadata.gz: 4699d3d7c96098bae552c250e4582ea8c0a49c41
4
+ data.tar.gz: bf650623af2c0657b6b65cdcd3dfb730af2ac722
5
5
  SHA512:
6
- metadata.gz: f9db42ab9903822be059b7b7e369f51211cab0dfa4efff46a031cf9bf5734cc9fbef3fd34a0cb259236d19846e299d099ba745cf81991d233ff5b11d07195268
7
- data.tar.gz: 729de0ffa92178971dc0ff27789aebdbbef8fbb0a54da2ee9a3d64732ddd1bd471db87ded9651cb23ab5a20890ab3f2b2f6c1a8c124937bd2b9a4ed160f21b10
6
+ metadata.gz: 34e9eab967b6c8f72757fae5776fb5c98a782b0dcf1825d60579dc332af561ed7c0066be9e1d10fdb97717d4e0cc2e0ce4da643695197557e608ccbe8ea00591
7
+ data.tar.gz: bb0cf806e05f5c4e6a441df80c5a853be86beff1dae8727ad38259f9fe552b72f922ddc3cf062fa701da13fc717fee0937d09e364730b3b72d3fb07e166742c4
data/Dockerfile CHANGED
@@ -1,4 +1,4 @@
1
1
  FROM ruby
2
2
 
3
- RUN gem install rest_shifter
3
+ RUN gem install rest_shifter -v 0.0.26
4
4
  ENTRYPOINT ["rest_shifter"]
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://192.168.59.103:8080/hello_world
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
@@ -1,3 +1,3 @@
1
1
  module RestShifter
2
- VERSION = "0.0.26"
2
+ VERSION = "0.0.27"
3
3
  end
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', '>= 0.0.15'
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.26
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