popo 0.2.0 → 0.2.1
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.
- data/CHANGELOG +10 -1
- data/lib/popo/constants.rb +4 -4
- data/lib/popo/git_utils.rb +5 -5
- data/lib/popo/version.rb +1 -1
- data/script/poporc +2 -2
- metadata +8 -8
data/CHANGELOG
CHANGED
@@ -1,4 +1,13 @@
|
|
1
|
-
--
|
1
|
+
-- 0.2.1
|
2
|
+
* removed extra spaces on prompt
|
3
|
+
|
4
|
+
* downcased git actions
|
5
|
+
|
6
|
+
* changed colors to a darker shade for light terminals
|
7
|
+
|
8
|
+
* version bump to 0.2.1
|
9
|
+
|
10
|
+
-- 0.2.0
|
2
11
|
* added popo update. this updates the manifest to respective branch and remigrates your
|
3
12
|
manifest data
|
4
13
|
|
data/lib/popo/constants.rb
CHANGED
@@ -12,10 +12,10 @@ module Popo
|
|
12
12
|
REQUIRED_COMMANDS = %w(git env)
|
13
13
|
|
14
14
|
# colors
|
15
|
-
COLOR_RED = "\
|
16
|
-
COLOR_GREEN = "\
|
17
|
-
COLOR_YELLOW = "\
|
18
|
-
COLOR_NONE = "\
|
15
|
+
COLOR_RED = "\033[0;31m"
|
16
|
+
COLOR_GREEN = "\033[0;32m"
|
17
|
+
COLOR_YELLOW = "\033[0;33m"
|
18
|
+
COLOR_NONE = "\033[0;0m"
|
19
19
|
|
20
20
|
POST_INSTALL_NOTE = <<NOTE
|
21
21
|
You're almost done!\n
|
data/lib/popo/git_utils.rb
CHANGED
@@ -12,7 +12,7 @@ module Popo
|
|
12
12
|
cmd = "#{GIT_CMD} clone -b #{branch} #{repo} #{clone_path} 2>&1"
|
13
13
|
end
|
14
14
|
|
15
|
-
Utils.git_say_with_time "
|
15
|
+
Utils.git_say_with_time "clone".green, nil do
|
16
16
|
Utils.say "#{'[Source]'.yellow} => #{repo}", true
|
17
17
|
Utils.say "#{'[Target]'.yellow} => #{clone_path}", true
|
18
18
|
Utils.say "#{'[Branch]'.yellow} => #{branch}", true
|
@@ -21,7 +21,7 @@ module Popo
|
|
21
21
|
end
|
22
22
|
|
23
23
|
def self.git_update(repo, branch)
|
24
|
-
Utils.git_say_with_time "
|
24
|
+
Utils.git_say_with_time "fetch".green, "#{repo}" do
|
25
25
|
Dir.chdir(repo) do
|
26
26
|
`#{GIT_CMD} fetch 2>&1`
|
27
27
|
end
|
@@ -32,7 +32,7 @@ module Popo
|
|
32
32
|
end
|
33
33
|
|
34
34
|
def self.git_stash(repo)
|
35
|
-
Utils.git_say_with_time "
|
35
|
+
Utils.git_say_with_time "stash".yellow, "#{repo}" do
|
36
36
|
Dir.chdir(repo) do
|
37
37
|
`#{GIT_CMD} stash`
|
38
38
|
end
|
@@ -40,7 +40,7 @@ module Popo
|
|
40
40
|
end
|
41
41
|
|
42
42
|
def self.git_reset(repo, branch)
|
43
|
-
Utils.git_say_with_time "
|
43
|
+
Utils.git_say_with_time "reset".red, "#{repo}" do
|
44
44
|
Dir.chdir(repo) do
|
45
45
|
out = `#{GIT_CMD} reset --hard origin/#{branch} 2>&1`
|
46
46
|
Utils.say(out, true)
|
@@ -49,7 +49,7 @@ module Popo
|
|
49
49
|
end
|
50
50
|
|
51
51
|
def self.git_checkout(repo, branch)
|
52
|
-
Utils.git_say_with_time "
|
52
|
+
Utils.git_say_with_time "checkout".yellow, "#{branch} branch" do
|
53
53
|
Dir.chdir(repo) do
|
54
54
|
out = `#{GIT_CMD} checkout #{branch} 2>&1`
|
55
55
|
Utils.say(out, true)
|
data/lib/popo/version.rb
CHANGED
data/script/poporc
CHANGED
@@ -50,9 +50,9 @@ if [[ $PS1 != "" ]] ; then
|
|
50
50
|
fi
|
51
51
|
|
52
52
|
if [[ $path_basename != $popo_target ]] ; then
|
53
|
-
popo_ps1="\[\033[
|
53
|
+
popo_ps1="\[\033[0;33m\][popo $popo_target/$path_basename]\[\033[0m\]"
|
54
54
|
else
|
55
|
-
popo_ps1="\[\033[0;33m\][popo $popo_target]
|
55
|
+
popo_ps1="\[\033[0;33m\][popo $popo_target]\[\033[0m\]"
|
56
56
|
fi
|
57
57
|
|
58
58
|
PS1="$popo_ps1 $PS1"
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: popo
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.1
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,11 +9,11 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-05-
|
12
|
+
date: 2012-05-09 00:00:00.000000000Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: sequel
|
16
|
-
requirement: &
|
16
|
+
requirement: &70110137243480 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ! '>='
|
@@ -21,10 +21,10 @@ dependencies:
|
|
21
21
|
version: '0'
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *70110137243480
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: sqlite3
|
27
|
-
requirement: &
|
27
|
+
requirement: &70110137242920 !ruby/object:Gem::Requirement
|
28
28
|
none: false
|
29
29
|
requirements:
|
30
30
|
- - ! '>='
|
@@ -32,10 +32,10 @@ dependencies:
|
|
32
32
|
version: '0'
|
33
33
|
type: :runtime
|
34
34
|
prerelease: false
|
35
|
-
version_requirements: *
|
35
|
+
version_requirements: *70110137242920
|
36
36
|
- !ruby/object:Gem::Dependency
|
37
37
|
name: cableguy
|
38
|
-
requirement: &
|
38
|
+
requirement: &70110137242380 !ruby/object:Gem::Requirement
|
39
39
|
none: false
|
40
40
|
requirements:
|
41
41
|
- - ! '>='
|
@@ -43,7 +43,7 @@ dependencies:
|
|
43
43
|
version: '0'
|
44
44
|
type: :runtime
|
45
45
|
prerelease: false
|
46
|
-
version_requirements: *
|
46
|
+
version_requirements: *70110137242380
|
47
47
|
description: Ruby and rails repo tool
|
48
48
|
email:
|
49
49
|
- poymode@gmail.com
|