rest-ftp-daemon 0.502.0 → 0.502.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3b771227ebc077ba4d30cb7bcce47a2bdb0d7d14
4
- data.tar.gz: aa4dc8592a04fd1b83df3157854ad3b0dc8f34e3
3
+ metadata.gz: 8472cd4971eaaa64aa1a39e2719404068ab8e032
4
+ data.tar.gz: b8d01b5a614406d3ba9bc813f43224158a8de67b
5
5
  SHA512:
6
- metadata.gz: 2d26f7e76b9ab1f527d4efa5131ec43cc91837a7c60d9fa61661136b12338b4fcbdbe672d4f3b8352e21cd23457de454285ddb04516fa7d75c7b660b8769961e
7
- data.tar.gz: 4f4937aaaceb79504b2ef05f8952acf4c47327ad8e7af22520c8ef0d4e7e56143d1424755fcb0d9b0dcd0cb33bf28cc555280513c9690c9e58801832b940ac4d
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.0)
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.27)
41
+ aws-sdk-core (2.6.28)
42
42
  aws-sigv4 (~> 1.0)
43
43
  jmespath (~> 1.0)
44
- aws-sdk-resources (2.6.27)
45
- aws-sdk-core (= 2.6.27)
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.2.0)
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.1)
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
@@ -11,7 +11,7 @@ RuboCop::RakeTask.new(:rubocop) do |task|
11
11
  end
12
12
 
13
13
  # Load my own tasks
14
- # Dir.glob('lib/tasks/*.rake').each { |r| import r }
14
+ Dir.glob('lib/tasks/*.rake').each { |r| import r }
15
15
 
16
16
  # Run specs by default
17
17
  desc "Run all tests"
@@ -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
@@ -2,7 +2,7 @@
2
2
  Gem::Specification.new do |spec|
3
3
 
4
4
  # Project version
5
- spec.version = "0.502.0"
5
+ spec.version = "0.502.1"
6
6
 
7
7
  # Project description
8
8
  spec.name = "rest-ftp-daemon"
@@ -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
- json_file = File.expand_path "../../swagger.json"
18
- puts "YEAH: #{json_file}"
19
- File.write(json_file, response.body)
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.0
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-22 00:00:00.000000000 Z
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