gito 0.4.7 → 0.4.8

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: 0053fe8bf7703418329f7c2f3ca44c0596a33f81
4
- data.tar.gz: 8a5c320f13b6a1df59e0dd26582beb7c094951a2
3
+ metadata.gz: a54639cc1df1503eaf535012e5a61b569947255e
4
+ data.tar.gz: 73ec3793cff8f9d1b5744dd7b0713fa512a16f0e
5
5
  SHA512:
6
- metadata.gz: b63080069f2725f3e7c03b5c2a2fbfb2f66ffa267dd35fd70657d0b8fe0aa7e6dbf014f365a2362817b7f2b6c3f48cac94b33197cc8050e796aad133e73f93da
7
- data.tar.gz: fc2d514fa33fb3d2827de3341681b449e13ac0cb679d11c97d32947f6c72f743244086d105d838b755cf373bd488f3ae71b4a6a0abf8161d37960ce2b1e76d89
6
+ metadata.gz: 671f49bdf8faeab90805f983e9bd66e7f7de3b550fcb899175ba03eccfd1a13b7ea3f24ae4010a9fc42c62911a8f561e6d55e096ac46ad0cd7b4523aaf3af55c
7
+ data.tar.gz: 7256febf8d84d413a7f76a769179cf3245cad7ee4ca67d723d6db157f2baf08d206669ca8e32d008bb94d03f07b5b388b2491486c0b737eef807608cfe6a273d
data/README.md CHANGED
@@ -31,6 +31,7 @@ Options
31
31
  -o, --open Open the project on Finder
32
32
  -d, --dryrun Does not install the dependencies
33
33
  -t, --temp Clones the project into a temporary folder
34
+ -k, --keep Clones the whole git history and not just the last snapshot
34
35
  -h, --help Displays help
35
36
  -v, --version Displays the version
36
37
  ```
@@ -72,6 +73,7 @@ So far it auto-installs these types:
72
73
  - Cocoapods
73
74
  - Carthage
74
75
  - Swift Package Manager
76
+ - Rust
75
77
 
76
78
  Create a pull request by editing [detector.json](detector.json) file if you want more types to be added.
77
79
 
data/detector.json CHANGED
@@ -28,30 +28,35 @@
28
28
  "file_requirement": "setup.py",
29
29
  "installation_command": "pip install .",
30
30
  "type": "python"
31
- },
31
+ },
32
32
  {
33
33
  "file_requirement": "Cartfile",
34
34
  "installation_command": "carthage update",
35
35
  "type": "carthage"
36
- },
36
+ },
37
37
  {
38
38
  "file_requirement": "Podfile",
39
39
  "installation_command": "pod install",
40
40
  "type": "Cocoapods"
41
- },
41
+ },
42
42
  {
43
43
  "file_requirement": "Package.swift",
44
44
  "installation_command": "swift build",
45
45
  "type": "Swift Package Manager"
46
- },
46
+ },
47
47
  {
48
48
  "file_requirement": "glide.yaml",
49
49
  "installation_command": "glide install",
50
50
  "type": "Go lang - Glide"
51
- },
51
+ },
52
52
  {
53
53
  "file_requirement": "vendor.json",
54
54
  "installation_command": "govendor fetch",
55
55
  "type": "Go lang - Govendor"
56
+ },
57
+ {
58
+ "file_requirement": "Cargo.toml",
59
+ "installation_command": "cargo build --all",
60
+ "type": "Rust - Cargo"
56
61
  }
57
62
  ]
data/lib/gito/project.rb CHANGED
@@ -53,10 +53,11 @@ class Project
53
53
  # AppUtils::execute 'echo "cd '+@destination+'" > ' + temp_script_name
54
54
  # AppUtils::execute '. '+temp_script_name
55
55
  # AppUtils::execute 'rm -rf ' + temp_script_name
56
+ short_path = @destination_dir.to_s.gsub(Dir.home, '~')
56
57
 
57
58
  puts "-------------------------------------------"
58
59
  puts "Please change directory"
59
- puts "cd #{@destination_dir.yellow}"
60
+ puts "cd #{short_path.yellow}"
60
61
  puts "-------------------------------------------"
61
62
  end
62
63
 
@@ -105,8 +106,8 @@ class Project
105
106
  if File.directory?(@destination_dir)
106
107
  puts "The folder #{@destination_dir.green} is not empty..."
107
108
  else
108
- concat = shell_copy ? '--depth 1' : ''
109
- AppUtils.execute("git clone #{concat} #{url} #{@destination_dir}")
109
+ shell_copy_string = shell_copy ? '--depth 1' : ''
110
+ AppUtils.execute("git clone #{shell_copy_string} --recursive #{url} #{@destination_dir}")
110
111
  end
111
112
 
112
113
  @destination_dir
data/lib/gito/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Gito
2
- VERSION = '0.4.7'
2
+ VERSION = '0.4.8'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gito
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.7
4
+ version: 0.4.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - cesar ferreira
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-04-13 00:00:00.000000000 Z
11
+ date: 2017-04-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake
@@ -95,7 +95,6 @@ files:
95
95
  - Rakefile
96
96
  - bin/gito
97
97
  - detector.json
98
- - detector.rb
99
98
  - extras/WPEsWpAJgL-1.gif
100
99
  - extras/bootstrap.gif
101
100
  - extras/dryrun.gif
data/detector.rb DELETED
@@ -1,16 +0,0 @@
1
- require 'json'
2
-
3
- file = File.read('detector.json')
4
- types = JSON.parse(file)
5
- chosen = nil
6
- types.each do |item|
7
- if File.exist? (item['file_requirement'])
8
- chosen = item
9
- break
10
- end
11
- end
12
-
13
- unless chosen.nil?
14
- puts "Found: " + chosen['type']
15
- puts "how to install: " + chosen['installation']
16
- end