Skip to content

Commit e3fb941

Browse files
author
mmoaay
committed
bug fix
1 parent 70212d4 commit e3fb941

File tree

6 files changed

+17
-13
lines changed

6 files changed

+17
-13
lines changed

Gemfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
source "https://gems.ruby-china.org/"
1+
source "https://gems.ruby-china.com/"
22

33
git_source(:github) {|repo_name| "https://github.com/#{repo_name}" }
44

Gemfile.lock

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
PATH
22
remote: .
33
specs:
4-
bigkeeper (0.8.6)
4+
bigkeeper (0.8.7)
55
big_resources
66
big_stash (~> 0.1)
77
cocoapods
@@ -10,7 +10,7 @@ PATH
1010
plist
1111

1212
GEM
13-
remote: https://gems.ruby-china.org/
13+
remote: https://gems.ruby-china.com/
1414
specs:
1515
CFPropertyList (2.3.3)
1616
activesupport (4.2.7.1)
@@ -120,4 +120,4 @@ DEPENDENCIES
120120
rubocop (~> 0.50.0)
121121

122122
BUNDLED WITH
123-
1.16.2
123+
1.16.4

lib/big_keeper/command/feature&hotfix/finish.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,15 +37,15 @@ def self.finish(path, user, type)
3737

3838
Logger.highlight("Finish branch '#{branch_name}' for 'Home'")
3939

40+
# Delete all path modules
41+
ModuleCacheOperator.new(path).cache_path_modules([], [], [])
42+
4043
# Install
4144
DepService.dep_operator(path, user).install(false)
4245

4346
# Open home workspace
4447
DepService.dep_operator(path, user).open
4548

46-
# Delete all path modules
47-
ModuleCacheOperator.new(path).cache_path_modules([], [], [])
48-
4949
# Push home changes to remote
5050
GitService.new.verify_push(path, "finish branch #{branch_name}", branch_name, 'Home')
5151
ensure

lib/big_keeper/command/feature&hotfix/start.rb

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,8 @@ def self.start(path, version, user, name, modules, type)
4040
# Start home feature
4141
GitService.new.start(path, full_name, type)
4242

43-
if FileOperator.definitely_exists?("#{path}/.bigkeeper")
44-
p "rm -rf #{path}/.bigkeeper"
45-
end
43+
# Clean module cache
44+
ModuleCacheOperator.new(path).clean_modules
4645

4746
# Cache all path modules
4847
ModuleCacheOperator.new(path).cache_path_modules(modules, modules, [])

lib/big_keeper/util/cache_operator.rb

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,11 @@ def del_path_module(module_name)
102102
cache_modules
103103
end
104104

105+
def clean_modules
106+
@modules = {"git" => {"all" => [], "current" => []}, "path" => {"all" => [], "add" => [], "del" => [], "current" => []}}
107+
cache_modules
108+
end
109+
105110
def cache_modules
106111
file = File.new("#{@cache_path}/module.cache", 'w')
107112
file << @modules.to_json

lib/big_keeper/util/xcode_operator.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@ module BigKeeper
44
class XcodeOperator
55
def self.open_workspace(path)
66
# Close Xcode
7-
`pkill Xcode`
7+
# `pkill Xcode`
88

9-
sleep 0.5
9+
# sleep 0.5
1010

1111
# Open home workspace
12-
`open #{path}/*.xcworkspace`
12+
# `open #{path}/*.xcworkspace`
1313
end
1414
end
1515
end

0 commit comments

Comments
 (0)