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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 0630c6db207fff6f676de175bc2ea58113646512
4
- data.tar.gz: 5ff36383216ca0cb5c4645983aa33f0cdb014a1c
3
+ metadata.gz: bfc909719b000179ffb70c21eb6cb4cd1a0cb640
4
+ data.tar.gz: 3e0f02009d41f3a4660e33d6bf906c9c51fd867c
5
5
  SHA512:
6
- metadata.gz: 34460dd63ddfc52f19937a28a3379d60e6565c848b39bf7fc0f890015493d73dd86c86eb2694b231feb90a9944c03e3daa0d66af1738b0909db289bccb8e93cd
7
- data.tar.gz: e8e52f61348cf707b63e3c518577f13e0fc8d82fc0db258baeaed7660facdcebaa6b5cc946079c9c7e38acedaeb6bb0385accb29b2a8b0e6ee294a8398e9af49
6
+ metadata.gz: fd7d2216c24262d2a54e639dbd1c862ae2b4941c94c1d2e16eaf814770499d53af539ddd04caaaeea0afe079c89d16af92abcee2d760dbe900f45943dabc07d5
7
+ data.tar.gz: bfe2870c55fb47e5ba6af4874e5f1e81ea87678ad5af5fa37ce36dcbce30aaf67fb739d0ed2d13dff9eceaf54bf29e9d31555b889cdd6ac432652e4e00f6c657
data/README.md CHANGED
@@ -257,3 +257,4 @@ Contributing
257
257
  5. Create new Pull Request
258
258
  =======
259
259
 
260
+ TEST
@@ -1,4 +1,4 @@
1
- # enconding: utf-8
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
- redis = Mutx::Support::Console.execute "redis-server -v"
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 redis =~ /Redis server v=\d+\.\d+\.\d+/
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
- =begin
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
- selected_branch_name = branch_list[10]#branch_list[option-1]
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
- @local = selected_branch_name == "local files"
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.git_add_commit "Mutx: Commit after install command execution"
181
- Mutx::Support::Git.git_push_origin_to_actual_branch
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
 
@@ -1,4 +1,4 @@
1
- # enconding: utf-8
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
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-04 00:00:00.000000000 Z
11
+ date: 2016-08-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor