gito 0.4.1 → 0.4.2
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 +4 -4
- data/README.md +0 -3
- data/lib/gito/project.rb +3 -2
- data/lib/gito/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 3bb6cf5595da94906792c4cfb614adee98931dc8
|
|
4
|
+
data.tar.gz: 9e9734d8f9f8f1f08d2c106a77d097a77fc2e55a
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 7245b5c6d4a4064f9ad03ba5ffe46d2cba4db3e622038b993578ed3198a322c5f1dc3f6805c9d06096e3e055c027acba945ac0bc64dfc014229256b807fb4add
|
|
7
|
+
data.tar.gz: 142e3287906d50924523a9da701897e128f89dcfe145f3167098728e78627fddee6c20e5dadedf9c4ff0a6b5053927f214245a78c33967990224af458a2b248a
|
data/README.md
CHANGED
|
@@ -98,9 +98,6 @@ project_type_detector
|
|
|
98
98
|
bundle install
|
|
99
99
|
```
|
|
100
100
|
|
|
101
|
-
## todo
|
|
102
|
-
- `-t` to clone into a temp directory
|
|
103
|
-
|
|
104
101
|
## Contributing
|
|
105
102
|
I welcome and encourage all pull requests. It usually will take me within 24-48 hours to respond to any issue or request. Here are some basic rules to follow to ensure timely addition of your request:
|
|
106
103
|
1. If its a feature, bugfix, or anything please only change code to what you specify.
|
data/lib/gito/project.rb
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
require 'tmpdir'
|
|
2
2
|
require 'fileutils'
|
|
3
3
|
require 'uri'
|
|
4
|
+
require 'open-uri'
|
|
4
5
|
require 'json'
|
|
5
6
|
require_relative './app_utils'
|
|
6
7
|
require 'pry'
|
|
@@ -10,7 +11,7 @@ class Project
|
|
|
10
11
|
@base_url = sanitize_url(url)
|
|
11
12
|
@destination_dir = nil
|
|
12
13
|
@destination = destination
|
|
13
|
-
@detector_json_path = '
|
|
14
|
+
@detector_json_path = 'https://raw.githubusercontent.com/cesarferreira/gito/master/detector.json'
|
|
14
15
|
end
|
|
15
16
|
|
|
16
17
|
def sanitize_url(url)
|
|
@@ -61,7 +62,7 @@ class Project
|
|
|
61
62
|
end
|
|
62
63
|
|
|
63
64
|
def install_dependencies
|
|
64
|
-
file
|
|
65
|
+
file = open(@detector_json_path) {|f| f.read }
|
|
65
66
|
types = JSON.parse(file)
|
|
66
67
|
chosen = nil
|
|
67
68
|
|
data/lib/gito/version.rb
CHANGED
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.
|
|
4
|
+
version: 0.4.2
|
|
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-
|
|
11
|
+
date: 2017-04-07 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rake
|