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 +4 -4
- data/README.md +33 -13
- data/lib/yjncopycat/commandparser.rb +0 -4
- data/lib/yjncopycat/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f44f434af5aa84d26eb5b11b53c85ada5ac13282cbd24ea20c0a9e8bb31b3527
|
4
|
+
data.tar.gz: e2e72a33ce5e6292cdc6f945105a70827a1ab5ca4e4f0719b5dd6104ae8664c1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
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
|
-
|
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
|
-
|
9
|
+
More options will be available soon.
|
8
10
|
|
9
|
-
|
11
|
+
## Prerequisites
|
10
12
|
|
11
|
-
```
|
12
|
-
|
13
|
+
```
|
14
|
+
ruby 2.5.0
|
15
|
+
Xcode 8.0+
|
13
16
|
```
|
14
17
|
|
15
|
-
|
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
|
-
|
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/
|
55
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/ffdelacruz/yjncopycat.
|
36
56
|
|
37
57
|
## License
|
38
58
|
|
data/lib/yjncopycat/version.rb
CHANGED