veye 0.1 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/README.md +16 -17
- data/bin/veye +5 -4
- data/lib/veye/project/check.rb +10 -2
- data/lib/veye/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: 60501b415687bde51f60775cfcf8170728a53bc4
|
4
|
+
data.tar.gz: 9bef96d3864260717b6af924d7f1318707a220e8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f75ae699a67d76d8b1e64c43ce5c1d06c4c04d849ae9fa6665647aa06628dba609dba5a8b8ccaf2d5b77396c4f3e827ed968dfc19b3561f5514138cbbc6e3d53
|
7
|
+
data.tar.gz: 55c62bf5d811fa67e867c781ddc0e6b914c80f733c3bd9d961b9d41adac8de35ef91d401727443e946ca35ec47d6eec7573c17143f4cbb0fbf56c6dc77c3d541
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -1,33 +1,30 @@
|
|
1
1
|
# Veye
|
2
2
|
|
3
|
+
[![Dependency Status](https://www.versioneye.com/ruby/veye/0.1/badge.svg)](https://www.versioneye.com/ruby/veye/0.1)
|
3
4
|
[![Join the chat at https://gitter.im/versioneye/veye](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/versioneye/veye?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
|
4
5
|
|
5
|
-
[![Dependency Status](https://www.versioneye.com/ruby/veye/0.1/badge.svg)](https://www.versioneye.com/ruby/veye/0.1)
|
6
6
|
|
7
|
+
**veye** is a command line tool for [VersionEye](https://www.versioneye.com/). It is a wrapper around the [VersionEye API](https://www.versioneye.com/api), implemented in Ruby. The tool allows you to write scripts for continuous updating and due diligence.
|
7
8
|
|
8
|
-
[
|
9
|
+
Most endpoints require an API key, which you can get [here](https://www.versioneye.com/settings/api).
|
10
|
+
|
11
|
+
[VersionEye](https://www.versioneye.com/) is a cross-platform search engine and crowdsourcing app for opensource software libraries.
|
9
12
|
|
10
13
|
* Take advantage of the extended search to find any library you look for.
|
11
14
|
* Follow and track your favorite software packages via RSS feed.
|
12
15
|
* Leave comments and add additional meta information to the libraries to improve the quality of the data.
|
13
16
|
* Contribute to this crowdsourcing project to make the world a better place for software developers.
|
14
17
|
|
15
|
-
|
16
|
-
**veye** is opensource commandline tool and API client to make all this available on your console and allows you write scripts for continous updating and due diligence.
|
17
|
-
|
18
|
-
Most endpoints require the api-key, which you can get [here](https://www.versioneye.com/settings/api).
|
19
|
-
|
20
18
|
![Main help](http://dl.dropbox.com/u/19578784/versioneye/cli_start_page.png)
|
21
19
|
|
22
20
|
|
23
|
-
## Install
|
24
|
-
|
21
|
+
## Install via RubyGems
|
25
22
|
|
26
23
|
```
|
27
24
|
$> gem install veye
|
28
25
|
```
|
29
26
|
|
30
|
-
|
27
|
+
## Install from source
|
31
28
|
|
32
29
|
###### Download source
|
33
30
|
|
@@ -52,13 +49,13 @@ Most endpoints require the api-key, which you can get [here](https://www.version
|
|
52
49
|
|
53
50
|
## Initial configuration
|
54
51
|
|
55
|
-
The tool will raise exception
|
52
|
+
The tool will raise an exception if the configuration file is missing. Veye needs a configuration file to keep the user specific settings and the API Key.
|
56
53
|
|
57
54
|
#### create config file
|
58
55
|
|
59
56
|
```
|
60
57
|
$> veye initconfig
|
61
|
-
#it creates configuration file for VersionEye CLI
|
58
|
+
# it creates configuration file for VersionEye CLI
|
62
59
|
$> cat ~/.veye.rc
|
63
60
|
:api_key: <add your key>
|
64
61
|
:server: 127.0.0.1
|
@@ -66,9 +63,9 @@ The tool will raise exception when a configuration file is missing. The tool nee
|
|
66
63
|
....
|
67
64
|
```
|
68
65
|
|
69
|
-
#### initialize
|
66
|
+
#### initialize API key
|
70
67
|
|
71
|
-
Please visit [your settings page](https://www.versioneye.com/settings/api) on VersionEye for the
|
68
|
+
Please visit [your settings page](https://www.versioneye.com/settings/api) on VersionEye for the API key and then use command `veye change_key` to save your api key.
|
72
69
|
|
73
70
|
```
|
74
71
|
$> veye change_key abj23j2bj33k14
|
@@ -77,7 +74,6 @@ Please visit [your settings page](https://www.versioneye.com/settings/api) on Ve
|
|
77
74
|
|
78
75
|
# Basic usage
|
79
76
|
|
80
|
-
|
81
77
|
```bash
|
82
78
|
$> veye ping
|
83
79
|
pong
|
@@ -88,7 +84,6 @@ $> veye search json --lang=r,php --page=2
|
|
88
84
|
$> veye search junit --page 3 --no-pagination
|
89
85
|
```
|
90
86
|
|
91
|
-
|
92
87
|
## Output formats
|
93
88
|
|
94
89
|
All commands support format-flag, that allows you change output format.
|
@@ -208,7 +203,11 @@ $> rake test TEST=test/file_you_changed.rb
|
|
208
203
|
$> rubocop lib/your_file.rb
|
209
204
|
```
|
210
205
|
|
211
|
-
|
206
|
+
## Furhter documentation
|
207
|
+
|
208
|
+
More documentation can be found in the [wiki](https://github.com/versioneye/veye/wiki).
|
209
|
+
|
210
|
+
## License
|
212
211
|
The MIT License (MIT)
|
213
212
|
|
214
213
|
Copyright (c)2015 **VersionEye GmbH**
|
data/bin/veye
CHANGED
@@ -35,9 +35,6 @@ flag :path, :default_value => "api/v2"
|
|
35
35
|
desc 'set connection protocol'
|
36
36
|
flag :protocol, :default_value => "https"
|
37
37
|
|
38
|
-
desc 'set folder of veye_cert.pem'
|
39
|
-
flag :ssl_path, :default_value => "~/.ssh"
|
40
|
-
|
41
38
|
desc "don't use colors"
|
42
39
|
switch 'color', :default_value => true, :negetable => true
|
43
40
|
|
@@ -160,6 +157,9 @@ command :projects do |c|
|
|
160
157
|
c.desc "change output format"
|
161
158
|
c.flag [:format, 'format-name'], :default_value => 'pretty'
|
162
159
|
|
160
|
+
c.desc "show all dependencies"
|
161
|
+
c.flag [:all, 'show-all'], default_value: false
|
162
|
+
|
163
163
|
c.desc "show all projects"
|
164
164
|
c.command :list do |list|
|
165
165
|
list.action do |global_options, options, args|
|
@@ -175,6 +175,7 @@ command :projects do |c|
|
|
175
175
|
help_now!("Project_key is unspecified".color(:red)) if args.empty?
|
176
176
|
proj_key = args.shift
|
177
177
|
api_key = global_options[:api_key]
|
178
|
+
|
178
179
|
Veye::Project::Check.get_project(proj_key, api_key, options)
|
179
180
|
end
|
180
181
|
end
|
@@ -312,7 +313,7 @@ command :github do |c|
|
|
312
313
|
|
313
314
|
c.desc "specify branch"
|
314
315
|
c.flag [:branch], :default_value => "master"
|
315
|
-
|
316
|
+
|
316
317
|
c.desc "specify the name of the project file"
|
317
318
|
c.flag [:file, 'file'], :default_value => nil
|
318
319
|
|
data/lib/veye/project/check.rb
CHANGED
@@ -59,16 +59,24 @@ module Veye
|
|
59
59
|
end
|
60
60
|
|
61
61
|
#-- layout helpers
|
62
|
+
def self.filter_dependencies(results, options)
|
63
|
+
if options[:all]
|
64
|
+
results['dependencies'].to_a.sort_by {|x| x['outdated'].hash}
|
65
|
+
else
|
66
|
+
results['dependencies'].to_a.keep_if {|x| x['outdated']}
|
67
|
+
end
|
68
|
+
end
|
69
|
+
|
62
70
|
def self.show_dependencies(results, options)
|
63
71
|
format = options[:format]
|
64
72
|
format ||= 'pretty'
|
65
73
|
return if format == 'json'
|
66
74
|
self.supported_format?(@dependency_output_formats, format)
|
67
75
|
|
76
|
+
deps = filter_dependencies(results, options)
|
68
77
|
formatter = @dependency_output_formats[format]
|
69
|
-
|
70
78
|
formatter.before
|
71
|
-
formatter.format
|
79
|
+
formatter.format deps
|
72
80
|
formatter.after
|
73
81
|
end
|
74
82
|
|
data/lib/veye/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: veye
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- VersionEye GMBH
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2015-
|
13
|
+
date: 2015-10-20 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: rake
|