gito 0.4.2 → 0.4.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
  SHA1:
3
- metadata.gz: 3bb6cf5595da94906792c4cfb614adee98931dc8
4
- data.tar.gz: 9e9734d8f9f8f1f08d2c106a77d097a77fc2e55a
3
+ metadata.gz: b8dd08ad0205a51aacc4fa00f1fb1a0bfdac163a
4
+ data.tar.gz: c74e9b1b3c109e2f91e40dc0d1f8d7c2e4279c47
5
5
  SHA512:
6
- metadata.gz: 7245b5c6d4a4064f9ad03ba5ffe46d2cba4db3e622038b993578ed3198a322c5f1dc3f6805c9d06096e3e055c027acba945ac0bc64dfc014229256b807fb4add
7
- data.tar.gz: 142e3287906d50924523a9da701897e128f89dcfe145f3167098728e78627fddee6c20e5dadedf9c4ff0a6b5053927f214245a78c33967990224af458a2b248a
6
+ metadata.gz: 6a0e13648e26b1f56ae523dd20a7da5730494eeb098bdc2d2db16d6724b00c7ebf1ef6dd913d86809cfacc055161efe85dc20164c461765fcae89212bdebf1c7
7
+ data.tar.gz: 7ff99c78a6cbe034bceb471f1b7c5c4e139ce8a9b90e93d63540719f6d8b8584d1c996637605d2a6ff28a80fb67c9f263a40e653162f5411ea0c5b118a751713
data/README.md CHANGED
@@ -1,8 +1,8 @@
1
1
  # gito
2
+ ![](http://ruby-gem-downloads-badge.herokuapp.com/gito?type=total)
2
3
  [![Gem Version](https://badge.fury.io/rb/gito.svg)](https://badge.fury.io/rb/gito)
3
4
  [![Build Status](https://travis-ci.org/cesarferreira/gito.svg?branch=master)](https://travis-ci.org/cesarferreira/gito)
4
5
  [![Code Climate](https://codeclimate.com/github/cesarferreira/gito/badges/gpa.svg)](https://codeclimate.com/github/cesarferreira/gito)
5
- [![Inline docs](http://inch-ci.org/github/cesarferreira/gito.svg?branch=master)](http://inch-ci.org/github/cesarferreira/gito)
6
6
 
7
7
  git helper tool to **clone**/**open**/**auto-install**/**edit** a git project with a one-liner.
8
8
 
Binary file
Binary file
data/extras/dryrun.gif ADDED
Binary file
data/lib/gito.rb CHANGED
@@ -12,7 +12,7 @@ require 'tempfile'
12
12
  class MainApp
13
13
  def initialize(arguments)
14
14
 
15
- @url = %w(-h --help -v --version).include?(arguments.first) ? nil : arguments.shift
15
+ @url = %w(-h --help -v --version -s --set-editor).include?(arguments.first) ? nil : arguments.shift
16
16
 
17
17
  # defaults
18
18
  @options = {}
@@ -81,7 +81,6 @@ class MainApp
81
81
  end
82
82
 
83
83
  def call
84
-
85
84
  if @options[:setting_up]
86
85
  if @options[:editor].nil?
87
86
  puts 'New new editor can\'t be empty'.red
@@ -89,12 +88,12 @@ class MainApp
89
88
  update_configuration
90
89
  puts 'Updated the editor to: ' + @options[:editor].yellow
91
90
  end
92
- exit 1
91
+ exit
93
92
  end
94
93
 
95
94
  if @url.nil?
96
95
  puts 'You need to insert a valid GIT URL/folder'
97
- exit 1
96
+ exit
98
97
  end
99
98
 
100
99
  # handle the configuration
@@ -7,7 +7,7 @@ class ConfigManager
7
7
  SafeYAML::OPTIONS[:deserialize_symbols] = true
8
8
 
9
9
  @conf_path = "#{Dir.home}/.gito.yml"
10
- @default_config = {"editor": "atom"}
10
+ @default_config = {"editor": "subl"}
11
11
  end
12
12
 
13
13
  def write_editor(new_editor)
data/lib/gito/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Gito
2
- VERSION = '0.4.2'
2
+ VERSION = '0.4.3'
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.4.2
4
+ version: 0.4.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - cesar ferreira
@@ -111,6 +111,9 @@ files:
111
111
  - bin/gito
112
112
  - detector.json
113
113
  - detector.rb
114
+ - extras/WPEsWpAJgL-1.gif
115
+ - extras/bootstrap.gif
116
+ - extras/dryrun.gif
114
117
  - extras/recordit.gif
115
118
  - extras/recordit2.gif
116
119
  - extras/screenshot.png
@@ -141,7 +144,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
141
144
  version: '0'
142
145
  requirements: []
143
146
  rubyforge_project:
144
- rubygems_version: 2.6.10
147
+ rubygems_version: 2.6.11
145
148
  signing_key:
146
149
  specification_version: 4
147
150
  summary: git helper tool to clone/open/auto-install/edit a git project with a one-liner