gito 0.4.1 → 0.4.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1cb2512c80d82e067bb3931c186b04a69b116e27
4
- data.tar.gz: d91c38661f76eb28174dea15d630c5ed0e29d067
3
+ metadata.gz: 3bb6cf5595da94906792c4cfb614adee98931dc8
4
+ data.tar.gz: 9e9734d8f9f8f1f08d2c106a77d097a77fc2e55a
5
5
  SHA512:
6
- metadata.gz: a64134ef2dd4af7c3747323033a19d1b8847a2d917389d1481f8c69fef1c594cb9af9d54fb4d37b282558582c649631b3dcbc45a34923f054a26d9bfed164868
7
- data.tar.gz: 702e6c5d7bb147910b3ec666974f6b8759509636e1fed4b7cc17f762bf73e9c270181d3408957f5d78e097e622c3fc72c01d2d644b7c6874ab729367c90c71ba
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 = '../detector.json'
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 = File.read(@detector_json_path)
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
@@ -1,3 +1,3 @@
1
1
  module Gito
2
- VERSION = '0.4.1'
2
+ VERSION = '0.4.2'
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.1
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-06 00:00:00.000000000 Z
11
+ date: 2017-04-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake