coo 0.1.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.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 0dbf13b31ccd0b3f7046e331e64fa69e3dbc6684
4
+ data.tar.gz: f2b4e8009a782d718815457db6194cc76b224332
5
+ SHA512:
6
+ metadata.gz: 056413c5e13b10a10d717d97cb040b313727c487ed4c6a7a3aff95c765443536ab671f2d86fb70c797633eabfc28fbbbc6f5e5b16f95f879cda34a43cb5a3d99
7
+ data.tar.gz: c23b26b650f509ea8edd7d179f24ec60e53ecb10ff0fc0a80f17e8d1489e486b03b8346a5d66367acd4e60e9618d81863500b1e28924e91121e1a2316f7867fe
data/.gitignore ADDED
@@ -0,0 +1,53 @@
1
+ *.gem
2
+ *.rbc
3
+ /.config
4
+ /coverage/
5
+ /InstalledFiles
6
+ /pkg/
7
+ /spec/reports/
8
+ /spec/examples.txt
9
+ /test/tmp/
10
+ /test/version_tmp/
11
+ /tmp/
12
+
13
+ # Used by dotenv library to load environment variables.
14
+ # .env
15
+
16
+ ## Specific to RubyMotion:
17
+ .dat*
18
+ .repl_history
19
+ build/
20
+ *.bridgesupport
21
+ build-iPhoneOS/
22
+ build-iPhoneSimulator/
23
+
24
+ ## Specific to RubyMotion (use of CocoaPods):
25
+ #
26
+ # We recommend against adding the Pods directory to your .gitignore. However
27
+ # you should judge for yourself, the pros and cons are mentioned at:
28
+ # https://guides.cocoapods.org/using/using-cocoapods.html#should-i-check-the-pods-directory-into-source-control
29
+ #
30
+ # vendor/Pods/
31
+
32
+ ## Documentation cache and generated files:
33
+ /.yardoc/
34
+ /_yardoc/
35
+ /doc/
36
+ /rdoc/
37
+
38
+ ## Environment normalization:
39
+ /.bundle/
40
+ /vendor/bundle
41
+ /lib/bundler/man/
42
+
43
+ # for a library or gem, you might want to ignore these files since the code is
44
+ # intended to run in multiple environments; otherwise, check them in:
45
+ # Gemfile.lock
46
+ # .ruby-version
47
+ # .ruby-gemset
48
+
49
+ # unless supporting rvm < 1.11.0 or doing something fancy, ignore this:
50
+ .rvmrc
51
+
52
+ # RubyMine file
53
+ .idea/
data/Gemfile ADDED
@@ -0,0 +1,2 @@
1
+ source 'https://rubygems.org'
2
+ gemspec
data/Gemfile.lock ADDED
@@ -0,0 +1,214 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ coo (0.1.0)
5
+ cocoapods (~> 1.5)
6
+ colorize (~> 0.8)
7
+ fastlane (~> 2.0)
8
+ gli (~> 2.18)
9
+ terminal-table (~> 1.8)
10
+
11
+ GEM
12
+ remote: https://rubygems.org/
13
+ specs:
14
+ CFPropertyList (3.0.0)
15
+ activesupport (4.2.10)
16
+ i18n (~> 0.7)
17
+ minitest (~> 5.1)
18
+ thread_safe (~> 0.3, >= 0.3.4)
19
+ tzinfo (~> 1.1)
20
+ addressable (2.5.2)
21
+ public_suffix (>= 2.0.2, < 4.0)
22
+ atomos (0.1.3)
23
+ babosa (1.0.2)
24
+ claide (1.0.2)
25
+ cocoapods (1.5.3)
26
+ activesupport (>= 4.0.2, < 5)
27
+ claide (>= 1.0.2, < 2.0)
28
+ cocoapods-core (= 1.5.3)
29
+ cocoapods-deintegrate (>= 1.0.2, < 2.0)
30
+ cocoapods-downloader (>= 1.2.0, < 2.0)
31
+ cocoapods-plugins (>= 1.0.0, < 2.0)
32
+ cocoapods-search (>= 1.0.0, < 2.0)
33
+ cocoapods-stats (>= 1.0.0, < 2.0)
34
+ cocoapods-trunk (>= 1.3.0, < 2.0)
35
+ cocoapods-try (>= 1.1.0, < 2.0)
36
+ colored2 (~> 3.1)
37
+ escape (~> 0.0.4)
38
+ fourflusher (~> 2.0.1)
39
+ gh_inspector (~> 1.0)
40
+ molinillo (~> 0.6.5)
41
+ nap (~> 1.0)
42
+ ruby-macho (~> 1.1)
43
+ xcodeproj (>= 1.5.7, < 2.0)
44
+ cocoapods-core (1.5.3)
45
+ activesupport (>= 4.0.2, < 6)
46
+ fuzzy_match (~> 2.0.4)
47
+ nap (~> 1.0)
48
+ cocoapods-deintegrate (1.0.2)
49
+ cocoapods-downloader (1.2.2)
50
+ cocoapods-plugins (1.0.0)
51
+ nap
52
+ cocoapods-search (1.0.0)
53
+ cocoapods-stats (1.0.0)
54
+ cocoapods-trunk (1.3.1)
55
+ nap (>= 0.8, < 2.0)
56
+ netrc (~> 0.11)
57
+ cocoapods-try (1.1.0)
58
+ colored (1.2)
59
+ colored2 (3.1.2)
60
+ colorize (0.8.1)
61
+ commander-fastlane (4.4.6)
62
+ highline (~> 1.7.2)
63
+ concurrent-ruby (1.0.5)
64
+ declarative (0.0.10)
65
+ declarative-option (0.1.0)
66
+ domain_name (0.5.20180417)
67
+ unf (>= 0.0.5, < 1.0.0)
68
+ dotenv (2.5.0)
69
+ emoji_regex (0.1.1)
70
+ escape (0.0.4)
71
+ excon (0.62.0)
72
+ faraday (0.15.3)
73
+ multipart-post (>= 1.2, < 3)
74
+ faraday-cookie_jar (0.0.6)
75
+ faraday (>= 0.7.4)
76
+ http-cookie (~> 1.0.0)
77
+ faraday_middleware (0.12.2)
78
+ faraday (>= 0.7.4, < 1.0)
79
+ fastimage (2.1.4)
80
+ fastlane (2.107.0)
81
+ CFPropertyList (>= 2.3, < 4.0.0)
82
+ addressable (>= 2.3, < 3.0.0)
83
+ babosa (>= 1.0.2, < 2.0.0)
84
+ bundler (>= 1.12.0, < 2.0.0)
85
+ colored
86
+ commander-fastlane (>= 4.4.6, < 5.0.0)
87
+ dotenv (>= 2.1.1, < 3.0.0)
88
+ emoji_regex (~> 0.1)
89
+ excon (>= 0.45.0, < 1.0.0)
90
+ faraday (~> 0.9)
91
+ faraday-cookie_jar (~> 0.0.6)
92
+ faraday_middleware (~> 0.9)
93
+ fastimage (>= 2.1.0, < 3.0.0)
94
+ gh_inspector (>= 1.1.2, < 2.0.0)
95
+ google-api-client (>= 0.21.2, < 0.24.0)
96
+ highline (>= 1.7.2, < 2.0.0)
97
+ json (< 3.0.0)
98
+ mini_magick (~> 4.5.1)
99
+ multi_json
100
+ multi_xml (~> 0.5)
101
+ multipart-post (~> 2.0.0)
102
+ plist (>= 3.1.0, < 4.0.0)
103
+ public_suffix (~> 2.0.0)
104
+ rubyzip (>= 1.2.2, < 2.0.0)
105
+ security (= 0.1.3)
106
+ simctl (~> 1.6.3)
107
+ slack-notifier (>= 2.0.0, < 3.0.0)
108
+ terminal-notifier (>= 1.6.2, < 2.0.0)
109
+ terminal-table (>= 1.4.5, < 2.0.0)
110
+ tty-screen (>= 0.6.3, < 1.0.0)
111
+ tty-spinner (>= 0.8.0, < 1.0.0)
112
+ word_wrap (~> 1.0.0)
113
+ xcodeproj (>= 1.6.0, < 2.0.0)
114
+ xcpretty (~> 0.3.0)
115
+ xcpretty-travis-formatter (>= 0.0.3)
116
+ fourflusher (2.0.1)
117
+ fuzzy_match (2.0.4)
118
+ gh_inspector (1.1.3)
119
+ gli (2.18.0)
120
+ google-api-client (0.23.9)
121
+ addressable (~> 2.5, >= 2.5.1)
122
+ googleauth (>= 0.5, < 0.7.0)
123
+ httpclient (>= 2.8.1, < 3.0)
124
+ mime-types (~> 3.0)
125
+ representable (~> 3.0)
126
+ retriable (>= 2.0, < 4.0)
127
+ signet (~> 0.9)
128
+ googleauth (0.6.6)
129
+ faraday (~> 0.12)
130
+ jwt (>= 1.4, < 3.0)
131
+ memoist (~> 0.12)
132
+ multi_json (~> 1.11)
133
+ os (>= 0.9, < 2.0)
134
+ signet (~> 0.7)
135
+ highline (1.7.10)
136
+ http-cookie (1.0.3)
137
+ domain_name (~> 0.5)
138
+ httpclient (2.8.3)
139
+ i18n (0.9.5)
140
+ concurrent-ruby (~> 1.0)
141
+ json (2.1.0)
142
+ jwt (2.1.0)
143
+ memoist (0.16.0)
144
+ mime-types (3.2.2)
145
+ mime-types-data (~> 3.2015)
146
+ mime-types-data (3.2018.0812)
147
+ mini_magick (4.5.1)
148
+ minitest (5.11.3)
149
+ molinillo (0.6.6)
150
+ multi_json (1.13.1)
151
+ multi_xml (0.6.0)
152
+ multipart-post (2.0.0)
153
+ nanaimo (0.2.6)
154
+ nap (1.1.0)
155
+ naturally (2.2.0)
156
+ netrc (0.11.0)
157
+ os (1.0.0)
158
+ plist (3.4.0)
159
+ public_suffix (2.0.5)
160
+ rake (12.3.1)
161
+ representable (3.0.4)
162
+ declarative (< 0.1.0)
163
+ declarative-option (< 0.2.0)
164
+ uber (< 0.2.0)
165
+ retriable (3.1.2)
166
+ rouge (2.0.7)
167
+ ruby-macho (1.3.1)
168
+ rubyzip (1.2.2)
169
+ security (0.1.3)
170
+ signet (0.11.0)
171
+ addressable (~> 2.3)
172
+ faraday (~> 0.9)
173
+ jwt (>= 1.5, < 3.0)
174
+ multi_json (~> 1.10)
175
+ simctl (1.6.5)
176
+ CFPropertyList
177
+ naturally
178
+ slack-notifier (2.3.2)
179
+ terminal-notifier (1.8.0)
180
+ terminal-table (1.8.0)
181
+ unicode-display_width (~> 1.1, >= 1.1.1)
182
+ thread_safe (0.3.6)
183
+ tty-cursor (0.6.0)
184
+ tty-screen (0.6.5)
185
+ tty-spinner (0.8.0)
186
+ tty-cursor (>= 0.5.0)
187
+ tzinfo (1.2.5)
188
+ thread_safe (~> 0.1)
189
+ uber (0.1.0)
190
+ unf (0.1.4)
191
+ unf_ext
192
+ unf_ext (0.0.7.5)
193
+ unicode-display_width (1.4.0)
194
+ word_wrap (1.0.0)
195
+ xcodeproj (1.6.0)
196
+ CFPropertyList (>= 2.3.3, < 4.0)
197
+ atomos (~> 0.1.3)
198
+ claide (>= 1.0.2, < 2.0)
199
+ colored2 (~> 3.1)
200
+ nanaimo (~> 0.2.6)
201
+ xcpretty (0.3.0)
202
+ rouge (~> 2.0.7)
203
+ xcpretty-travis-formatter (1.0.0)
204
+ xcpretty (~> 0.2, >= 0.0.7)
205
+
206
+ PLATFORMS
207
+ ruby
208
+
209
+ DEPENDENCIES
210
+ coo!
211
+ rake (~> 12.3)
212
+
213
+ BUNDLED WITH
214
+ 1.16.2
data/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2018 ripper
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,2 @@
1
+ # coo
2
+ A useful gem for iOS developer. 🚀
data/Rakefile ADDED
@@ -0,0 +1,44 @@
1
+ require 'rake/clean'
2
+ require 'rubygems'
3
+ require 'rubygems/package_task'
4
+ require 'rdoc/task'
5
+ require 'cucumber'
6
+ require 'cucumber/rake/task'
7
+ Rake::RDocTask.new do |rd|
8
+ rd.main = "README.md"
9
+ rd.rdoc_files.include("README.md","lib/**/*.rb","bin/**/*")
10
+ rd.title = 'Your application title'
11
+ end
12
+
13
+ spec = eval(File.read('coo.gemspec'))
14
+
15
+ Gem::PackageTask.new(spec) do |pkg|
16
+ end
17
+ CUKE_RESULTS = 'results.html'
18
+ CLEAN << CUKE_RESULTS
19
+ desc 'Run features'
20
+ Cucumber::Rake::Task.new(:features) do |t|
21
+ opts = "features --format html -o #{CUKE_RESULTS} --format progress -x"
22
+ opts += " --tags #{ENV['TAGS']}" if ENV['TAGS']
23
+ t.cucumber_opts = opts
24
+ t.fork = false
25
+ end
26
+
27
+ desc 'Run features tagged as work-in-progress (@wip)'
28
+ Cucumber::Rake::Task.new('features:wip') do |t|
29
+ tag_opts = ' --tags ~@pending'
30
+ tag_opts = ' --tags @wip'
31
+ t.cucumber_opts = "features --format html -o #{CUKE_RESULTS} --format pretty -x -s#{tag_opts}"
32
+ t.fork = false
33
+ end
34
+
35
+ task :cucumber => :features
36
+ task 'cucumber:wip' => 'features:wip'
37
+ task :wip => 'features:wip'
38
+ require 'rake/testtask'
39
+ Rake::TestTask.new do |t|
40
+ t.libs << "test"
41
+ t.test_files = FileList['test/*_test.rb']
42
+ end
43
+
44
+ task :default => [:test,:features]
data/TODO.md ADDED
@@ -0,0 +1,16 @@
1
+ # TODO
2
+
3
+
4
+ ## 优化
5
+
6
+ * 解决速度慢的问题
7
+ * 修改各种描述
8
+ * 添加引导
9
+
10
+ * 封装 puts
11
+ * 添加验证
12
+
13
+ ## 功能
14
+
15
+ * git ignore
16
+ * gic cache
data/bin/coo ADDED
@@ -0,0 +1,40 @@
1
+ #!/usr/bin/env ruby
2
+ require 'gli'
3
+ require 'coo'
4
+
5
+ class App
6
+ extend GLI::App
7
+ include Coo::Helper
8
+
9
+ program_desc 'A useful gem for iOS developer. 🚀'
10
+
11
+ version Coo::VERSION
12
+
13
+ subcommand_option_handling :normal
14
+ arguments :strict
15
+
16
+ commands_from 'coo/commands'
17
+
18
+ pre do |global, command, options, args|
19
+ # Pre logic here
20
+ # Return true to proceed; false to abort and not call the
21
+ # chosen command
22
+ # Use skips_pre before a command to skip this block
23
+ # on that command only
24
+ true
25
+ end
26
+
27
+ post do |global, command, options, args|
28
+ # Post logic here
29
+ # Use skips_post before a command to skip this
30
+ # block on that command only
31
+ end
32
+
33
+ on_error do |exception|
34
+ # Error logic here
35
+ # return false to skip default error handling
36
+ true
37
+ end
38
+ end
39
+
40
+ exit App.run(ARGV)
data/coo.gemspec ADDED
@@ -0,0 +1,26 @@
1
+ # coding: utf-8
2
+ require File.join([File.dirname(__FILE__),'lib','coo','version.rb'])
3
+ spec = Gem::Specification.new do |s|
4
+ s.name = 'coo'
5
+ s.version = Coo::VERSION
6
+ s.author = 'ripperhe'
7
+ s.email = '453942056@qq.com'
8
+ s.homepage = 'https://github.com/ripperhe/coo'
9
+ s.license = 'MIT'
10
+ s.platform = Gem::Platform::RUBY
11
+ s.summary = 'A useful gem for iOS developer. 🚀'
12
+ s.files = `git ls-files`.split
13
+ s.require_paths << 'lib'
14
+ s.bindir = 'bin'
15
+ s.executables << 'coo'
16
+
17
+ s.add_runtime_dependency('gli', '~> 2.18')
18
+ s.add_runtime_dependency('colorize', '~> 0.8')
19
+ s.add_runtime_dependency('terminal-table', '~> 1.8')
20
+ # s.add_runtime_dependency('cocoapods', '~> 1.5')
21
+ # s.add_runtime_dependency('fastlane', '~> 2.0')
22
+
23
+ # development
24
+ s.add_development_dependency('rake', '~> 12.3')
25
+
26
+ end
data/lib/coo.rb ADDED
@@ -0,0 +1,5 @@
1
+ require 'coo/version'
2
+ require 'coo/helper/helper'
3
+
4
+ # Add requires for other files you add to your project here, so
5
+ # you just need to require this one file in your bin file