technologist 0.4.0 → 0.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/exe/technologist +38 -7
- data/lib/technologist/version.rb +1 -1
- data/technologist.gemspec +1 -0
- metadata +16 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8bf836d500b3b397f7887b91fad2f4b36b421c46
|
4
|
+
data.tar.gz: 5a05188e267a135e6c98c1d3b51188a2c646833e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0fc8d41691e9660c430632f23c0bdc91af07d037d0499c47141566b610777f14fed340b1ac24a32365f83752ed790c45f700834a04a5608850d595d048d2e84f
|
7
|
+
data.tar.gz: b374785d7c9eed4fc899170633000fcdc3e2f82d6a2c57f564452df757bd05b2d87c6e68a3ac93eab4448ddc99d2b60e2e3218414861096cde47a08cb6f192d8
|
data/exe/technologist
CHANGED
@@ -1,6 +1,7 @@
|
|
1
1
|
#!/usr/bin/env ruby
|
2
2
|
|
3
3
|
require "technologist"
|
4
|
+
require "slop"
|
4
5
|
|
5
6
|
def framework_report(title, frameworks)
|
6
7
|
return if frameworks.empty?
|
@@ -10,13 +11,43 @@ def framework_report(title, frameworks)
|
|
10
11
|
end
|
11
12
|
end
|
12
13
|
|
13
|
-
path
|
14
|
+
def main(path)
|
15
|
+
result = Technologist::Repository.new(path)
|
14
16
|
|
15
|
-
result
|
17
|
+
if result.primary_frameworks.empty? && result.secondary_frameworks.empty?
|
18
|
+
puts "No known frameworks could be detected."
|
19
|
+
puts <<-END.gsub(/^ {4}/, '')
|
16
20
|
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
21
|
+
If you think that a framework should be detected for this repository
|
22
|
+
you could add a new rule by creating a pull request on Github
|
23
|
+
(see https://github.com/koffeinfrei/technologist#contributing)
|
24
|
+
or report an issue https://github.com/koffeinfrei/technologist/issues/new.
|
25
|
+
Thanks!
|
26
|
+
END
|
27
|
+
else
|
28
|
+
framework_report('Primary Frameworks', result.primary_frameworks)
|
29
|
+
framework_report('Secondary Frameworks', result.secondary_frameworks)
|
30
|
+
end
|
31
|
+
end
|
32
|
+
|
33
|
+
Slop.parse do
|
34
|
+
banner "Usage: #{File.basename($0)} [options] [repository_path]"
|
35
|
+
|
36
|
+
run do |opts, args|
|
37
|
+
if args.empty?
|
38
|
+
args << Dir.pwd
|
39
|
+
end
|
40
|
+
|
41
|
+
main(args.join(' '))
|
42
|
+
end
|
43
|
+
|
44
|
+
on '-v', '--version', 'print the version' do
|
45
|
+
puts Technologist::VERSION
|
46
|
+
exit
|
47
|
+
end
|
48
|
+
|
49
|
+
on '-h', '--help' do
|
50
|
+
puts help
|
51
|
+
exit
|
52
|
+
end
|
22
53
|
end
|
data/lib/technologist/version.rb
CHANGED
data/technologist.gemspec
CHANGED
@@ -21,6 +21,7 @@ Gem::Specification.new do |spec|
|
|
21
21
|
|
22
22
|
spec.add_runtime_dependency "rugged", "~> 0.23.3"
|
23
23
|
spec.add_runtime_dependency "nokogiri", "~> 1.6"
|
24
|
+
spec.add_runtime_dependency "slop", "~> 3.4" # we can't use version 4 due to pry's dependecy
|
24
25
|
|
25
26
|
spec.add_development_dependency "bundler", "~> 1.7"
|
26
27
|
spec.add_development_dependency "rake", "~> 10.0"
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: technologist
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.5.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Alexis Reigel
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-11-
|
11
|
+
date: 2015-11-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rugged
|
@@ -38,6 +38,20 @@ dependencies:
|
|
38
38
|
- - ~>
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '1.6'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: slop
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - ~>
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '3.4'
|
48
|
+
type: :runtime
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - ~>
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '3.4'
|
41
55
|
- !ruby/object:Gem::Dependency
|
42
56
|
name: bundler
|
43
57
|
requirement: !ruby/object:Gem::Requirement
|