datadog-sdk-testing 0.4.0 → 0.4.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: 1dbcb876f12226953cfd40552353143786fe5340
4
- data.tar.gz: 1ad1ebf6250fa3800f6f1ef39ed8e16770066418
3
+ metadata.gz: fd731659f0a602c11c4eed723c44395e53d371a4
4
+ data.tar.gz: c4a58cd77cefcbb04768c7534f1810122f4a9f7d
5
5
  SHA512:
6
- metadata.gz: 2842c7e5d3fdba3816459ab7e52ff0007d62574a31edad78cc27524179189c8c17ed55468094682b94575862641431a7d6ca7c6ff353dd49109ec9dcfd0842c3
7
- data.tar.gz: 1f4945e8f040660bde75e5269b1c1978c568146c23686c3fa6a0fbd59a3ad6b08a3c785c6518800ba1fad9311dd9695c1b97bc9cd619487eb5bdb6a80ebb6bc7
6
+ metadata.gz: 73442145c4cc66e69467475c2efc74c483a4c64323797c5019b1eeb8132135c29b8dcc2facdb5e697c93c3939532f624d6ae3677281e6caff8309af6e0ab86de
7
+ data.tar.gz: d48dc642962672876e131f5132207b043d5d276c29934eae18375f373af9958b584b3f1c9551b149888c17467b8fbcf54cd925d50ae1889bba640ee93dc74f9b
@@ -24,11 +24,15 @@ namespace :ci do
24
24
  task before_script: ['ci:common:before_script']
25
25
 
26
26
  task lint: ['ci:common:before_script', 'ci:common:before_install', 'ci:common:install', 'rubocop'] do
27
- check_env
28
- sh %(flake8 #{ENV['SDK_HOME']})
29
- sh %(find #{ENV['SDK_HOME']} -name '*.py' -not\
30
- \\( -path '*.cache*' -or -path '*embedded*' -or -path '*venv*' -or -path '*.git*' \\)\
31
- | xargs -n 1 pylint --rcfile=#{ENV['SDK_HOME']}/.pylintrc)
27
+ if ENV['SKIP_LINT']
28
+ puts 'Skipping lint'.yellow
29
+ else
30
+ check_env
31
+ sh %(flake8 #{ENV['SDK_HOME']})
32
+ sh %(find #{ENV['SDK_HOME']} -name '*.py' -not\
33
+ \\( -path '*.cache*' -or -path '*embedded*' -or -path '*venv*' -or -path '*.git*' \\)\
34
+ | xargs -n 1 pylint --rcfile=#{ENV['SDK_HOME']}/.pylintrc)
35
+ end
32
36
  end
33
37
 
34
38
  task :requirements do
data/lib/tasks/sdk.rake CHANGED
@@ -55,23 +55,22 @@ end
55
55
  desc 'Wipe integration'
56
56
  task 'wipe', :option do |_, args|
57
57
  flavor = args[:option] || false
58
- abort "please specify an integration to remove" if not flavor
58
+ abort 'please specify an integration to remove' unless flavor
59
59
  check_env
60
- input = ''
61
60
  print "Are you sure you want to remove the #{flavor} integration (y/n)? "
62
61
  input = STDIN.gets.chomp
63
62
  case input.upcase
64
- when "Y"
63
+ when 'Y'
65
64
  `rm -rf #{ENV['SDK_HOME']}/#{flavor}` if File.directory?("#{ENV['SDK_HOME']}/#{flavor}")
66
65
  `rm -rf #{ENV['SDK_HOME']}/ci/#{flavor}.rake` if File.exist?("#{ENV['SDK_HOME']}/ci/#{flavor}.rake")
67
- puts "source and CI files."
66
+ puts 'source and CI files.'
68
67
  # two searches on travis.yml because of BSD sed.
69
68
  sed("#{ENV['SDK_HOME']}/.travis.yml", '', "=#{flavor}\\ ", '', 'd')
70
69
  sed("#{ENV['SDK_HOME']}/.travis.yml", '', "=#{flavor}$", '', 'd')
71
70
  sed("#{ENV['SDK_HOME']}/circle.yml", '', "\\[#{flavor}\\]", '', 'd')
72
71
  `git rm -r #{flavor}`
73
- when "N"
74
- puts "aborting the task..."
72
+ when 'N'
73
+ puts 'aborting the task...'
75
74
  end
76
75
  end
77
76
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: datadog-sdk-testing
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jaime Fullaondo
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-11-18 00:00:00.000000000 Z
11
+ date: 2017-01-03 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Datadog Integration SDK testing/scaffolding gem
14
14
  email: jaime.fullaondo@datadoghq.com