veracodecli 1.0.0 → 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 91feed8d0a8a236cd323f86b4e80ac7381b5bdd6
4
- data.tar.gz: 4958e1a49885d118e1757c14274ebabe8f6fbfd4
3
+ metadata.gz: 37eb4df5d58e0b00904deb6ce3fa218c751b6c81
4
+ data.tar.gz: f25c5363ac28dafda0b9312a9d3b6b4da22d9332
5
5
  SHA512:
6
- metadata.gz: d78b5d7773794e8f431bbbd4978ae83b06c326f72758064322721b6f81ece226f75b0f70e5958d5c436b3c4eaddac23fab010adbbf61d809a2b42e6aa9e43e18
7
- data.tar.gz: be0de17433dcda301adcc3ba6008275983841c01249c4816d7e6b5f950cc0f4ba89c76e6425c5be239715b0482672cbc9a1742a9134a7dae89c7d5bf603bc18c
6
+ metadata.gz: 5c922608cf32a8d140100b9ddd0b4518a8e78d93573899301606a3f6d8e2979527c26e9f5ddfdf2e9c2dc6b558db6277e651c36c2e1393d021f72eb267d5f030
7
+ data.tar.gz: b9273b96ea0607fed8301ed978a7280c0e6f54d74bba5a52dddad97d936bcca98d40f58dbe50758c12555de980087fb1caf4b8f24407c114262ceb9fc5bbf941
@@ -0,0 +1,20 @@
1
+ require 'settingslogic'
2
+ require 'terminal-announce'
3
+
4
+ # require_relative 'interactive_setup'
5
+
6
+ # Singleton for loading configs from common paths.
7
+ class Settings < Settingslogic
8
+ # include InteractiveSetup
9
+
10
+ config_path = "~/veracodecli_data"
11
+
12
+ config_file = File.expand_path "#{config_path}/config.yaml"
13
+ source config_file if File.exist? config_file
14
+
15
+ load!
16
+ rescue Errno::ENOENT
17
+ Announce.failure "Unable to find a configuration at #{config_path}/config.yml"
18
+ exit
19
+ # InteractiveSetup.start
20
+ end
@@ -0,0 +1,7 @@
1
+ require_relative 'settings'
2
+
3
+ module Slack
4
+ def send_to_slack(file_path)
5
+ `curl https://slack.com/api/files.upload -F token='#{Settings.slack_token}' -F file="@#{file_path}", -F channels='#{Settings.slack_channel}'`
6
+ end
7
+ end
data/veracodecli.gemspec CHANGED
@@ -6,7 +6,7 @@
6
6
 
7
7
  Gem::Specification.new do |s|
8
8
  s.name = "veracodecli"
9
- s.version = "1.0.0"
9
+ s.version = "1.0.1"
10
10
 
11
11
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
12
12
  s.require_paths = ["lib"]
@@ -31,10 +31,11 @@ Gem::Specification.new do |s|
31
31
  "bin/veracodecli",
32
32
  "lib/veracodecli.rb",
33
33
  "lib/veracodecli/api.rb",
34
+ "lib/veracodecli/settings.rb",
35
+ "lib/veracodecli/slack.rb",
34
36
  "test/API.rb",
35
37
  "test/helper.rb",
36
38
  "test/test_veracodecli.rb",
37
- "veracodecli-0.2.0.gem",
38
39
  "veracodecli.gemspec"
39
40
  ]
40
41
  s.homepage = "http://github.com/isand3r/veracodecli"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: veracodecli
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - isaiah thiessen
@@ -240,10 +240,11 @@ files:
240
240
  - bin/veracodecli
241
241
  - lib/veracodecli.rb
242
242
  - lib/veracodecli/api.rb
243
+ - lib/veracodecli/settings.rb
244
+ - lib/veracodecli/slack.rb
243
245
  - test/API.rb
244
246
  - test/helper.rb
245
247
  - test/test_veracodecli.rb
246
- - veracodecli-0.2.0.gem
247
248
  - veracodecli.gemspec
248
249
  homepage: http://github.com/isand3r/veracodecli
249
250
  licenses:
Binary file