veye 0.0.4 → 0.0.5
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 +8 -8
- data/Gemfile.lock +1 -1
- data/README.md +10 -0
- data/bin/veye +11 -0
- data/lib/veye/version.rb +2 -1
- data/lib/veye.rb +1 -14
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
---
|
|
2
2
|
!binary "U0hBMQ==":
|
|
3
3
|
metadata.gz: !binary |-
|
|
4
|
-
|
|
4
|
+
NjVhZDVmMTViZDZmNmJiYmE1NDViOTAzMDVlZDBkMDBiYjgzNTBlYg==
|
|
5
5
|
data.tar.gz: !binary |-
|
|
6
|
-
|
|
6
|
+
NTQxY2RmMmM0NGYxYmEwNDgyOWJmZTg5OWEwNjEwZTRhMTZjZGQxOA==
|
|
7
7
|
SHA512:
|
|
8
8
|
metadata.gz: !binary |-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
YWM2MzJjZWVlYjJlZmU2NzdlZTNhMDE3MzdlMjE2ZjU4YWQ2M2E5Y2VmN2Vl
|
|
10
|
+
OTQzMTBhYTU4YWE5YTRiMWJhNjEzZDg4YTM1YjlkMjE4MTYzMDNlZWFlYjFi
|
|
11
|
+
MTBiMjA5ODc0NjNiNmRlMGQ4MjhlNzU2MDc3YzFmOGE1MjJhYTE=
|
|
12
12
|
data.tar.gz: !binary |-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
13
|
+
YWI4ZjE4OTI1NThmY2ZlZjA4ZjM4MWQwMWMzMDRkNjNlMWViZDUxMTgxZmZk
|
|
14
|
+
NjcxZWRkM2RiOTJhYzBkZmU0MzhjY2VjYWMxZTFmNGUxNGMwZmI5YmU1ODhk
|
|
15
|
+
ZTQ4OTMwOTUzNDc0OTdhYWIyMDJjYjBhYTBiZjY4NTIzYzkwNjA=
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
|
@@ -51,6 +51,7 @@ Most endpoints require the api-key, which you can get [here](https://www.version
|
|
|
51
51
|
|
|
52
52
|
The tool will raise exception when a configuration file is missing. The tool needs configuration file to keep user specific settings and authorization key.
|
|
53
53
|
|
|
54
|
+
###### create config file
|
|
54
55
|
|
|
55
56
|
```
|
|
56
57
|
$> veye initconfig
|
|
@@ -61,6 +62,15 @@ The tool will raise exception when a configuration file is missing. The tool nee
|
|
|
61
62
|
:port: "3000"
|
|
62
63
|
....
|
|
63
64
|
```
|
|
65
|
+
|
|
66
|
+
###### add key
|
|
67
|
+
|
|
68
|
+
Please visit your settings page on VersionEye for api-key and then use command `veye change_key` to save your api key.
|
|
69
|
+
|
|
70
|
+
```
|
|
71
|
+
$> veye change_key abj23j2bj33k14
|
|
72
|
+
Success: your's key is now saved.
|
|
73
|
+
```
|
|
64
74
|
|
|
65
75
|
# Basic usage
|
|
66
76
|
|
data/bin/veye
CHANGED
|
@@ -62,6 +62,17 @@ command :ping do |c|
|
|
|
62
62
|
end
|
|
63
63
|
end
|
|
64
64
|
|
|
65
|
+
desc 'change the api key'
|
|
66
|
+
arg_name 'api_key'
|
|
67
|
+
command :change_key do |c|
|
|
68
|
+
c.action do |global_options, options, args|
|
|
69
|
+
help_now!("the api key is mandatory") if args.empty?
|
|
70
|
+
api_key = args.shift
|
|
71
|
+
$global_options[:api_key] = api_key
|
|
72
|
+
save_configs
|
|
73
|
+
end
|
|
74
|
+
end
|
|
75
|
+
|
|
65
76
|
desc 'Search packages on VersionEye.'
|
|
66
77
|
arg_name 'search_term'
|
|
67
78
|
command :search do |c|
|
data/lib/veye/version.rb
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
module Veye
|
|
2
|
-
VERSION = '0.0.
|
|
2
|
+
VERSION = '0.0.5'
|
|
3
3
|
BIGEYE = %q{
|
|
4
4
|
|
|
5
5
|
_ __ _ ______
|
|
@@ -8,6 +8,7 @@ module Veye
|
|
|
8
8
|
| |/ // __// / (__ )/ // /_/ // / / // /___ / /_/ // __/
|
|
9
9
|
|___/ \___//_/ /____//_/ \____//_/ /_//_____/ \__, / \___/
|
|
10
10
|
/____/
|
|
11
|
+
|
|
11
12
|
}
|
|
12
13
|
|
|
13
14
|
end
|
data/lib/veye.rb
CHANGED
|
@@ -94,19 +94,6 @@ def generate_ssl_keys(global_opts)
|
|
|
94
94
|
result
|
|
95
95
|
end
|
|
96
96
|
|
|
97
|
-
def update_api_key
|
|
98
|
-
user_key = gets.chomp.to_s.strip
|
|
99
|
-
if user_key =~ /No/i
|
|
100
|
-
msg = sprintf("%s: %s",
|
|
101
|
-
"Warning:".foreground(:yellow),
|
|
102
|
-
" missing, you cant access private data.")
|
|
103
|
-
print msg
|
|
104
|
-
else
|
|
105
|
-
$global_options[:api_key] = user_key
|
|
106
|
-
save_configs
|
|
107
|
-
end
|
|
108
|
-
end
|
|
109
|
-
|
|
110
97
|
def save_configs
|
|
111
98
|
filepath = get_config_fullpath
|
|
112
99
|
File.open(filepath, 'w') do |f|
|
|
@@ -114,6 +101,6 @@ def save_configs
|
|
|
114
101
|
end
|
|
115
102
|
msg = sprintf("%s: %s",
|
|
116
103
|
"Success".foreground(:green),
|
|
117
|
-
"new settings are saved into file: `#{filepath}
|
|
104
|
+
"new settings are saved into file: `#{filepath}`\n")
|
|
118
105
|
print msg
|
|
119
106
|
end
|
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: 0.0.
|
|
4
|
+
version: 0.0.5
|
|
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: 2013-10-
|
|
13
|
+
date: 2013-10-03 00:00:00.000000000 Z
|
|
14
14
|
dependencies:
|
|
15
15
|
- !ruby/object:Gem::Dependency
|
|
16
16
|
name: rake
|