yjncopycat 0.1.0 → 0.1.1

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
2
  SHA256:
3
- metadata.gz: 1b8a140ec7d9f616b196be9321c75c0e575084b781c57721bd6e5ab0f9739f29
4
- data.tar.gz: 63b9fbb27da19b0dfdfd42340bb32ee41944ab08d26ad7e469036162ca8f04da
3
+ metadata.gz: 04e574cd1a031831effc6ef3e6cf60cb9817e179373462daab4e8084668ba892
4
+ data.tar.gz: fec2b8611f91e23d82c3aa6a79d1df5bbd4f6933e815e0ef50a531bb280e836f
5
5
  SHA512:
6
- metadata.gz: e5d8383580fc211d0dc3a45745a70c2cefb47bdb34d0397850d4d93f1abc7e1f30342ee4765a07def8e30a1338731fc9e20894d1862090c6c5f222aef6f2a583
7
- data.tar.gz: 0dc29642b711de09a35accb47690f6647341771370849bd3702e3650782a2c834e850d99fb8ed20d1538fa95ffd1aab7f98882d00a713ae36e18ffb0ec8423ad
6
+ metadata.gz: be5a57c9326f743a87fcbc52ad2bc1b5b0f0d1d17e176a1fe77bd2e3fe94674ca771fe59197c9cb6bcb3ae26d4fbdd01d9ada41e0797a32cfccda7f82f2a6a42
7
+ data.tar.gz: 2a497d505256811d3bfcb1b3b11292e0bb6c00364beb1d514d62e0ebac8414efc425f88c09050d32c78094201adb4476c6c65c982fa082f5fd46b7ce0af6a7c2
data/bin/yjncopycat CHANGED
@@ -1,10 +1,13 @@
1
1
  #!/usr/bin/env ruby
2
2
 
3
- require 'pp'
4
3
  require 'colored2'
5
4
  require 'yjncopycat/commandparser.rb'
6
5
  require 'yjncopycat/xcodeprojectcloner.rb'
7
- require 'yjncopycat/version.rb'
6
+
7
+ if ARGV.length == 0 || ARGV.length > 2
8
+ puts 'USAGE: $ yjncopycat --url <iOS_project_github_url> --name <new_project_name>'.yellow
9
+ exit 0
10
+ end
8
11
 
9
12
  options = YJNCopycat::CommandParser.parse(ARGV)
10
13
  puts ''
@@ -35,7 +35,7 @@ module YJNCopycat
35
35
  exit 1
36
36
  end
37
37
 
38
- unless options[:url] =~ URI::regexp #.to_s.empty?
38
+ unless options[:url] =~ URI::regexp
39
39
  puts "ERROR: Invalid value for --url option. Please input a valid URL of your git repo.".red
40
40
  exit 1
41
41
  end
@@ -1,3 +1,3 @@
1
1
  module YJNCopycat
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: yjncopycat
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Feb Dela Cruz
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-07-29 00:00:00.000000000 Z
11
+ date: 2018-07-30 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Clones an Xcode project and renames it.
14
14
  email: