bigkeeper 0.9.11 → 0.9.12

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 70dfe57877033a8e5da8b7c912210cdc33bb85a8
4
- data.tar.gz: fb852fb6ce2e3f638aa8a986db48b44a79ce56e6
2
+ SHA256:
3
+ metadata.gz: 90e19c3d486a57e017de6cb6f711051f540dc2d44ffded09215d22c5275230d0
4
+ data.tar.gz: c059a11b0e5b6373d1b8aeeb9cb64d80df9d5f6f9c4fd0677d348aafc47744c7
5
5
  SHA512:
6
- metadata.gz: 67b3d5f0725704b7026a8130633c71059fe18b74911d330f7f03bb1b29216266826be6407d60c2134ebd540361bf2eb460508b02d5b2e49b55ce9115624c6b66
7
- data.tar.gz: ce0a0e306540e3491053e98679d8566231fa2ebfc611a90b3b532d243c216b52e70c572348fad5eb94d1ea8d3426d023d512f3db167a5e8178c59ee4618798a4
6
+ metadata.gz: f8b8be1f557c434fc0d85a1ef47a05cf411b826006a314b62d59e7f9e1bf396d740a79157af80bc15ecf7cc677fb081939b6ff6167eae33c62ecc8bebb135274
7
+ data.tar.gz: 27cdd35ad095a1d4fb5a767c0c0830fec50f22328016f52168d77f1a59b67f96212a2e8ddad18655fe0e093d57fdbc9a0be424d81c81b0f4500dc398637b1f0a
data/Gemfile CHANGED
@@ -8,8 +8,3 @@ gemspec
8
8
  group :test do
9
9
  gem 'rake'
10
10
  end
11
-
12
- if RUBY_VERSION =~ /1.9/
13
- Encoding.default_external = Encoding::UTF_8
14
- Encoding.default_internal = Encoding::UTF_8
15
- end
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- bigkeeper (0.9.9)
4
+ bigkeeper (0.9.11)
5
5
  big_resources
6
6
  big_stash (~> 0.1)
7
7
  cocoapods
@@ -18,7 +18,7 @@ GEM
18
18
  minitest (~> 5.1)
19
19
  thread_safe (~> 0.3, >= 0.3.4)
20
20
  tzinfo (~> 1.1)
21
- ast (2.3.0)
21
+ ast (2.4.0)
22
22
  atomos (0.1.3)
23
23
  big_resources (0.1.2)
24
24
  chunky_png
@@ -30,26 +30,26 @@ GEM
30
30
  gli (~> 2.16)
31
31
  chunky_png (1.3.11)
32
32
  claide (1.0.2)
33
- cocoapods (1.6.1)
33
+ cocoapods (1.5.0)
34
34
  activesupport (>= 4.0.2, < 5)
35
35
  claide (>= 1.0.2, < 2.0)
36
- cocoapods-core (= 1.6.1)
36
+ cocoapods-core (= 1.5.0)
37
37
  cocoapods-deintegrate (>= 1.0.2, < 2.0)
38
- cocoapods-downloader (>= 1.2.2, < 2.0)
38
+ cocoapods-downloader (>= 1.2.0, < 2.0)
39
39
  cocoapods-plugins (>= 1.0.0, < 2.0)
40
40
  cocoapods-search (>= 1.0.0, < 2.0)
41
41
  cocoapods-stats (>= 1.0.0, < 2.0)
42
- cocoapods-trunk (>= 1.3.1, < 2.0)
42
+ cocoapods-trunk (>= 1.3.0, < 2.0)
43
43
  cocoapods-try (>= 1.1.0, < 2.0)
44
44
  colored2 (~> 3.1)
45
45
  escape (~> 0.0.4)
46
- fourflusher (>= 2.2.0, < 3.0)
46
+ fourflusher (~> 2.0.1)
47
47
  gh_inspector (~> 1.0)
48
- molinillo (~> 0.6.6)
48
+ molinillo (~> 0.6.5)
49
49
  nap (~> 1.0)
50
- ruby-macho (~> 1.4)
51
- xcodeproj (>= 1.8.1, < 2.0)
52
- cocoapods-core (1.6.1)
50
+ ruby-macho (~> 1.1)
51
+ xcodeproj (>= 1.5.7, < 2.0)
52
+ cocoapods-core (1.5.0)
53
53
  activesupport (>= 4.0.2, < 6)
54
54
  fuzzy_match (~> 2.0.4)
55
55
  nap (~> 1.0)
@@ -67,7 +67,7 @@ GEM
67
67
  colorize (0.8.1)
68
68
  concurrent-ruby (1.1.5)
69
69
  escape (0.0.4)
70
- fourflusher (2.2.0)
70
+ fourflusher (2.0.1)
71
71
  fuzzy_match (2.0.4)
72
72
  gh_inspector (1.1.3)
73
73
  gli (2.18.0)
@@ -78,11 +78,11 @@ GEM
78
78
  nanaimo (0.2.6)
79
79
  nap (1.1.0)
80
80
  netrc (0.11.0)
81
- parallel (1.12.0)
82
- parser (2.4.0.0)
83
- ast (~> 2.2)
81
+ parallel (1.12.1)
82
+ parser (2.5.1.2)
83
+ ast (~> 2.4.0)
84
84
  plist (3.5.0)
85
- powerpack (0.1.1)
85
+ powerpack (0.1.2)
86
86
  rainbow (2.2.2)
87
87
  rake
88
88
  rake (10.5.0)
@@ -98,7 +98,7 @@ GEM
98
98
  thread_safe (0.3.6)
99
99
  tzinfo (1.2.5)
100
100
  thread_safe (~> 0.1)
101
- unicode-display_width (1.3.0)
101
+ unicode-display_width (1.4.0)
102
102
  xcodeproj (1.8.2)
103
103
  CFPropertyList (>= 2.3.3, < 4.0)
104
104
  atomos (~> 0.1.3)
data/bin/big CHANGED
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env ruby
2
2
 
3
- # require "bundler/setup"
3
+ #require "bundler/setup"
4
4
  require "big_keeper"
5
5
 
6
6
  # You can add fixtures and/or initialization code here to make experimenting
@@ -14,6 +14,7 @@ require 'big_keeper/command/pod'
14
14
  require 'big_keeper/command/spec'
15
15
  require 'big_keeper/command/image'
16
16
  require 'big_keeper/command/init'
17
+ require 'big_keeper/command/client'
17
18
  require 'big_keeper/service/git_service'
18
19
  require 'big_keeper/util/leancloud_logger'
19
20
 
@@ -40,17 +41,17 @@ module BigKeeper
40
41
  exit
41
42
  end
42
43
 
43
- pre do |global_options, command, options, args|
44
- LeanCloudLogger.instance.start_log(global_options, args)
45
- end
46
-
47
- post do |global_options, command, options, args|
48
- is_show_log = true
49
- if global_options[:log] == 'false'
50
- is_show_log = false
51
- end
52
- LeanCloudLogger.instance.end_log(true, is_show_log)
53
- end
44
+ # pre do |global_options, command, options, args|
45
+ # LeanCloudLogger.instance.start_log(global_options, args)
46
+ # end
47
+ #
48
+ # post do |global_options, command, options, args|
49
+ # is_show_log = true
50
+ # if global_options[:log] == 'true'
51
+ # is_show_log = false
52
+ # end
53
+ # LeanCloudLogger.instance.end_log(true, is_show_log)
54
+ # end
54
55
 
55
56
  feature_and_hotfix_command(GitflowType::FEATURE)
56
57
 
@@ -66,6 +67,8 @@ module BigKeeper
66
67
 
67
68
  init_command
68
69
 
70
+ client_command
71
+
69
72
  desc 'Show version of bigkeeper'
70
73
  command :version do |version|
71
74
  version.action do |global_options, options, args|
@@ -0,0 +1,50 @@
1
+ require 'big_keeper/util/leancloud_logger'
2
+ require 'big_keeper/command/pod/podfile'
3
+ require 'big_keeper/command/spec/list'
4
+ require 'big_keeper/util/list_generator'
5
+
6
+ module BigKeeper
7
+
8
+ def self.client_command
9
+ desc 'API for bigkeeper-client.'
10
+ command :client do | c |
11
+ c.desc 'Commands about operate modules.'
12
+ c.command :modules do |modules|
13
+ modules.desc 'Get modules list from Bigkeeper file.'
14
+ modules.command :list do |list|
15
+ list.action do |global_options, options, args|
16
+ LeanCloudLogger.instance.set_command("spec/list")
17
+ path = File.expand_path(global_options[:path])
18
+ version = global_options[:ver]
19
+ user = global_options[:user].gsub(/[^0-9A-Za-z]/, '').downcase
20
+ spec_list(path, user, options)
21
+ end
22
+ end
23
+ modules.desc 'Update modules.'
24
+ modules.command :update do |update|
25
+ update.action do |global_options, options, args|
26
+ LeanCloudLogger.instance.set_command("spec/list")
27
+ path = File.expand_path(global_options[:path])
28
+ version = global_options[:ver]
29
+ user = global_options[:user].gsub(/[^0-9A-Za-z]/, '').downcase
30
+ spec_list(path, user, options)
31
+ end
32
+ end
33
+ end
34
+ c.desc 'Commands about features.'
35
+ c.command :feature do |feature|
36
+ feature.desc "List all the features including origin."
37
+ feature.command :list do | list |
38
+ list.flag %i[v version] , default_value: 'all versions'
39
+ list.action do |global_options, options, args|
40
+ LeanCloudLogger.instance.set_command("feature/list/json")
41
+ options[:json] = true
42
+ path = File.expand_path(global_options[:path])
43
+ user = global_options[:user].gsub(/[^0-9A-Za-z]/, '').downcase
44
+ list(path, user, GitflowType::FEATURE, options)
45
+ end
46
+ end
47
+ end
48
+ end
49
+ end
50
+ end
@@ -20,9 +20,9 @@ module BigKeeper
20
20
  # Parse Bigkeeper file
