ormdev 0.1.5 → 0.1.6

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
  SHA256:
3
- metadata.gz: 62f11394e04a6905520d2635ee1290a78365be2037a358d7133c94111631ff74
4
- data.tar.gz: f918891d91d8d1b0f32ad03110294e96e95fd6f86e2988fb35507e443ff75484
3
+ metadata.gz: 4c34d332123229b2c1d66b0e09e1816d5be52d7a6b26eea0ced488b2caec3ff1
4
+ data.tar.gz: c1b6081c741bb665e9c83f61379bfb595d1308bd65a396f894cb5a477712b241
5
5
  SHA512:
6
- metadata.gz: 5ee29dfdda81c5667147604980906863c4ceb4abcb26bbf1ed2eecaa7b6b78bd6afe6dd264ed7de5fec5b40f6023dcdd403741027a712aead2665c1b298426c2
7
- data.tar.gz: 708db3a70b145030b5dc5407e4d688c0f7f9e0476168ea88b505e9e4d7f93ead0898260306d705dae56ff86d19d0d7977e35f587506b83b34fd2fb04fd828b4d
6
+ metadata.gz: 50328203b3ab91a7a3f3738bd4f717b84e03182742b7f7ba5e21981c36c2df9cd081946aad50dc4f005be8e242f84ed3b53b891f6527b8fda3116df745a34a1e
7
+ data.tar.gz: dd895172daebf3b81bdd7c082e3c195ffc7f1dcfaecf2e335640ff34e0d7983a52de0bb07dbfb94bf8c49cb5255a292ae3cd37b95b5e9b013a7f7c54790c9445
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- ormdev (0.1.5)
4
+ ormdev (0.1.6)
5
5
  claide (~> 1.0, >= 1.0.2)
6
6
  cocoapods (~> 1.5, >= 1.5.3)
7
7
  cocoapods-packager (~> 1.5)
@@ -42,10 +42,10 @@ module OrmDev
42
42
  def run
43
43
  create = OrmDev::CreateHelper.new(@name, @fast, @prefix, @template_url)
44
44
  create.setup(@skip)
45
- OrmDev::LogUtil.info ", `cd #{@name}` \n `ormdev run ` "
46
45
  OrmDev::LogUtil.info '【创建插件工程】Success!!!,编写插件逻辑代码,添加版本控制'
47
- OrmDev::LogUtil.info " `cd #{@name}`".magenta
48
- OrmDev::LogUtil.info " `ormdev run`".magenta
46
+ OrmDev::LogUtil.info " cd #{@name}".magenta
47
+ OrmDev::LogUtil.info 'and'
48
+ OrmDev::LogUtil.info " ormdev run".magenta
49
49
  end
50
50
  end
51
51
  end
@@ -58,7 +58,8 @@ module OrmDev
58
58
  super
59
59
  OrmDev::LogUtil.info '[插件发布] '.green
60
60
  info = OrmDev::HTTPUtil.send_pulish_plugin_http(@account, @password, @push_type, @podspec_path, @zip, @changelog)
61
- OrmDev::LogUtil.info "插件发布完成!!! #{info}"
61
+ OrmDev::LogUtil.info "插件上传完成!!! #{info}"
62
+ OrmDev::LogUtil.link(info['previewUrl'], '前往查看发布结果:')
62
63
  end
63
64
  end
64
65
  end
@@ -54,7 +54,7 @@ module OrmDev
54
54
  framework_zip = installer.setup(@no_version_control)
55
55
  framework_zip_path= File.expand_path('./', framework_zip)
56
56
  OrmDev::LogUtil.info "Success!!! 静态库编译完成:#{framework_zip_path}"
57
- OrmDev::LogUtil.info " `ormdev publish #{@podspec_path} --zip=#{framework_zip_path} --push-type=0`".magenta
57
+ OrmDev::LogUtil.info " ormdev publish #{@podspec_path} --zip=#{framework_zip_path} --push-type=0".magenta
58
58
  end
59
59
  end
60
60
  end
@@ -32,9 +32,9 @@ module OrmDev
32
32
  OrmDev::SHUtil.run_command('pod repo add orm https://gitee.com/mvn/ios.git','更验证Pod',false)
