podsorz 0.0.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.
@@ -0,0 +1,32 @@
1
+ require 'colorize'
2
+
3
+ module Logger
4
+ def self.default(sentence)
5
+ puts format_output(sentence).colorize(:default)
6
+ end
7
+
8
+ def self.highlight(sentence)
9
+ puts("\n")
10
+ puts format_output("✅ " + sentence + "\n").colorize(:green)
11
+ end
12
+
13
+ def self.error(sentence)
14
+ puts("\n")
15
+ puts format_output("❌ " + sentence + "\n").colorize(:red)
16
+ end
17
+
18
+ def self.warning(sentence)
19
+ puts("\n")
20
+ puts format_output("⚠️ " + sentence + "\n").colorize(:yellow)
21
+ end
22
+
23
+ def self.separator
24
+ puts "- - - - - - - - - - - - - - - - - - - - - - - - - - -".colorize(:light_blue)
25
+ end
26
+
27
+ def self.format_output(sentence)
28
+ "orz: ".concat(sentence.to_s).to_s
29
+ end
30
+
31
+
32
+ end
@@ -0,0 +1,19 @@
1
+ require 'open3'
2
+
3
+ module PodsOrz
4
+ class ProcessOperator
5
+ def self.already_in_process
6
+ is_in_process = false
7
+
8
+ Open3.popen3("ps aux | grep \<podsorz\> -c") do |stdin , stdout , stderr, wait_thr|
9
+ while line = stdout.gets
10
+ if line.rstrip.to_i > 2
11
+ is_in_process = true
12
+ break
13
+ end
14
+ end
15
+ end
16
+ is_in_process
17
+ end
18
+ end
19
+ end
@@ -0,0 +1,3 @@
1
+ module PodsOrz
2
+ VERSION = "0.0.1"
3
+ end
@@ -0,0 +1,40 @@
1
+
2
+ lib = File.expand_path("../lib", __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require "podsorz/version"
5
+
6
+ Gem::Specification.new do |spec|
7
+ spec.name = "podsorz"
8
+ spec.version = PodsOrz::VERSION
9
+ spec.authors = ["Xiangqi"]
10
+ spec.email = ["110293734@qq.com"]
11
+
12
+ spec.summary = %q{iOS application modulize into pods, improvement for develop modules.}
13
+ spec.description = %q{iOS application modulize into pods, improvement for develop modules. CMD: git-flow, auto publish code, auto push repo, auto rewrite podfile}
14
+ spec.homepage = "https://github.com/XiangqiTu"
15
+ spec.license = "MIT"
16
+
17
+ # Prevent pushing this gem to RubyGems.org. To allow pushes either set the 'allowed_push_host'
18
+ # to allow pushing to a single host or delete this section to allow pushing to any host.
19
+ if spec.respond_to?(:metadata)
20
+
21
+ else
22
+ raise "RubyGems 2.0 or newer is required to protect against " \
23
+ "public gem pushes."
24
+ end
25
+
26
+ # Specify which files should be added to the gem when it is released.
27
+ # The `git ls-files -z` loads the files in the RubyGem that have been added into git.
28
+ spec.files = Dir.chdir(File.expand_path('..', __FILE__)) do
29
+ `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
30
+ end
31
+
32
+ spec.bindir = "bin"
33
+ spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
34
+ spec.require_paths = ["lib"]
35
+
36
+ spec.add_runtime_dependency "gli", "~> 2.16"
37
+ spec.add_runtime_dependency "cocoapods"
38
+ spec.add_runtime_dependency "colorize"
39
+
40
+ end
metadata ADDED
@@ -0,0 +1,117 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: podsorz
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ platform: ruby
6
+ authors:
7
+ - Xiangqi
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2020-11-24 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: gli
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '2.16'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '2.16'
27
+ - !ruby/object:Gem::Dependency
28
+ name: cocoapods
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ">="
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: colorize
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ">="
46
+ - !ruby/object:Gem::Version
47
+ version: '0'
48
+ type: :runtime
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ">="
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
55
+ description: 'iOS application modulize into pods, improvement for develop modules.
56
+ CMD: git-flow, auto publish code, auto push repo, auto rewrite podfile'
57
+ email:
58
+ - 110293734@qq.com
59
+ executables:
60
+ - podsorz
61
+ extensions: []
62
+ extra_rdoc_files: []
63
+ files:
64
+ - ".gitignore"
65
+ - Gemfile
66
+ - Gemfile.lock
67
+ - LICENSE.txt
68
+ - Podfile
69
+ - PodsOrzConfig.rb
70
+ - README.md
71
+ - Rakefile
72
+ - bin/podsorz
73
+ - lib/podsorz.rb
74
+ - lib/podsorz/command/commit.rb
75
+ - lib/podsorz/command/install.rb
76
+ - lib/podsorz/command/publish.rb
77
+ - lib/podsorz/command/setup.rb
78
+ - lib/podsorz/command/switch.rb
79
+ - lib/podsorz/core/orz_config_templet.rb
80
+ - lib/podsorz/core/orz_env_detector.rb
81
+ - lib/podsorz/core/pod_orzconfig_parse.rb
82
+ - lib/podsorz/core/podfile_io.rb
83
+ - lib/podsorz/core/podfile_model.rb
84
+ - lib/podsorz/core/pods_detector.rb
85
+ - lib/podsorz/core/pods_git_manager.rb
86
+ - lib/podsorz/core/pods_git_operator.rb
87
+ - lib/podsorz/core/pods_repo.rb
88
+ - lib/podsorz/core/pods_version.rb
89
+ - lib/podsorz/util/git_operator.rb
90
+ - lib/podsorz/util/logger.rb
91
+ - lib/podsorz/util/process_operator.rb
92
+ - lib/podsorz/version.rb
93
+ - podsorz.gemspec
94
+ homepage: https://github.com/XiangqiTu
95
+ licenses:
96
+ - MIT
97
+ metadata: {}
98
+ post_install_message:
99
+ rdoc_options: []
100
+ require_paths:
101
+ - lib
102
+ required_ruby_version: !ruby/object:Gem::Requirement
103
+ requirements:
104
+ - - ">="
105
+ - !ruby/object:Gem::Version
106
+ version: '0'
107
+ required_rubygems_version: !ruby/object:Gem::Requirement
108
+ requirements:
109
+ - - ">="
110
+ - !ruby/object:Gem::Version
111
+ version: '0'
112
+ requirements: []
113
+ rubygems_version: 3.0.1
114
+ signing_key:
115
+ specification_version: 4
116
+ summary: iOS application modulize into pods, improvement for develop modules.
117
+ test_files: []