rest-ftp-daemon 0.502.0 → 0.502.1
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 +20 -0
- data/Gemfile.lock +6 -6
- data/Rakefile +1 -1
- data/lib/tasks/dockerize.rake +18 -0
- data/rest-ftp-daemon.gemspec +1 -1
- data/spec/rest-ftp-daemon/features/swagger_spec.rb +5 -5
- metadata +4 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8472cd4971eaaa64aa1a39e2719404068ab8e032
|
4
|
+
data.tar.gz: b8d01b5a614406d3ba9bc813f43224158a8de67b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 864b6cf7abc11d250bf404caae8a24b9241d15dfbadd13528f60ff3d6f26adad84b52c61a6e874ca7073a4ef5c1a800073c041c99a7d90909dadb8a2f16931d6
|
7
|
+
data.tar.gz: e1c80b2ebc34ab81b2c513f1d0bd74b1dc3f88cb661d03e62f70f010db418796b89739b19d21e47c4002b50103921942ccbf045fc3298a618dd1ed2819f22479
|
data/Dockerfile
ADDED
@@ -0,0 +1,20 @@
|
|
1
|
+
# Docker headers
|
2
|
+
FROM ruby:2.3.0-slim
|
3
|
+
MAINTAINER Bruno MEDICI <rest-ftp-daemon@bmconseil.com>
|
4
|
+
|
5
|
+
|
6
|
+
# Install packages
|
7
|
+
RUN apt-get update && apt-get install -qq -y build-essential --fix-missing --no-install-recommends
|
8
|
+
|
9
|
+
|
10
|
+
# Environment
|
11
|
+
ENV LANG=C.UTF-8
|
12
|
+
|
13
|
+
|
14
|
+
# Install app gem
|
15
|
+
RUN gem install rest-ftp-daemon --no-rdoc --no-ri
|
16
|
+
|
17
|
+
|
18
|
+
# App run
|
19
|
+
EXPOSE 3000
|
20
|
+
CMD ["./bin/rest-ftp-daemon", "-p", "3000", "-f", "start"]
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
rest-ftp-daemon (0.502.
|
4
|
+
rest-ftp-daemon (0.502.1)
|
5
5
|
activesupport (~> 4.2)
|
6
6
|
api-auth
|
7
7
|
aws-sdk-resources (~> 2)
|
@@ -38,11 +38,11 @@ GEM
|
|
38
38
|
public_suffix (~> 2.0, >= 2.0.2)
|
39
39
|
api-auth (2.0.1)
|
40
40
|
ast (2.3.0)
|
41
|
-
aws-sdk-core (2.6.
|
41
|
+
aws-sdk-core (2.6.28)
|
42
42
|
aws-sigv4 (~> 1.0)
|
43
43
|
jmespath (~> 1.0)
|
44
|
-
aws-sdk-resources (2.6.
|
45
|
-
aws-sdk-core (= 2.6.
|
44
|
+
aws-sdk-resources (2.6.28)
|
45
|
+
aws-sdk-core (= 2.6.28)
|
46
46
|
aws-sigv4 (1.0.0)
|
47
47
|
axiom-types (0.1.1)
|
48
48
|
descendants_tracker (~> 0.0.4)
|
@@ -123,7 +123,7 @@ GEM
|
|
123
123
|
net-ssh (3.2.0)
|
124
124
|
netrc (0.11.0)
|
125
125
|
newrelic_rpm (3.17.1.326)
|
126
|
-
parser (2.3.
|
126
|
+
parser (2.3.3.0)
|
127
127
|
ast (~> 2.2)
|
128
128
|
powerpack (0.1.1)
|
129
129
|
pry (0.10.4)
|
@@ -175,7 +175,7 @@ GEM
|
|
175
175
|
daemons (~> 1.0, >= 1.0.9)
|
176
176
|
eventmachine (~> 1.0, >= 1.0.4)
|
177
177
|
rack (>= 1, < 3)
|
178
|
-
thor (0.19.
|
178
|
+
thor (0.19.4)
|
179
179
|
thread_safe (0.3.5)
|
180
180
|
tilt (2.0.5)
|
181
181
|
tool (0.2.3)
|
data/Rakefile
CHANGED
@@ -0,0 +1,18 @@
|
|
1
|
+
DOCKER_REPO = "brunom/rest-ftp-daemon"
|
2
|
+
|
3
|
+
desc "Build docker image from latest tag"
|
4
|
+
|
5
|
+
task :dockerize => [] do
|
6
|
+
version = `git describe --tags`.strip
|
7
|
+
|
8
|
+
puts
|
9
|
+
puts "* build [#{version}]"
|
10
|
+
sh "docker build . -t '#{DOCKER_REPO}:#{version}' -t '#{DOCKER_REPO}:latest'"
|
11
|
+
|
12
|
+
puts
|
13
|
+
puts "* push to: [#{DOCKER_REPO}]"
|
14
|
+
sh "docker push #{DOCKER_REPO}:#{version}"
|
15
|
+
sh "docker push #{DOCKER_REPO}:latest"
|
16
|
+
|
17
|
+
puts
|
18
|
+
end
|
data/rest-ftp-daemon.gemspec
CHANGED
@@ -13,11 +13,11 @@ describe "Swagger", feature: true do
|
|
13
13
|
expect(JSON.parse(response.body)).to be_an_instance_of(Hash)
|
14
14
|
end
|
15
15
|
|
16
|
-
it "writes the API doc" do
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
end
|
16
|
+
# it "writes the API doc" do
|
17
|
+
# json_file = File.expand_path "../../swagger.json"
|
18
|
+
# puts "YEAH: #{json_file}"
|
19
|
+
# File.write(json_file, response.body)
|
20
|
+
# end
|
21
21
|
|
22
22
|
end # GET /swagger.json
|
23
23
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rest-ftp-daemon
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.502.
|
4
|
+
version: 0.502.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Bruno MEDICI
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-11-
|
11
|
+
date: 2016-11-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -415,6 +415,7 @@ files:
|
|
415
415
|
- ".rspec"
|
416
416
|
- ".rubocop.yml"
|
417
417
|
- CODE_OF_CONDUCT.md
|
418
|
+
- Dockerfile
|
418
419
|
- Gemfile
|
419
420
|
- Gemfile.lock
|
420
421
|
- LICENSE.txt
|
@@ -519,6 +520,7 @@ files:
|
|
519
520
|
- lib/shared/patch_array.rb
|
520
521
|
- lib/shared/patch_file.rb
|
521
522
|
- lib/shared/patch_haml.rb
|
523
|
+
- lib/tasks/dockerize.rake
|
522
524
|
- rest-ftp-daemon.gemspec
|
523
525
|
- spec/rest-ftp-daemon/features/dashboard_spec.rb
|
524
526
|
- spec/rest-ftp-daemon/features/debug_spec.rb
|