21
21
  BigkeeperParser.parse("#{path}/Bigkeeper")
22
22
  branch_name = "#{GitflowType.name(type)}/#{name}"
23
+ version = 'all version'
23
24
 
24
25
  modules = BigkeeperParser.module_names
25
-
26
26
  modules.each do |module_name|
27
27
  module_full_path = BigkeeperParser.module_full_path(path, user, module_name)
28
28
 
@@ -19,7 +19,7 @@ module BigKeeper
19
19
  begin
20
20
  #get cache file path
21
21
  FileUtils.mkdir_p(cache_path) unless File.exist?(cache_path)
22
- file = File.new(json_path, 'w')
22
+ file = File.new(json_path, 'w', :encoding => 'UTF-8')
23
23
  begin
24
24
  #get all modules info
25
25
  module_list_dic = get_module_info(path, user, type, version, branches, is_print_log)
@@ -20,10 +20,10 @@ module BigKeeper
20
20
 
21
21
  def update_module_config(module_name, module_operate_type)
22
22
  file = "#{@path}/Podfile"
23
- temp_file = Tempfile.new('.Podfile.tmp')
23
+ temp_file = Tempfile.new('.Podfile.tmp', :encoding => 'UTF-8')
24
24
 
25
25
  begin
26
- File.open(file, 'r') do |file|
26
+ File.open(file, 'r', :encoding => 'UTF-8') do |file|
27
27
  file.each_line do |line|
28
28
  temp_file.puts generate_module_config(line, module_name, module_operate_type)
29
29
  end
@@ -84,7 +84,7 @@ module BigKeeper
84
84
  def origin_config_of_module(module_name)
85
85
  origin_config = ''
86
86
 
87
- File.open("#{@path}/.bigkeeper/Podfile", 'r') do |file|
87
+ File.open("#{@path}/.bigkeeper/Podfile", 'r', :encoding => 'UTF-8') do |file|
88
88
  file.each_line do |line|
89
89
  if line =~ /(\s*)pod(\s*)('|")#{module_name}('|")([\s\S]*)/
90
90
  origin_config = line
@@ -114,8 +114,9 @@ module BigKeeper
114
114
  def branchs_with_type(path, type)
115
115
  branchs = []
116
116
  Dir.chdir(path) do
117
- IO.popen('git branch -r') do | io |
117
+ IO.popen('git branch -a') do | io |
118
118
  io.each do | line |
119
+ branchs << line.gsub('\n', '') if line.include?('develop')
119
120
  branchs << line.gsub(/\s/, '') if line =~ /[\s\S]*#{GitflowType.name(type)}*/
120
121
  end
121
122
  end
@@ -32,7 +32,7 @@ module BigKeeper
32
32
  FileUtils.mkdir_p(@cache_path) unless File.exist?(@cache_path)
33
33
 
34
34
  if File.exist?("#{@cache_path}/module.cache")
35
- file = File.open("#{@cache_path}/module.cache", 'r')
35
+ file = File.open("#{@cache_path}/module.cache", 'r', :encoding => 'UTF-8')
36
36
  @modules = JSON.load(file.read(), :encoding => 'UTF-8')
37
37
  file.close
38
38
  else
@@ -110,7 +110,7 @@ module BigKeeper
110
110
  end
111
111
 
112
112
  def cache_modules
113
- file = File.new("#{@cache_path}/module.cache", 'w')
113
+ file = File.new("#{@cache_path}/module.cache", 'w', :encoding => 'UTF-8')
114
114
  file << @modules.to_json
115
115
  file.close
116
116
  end
@@ -29,5 +29,5 @@ module BigKeeper
29
29
  return header_file_list+m_file_list
30
30
  end
31
31
  end
32
-
32
+
33
33
  end
@@ -46,7 +46,7 @@ module BigKeeper
46
46
 
47
47
  dest_path = File.dirname(big_settings_file)
48
48
  FileUtils.mkdir_p(dest_path) unless File.exist?(dest_path)
49
- file = File.new(big_settings_file, 'w')
49
+ file = File.new(big_settings_file, 'w', :encoding => 'UTF-8')
50
50
  begin
51
51
  file << result
52
52
  file.close
@@ -58,9 +58,9 @@ module BigKeeper
58
58
  return
59
59
  end
60
60
 
61
- temp_file = Tempfile.new('.settings.gradle.tmp')
61
+ temp_file = Tempfile.new('.settings.gradle.tmp', :encoding => 'UTF-8')
62
62
  begin
63
- File.open(settings_file, 'r') do |file|
63
+ File.open(settings_file, 'r', :encoding => 'UTF-8') do |file|
64
64
  file.each_line do |line|
65
65
  temp_file.puts(line)
66
66
  end
@@ -92,7 +92,7 @@ module BigKeeper
92
92
 
93
93
  dest_path = File.dirname(big_build_file)
94
94
  FileUtils.mkdir_p(dest_path) unless File.exist?(dest_path)
95
- file = File.new(big_build_file, 'w')
95
+ file = File.new(big_build_file, 'w', :encoding => 'UTF-8')
96
96
  begin
97
97
  file << result
98
98
  file.close
@@ -295,7 +295,7 @@ module BigKeeper
295
295
  if !File.exist?(bigkeeper_config_file)
296
296
  return
297
297
  end
298
- temp_file = Tempfile.new('.bigkeeper_config.tmp')
298
+ temp_file = Tempfile.new('.bigkeeper_config.tmp', :encoding => 'UTF-8')
299
299
  isBigkeeperScript = false
300
300
  isBigkeeperBackupScript = false
301
301
  begin
@@ -36,7 +36,7 @@ module BigKeeper
36
36
  end
37
37
 
38
38
  def find_and_lock(podfile, dictionary)
39
- temp_file = Tempfile.new('.Podfile.tmp')
39
+ temp_file = Tempfile.new('.Podfile.tmp', :encoding => 'UTF-8')
40
40
  begin
41
41
  File.open(podfile, 'r') do |file|
42
42
  file.each_line do |line|
@@ -65,9 +65,9 @@ module BigKeeper
65
65
  end
66
66
 
67
67
  def find_and_upgrade(podfile, dictionary)
68
- temp_file = Tempfile.new('.Podfile.tmp')
68
+ temp_file = Tempfile.new('.Podfile.tmp', :encoding => 'UTF-8')
69
69
  begin
70
- File.open(podfile, 'r') do |file|
70
+ File.open(podfile, 'r', :encoding => 'UTF-8') do |file|
71
71
  file.each_line do |line|
72
72
  pod_model = PodfileParser.get_pod_model(line)
73
73
  if pod_model != nil && pod_model.name != nil && dictionary[pod_model.name] != nil
@@ -87,10 +87,10 @@ module BigKeeper
87
87
  end
88
88
 
89
89
  def podspec_change(podspec_file, version, module_name)
90
- temp_file = Tempfile.new(".#{module_name}.podspec")
90
+ temp_file = Tempfile.new(".#{module_name}.podspec", :encoding => 'UTF-8')
91
91
  has_change = false
92
92
  begin
93
- File.open(podspec_file, 'r') do |file|
93
+ File.open(podspec_file, 'r', :encoding => 'UTF-8') do |file|
94
94
  file.each_line do |line|
95
95
  if line.include?("s.version")
96
96
  temp_line = line
@@ -1,3 +1,3 @@
1
1
  module BigKeeper
2
- VERSION = "0.9.11"
2
+ VERSION = "0.9.12"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bigkeeper
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.11
4
+ version: 0.9.12
5
5
  platform: ruby
6
6
  authors:
7
7
  - mmoaay
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-06-19 00:00:00.000000000 Z
11
+ date: 2019-06-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gli
@@ -254,6 +254,7 @@ files:
254
254
  - docs/zh-CN/RELEASE.md
255
255
  - docs/zh-CN/SPEC.md
256
256
  - lib/big_keeper.rb
257
+ - lib/big_keeper/command/client.rb
257
258
  - lib/big_keeper/command/feature&hotfix.rb
258
259
  - lib/big_keeper/command/feature&hotfix/delete.rb
259
260
  - lib/big_keeper/command/feature&hotfix/finish.rb
@@ -346,8 +347,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
346
347
  - !ruby/object:Gem::Version
347
348
  version: '0'
348
349
  requirements: []
349
- rubyforge_project:
350
- rubygems_version: 2.5.2.3
350
+ rubygems_version: 3.0.1
351
351
  signing_key:
352
352
  specification_version: 4
353
353
  summary: Efficiency improvement for iOS&Android modular development.