gitcopier 0.1.7 → 0.1.8

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
  SHA1:
3
- metadata.gz: 1459f37974c679525b20246589a0bb9dde5f4183
4
- data.tar.gz: 1212b30c675341533421b6548f906adff72402cb
3
+ metadata.gz: 2cbcb2f87394cf7cc79d461bc6b676f116ae68d9
4
+ data.tar.gz: e1151f86602623493d31335579f901b6f3703d2e
5
5
  SHA512:
6
- metadata.gz: 9a363419cf6532870c302c27bc4c07e1bbb34db582402642f25da46f1663716b22cb1f0712932c893a141851f992db73c12aab8550d024fdd380e0a6e504c9b2
7
- data.tar.gz: 87762d540a66695c99bf87fd829f5283f528c3df6fb5baf517f36ead1f6e2be9c8fe01b7f0181c32ba1314b912bd98566418bf8151f3059a75f341b9a4c103df
6
+ metadata.gz: 2b34598a704fd962224dc9e0c70bc4f25761def16da1a2440d59205193269273bc687ae9fed7d79dcf82ada762d946fafdcd2ab877ace99d3c8349d43c5cd7ab
7
+ data.tar.gz: d8055374880087eb46d633f7f5d335efa30552e5271e3ab7604f14f86ee7988fa13c2e8a20081bc153e8184193291264e993cdb92aa7e43b2530bb3d1254d748
data/README.md CHANGED
@@ -1,7 +1,9 @@
1
1
  # Gitcopier
2
- Sometime, you work for a Rails project but its front end is adopted from other repositories (such as separated repository from a front end developer who is not familiar with Rails) and you need to integrate front end changes to the project. You need to see what files were changed, copy them accordingly. This gem will help you do the job really fast.
2
+ Help developers to integrate between multiple repositories.
3
3
 
4
4
  [![Gem Version](https://badge.fury.io/rb/gitcopier.svg)](https://badge.fury.io/rb/gitcopier)
5
+ [![Circle CI](https://circleci.com/gh/tranvictor/gitcopier.svg?style=svg)](https://circleci.com/gh/tranvictor/gitcopier)
6
+ [![Code Climate](https://codeclimate.com/repos/5627b7d16956804408002f46/badges/0959a12fd889b6a43f40/gpa.svg)](https://codeclimate.com/repos/5627b7d16956804408002f46/feed)
5
7
  ## Installation
6
8
 
7
9
  Add this line to your application's Gemfile:
@@ -23,19 +25,20 @@ Imagine you are a Rails developer, your expertise is designing and developing
23
25
  backend logic so you have one or more front end developers to help you with
24
26
  design, javascript, stylesheet ... However, they are working in Nodejs environment
25
27
  which is pretty different to Rails environment thus they have different repository.
26
- In order to apply (integrate) changes from that repository, you might have to see what files were changed, copy them to appropriate places in your Rails repository.
28
+ In order to apply (integrate) changes from that repository, you might have to see
29
+ what files were changed, copy them to appropriate places in your Rails repository.
27
30
  Doing so is really annoying. You should have a better way of doing it.
28
31
 
29
- ## How Gitcopier work
30
- Gitcopier helps you in intergrating those changes. Whenever you pull from front-end
31
- repository, Gitcopier will ask you to decide where to copy changed file
32
+ ## How `Gitcopier` work
33
+ `Gitcopier` helps you in intergrating those changes. Whenever you pull from front-end
34
+ repository, `Gitcopier` will ask you to decide where to copy changed file
32
35
  (modified, added). It remembers your dicisions to automatically copy or not copy
33
36
  in the future without asking you. This way, if front-end developers commit a
34
- change to existing files, you just have to pull that repository and Gitcopier will
37
+ change to existing files, you just have to pull that repository and `Gitcopier` will
35
38
  do all copying works.
36
39
 
37
40
  ## Usage
38
- ### Tell Gitcopier your repositories
41
+ ### Tell `Gitcopier` your repositories
39
42
  ```
40
43
  gitcopier --from <path_to_external_repo> --to <path_to_main_repo>
41
44
  ```
@@ -54,6 +57,7 @@ Usage: gitcopier [options]
54
57
  -v, --version
55
58
  --showall Show all integration information. This option ignore any other options.
56
59
  ```
60
+
57
61
  ### Working with git merge
58
62
  After you `git pull` in external repository, `Gitcopier` will prompt your decision
59
63
  where to copy the changed files.
@@ -30,7 +30,7 @@ module Gitcopier
30
30
  end
31
31
 
32
32
  def get_data_from_file
33
- File.read(decision_file)
33
+ File.read(decision_file) rescue "{}"
34
34
  end
35
35
 
36
36
  def prompt_decision(changed_file)
@@ -1,3 +1,3 @@
1
1
  module Gitcopier
2
- VERSION = "0.1.7"
2
+ VERSION = "0.1.8"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gitcopier
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.7
4
+ version: 0.1.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Victor Tran