turbodep 1.0.0 → 1.0.1
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/bin/dep +5 -8
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5cdd861e70dd358076a0959b9c14793faccc1ba9
|
4
|
+
data.tar.gz: 7dea570db5c7f828e77d2873ec4bf0bb86ce842d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a3116568008a4456770693902344f7a7ea2bd6e65e823f7d1096b4cf62b35b10827d897258f8c6b518e31c0258d5668444165fb22be826d3c9d5f44aab3c6fb6
|
7
|
+
data.tar.gz: e063353c5b39b4e649a24bcfb5747ab0ebe42d4c1b1de2602ea882fd9d5ec0e66a6e44193cde6863c3b26aa8302a60c773672c1fd13d81a178a285711cd7245c
|
data/bin/dep
CHANGED
@@ -133,12 +133,14 @@ module Dep
|
|
133
133
|
|
134
134
|
module CLI
|
135
135
|
class << self
|
136
|
-
attr_accessor :prerelease, :list, :file, :git
|
136
|
+
attr_accessor :prerelease, :list, :file, :git, :github
|
137
137
|
end
|
138
138
|
|
139
139
|
def self.add(name)
|
140
|
-
if
|
141
|
-
lib
|
140
|
+
if git
|
141
|
+
lib = Dep::GitLib.new(name, git)
|
142
|
+
elsif github
|
143
|
+
lib = Dep::GitHubLib(name, github)
|
142
144
|
else
|
143
145
|
dependency = Gem::Dependency.new(name)
|
144
146
|
fetcher = Gem::SpecFetcher.fetcher
|
@@ -230,7 +232,6 @@ if File.basename($0) == "dep"
|
|
230
232
|
Dep::CLI.prerelease = false
|
231
233
|
Dep::CLI.git = false
|
232
234
|
Dep::CLI.github = false
|
233
|
-
Dep::CLI.source = false
|
234
235
|
|
235
236
|
on("-f") do |file|
|
236
237
|
Dep::CLI.file = file
|
@@ -248,10 +249,6 @@ if File.basename($0) == "dep"
|
|
248
249
|
Dep::CLI.github = github
|
249
250
|
end
|
250
251
|
|
251
|
-
on("--source") do |source|
|
252
|
-
Dep::CLI.source = source
|
253
|
-
end
|
254
|
-
|
255
252
|
on("--help") do
|
256
253
|
|
257
254
|
# We can't use DATA.read because rubygems does a wrapper script.
|