mutx 0.1.4 → 0.1.6
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/README.md +1 -0
- data/lib/generators/task_rack.rb +11 -12
- data/lib/mutx.rb +3 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bfc909719b000179ffb70c21eb6cb4cd1a0cb640
|
4
|
+
data.tar.gz: 3e0f02009d41f3a4660e33d6bf906c9c51fd867c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fd7d2216c24262d2a54e639dbd1c862ae2b4941c94c1d2e16eaf814770499d53af539ddd04caaaeea0afe079c89d16af92abcee2d760dbe900f45943dabc07d5
|
7
|
+
data.tar.gz: bfe2870c55fb47e5ba6af4874e5f1e81ea87678ad5af5fa37ce36dcbce30aaf67fb739d0ed2d13dff9eceaf54bf29e9d31555b889cdd6ac432652e4e00f6c657
|
data/README.md
CHANGED
data/lib/generators/task_rack.rb
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
#
|
1
|
+
# encoding: utf-8
|
2
2
|
module Mutx
|
3
3
|
class TaskRack < Thor::Group
|
4
4
|
|
@@ -26,12 +26,11 @@ module Mutx
|
|
26
26
|
|
27
27
|
|
28
28
|
def check_redis_existance
|
29
|
-
|
30
|
-
raise "
|
29
|
+
raise "
|
31
30
|
REDIS SERVER IS NOT INSTALLED ON YOUR SYSTEM.
|
32
31
|
INSTALL REDIS SERVER BEFORE USING KAYA
|
33
32
|
to install Redis go to:
|
34
|
-
" unless
|
33
|
+
" unless Mutx::Support::RedisHelper.redis_installed?
|
35
34
|
end
|
36
35
|
|
37
36
|
|
@@ -40,7 +39,7 @@ module Mutx
|
|
40
39
|
# Gets the list of branches
|
41
40
|
branch_list=Mutx::Support::Git.branch_list
|
42
41
|
branch_list << "local files"
|
43
|
-
|
42
|
+
|
44
43
|
begin
|
45
44
|
system "clear"
|
46
45
|
Mutx::Support::Logo.show
|
@@ -56,16 +55,16 @@ module Mutx
|
|
56
55
|
option = option.gsub!("\n","").to_i
|
57
56
|
|
58
57
|
end until (1..branch_list.size).include? option
|
59
|
-
=end
|
60
58
|
|
61
|
-
|
59
|
+
|
60
|
+
selected_branch_name = branch_list[option-1]
|
62
61
|
puts "
|
63
62
|
Lets work on '#{selected_branch_name}'
|
64
63
|
|
65
64
|
"
|
66
|
-
|
67
|
-
Mutx::Support::Git.checkout_to(selected_branch_name) unless selected_branch_name == "local files"
|
68
|
-
|
65
|
+
|
66
|
+
Mutx::Support::Git.checkout_to(selected_branch_name) unless (@local = selected_branch_name == "local files")
|
67
|
+
Mutx::Support::Git.pull
|
69
68
|
end
|
70
69
|
|
71
70
|
# ==============================
|
@@ -177,8 +176,8 @@ module Mutx
|
|
177
176
|
|
178
177
|
def push_changes
|
179
178
|
unless @local
|
180
|
-
Mutx::Support::Git.
|
181
|
-
Mutx::Support::Git.
|
179
|
+
Mutx::Support::Git.add_commit "Mutx: Commit after install command execution"
|
180
|
+
Mutx::Support::Git.push_origin_to_actual_branch
|
182
181
|
end
|
183
182
|
end
|
184
183
|
|
data/lib/mutx.rb
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
#
|
1
|
+
# encoding: utf-8
|
2
2
|
require "mutx/version"
|
3
3
|
require "thor"
|
4
4
|
require 'json'
|
@@ -15,6 +15,8 @@ require 'digest'
|
|
15
15
|
require_rel 'mutx'
|
16
16
|
require_rel 'generators'
|
17
17
|
|
18
|
+
Encoding.default_external = Encoding::UTF_8
|
19
|
+
Encoding.default_internal = Encoding::UTF_8
|
18
20
|
|
19
21
|
module Mutx
|
20
22
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mutx
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Roman Rodriguez
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-08-
|
11
|
+
date: 2016-08-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: thor
|