mina-infinum 1.1.4 → 1.2.0

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
- SHA1:
3
- metadata.gz: 9d50a9e80cb25ec34692344749fa6dcabb09a985
4
- data.tar.gz: 1aba4036071fbc678a18c2351f944640a4611968
2
+ SHA256:
3
+ metadata.gz: 0deead416b164b0a25cddb51f997e75f8c32048738d8d85c5ff720a2e37a3e5d
4
+ data.tar.gz: 5b77efff55331661944c8153971c7bcd5eec89718484aa7182739441419232ad
5
5
  SHA512:
6
- metadata.gz: f0437313f5600061e80ebfbee2bb49ad083753d018aee34db7fa65492c6c28f51f30c8d8f89b95427e19111e08525e4b7ca3b6a5607f690e227fdbf38f1f2111
7
- data.tar.gz: 2d8de080d51b59d5c975fb15272fe14932521d4ef409dc064a4b05b59a51d24ea9dbf168ed029520417819211c5245796375b05737e55506beb500c1de232cc2
6
+ metadata.gz: d108ff3c8084a8d6e756d599636ea01de8fc901bb049382b71c1c5dfeb7add08f2a32f5d693ff2f3051b5bf86df405602d194c07e28e024e5a063a52624a970b
7
+ data.tar.gz: 7558fa44c5b544b6bc9ac13a2eac212231bfb4cb17a2d950b353192a0c88bb64fdc29c368fe7865a9212db52cdbb6e76d9dea8671a111c2b1e3bceafdf6c06ca
data/README.md CHANGED
@@ -12,11 +12,13 @@ For `mina 0.3.0` please take a look at [v0.3.0 branch](https://github.com/infinu
12
12
 
13
13
  Removed mina-delayed_job as we are moving towards delayed_job in processes.
14
14
  github
15
+
15
16
  ## Setup
16
17
 
17
18
  ``` ruby
18
- set :application_name, <APP_NAME> # Used in background workers tasks
19
- set :background_worker, <WORKER_NAME> # Used in background workers tasks (eg. 'dj')
19
+ set :application_name, <APP_NAME> # Used in background workers tasks
20
+ set :background_worker, <WORKER_NAME> # Used in background workers tasks (eg. 'dj')
21
+ set :publish_api_path, <PUBLIC API PATH> # Used in publish api docs tasks(eg. 'api/v1/docs')
20
22
  ```
21
23
 
22
24
  Background workers name:
@@ -28,7 +30,8 @@ Background workers name:
28
30
  ## Tasks
29
31
 
30
32
  ``` ruby
31
- :restart_application # restart passenger
33
+ :restart_application # restart passenger
34
+ :publish_api_doc # Publish dox to the server
32
35
  :'background_workers:restart'
33
36
  :'background_workers:start'
34
37
  :'background_workers:stop'
@@ -18,3 +18,14 @@ namespace :background_workers do
18
18
  command %(sudo stop #{background_worker_name} > /dev/null 2>&1; sudo start #{background_worker_name})
19
19
  end
20
20
  end
21
+
22
+ task :publish_api_doc do
23
+ ensure!(:publish_api_path)
24
+ run(:remote) do
25
+ command "mkdir -p #{fetch(:current_path)}/public/#{fetch(:publish_api_path)}"
26
+ end
27
+
28
+ run(:local) do
29
+ command "scp -P #{fetch(:port)} public/#{fetch(:publish_api_path)}/index.html #{fetch(:user)}@#{fetch(:domain)}:#{fetch(:current_path)}/public/#{fetch(:publish_api_path)}"
30
+ end
31
+ end
@@ -1,5 +1,5 @@
1
1
  module Mina
2
2
  module Infinum
3
- VERSION = '1.1.4'.freeze
3
+ VERSION = '1.2.0'.freeze
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mina-infinum
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.4
4
+ version: 1.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stjepan Hadjic
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-01-11 00:00:00.000000000 Z
11
+ date: 2018-01-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -151,7 +151,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
151
151
  version: '0'
152
152
  requirements: []
153
153
  rubyforge_project:
154
- rubygems_version: 2.5.1
154
+ rubygems_version: 2.7.3
155
155
  signing_key:
156
156
  specification_version: 4
157
157
  summary: Collection of mina plugins we use in infinum