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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: dadc63360e572844efd298b4760107f3c436813b
4
- data.tar.gz: 2992554b0d1329d7d115b24792df88f2113442f0
3
+ metadata.gz: f525757b24ae94ad4a66440ce6a3281b1aa841fb
4
+ data.tar.gz: d0f1bdb061b334d4408bb13e93ddcac5f80dee03
5
5
  SHA512:
6
- metadata.gz: cc918419305e4cf2a45449077b18831700b4cf3a0d6f68b3feed4a2d9a6f6cde52705ef2ab0b6e0014b1ecc5519fdfa40374e9d32c165d3f49a548a8b600f9a6
7
- data.tar.gz: fec35c04eaa28d004604bc79724dec5ae4318d858d7ecaf7dc7acc6c4e397751959f303c565459d35dae8b90b65528c6f9d1b33dcf0ffa0d14d8c6bf7a06c559
6
+ metadata.gz: 96a8b895117dff4ed9f475f3173a4e14adb6a0e9622fcf9005e96861a01098e76b2befb86a298621da121632a4a2c7205605bdc18467c249f207f256f2dbdeea
7
+ data.tar.gz: 6354c4268481c7915621004f378eec71b39a1ce62084a110c89082e2f4e83b4da4d35d767a9b1976ca667369e51061d9ef0a17f8220bfd6588d5695f8e83390c
@@ -5,6 +5,7 @@
5
5
  "min_agent_version": "5.6.3",
6
6
  "name": "skeleton",
7
7
  "short_description": "skeleton description.",
8
+ "guid": "guid_replaceme",
8
9
  "support": "contrib",
9
10
  "supported_os": ["linux","mac_os","windows"],
10
11
  "version": "0.1.0"
@@ -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)
@@ -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
- \\( -path '*.cache*' -or -path '*embedded*' -or -path '*dd-agent*' -or -path '*venv*' -or -path '*.git*' \\)\
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.5
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-27 00:00:00.000000000 Z
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