ggsm 1.8.6 → 1.9.0

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: 6bf01e7e872c9a986eb541f88c2814a20aa72484
4
- data.tar.gz: 4f0b93ba4f7dfe2626015eb95228294e1dcfa71c
3
+ metadata.gz: 71e1029697a1eead63ca6f7ebb9f438081cee594
4
+ data.tar.gz: 706371f506f149e9536f1b67175e76678af6bd46
5
5
  SHA512:
6
- metadata.gz: a3c234f89a7d8f8e449f0b35dcc94a122d93d404e0fd503c58aa75d5f8c9edf6fc8ff6aa6152c512fcea3bc18dccef6f1c9572ed838035fad16206ffd0ed1109
7
- data.tar.gz: ab00085fa3f5e662c343fe37b8672805de34cb492abedfcb8b9f67914ff117c45dc148eee6d3c3f87b2db761ff476c24b18844298466e26ed7ed86daabb281fb
6
+ metadata.gz: ff228d1a643376b269b30c33d64cda00a4c871765d8747c2ce01b607d5c36aff33b4f95ef7aa6a75c91846d14fcdbaebffe18571752efcce8fde3f140267f9f2
7
+ data.tar.gz: 2c7c0f0c86c47253e062ed08fc1a29b45874dfb85cd8ce5aa881ce161fe0c4795bc3986ea1c58a46316ac42930f92acb7040adecfe06656c9c01f5098556e926
@@ -20,7 +20,7 @@ module GGSM
20
20
  @@user = ''
21
21
 
22
22
  def mr_flow(target_branch, msg)
23
- check_submodule
23
+ check_submodule(false)
24
24
 
25
25
  @@current_branch = get_current_branch
26
26
  @@target_branch = target_branch
@@ -2,6 +2,7 @@ module GGSM
2
2
  module Hooks
3
3
  def check_hooks
4
4
  if update_hooks
5
+ install_billow
5
6
  subs = get_submodule
6
7
  subs.each do |sub|
7
8
  cp_hooks(sub)
@@ -9,6 +10,11 @@ module GGSM
9
10
  end
10
11
  end
11
12
 
13
+ def install_billow
14
+ path = `gem which ggsm`.split('/ggsm.rb')[0]
15
+ `sudo sh #{path}/res/install_billow.sh`
16
+ end
17
+
12
18
  def update_hooks
13
19
  version = `ggsm v`
14
20
  ggsm_path = '.git/ggsm'
@@ -4,9 +4,9 @@ module GGSM
4
4
  module Submodule
5
5
  include Hooks
6
6
 
7
- def check_submodule
7
+ def check_submodule(check=true)
8
8
  sub_str = `git submodule`
9
- if sub_str.empty?
9
+ if check && sub_str.empty?
10
10
  puts '所在目录工程下不存在Submodule,请检查所在目录!'.red
11
11
  exit 1
12
12
  end
@@ -73,7 +73,7 @@ module GGSM
73
73
  status.each do |sub|
74
74
  array_name = sub.split(' ')
75
75
  name = array_name[array_name.size-1]
76
- if subs.include?name
76
+ if subs.include? name
77
77
  result.push(name)
78
78
  end
79
79
  end
data/lib/ggsm/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module GGSM
2
- VERSION = '1.8.6'
2
+ VERSION = '1.9.0'
3
3
  end
@@ -0,0 +1,33 @@
1
+ # 下载
2
+ curl -o ~/billow.zip http://7xq884.com1.z0.glb.clouddn.com/Billow.zip
3
+
4
+ pushd ~/Library/Application\ Support
5
+
6
+ # 解压到Application Support/AS
7
+ for file in ./AndroidStudio*
8
+ do
9
+ if test -d $file
10
+ then
11
+ pushd ~/Library/Application\ Support/$file
12
+ unzip -o ~/billow.zip
13
+ popd
14
+ fi
15
+ done
16
+
17
+ popd
18
+
19
+ # 修改Preferences,开启插件
20
+ for file in ~/Library/Preferences/AndroidStudio*
21
+ do
22
+ if test -d $file
23
+ then
24
+ sed '/^com.souche.plugin.billow/'d $file/disabled_plugins.txt > disabled_plugins_billow.txt
25
+ cp disabled_plugins_billow.txt $file/disabled_plugins.txt
26
+ rm -rf disabled_plugins_billow.txt
27
+ fi
28
+ done
29
+
30
+ rm -rf ~/billow.zip
31
+
32
+ echo Billow安装成功,请重新启动AndroidStudio
33
+
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ggsm
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.8.6
4
+ version: 1.9.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - YoKey
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-12-13 00:00:00.000000000 Z
11
+ date: 2018-01-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -115,6 +115,7 @@ files:
115
115
  - lib/ggsm/util/stash.rb
116
116
  - lib/ggsm/util/submodule.rb
117
117
  - lib/ggsm/version.rb
118
+ - lib/res/install_billow.sh
118
119
  homepage: http://rubygems.org/gems/ggsm
119
120
  licenses:
120
121
  - MIT