mina-rpush 0.0.3 → 1.0.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
2
  SHA1:
3
- metadata.gz: 62741f18abe8c08ff38fc8bd1b3669228242379d
4
- data.tar.gz: 799ed0ce3d592d49c0434eeae5b18dff624f8fde
3
+ metadata.gz: c52bcb729ae8f8d53bf614443f9e5676ed8eecc4
4
+ data.tar.gz: 29e5bbe93057e81639175919806b6e0d52180527
5
5
  SHA512:
6
- metadata.gz: aad418557b7e84e160c638fdaefa40c53c5511a3e7efaaf39375245715d7331969b004a4e070471577ca9bc4f78b6e3a1f77f199c0a028a4d434b63141e916d5
7
- data.tar.gz: 7ace9fa1375352a12689f7ccf1f6a447c72b86f3c944dc6eeadf04649d3b368c5e17d4c3584564873125e316502aa2e5aabc89cefad208b90085baaf23921ef0
6
+ metadata.gz: 3dde26d63cdcc4e2b12eff71ab953615d57dc84a2fee51f1de44423bca9f91bfe93c57986599fb3f50e67e2338faae46120a372f976fc3cb60b83a65cdcda5b3
7
+ data.tar.gz: 4092c392945f44e0bb7f24320a8c555961aabfeed3c169bdabc26f6a688161a3f09c6a02068a62665ebcddf8312bc3e8f4043f9b1dac10c35fb12dec98090929
data/README.md CHANGED
@@ -2,6 +2,8 @@
2
2
 
3
3
  Mina tasks for [rpush](https://github.com/rpush/rpush) deployment.
4
4
 
5
+ This version of gem is compatible with Mina 1.x, [check out older version for 0.3 support](https://github.com/d4rky-pl/mina-rpush/tree/mina-0.3)
6
+
5
7
  ## Installation
6
8
 
7
9
  ```ruby
@@ -20,7 +22,7 @@ task deploy: :environment do
20
22
  deploy do
21
23
  ...
22
24
 
23
- to :launch do
25
+ on :launch do
24
26
  ...
25
27
  invoke 'rpush:restart'
26
28
  end
@@ -1,36 +1,35 @@
1
1
  require 'mina/bundler'
2
2
 
3
3
  namespace :rpush do
4
- set_default :rpush_command, -> { "cd #{deploy_to}/#{current_path} && #{bundle_prefix} rpush" }
4
+ set :rpush_command, -> { "cd #{fetch(:current_path)} && #{fetch(:bundle_prefix)} rpush" }
5
5
 
6
6
  desc 'Start rpush'
7
7
  task start: :environment do
8
- queue %[echo '-----> Starting rpush']
9
- queue! "#{rpush_command} start -e #{rails_env}"
8
+ command %[echo '-----> Starting rpush']
9
+ command "#{fetch(:rpush_command)} start -e #{fetch(:rails_env)}"
10
10
  end
11
11
 
12
12
  desc 'Stop rpush'
13
13
  task stop: :environment do
14
- queue %[echo '-----> Stopping rpush']
15
- queue! "#{rpush_command} stop -e #{rails_env}"
14
+ command %[echo '-----> Stopping rpush']
15
+ command "#{fetch(:rpush_command)} stop -e #{fetch(:rails_env)}"
16
16
  end
17
17
 
18
18
  desc 'Restart rpush'
19
19
  task restart: :environment do
20
- queue %[echo '-----> Restarting rpush']
21
- queue! "#{rpush_command} stop -e #{rails_env}; #{rpush_command} start -e #{rails_env}"
20
+ command %[echo '-----> Restarting rpush']
21
+ command "#{fetch(:rpush_command)} stop -e #{fetch(:rails_env)}; #{fetch(:rpush_command)} start -e #{fetch(:rails_env)}"
22
22
  end
23
23
 
24
24
  desc 'Push pending notifications'
25
25
  task push: :environment do
26
- queue %[echo '-----> Pushing pending notifications']
27
- queue! "#{rpush_command} push -e #{rails_env}"
26
+ command %[echo '-----> Pushing pending notifications']
27
+ command "#{fetch(:rpush_command)} push -e #{fetch(:rails_env)}"
28
28
  end
29
29
 
30
30
  desc 'Check rpush status'
31
31
  task status: :environment do
32
- queue %[echo '-----> Checking rpush status']
33
- queue! "#{rpush_command} status -e #{rails_env}"
32
+ command %[echo '-----> Checking rpush status']
33
+ command "#{fetch(:rpush_command)} status -e #{fetch(:rails_env)}"
34
34
  end
35
-
36
35
  end
@@ -1,5 +1,5 @@
1
1
  module Mina
2
2
  module Rpush
3
- VERSION = '0.0.3'
3
+ VERSION = '1.0.0'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mina-rpush
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 1.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michał Matyas
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-12-10 00:00:00.000000000 Z
11
+ date: 2017-06-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -88,7 +88,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
88
88
  version: '0'
89
89
  requirements: []
90
90
  rubyforge_project:
91
- rubygems_version: 2.4.5.1
91
+ rubygems_version: 2.6.8
92
92
  signing_key:
93
93
  specification_version: 4
94
94
  summary: Mina tasks for Rpush deployment.