gito 0.2.1 → 0.2.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (5) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +19 -9
  3. data/lib/gito.rb +5 -5
  4. data/lib/gito/version.rb +1 -1
  5. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 665348ac4df9545b7452e6c24e1ba0ce994df56d
4
- data.tar.gz: a82f08e1a78a5e9137d599431d27a96ec7c70346
3
+ metadata.gz: bbb6e180d5e8a9d926988bb93160a3d6f4c84b6b
4
+ data.tar.gz: 2ae13974767437052742e4576dfe408695b6ee14
5
5
  SHA512:
6
- metadata.gz: '029a3c8dc6c9f5c4ee95c158dd605f78216bee20476b16754e4b7469c0dc76624a2f78649e97e1e140b06ff5b701a9974ffed4966885f8acd796e045c27ec6b6'
7
- data.tar.gz: bfc82c7036abc0f2ffc7b5babd9e51c3258120ee23a7bc357a3b920dfa66fc30f27b7aca2ceab42b4b44af5a9d7858250e5b438105adb6137b659277424ea3be
6
+ metadata.gz: 0f5f4299c210020b7fd96e486cccc1196af008a7939f1edbea58d0b683f9f4186d5036c831977f83e40d246880c6590d113310da82f05c70cd9efce13dd48d53
7
+ data.tar.gz: c7cb36a9b1b81d7fff5e68f44175fda012ed4186ce49e2dd6080cfed6e92b91be9ed7f71b423c89e59493fb3cfc3d507246998505d0167ea45397fc9bcf31d7a
data/README.md CHANGED
@@ -23,20 +23,30 @@ A lot of times I find myself wanting to try some code from github and in order t
23
23
  ## Usage
24
24
 
25
25
  ```bash
26
- # git clone and enter the project folder
27
- gito cesarferreira/dryrun
26
+ $ gito -h
27
+ Usage: gito GIT_URL [OPTIONS]
28
+
29
+ Options
30
+ -e, --edit Open the project on an editor
31
+ -o, --open Open the project on Finder
32
+ -d, --dryrun Doesn't install the dependencies
33
+ -h, --help Displays help
34
+ -v, --version Displays the version
35
+ ```
28
36
 
29
- # git clone and enter the project folder and edit the project
30
- gito cesarferreira/dryrun -e
37
+ Examples:
38
+ ```bash
39
+ # git clone this https://github.com/cesarferreira/dryrun
40
+ gito cesarferreira/dryrun
31
41
 
32
- # git clone and enter the project folder, open and edit the project
42
+ # git clone, install, open and edit the project
33
43
  gito cesarferreira/dryrun --edit --open
34
44
 
35
- # git clone from github and enter the folder
36
- gito https://github.com/cesarferreira/dryrun
45
+ # git clone, install, open and edit the project
46
+ gito https://github.com/cesarferreira/dryrun -e -o
37
47
 
38
- # git clone from github and enter the folder
39
- gito https://bitbucket.org/cesarferreira/project
48
+ # git clone, install,
49
+ gito https://bitbucket.org/username/project
40
50
  ```
41
51
 
42
52
  ## Installation
@@ -69,11 +69,6 @@ class MainApp
69
69
  # Detect project type
70
70
  project.detect_project_type
71
71
 
72
- unless @dryrun
73
- # Install dependencies
74
- project.install_dependencies
75
- end
76
-
77
72
  # Open in editor
78
73
  if @should_edit
79
74
  project.open_editor
@@ -84,6 +79,11 @@ class MainApp
84
79
  project.open_folder
85
80
  end
86
81
 
82
+ unless @dryrun
83
+ # Install dependencies
84
+ project.install_dependencies
85
+ end
86
+
87
87
  # Change to directory
88
88
  project.change_directory
89
89
 
@@ -1,3 +1,3 @@
1
1
  module Gito
2
- VERSION = '0.2.1'
2
+ VERSION = '0.2.2'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gito
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - cesar ferreira