gito 0.4.3 → 0.4.4

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: b8dd08ad0205a51aacc4fa00f1fb1a0bfdac163a
4
- data.tar.gz: c74e9b1b3c109e2f91e40dc0d1f8d7c2e4279c47
3
+ metadata.gz: 626783edcbf5e9919e4773b2fbb96bd4c49746ca
4
+ data.tar.gz: e6a5a4c3f99691817c27cea5e4aff848e3a6cdd4
5
5
  SHA512:
6
- metadata.gz: 6a0e13648e26b1f56ae523dd20a7da5730494eeb098bdc2d2db16d6724b00c7ebf1ef6dd913d86809cfacc055161efe85dc20164c461765fcae89212bdebf1c7
7
- data.tar.gz: 7ff99c78a6cbe034bceb471f1b7c5c4e139ce8a9b90e93d63540719f6d8b8584d1c996637605d2a6ff28a80fb67c9f263a40e653162f5411ea0c5b118a751713
6
+ metadata.gz: d1596d3828033e69a4456b94367afdf730f00b0cf2384daa87d0c7aa748fd97cfa035406ec76a1c8f55eaeabdcbb2b51579b0486f84bf64d7640639495634278
7
+ data.tar.gz: 6a3416e3ac3df9bc006c247ff9e410ac3421bfba6d46bd190cb68122874514c18ef184fba372ae52cab2ad13049bd6da0e831cf71078d0710cfdff334c33adef
data/README.md CHANGED
@@ -65,9 +65,13 @@ So far it auto-installs these types:
65
65
  - Ruby
66
66
  - Gradle
67
67
  - node.js
68
- - C
68
+ - C/C++
69
69
  - Elixir
70
70
  - Python
71
+ - Go (Govendor, Glide)
72
+ - Cocoapods
73
+ - Carthage
74
+ - Swift Package Manager
71
75
 
72
76
  Create a pull request by editing [detector.json](detector.json) file if you want more types to be added.
73
77
 
data/detector.json CHANGED
@@ -28,5 +28,30 @@
28
28
  "file_requirement": "setup.py",
29
29
  "installation_command": "pip install .",
30
30
  "type": "python"
31
+ },
32
+ {
33
+ "file_requirement": "Cartfile",
34
+ "installation_command": "carthage update",
35
+ "type": "carthage"
36
+ },
37
+ {
38
+ "file_requirement": "Podfile",
39
+ "installation_command": "pod install",
40
+ "type": "Cocoapods"
41
+ },
42
+ {
43
+ "file_requirement": "Package.swift",
44
+ "installation_command": "swift build",
45
+ "type": "Swift Package Manager"
46
+ },
47
+ {
48
+ "file_requirement": "glide.yaml",
49
+ "installation_command": "glide install",
50
+ "type": "Go lang - Glide"
51
+ },
52
+ {
53
+ "file_requirement": "vendor.json",
54
+ "installation_command": "govendor fetch",
55
+ "type": "Go lang - Govendor"
31
56
  }
32
57
  ]
@@ -2,14 +2,14 @@ require 'open3'
2
2
 
3
3
  class AppUtils
4
4
 
5
- def self.execute(command)
5
+ def self.execute(command, should_exit=true)
6
6
  is_success = system command
7
7
  unless is_success
8
8
  puts "\n\n======================================================\n\n"
9
9
  puts ' Something went wrong while executing this:'.red
10
10
  puts " $ #{command}\n".yellow
11
11
  puts "======================================================\n\n"
12
- exit 1
12
+ exit 1 if should_exit
13
13
  end
14
14
  end
15
15
 
@@ -30,7 +30,6 @@ class ConfigManager
30
30
  write @default_config
31
31
  config = @default_config
32
32
  end
33
-
34
33
  config
35
34
  end
36
35
  end
data/lib/gito/project.rb CHANGED
@@ -124,7 +124,7 @@ class Project
124
124
 
125
125
  def go_inside_and_run(command)
126
126
  Dir.chdir(@destination_dir) do
127
- AppUtils::execute command
127
+ AppUtils::execute command, false
128
128
  end
129
129
  end
130
130
  end
data/lib/gito/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Gito
2
- VERSION = '0.4.3'
2
+ VERSION = '0.4.4'
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.3
4
+ version: 0.4.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - cesar ferreira
@@ -102,7 +102,6 @@ executables:
102
102
  extensions: []
103
103
  extra_rdoc_files: []
104
104
  files:
105
- - ".DS_Store"
106
105
  - ".gitignore"
107
106
  - ".travis.yml"
108
107
  - Gemfile