veye 0.2 → 0.2.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6c6d015ec997e45e2e4a94f7f7a7525165820f89
4
- data.tar.gz: f50049bdfd288dc94b0917b5ebff5c2fd0f85b7b
3
+ metadata.gz: a74c78261e96d683320361d39757d8b442ebb908
4
+ data.tar.gz: 539d5b1772f5e24186b0e7d3930ed377437dc911
5
5
  SHA512:
6
- metadata.gz: 0d61e89da5274ffccfa4423baecae93f7fe0c9ed5db0d5348d082b3542e98cb87ddb6a3a97dbda076a0f38d0d210345fbff7620e981e532388bb76c49bd29f13
7
- data.tar.gz: 962c3c1ed75f123ca1fc9d641d40973c9255e6931e768771950ad13f68513cfd559d6642b9d5fc4374f19ad82cce38b62776a6bf899a0201d7e30d451460fea7
6
+ metadata.gz: 8c9b0f5de78f5735dd22f3007e70a1bcd5d6ae0d151b8aa961c724c217160442a6472e4e790bbfa60675c11970dd32a5383f154d11094df97968bd0d05bbd530
7
+ data.tar.gz: aa170517ffa5ea1fd4d761cee3b376816050ba1bcd000c16af33f504b7feebcc5c72cfda6c803da821a84ba346a5198ae625327576d5a7921165305432daeeca
data/Gemfile.lock CHANGED
@@ -1,9 +1,8 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- veye (0.2)
4
+ veye (0.2.1)
5
5
  awesome_print (~> 1.6)
6
- contracts (~> 0.13)
7
6
  gli (= 2.13.4)
8
7
  rainbow (~> 2.0)
9
8
  render-as-markdown (~> 0)
@@ -65,7 +64,7 @@ GEM
65
64
  ast (~> 2.2)
66
65
  powerpack (0.1.1)
67
66
  rainbow (2.1.0)
68
- rake (11.1.0)
67
+ rake (11.1.1)
69
68
  rdoc (4.2.2)
70
69
  json (~> 1.4)
71
70
  render-as-markdown (0.0.6)
data/Makefile CHANGED
@@ -4,5 +4,5 @@ dep-doc:
4
4
  build:
5
5
  bash scripts/build.sh
6
6
 
7
- release:
7
+ release: build
8
8
  bash scripts/release.sh
data/bin/veye CHANGED
@@ -11,7 +11,7 @@ require 'veye'
11
11
  include GLI::App
12
12
 
13
13
  program_desc 'VersionEye commandline tool'
14
- program_long_desc Rainbow(Veye::BIGEYE).green
14
+ program_long_desc Rainbow(Veye::BIGEYE).to_s.color(:green)
15
15
 
16
16
  wrap_help_text :verbatim
17
17
  version Veye::VERSION
@@ -156,7 +156,7 @@ command :check do |c|
156
156
  if files.empty?
157
157
  printf "Found no project files in: ".color(:red) + file_path + "\n"
158
158
  else
159
- Veye::Project::Check.check(file_path, files, api_key, options)
159
+ Veye::Project::Check.check(api_key, file_path, files, options)
160
160
  end
161
161
  end
162
162
  end
data/changelogs.md CHANGED
@@ -1,5 +1,12 @@
1
1
  # Changelogs
2
2
 
3
+ ## 0.2.1 - 2016-03-15
4
+
5
+ * fix check command, it used old argument orders;
6
+ * fix saving project_id into `veye.json` after API uses only id-key;
7
+ * remove redundant dependency - contracts;
8
+ * update rake from 11.1.0 to 11.1.1
9
+
3
10
  ## 0.2
4
11
 
5
12
  * fixed dependency sorting - it show outdated dependencies first;
@@ -77,7 +77,7 @@ module Veye
77
77
  deps = {}
78
78
  project_settings['projects'].each do |filename, project_id|
79
79
  filepath = "#{path}/#{filename}"
80
- results = if project_id.nil?
80
+ results = if project_id.to_s.empty?
81
81
  Veye::API::Project.upload(api_key, filepath)
82
82
  else
83
83
  Veye::API::Project.update(api_key, project_id, filepath)
@@ -85,14 +85,18 @@ module Veye
85
85
  error_msg = "Failed to check dependencies for `#{filename.to_s.color(:red)}`"
86
86
  if valid_response?(results, error_msg)
87
87
  deps[filename] = results.data
88
- project_settings['projects'].store(filename, results.data['project_key'])
88
+ project_settings['projects'].store(filename, results.data['id'])
89
89
  else
90
90
  deps[filename] = {error: "Failed to check a file `#{filepath}`"}
91
91
  end
92
92
  end
93
93
 
94
94
  Veye::Settings.dump(path, project_settings)
95
- #show_results(@output_formats, deps, options)
95
+ printf(
96
+ "Checked files: %s\nproject ids are saved into `%s`\n",
97
+ files.to_a.join(', ').to_s.color(:green),
98
+ "veye.json".color(:yellow)
99
+ )
96
100
  show_bulk_dependencies(@dependency_output_formats, deps, options)
97
101
  end
98
102
 
data/lib/veye/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  module Veye
2
- VERSION = '0.2'
2
+ VERSION = '0.2.1'
3
3
  BIGEYE = %q{
4
4
 
5
5
  _ __ _ ______
data/veye.gemspec CHANGED
@@ -41,5 +41,4 @@ spec = Gem::Specification.new do |s|
41
41
  s.add_runtime_dependency('rainbow', '~> 2.0')
42
42
  s.add_runtime_dependency('terminal-table', '~> 1.4')
43
43
  s.add_runtime_dependency('render-as-markdown','~> 0')
44
- s.add_runtime_dependency('contracts', '~> 0.13')
45
44
  end
data/veye.json ADDED
@@ -0,0 +1 @@
1
+ {"projects":{"Gemfile.lock":"56e8418a38ecc1000ee9459d"}}
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.2'
4
+ version: 0.2.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: 2016-03-12 00:00:00.000000000 Z
13
+ date: 2016-03-15 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rake
@@ -208,20 +208,6 @@ dependencies:
208
208
  - - "~>"
209
209
  - !ruby/object:Gem::Version
210
210
  version: '0'
211
- - !ruby/object:Gem::Dependency
212
- name: contracts
213
- requirement: !ruby/object:Gem::Requirement
214
- requirements:
215
- - - "~>"
216
- - !ruby/object:Gem::Version
217
- version: '0.13'
218
- type: :runtime
219
- prerelease: false
220
- version_requirements: !ruby/object:Gem::Requirement
221
- requirements:
222
- - - "~>"
223
- - !ruby/object:Gem::Version
224
- version: '0.13'
225
211
  description: "\n Veye is commandline tool like Heroku has own ToolBelt,\n and
226
212
  purpose of this tool is to make developer's life even\n more simpler and keep
227
213
  you up-to-date with freshest packages.\n "
@@ -377,6 +363,7 @@ files:
377
363
  - test/test_helper.rb
378
364
  - test/user_me_test.rb
379
365
  - veye.gemspec
366
+ - veye.json
380
367
  homepage: https://github.com/versioneye/veye
381
368
  licenses:
382
369
  - MIT