yjncopycat 0.1.2 → 0.1.3

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: 45ff12934bc565ee4820d30c1bf2639617ae07da6986c3bcea9a90196e1ab617
4
- data.tar.gz: 3fd0ea347eaa09c40adc15bb8f2bcc81a72aa225c272bb1bd9cafea3c894beef
3
+ metadata.gz: 113a1c12379294b8672d8859f3ef38647b1d2826050772b6f724f68e464e54ed
4
+ data.tar.gz: 79b59f1e2aa7c66b71e442995e7d564269b51e6df522d39b37f9d7fb91b2a5d3
5
5
  SHA512:
6
- metadata.gz: 677d4d164171ce804b303d505650b88d9c55f13437f535bb8597f495b5685c92618959cad47325f9b17d55b6de0c13128ecf7e444018c272e7bdef787f976eb3
7
- data.tar.gz: bdba6af95968575872aa1930079639ac21fbf6c380817718ce31d509c05548464a6a0d9269ffd6c1f2d3193519fee38686421134b06155b92754292444cb2224
6
+ metadata.gz: 01ee7d45d914cbf1437b8ad8779845b2a335dd40967173787d65c4eda372d737a6214cd3f33950c5dcab3ab9ee08adb1196b4896db7bd40c99855e3b27abdc0e
7
+ data.tar.gz: c9b5c8e03145a665154448206535497fd97881d74c36c0c89b2345451ca5eac6220b5adf80e9cd748b546fec8a19d2e603e54bbf50112f0cc1e76cf09f9bc9de
data/Gemfile.lock CHANGED
@@ -1,11 +1,77 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- yjncopycat (0.1.0)
4
+ yjncopycat (0.1.2)
5
+ cocoapods
6
+ xcodeproj
5
7
 
6
8
  GEM
7
9
  remote: https://rubygems.org/
8
10
  specs:
11
+ CFPropertyList (3.0.0)
12
+ activesupport (4.2.10)
13
+ i18n (~> 0.7)
14
+ minitest (~> 5.1)
15
+ thread_safe (~> 0.3, >= 0.3.4)
16
+ tzinfo (~> 1.1)
17
+ atomos (0.1.2)
18
+ claide (1.0.2)
19
+ cocoapods (1.5.3)
20
+ activesupport (>= 4.0.2, < 5)
21
+ claide (>= 1.0.2, < 2.0)
22
+ cocoapods-core (= 1.5.3)
23
+ cocoapods-deintegrate (>= 1.0.2, < 2.0)
24
+ cocoapods-downloader (>= 1.2.0, < 2.0)
25
+ cocoapods-plugins (>= 1.0.0, < 2.0)
26
+ cocoapods-search (>= 1.0.0, < 2.0)
27
+ cocoapods-stats (>= 1.0.0, < 2.0)
28
+ cocoapods-trunk (>= 1.3.0, < 2.0)
29
+ cocoapods-try (>= 1.1.0, < 2.0)
30
+ colored2 (~> 3.1)
31
+ escape (~> 0.0.4)
32
+ fourflusher (~> 2.0.1)
33
+ gh_inspector (~> 1.0)
34
+ molinillo (~> 0.6.5)
35
+ nap (~> 1.0)
36
+ ruby-macho (~> 1.1)
37
+ xcodeproj (>= 1.5.7, < 2.0)
38
+ cocoapods-core (1.5.3)
39
+ activesupport (>= 4.0.2, < 6)
40
+ fuzzy_match (~> 2.0.4)
41
+ nap (~> 1.0)
42
+ cocoapods-deintegrate (1.0.2)
43
+ cocoapods-downloader (1.2.1)
44
+ cocoapods-plugins (1.0.0)
45
+ nap
46
+ cocoapods-search (1.0.0)
47
+ cocoapods-stats (1.0.0)
48
+ cocoapods-trunk (1.3.0)
49
+ nap (>= 0.8, < 2.0)
50
+ netrc (~> 0.11)
51
+ cocoapods-try (1.1.0)
52
+ colored2 (3.1.2)
53
+ concurrent-ruby (1.0.5)
54
+ escape (0.0.4)
55
+ fourflusher (2.0.1)
56
+ fuzzy_match (2.0.4)
57
+ gh_inspector (1.1.3)
58
+ i18n (0.9.5)
59
+ concurrent-ruby (~> 1.0)
60
+ minitest (5.10.3)
61
+ molinillo (0.6.5)
62
+ nanaimo (0.2.6)
63
+ nap (1.1.0)
64
+ netrc (0.11.0)
65
+ ruby-macho (1.2.0)
66
+ thread_safe (0.3.6)
67
+ tzinfo (1.2.5)
68
+ thread_safe (~> 0.1)
69
+ xcodeproj (1.5.9)
70
+ CFPropertyList (>= 2.3.3, < 4.0)
71
+ atomos (~> 0.1.2)
72
+ claide (>= 1.0.2, < 2.0)
73
+ colored2 (~> 3.1)
74
+ nanaimo (~> 0.2.5)
9
75
 
10
76
  PLATFORMS
11
77
  ruby
data/bin/yjncopycat CHANGED
@@ -3,14 +3,14 @@
3
3
  require 'colored2'
4
4
  require 'yjncopycat/commandparser.rb'
5
5
  require 'yjncopycat/xcodeprojectcloner.rb'
6
+ require 'yjncopycat/version.rb'
6
7
 
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
8
+ module YJNCopycat
9
+ USAGE = 'USAGE: $ yjncopycat --url <iOS_project_github_url> --name <new_project_name>'.yellow
10
10
  end
11
11
 
12
12
  options = YJNCopycat::CommandParser.parse(ARGV)
13
13
  puts ''
14
14
  YJNCopycat::XcodeProjectCloner.new(options).createClone
15
15
  puts ''
16
- puts "End.".yellow
16
+ puts "End.".yellow
@@ -5,6 +5,11 @@ require 'uri'
5
5
  module YJNCopycat
6
6
  class CommandParser
7
7
  def self.parse(args)
8
+ if args.length == 0
9
+ puts YJNCopycat::USAGE
10
+ exit 0
11
+ end
12
+
8
13
  options = {}
9
14
  parser = OptionParser.new do |parser|
10
15
  parser.banner = "Usage: yjncopycat [options]"
@@ -19,6 +24,10 @@ module YJNCopycat
19
24
  puts YJNCopycat::VERSION
20
25
  exit
21
26
  end
27
+ parser.on_tail('-h', '--help', 'Shows simple usage instructions.') do
28
+ puts YJNCopycat::USAGE
29
+ exit 0
30
+ end
22
31
  end
23
32
 
24
33
  begin
@@ -1,3 +1,3 @@
1
1
  module YJNCopycat
2
- VERSION = "0.1.2"
2
+ VERSION = "0.1.3"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: yjncopycat
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Feb Dela Cruz