datadog-sdk-testing 0.4.5 → 0.4.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/config/manifest.json +1 -0
- data/lib/tasks/ci/common.rb +10 -0
- data/lib/tasks/ci/default.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: f525757b24ae94ad4a66440ce6a3281b1aa841fb
|
4
|
+
data.tar.gz: d0f1bdb061b334d4408bb13e93ddcac5f80dee03
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 96a8b895117dff4ed9f475f3173a4e14adb6a0e9622fcf9005e96861a01098e76b2befb86a298621da121632a4a2c7205605bdc18467c249f207f256f2dbdeea
|
7
|
+
data.tar.gz: 6354c4268481c7915621004f378eec71b39a1ce62084a110c89082e2f4e83b4da4d35d767a9b1976ca667369e51061d9ef0a17f8220bfd6588d5695f8e83390c
|
data/lib/config/manifest.json
CHANGED
data/lib/tasks/ci/common.rb
CHANGED
@@ -3,6 +3,7 @@ require 'httparty'
|
|
3
3
|
require 'socket'
|
4
4
|
require 'time'
|
5
5
|
require 'timeout'
|
6
|
+
require 'securerandom'
|
6
7
|
|
7
8
|
# Colors don't work on Appveyor
|
8
9
|
String.disable_colorization = true if Gem.win_platform?
|
@@ -160,6 +161,13 @@ def rename_skeleton(integration)
|
|
160
161
|
end
|
161
162
|
end
|
162
163
|
|
164
|
+
def replace_guid(integration)
|
165
|
+
guid = SecureRandom.uuid
|
166
|
+
f = File.open("#{ENV['SDK_HOME']}/#{integration}/manifest.json")
|
167
|
+
sed(f, 's', 'guid_replaceme', guid.to_s, 'g')
|
168
|
+
file.close
|
169
|
+
end
|
170
|
+
|
163
171
|
def generate_skeleton(integration)
|
164
172
|
copy_skeleton('lib/config/ci/skeleton.rake', "ci/#{integration}.rake", integration)
|
165
173
|
copy_skeleton('lib/config/manifest.json', 'manifest.json', integration)
|
@@ -182,6 +190,8 @@ def create_skeleton(integration)
|
|
182
190
|
generate_skeleton(integration.to_s)
|
183
191
|
rename_skeleton(integration.to_s)
|
184
192
|
|
193
|
+
replace_guid(integration.to_s)
|
194
|
+
|
185
195
|
sh "git add #{ENV['SDK_HOME']}/#{integration}/"
|
186
196
|
|
187
197
|
add_travis_flavor(integration)
|
data/lib/tasks/ci/default.rb
CHANGED
@@ -30,7 +30,7 @@ namespace :ci do
|
|
30
30
|
check_env
|
31
31
|
sh %(flake8 #{ENV['SDK_HOME']})
|
32
32
|
sh %(find #{ENV['SDK_HOME']} -name '*.py' -not\
|
33
|
-
|
33
|
+
\\( -path '*.cache*' -or -path '*embedded*' -or -path '*dd-agent*' -or -path '*venv*' -or -path '*.git*' -or -path '*vendor*'\\)\
|
34
34
|
| xargs -n 80 -P 8 pylint --rcfile=#{ENV['SDK_HOME']}/.pylintrc)
|
35
35
|
end
|
36
36
|
end
|
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.
|
4
|
+
version: 0.4.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jaime Fullaondo
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-01-
|
11
|
+
date: 2017-01-30 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: Datadog Integration SDK testing/scaffolding gem
|
14
14
|
email: jaime.fullaondo@datadoghq.com
|