33
33
  OrmDev::SHUtil.run_command('pod repo update','更验证Pod',false)
34
34
  OrmDev::LogUtil.info '创建插件工程:'
35
- OrmDev::LogUtil.info ' `ormdev create CIPXxx`'.magenta
35
+ OrmDev::LogUtil.info ' ormdev create CIPXxx'.magenta
36
36
  OrmDev::LogUtil.info '或者使用快速创建插件工程:'
37
- OrmDev::LogUtil.info ' `ormdev create CIPXxx --fast`'.magenta
37
+ OrmDev::LogUtil.info ' ormdev create CIPXxx --fast'.magenta
38
38
  end
39
39
  end
40
40
  end
@@ -0,0 +1,17 @@
1
+ require "ormdev/support_info"
2
+
3
+ module OrmDev
4
+ class Command
5
+ class Support < Command
6
+ self.summary = 'OrmDev 技术支持。'
7
+ self.description = <<-DESC
8
+ OrmDev 技术支持信息。
9
+ DESC
10
+
11
+ def run
12
+ super
13
+ puts OrmDev::SUPPORT_INFO
14
+ end
15
+ end
16
+ end
17
+ end
@@ -9,6 +9,7 @@ module OrmDev
9
9
  require 'ormdev/command/lint'
10
10
  require 'ormdev/command/run'
11
11
  require 'ormdev/command/publish'
12
+ require 'ormdev/command/support'
12
13
 
13
14
  self.abstract_command = true
14
15
  self.command = 'ormdev'
@@ -16,7 +17,7 @@ module OrmDev
16
17
  self.description = 'OriginalM —— 混合模式移动应用(Hybrid App)持续集成(Continuous Integration)工具包,用于构建、编译、测试、分发、部署的工具。'
17
18
 
18
19
  def run
19
- OrmDev::LogUtil.info '* 开始执行orm … *'
20
+ OrmDev::LogUtil.info '* 开始执行OrmDev … *'
20
21
  end
21
22
 
22
23
  end
@@ -44,7 +44,7 @@ module OrmDev
44
44
  unless zip_path.nil? then
45
45
  params[File.basename(zip_path)] = Faraday::UploadIO.new(zip_path, 'application/octet-stream') if File.exist?(zip_path)
46
46
  end
47
- OrmDev::LogUtil.info '【发布第三方插件】Start upload ...'
47
+ OrmDev::LogUtil.info '【发布第三方插件】开始上传 ...'
48
48
 
49
49
  api = ENV['ORMDEV_CLT_API_THIRD_PLUGIN_PUBLISH'] || API_THIRD_PLUGIN_PUBLISH
50
50
  response = pgyer_client.post api, params
@@ -53,7 +53,7 @@ module OrmDev
53
53
  OrmDev::LogUtil.info "【第三方插件发布】#{api}"
54
54
  OrmDev::LogUtil.info "【第三方插件发布】Upload complate: #{info}"
55
55
  if info && info['status'] && info['status'] == '0000' then
56
- OrmDev::LogUtil.info '发布成功'
56
+ OrmDev::LogUtil.info '【第三方插件发布】上传成功'
57
57
  end
58
58
  info
59
59
  end
@@ -14,6 +14,19 @@ module OrmDev
14
14
  puts "#{ORMDEV_CLT_INFO_LOG_FLAG}#{msg}"
15
15
  end
16
16
 
17
+ def self.link(link, message)
18
+ puts message unless message.nil?
19
+ unless link.nil?
20
+ puts " - " + link.blue.underlined
21
+
22
+ if ENV["TERM_PROGRAM"] == "iTerm.app"
23
+ puts " ( hold cmd and click links to open in a browser. )".magenta
24
+ else
25
+ puts " ( hold cmd and double click links to open in a browser. )".magenta
26
+ end
27
+ end
28
+ end
29
+
17
30
  def self.print_command(content)
18
31
  puts content.green.bold
19
32
  end
@@ -0,0 +1,18 @@
1
+ require 'colored2'
2
+ require 'ormdev/version'
3
+
4
+ module OrmDev
5
+ SUPPORT_INFO = %q(
6
+ _____ __ __ ________
7
+ / ___ \ / / / / / _ _ /
8
+ / / / // /_/ / / // // /
9
+ / / / // ____/ / // // /
10
+ / /__/ // / / // // /
11
+ \_____//_/ /_//_//_/ Dev
12
+
13
+
14
+ -- 欢迎使用OrmDev for iOS --
15
+ ---- 技术支持:devorm@163.com ----
16
+
17
+ ).green + "\t\t\t\tv#{OrmDev::VERSION}\n\n"
18
+ end
@@ -1,3 +1,3 @@
1
1
  module OrmDev
2
- VERSION = '0.1.5'
2
+ VERSION = '0.1.6'
3
3
  end
data/ormdev.gemspec CHANGED
@@ -2,6 +2,7 @@
2
2
  lib = File.expand_path("../lib", __FILE__)
3
3
  $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
4
  require "ormdev/version"
5
+ require "ormdev/support_info"
5
6
  require 'date'
6
7
 
7
8
  Gem::Specification.new do |spec|
@@ -15,18 +16,7 @@ Gem::Specification.new do |spec|
15
16
  spec.description = %q{Hybrid App,混合模式移动应用,兼具“Native App良好用户交互体验的优势”和“Web App跨平台开发的优势”。 }
16
17
  spec.homepage = 'https://gitee.com/mvn/ormdev'
17
18
  spec.license = 'MIT'
18
- spec.post_install_message = %q(
19
- _____ __ __ ________
20
- / ___ \ / / / / / _ _ /
21
- / / / // /_/ / / // // /
22
- / / / // ____/ / // // /
23
- / /__/ // / / // // /
24
- \_____//_/ /_//_//_/
25
-
26
-
27
- ---- 欢迎使用originalm ----
28
- ---- 技术支持:devorm@163.com ----
29
- )
19
+ spec.post_install_message = OrmDev::SUPPORT_INFO
30
20
 
31
21
  # Prevent pushing this gem to RubyGems.org. To allow pushes either set the 'allowed_push_host'
32
22
  # to allow pushing to a single host or delete this section to allow pushing to any host.
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ormdev
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.5
4
+ version: 0.1.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - devorm
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-12-05 00:00:00.000000000 Z
11
+ date: 2018-12-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: claide
@@ -201,22 +201,25 @@ files:
201
201
  - lib/ormdev/command/publish.rb
202
202
  - lib/ormdev/command/run.rb
203
203
  - lib/ormdev/command/setup.rb
204
+ - lib/ormdev/command/support.rb
204
205
  - lib/ormdev/command/update.rb
205
206
  - lib/ormdev/source/core/create_helper.rb
206
207
  - lib/ormdev/source/core/run_helper.rb
207
208
  - lib/ormdev/source/util/http_util.rb
208
209
  - lib/ormdev/source/util/log_util.rb
209
210
  - lib/ormdev/source/util/sh_util.rb
211
+ - lib/ormdev/support_info.rb
210
212
  - lib/ormdev/version.rb
211
213
  - ormdev.gemspec
212
214
  homepage: https://gitee.com/mvn/ormdev
213
215
  licenses:
214
216
  - MIT
215
217
  metadata: {}
216
- post_install_message: "\n _____ __ __ ________\n / ___ \\
217
- / / / / / _ _ /\n / / / // /_/ / / // // /\n / / / // ____/
218
- / // // /\n / /__/ // / / // // /\n \\_____//_/ /_//_//_/\n\n\n
219
- \ ---- 欢迎使用originalm ----\n ---- 技术支持:devorm@163.com ----\n "
218
+ post_install_message: "\e[32m\n _____ __ __ ________\n /
219
+ ___ \\ / / / / / _ _ /\n / / / // /_/ / / // // /\n / / / //
220
+ ____/ / // // /\n / /__/ // / / // // /\n \\_____//_/ /_//_//_/
221
+ \ Dev\n\n\n -- 欢迎使用OrmDev for iOS --\n ---- 技术支持:devorm@163.com ----\n\n
222
+ \ \e[0m\t\t\t\tv0.1.6\n\n"
220
223
  rdoc_options: []
221
224
  require_paths:
222
225
  - lib