mapa 0.0.5 → 0.0.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/lib/mapa/utility.rb +13 -13
- data/lib/mapa.rb +14 -13
- metadata +3 -3
- /data/bin/{m → mp} +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9691d854111bb3a71a655f222e664ee5fdf98a29
|
4
|
+
data.tar.gz: 5934f6d2006f32b8ed7210e6a8048d493a777fcb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cb2035105b5bcb677c7ebc8cb940fcb51f2034604c1705687aa883d13768d3a6b6b56adb156315a34c759c4d2585b5d7ac26d54a29219ac89697b0f425ddc05d
|
7
|
+
data.tar.gz: 189e48614de2edea40b23309110250a1f33ae3149c8b6e246dd90f9a43cb60e5a18a02eee21eb6d767015e7d05c036f516285e4ab5994949b39cb04d96d8b53c
|
data/lib/mapa/utility.rb
CHANGED
@@ -14,7 +14,7 @@ class Mapa::Utility
|
|
14
14
|
end
|
15
15
|
end
|
16
16
|
|
17
|
-
def
|
17
|
+
def in
|
18
18
|
exec 'git init'
|
19
19
|
end
|
20
20
|
|
@@ -23,23 +23,23 @@ class Mapa::Utility
|
|
23
23
|
exec "git add . && git commit -m '#{options[0]}' && git push origin #{options[1]}"
|
24
24
|
end
|
25
25
|
|
26
|
-
def
|
26
|
+
def rh
|
27
27
|
exec 'git reset --hard'
|
28
28
|
end
|
29
29
|
|
30
|
-
def
|
30
|
+
def ad
|
31
31
|
exec 'git add .'
|
32
32
|
end
|
33
33
|
|
34
|
-
def
|
34
|
+
def st
|
35
35
|
exec 'git status'
|
36
36
|
end
|
37
37
|
|
38
|
-
def
|
38
|
+
def cm(message)
|
39
39
|
exec "git commit -m '#{message}'"
|
40
40
|
end
|
41
41
|
|
42
|
-
def
|
42
|
+
def br(*options)
|
43
43
|
if options.flatten.first == '-a'
|
44
44
|
exec 'git branch'
|
45
45
|
else
|
@@ -47,33 +47,33 @@ class Mapa::Utility
|
|
47
47
|
end
|
48
48
|
end
|
49
49
|
|
50
|
-
def
|
50
|
+
def brd(*patterns)
|
51
51
|
patterns.each do |branch|
|
52
52
|
exec "git branch | grep '#{branch}' | xargs git branch -D"
|
53
53
|
end
|
54
54
|
end
|
55
55
|
|
56
|
-
def
|
56
|
+
def dif
|
57
57
|
exec 'git diff'
|
58
58
|
end
|
59
59
|
|
60
|
-
def
|
60
|
+
def fo
|
61
61
|
exec 'git fetch origin'
|
62
62
|
end
|
63
63
|
|
64
|
-
def
|
64
|
+
def pl(remote_branch)
|
65
65
|
exec "git pull origin #{remote_branch}"
|
66
66
|
end
|
67
67
|
|
68
|
-
def
|
68
|
+
def ph(remote_branch)
|
69
69
|
exec "git push origin #{remote_branch}"
|
70
70
|
end
|
71
71
|
|
72
|
-
def
|
72
|
+
def co(branch)
|
73
73
|
exec "git checkout #{branch}"
|
74
74
|
end
|
75
75
|
|
76
|
-
def
|
76
|
+
def cob(new_branch)
|
77
77
|
exec "git checkout -b #{new_branch}"
|
78
78
|
end
|
79
79
|
end
|
data/lib/mapa.rb
CHANGED
@@ -11,19 +11,20 @@ class Mapa
|
|
11
11
|
def greeting
|
12
12
|
puts "\nThanks for using Mapa!\n\n"
|
13
13
|
puts 'Available Commands'
|
14
|
-
puts '
|
15
|
-
puts '
|
16
|
-
puts '
|
17
|
-
puts '
|
18
|
-
puts '
|
19
|
-
puts '
|
20
|
-
puts '
|
21
|
-
puts '
|
22
|
-
puts '
|
23
|
-
puts '
|
24
|
-
puts '
|
25
|
-
puts '
|
26
|
-
puts '
|
14
|
+
puts ' in Alias for "git init"'
|
15
|
+
puts ' ad Alias for "git add ."'
|
16
|
+
puts ' st Alias for "git status"'
|
17
|
+
puts ' cm Alias for "git commit -m"'
|
18
|
+
puts ' br Alias for "git branch"'
|
19
|
+
puts ' pl Alias for "git pull origin"'
|
20
|
+
puts ' ph Alias for "git push origin"'
|
21
|
+
puts ' co Alias for "git checkout"'
|
22
|
+
puts ' cob Alias for "git checkout -b"'
|
23
|
+
puts ' rh Alias for "git reset --hard"'
|
24
|
+
puts ' dif Alias for "git diff"'
|
25
|
+
puts ' fo Alias for "git fetch origin"'
|
26
|
+
puts ' brd Delete git branches with name matching <pattern> <pattern>'
|
27
|
+
puts ' go Execute "git add ." "git cm -m "<message>" "git push origin <branch>"'
|
27
28
|
end
|
28
29
|
end
|
29
30
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mapa
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Mapa Dev
|
@@ -14,12 +14,12 @@ description: A simple aliasing gem
|
|
14
14
|
email: tangposma@gmail.com
|
15
15
|
executables:
|
16
16
|
- mapa
|
17
|
-
-
|
17
|
+
- mp
|
18
18
|
extensions: []
|
19
19
|
extra_rdoc_files: []
|
20
20
|
files:
|
21
|
-
- bin/m
|
22
21
|
- bin/mapa
|
22
|
+
- bin/mp
|
23
23
|
- lib/mapa.rb
|
24
24
|
- lib/mapa/utility.rb
|
25
25
|
homepage: http://rubygems.org/gems/mapa
|
/data/bin/{m → mp}
RENAMED
File without changes
|