yjncopycat 0.2.0 → 0.2.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: 39fad83311c20c7aa00c6bf4cdc08428d92967b64e82cad9b06a345765ab8a2f
4
- data.tar.gz: e9c1832c894efc0e5b63e31356ee62ed64089c54657260cf17bc26118f994f85
3
+ metadata.gz: f44f434af5aa84d26eb5b11b53c85ada5ac13282cbd24ea20c0a9e8bb31b3527
4
+ data.tar.gz: e2e72a33ce5e6292cdc6f945105a70827a1ab5ca4e4f0719b5dd6104ae8664c1
5
5
  SHA512:
6
- metadata.gz: 70e9d8dbcb98e8b6adf5bf8bc1bb903d41c598a9d9f23a2b9ba4aa6cc65288734eca46cfa33524b067ab5b73740d50c962321277e9f3627749515ee51591a37d
7
- data.tar.gz: 7d4f77a50a7aecb62f85d4abfc55e1171828602fe6f48df59cd575d2e68d88374e7053ab84d03fab8c0bd2a2431a479ef4612ec80d48aa364d68a08795d54cdb
6
+ metadata.gz: 003ae8c7ffbbef86b8c28da295d610ae6da3da765fbf69ee2371a8df23387e542ec9e3cb27eb50ff8411aad920f8b1434c985a37ca3f10b5a3163190894d1388
7
+ data.tar.gz: c9a9dc15784fee9f8131d442e216018d370d4761f51dbe05b857cbb7f14640e410a0721343b42369f1ddd0655cd43d61358e2a918a2058c4c659a7ff7e394fe5
data/README.md CHANGED
@@ -1,28 +1,48 @@
1
1
  # YJNCOPYCAT
2
+ [![Gem Version](https://badge.fury.io/rb/yjncopycat.svg)](https://badge.fury.io/rb/yjncopycat)
2
3
 
3
- Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/yjncopycat`. To experiment with that code, run `bin/console` for an interactive prompt.
4
+ Renaming an iOS app project is not exactly straightforward. I usually follow the steps outlined here: https://stackoverflow.com/a/35500038. As you can see, it's not as easy as it sounds.
4
5
 
5
- TODO: Delete this and the text above, and describe your gem
6
+ YJNCopycat is a simple ruby script that clones a git repository containing an iOS Xcode project and renames it.
7
+ You can use this gem either by a.) providing arguments in the commandline executable (`--url`, `--name`), or b.) by putting your specifications in a textfile: `Copyfile`. YJNCopycat will create a new folder in the current directory and download the project from the specified repo. It will proceed to rename the project, reinstall dependencies from CocoaPods, reinitialize git (will be optional in the next version), and then open the xcproject/xcworkspace file using your Xcode.
6
8
 
7
- ## Installation
9
+ More options will be available soon.
8
10
 
9
- Add this line to your application's Gemfile:
11
+ ## Prerequisites
10
12
 
11
- ```ruby
12
- gem 'yjncopycat'
13
+ ```
14
+ ruby 2.5.0
15
+ Xcode 8.0+
13
16
  ```
14
17
 
15
- And then execute:
16
-
17
- $ bundle
18
-
19
- Or install it yourself as:
18
+ ## Installation
20
19
 
21
20
  $ gem install yjncopycat
22
21
 
23
22
  ## Usage
24
23
 
25
- TODO: Write usage instructions here
24
+ Just `cd` to where you want to clone your selected project repo.
25
+
26
+ ### a. CLI args
27
+
28
+ $ yjncopycat --name <NEW_PROJECT_NAME> --url <GIT_REPO_URL>
29
+
30
+ ### b. Copyfile
31
+
32
+ $ touch Copyfile
33
+ $ open Copyfile
34
+
35
+ This will be the format of `Copyfile`:
36
+ ```
37
+ name <NEW_PROJECT_NAME>
38
+ url <GIT_REPO_URL>
39
+ ```
40
+
41
+ Once the `Copyfile` is ready, run this:
42
+
43
+ $ yjncopycat run
44
+
45
+ If all goes well, Xcode will open your renamed project.
26
46
 
27
47
  ## Development
28
48
 
@@ -32,7 +52,7 @@ To install this gem onto your local machine, run `bundle exec rake install`. To
32
52
 
33
53
  ## Contributing
34
54
 
35
- Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/yjncopycat.
55
+ Bug reports and pull requests are welcome on GitHub at https://github.com/ffdelacruz/yjncopycat.
36
56
 
37
57
  ## License
38
58
 
@@ -29,10 +29,6 @@ module YJNCopycat
29
29
  puts YJNCopycat::USAGE
30
30
  exit 0
31
31
  end
32
- parser.on_tail('copy', '--copy', "Start copying project based on a spec file.") do
33
- options = YJNCopycat::SpecFileParser.run
34
- pp = options
35
- end
36
32
  end
37
33
 
38
34
  begin
@@ -1,3 +1,3 @@
1
1
  module YJNCopycat
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: yjncopycat
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
  - Feb Dela Cruz