ormdev 0.2.0 → 0.2.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7ffb75697c209a6318b768b141d4fba013baddb0612d938ae5de59c576352cf1
4
- data.tar.gz: 136b0e9dd6c0da6d76eb5be500af261ae29879f406e58b5de69d58fa1a1571ab
3
+ metadata.gz: 2b65be856d31039bd4584b6dd82b1ee0854e7697e9d88c8130244d0a5aa62019
4
+ data.tar.gz: 8eef64553f396d65f957e6f58ee3023f033a1c280aeaacb3af8453520fed8fa1
5
5
  SHA512:
6
- metadata.gz: b5d1ea44f5732f6c18594ff74872dcd23e7331a2d1ff6d8a54b84bd0605748658a40aa080c60250edf79afdbf75ae787950d699e76bf4a447296bb5f761d6148
7
- data.tar.gz: 353c565dffa37dca2efd0706c0c786e6fb756b7b0280f4ffe434a1f2526a956db6d93dd6f5f5090dda196378002ad32d74b5bac14edf513747c620e7a739183b
6
+ metadata.gz: 609beeaa95030f67ed63c8cee1826a610b3618064352f91f2e93492edc55887dbc985e0531948b85496adf1c78fe5789716037c1c896fd83c4a2d5cc385065a8
7
+ data.tar.gz: 7bbdcec3836a6d3516d2fd237543260e2413f62c6405709ba3a8ea9ad2d12503ca5ea437b415420233a8507f5f39906d1e3ca38abbb8d28636d4205f076ce0fd
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- ormdev (0.2.0)
4
+ ormdev (0.2.1)
5
5
  claide (~> 1.0, >= 1.0.2)
6
6
  cocoapods (~> 1.5, >= 1.5.3)
7
7
  cocoapods-packager (~> 1.5)
@@ -55,7 +55,8 @@ module OrmDev
55
55
  def clone_template
56
56
  if @template_url.downcase.end_with?('.zip') then
57
57
  unzip_dir = File.basename(@template_url, 'zip')
58
- abort('插件目录本地已存在。') if Dir.exist?(unzip_dir)
58
+ abort('插件目录本地已存在。'.red) if Dir.exist?(unzip_dir)
59
+ abort('插件工程目录本地已存在。'.red) if Dir.exist?(@project_name)
59
60
  zip_path = File.join('./', File.basename(@template_url))
60
61
 
61
62
  if (@template_url.downcase.start_with?('http://') || @template_url.downcase.start_with?('https://')) then
@@ -68,7 +69,7 @@ module OrmDev
68
69
  abort('插件模板zip下载失败') unless File.exist? zip_path
69
70
  # 解压模板
70
71
  result = OrmDev::SHUtil.run_command("unzip #{zip_path}",'解压模板工程', false)
71
- File.rename('CIPPROJECT', @project_name)
72
+ File.rename('CIPPROJECT', @project_name) if File.exist? 'CIPPROJECT'
72
73
  FileUtils.rm zip_path
73
74
  abort('插件模板zip解压失败') unless result
74
75
  else
@@ -1,3 +1,3 @@
1
1
  module OrmDev
2
- VERSION = '0.2.0'
2
+ VERSION = '0.2.1'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ormdev
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - devorm
@@ -220,7 +220,7 @@ post_install_message: "\e[32m\n _____ __ __ ________\n
220
220
  ___ \\ / / / / / _ _ /\n / / / // /_/ / / // // /\n / / / //
221
221
  ____/ / // // /\n / /__/ // / / // // /\n \\_____//_/ /_//_//_/
222
222
  \ Dev\n\n\n -- 欢迎使用OrmDev for iOS --\n ---- 技术支持:devorm@163.com ----\n\n
223
- \ \e[0m\t\t\t\tv0.2.0\n\n"
223
+ \ \e[0m\t\t\t\tv0.2.1\n\n"
224
224
  rdoc_options: []
225
225
  require_paths:
226
226
  - lib