datadog-sdk-testing 0.7.2 → 0.7.3

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: 716d06b32a1e1ab97b8607819a7f678ad26ebf51
4
- data.tar.gz: 71509c611b4ad4520ff289c0122b9d37a31bd7f5
3
+ metadata.gz: 7ee046b59fba8014980e51315c838636eeacf58c
4
+ data.tar.gz: 5edfe4ae221e3b48c1c06e0795cd847a0df23065
5
5
  SHA512:
6
- metadata.gz: bb6ecb5ea0f3071c2c65c3fafe2feec56114091d1b56010e2f4ec2f59331d05c5528b8479d70d4dcf99f1d06dfc025bccc4706781bebae9911477852cd4736b6
7
- data.tar.gz: edf6c2f990397c03c31b884552883a40cbaaae41c32b95119329a55453a34e2bb2713edd84981fb94029bb94f27c6bb7fd3f0a23503dca0bccb790839e18810c
6
+ metadata.gz: 92d53c245d5badc5f19f0e125713636177dcca24605a90d51dc12caf3824a1ebf8cad74832cf9b01cb41bdea743b770d41e6e3ebf7ddaa40c465472422aedbcb
7
+ data.tar.gz: ddce9773e46f13e62547864b7e51c3de5764127aadaa6836b77bfb9af9c036c9cde9ecfd0f6ca1fbd7b23363a70e9568eda134dafba4279491f12acb0b76c2cd
@@ -12,6 +12,10 @@ def check_env
12
12
  abort 'SDK_HOME env variable must be defined in your Rakefile to used this gem.' unless ENV['SDK_HOME']
13
13
  end
14
14
 
15
+ def bin_in_path?(binary)
16
+ ENV['PATH'].split(':').collect { |d| Dir.entries d if Dir.exist? d }.flatten.include? binary
17
+ end
18
+
15
19
  def in_ci_env
16
20
  ENV['TRAVIS'] || ENV['CIRCLECI']
17
21
  end
@@ -346,7 +350,7 @@ namespace :ci do
346
350
  flavors_group = flavors.join('|')
347
351
  unless flavors.include?('default')
348
352
  tests_directory = tests_directory.reject do |test|
349
- /.*(#{flavors_group}).*$/.match(test).nil?
353
+ %r{.*/(#{flavors_group})/.*$}.match(test).nil?
350
354
  end
351
355
  end
352
356
  # Rake on Windows doesn't support setting the var at the beginning of the
@@ -19,6 +19,7 @@ CLOBBER.include '**/*.pyc'
19
19
  desc 'Setup a development environment for the SDK'
20
20
  task 'setup_env' do
21
21
  check_env
22
+ raise 'python2.7 is a requirement (python2 symlink too) - cant setup the env' unless bin_in_path?('python2')
22
23
  `mkdir -p #{ENV['SDK_HOME']}/venv`
23
24
  `wget -q -O #{ENV['SDK_HOME']}/venv/virtualenv.py https://raw.github.com/pypa/virtualenv/1.11.6/virtualenv.py`
24
25
  `python #{ENV['SDK_HOME']}/venv/virtualenv.py -p python2 --no-site-packages --no-pip --no-setuptools #{ENV['SDK_HOME']}/venv/`
@@ -45,9 +46,13 @@ task 'setup_agent_libs' do
45
46
  check_env
46
47
  agent_dir = in_ci_env ? "#{ENV['HOME']}/dd-agent/" : "#{ENV['SDK_HOME']}/embedded/dd-agent/"
47
48
 
48
- `cd #{agent_dir} && bundle install && bundle exec rake -T | grep setup_libs > /dev/null 2>&1`
49
- next if $CHILD_STATUS.exitstatus != 0
50
- `cd #{agent_dir} && bundle exec rake setup_libs`
49
+ Dir.chdir(agent_dir) do
50
+ `bundle install`
51
+ `bundle exec rake -T | grep setup_libs > /dev/null 2>&1`
52
+ raise "Rake task 'setup_libs' not found!" if $CHILD_STATUS.exitstatus != 0
53
+ # Use `sh` so we don't ingest standard output and error
54
+ sh 'bundle exec rake setup_libs'
55
+ end
51
56
  end
52
57
 
53
58
  desc 'Clean development environment for the SDK (remove!)'
metadata CHANGED
@@ -1,69 +1,72 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: datadog-sdk-testing
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.2
4
+ version: 0.7.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jaime Fullaondo
8
+ - Greg Meyer
9
+ - Quentin Madec
10
+ - Hippolyte Henry
8
11
  autorequire:
9
12
  bindir: bin
10
13
  cert_chain: []
11
- date: 2017-05-30 00:00:00.000000000 Z
14
+ date: 2017-07-05 00:00:00.000000000 Z
12
15
  dependencies:
13
16
  - !ruby/object:Gem::Dependency
14
17
  name: colorize
15
18
  requirement: !ruby/object:Gem::Requirement
16
19
  requirements:
17
- - - "~>"
20
+ - - ~>
18
21
  - !ruby/object:Gem::Version
19
22
  version: '0.8'
20
23
  type: :runtime
21
24
  prerelease: false
22
25
  version_requirements: !ruby/object:Gem::Requirement
23
26
  requirements:
24
- - - "~>"
27
+ - - ~>
25
28
  - !ruby/object:Gem::Version
26
29
  version: '0.8'
27
30
  - !ruby/object:Gem::Dependency
28
31
  name: httparty
29
32
  requirement: !ruby/object:Gem::Requirement
30
33
  requirements:
31
- - - "~>"
34
+ - - ~>
32
35
  - !ruby/object:Gem::Version
33
36
  version: '0.14'
34
37
  type: :runtime
35
38
  prerelease: false
36
39
  version_requirements: !ruby/object:Gem::Requirement
37
40
  requirements:
38
- - - "~>"
41
+ - - ~>
39
42
  - !ruby/object:Gem::Version
40
43
  version: '0.14'
41
44
  - !ruby/object:Gem::Dependency
42
45
  name: rake
43
46
  requirement: !ruby/object:Gem::Requirement
44
47
  requirements:
45
- - - "~>"
48
+ - - ~>
46
49
  - !ruby/object:Gem::Version
47
50
  version: '11.0'
48
51
  type: :runtime
49
52
  prerelease: false
50
53
  version_requirements: !ruby/object:Gem::Requirement
51
54
  requirements:
52
- - - "~>"
55
+ - - ~>
53
56
  - !ruby/object:Gem::Version
54
57
  version: '11.0'
55
58
  - !ruby/object:Gem::Dependency
56
59
  name: rubocop
57
60
  requirement: !ruby/object:Gem::Requirement
58
61
  requirements:
59
- - - "~>"
62
+ - - ~>
60
63
  - !ruby/object:Gem::Version
61
64
  version: '0.38'
62
65
  type: :runtime
63
66
  prerelease: false
64
67
  version_requirements: !ruby/object:Gem::Requirement
65
68
  requirements:
66
- - - "~>"
69
+ - - ~>
67
70
  - !ruby/object:Gem::Version
68
71
  version: '0.38'
69
72
  description: Datadog Integration SDK testing/scaffolding gem
@@ -72,22 +75,22 @@ executables: []
72
75
  extensions: []
73
76
  extra_rdoc_files: []
74
77
  files:
75
- - LICENSE
76
- - README.md
77
- - lib/config/CHANGELOG.md
78
- - lib/config/README.md
78
+ - lib/tasks/sdk.rake
79
+ - lib/tasks/ci/default.rb
80
+ - lib/tasks/ci/common.rb
81
+ - lib/tasks/ci/hooks/pre-commit.py
79
82
  - lib/config/check.py
80
83
  - lib/config/ci/skeleton.rake
81
84
  - lib/config/conf.yaml.example
82
- - lib/config/datadog.conf
83
85
  - lib/config/manifest.json
86
+ - lib/config/datadog.conf
84
87
  - lib/config/metadata.csv
88
+ - lib/config/README.md
89
+ - lib/config/CHANGELOG.md
85
90
  - lib/config/requirements.txt
86
91
  - lib/config/test_skeleton.py
87
- - lib/tasks/ci/common.rb
88
- - lib/tasks/ci/default.rb
89
- - lib/tasks/ci/hooks/pre-commit.py
90
- - lib/tasks/sdk.rake
92
+ - README.md
93
+ - LICENSE
91
94
  homepage: http://rubygems.org/gems/datadog-sdk-testing
92
95
  licenses:
93
96
  - MIT
@@ -98,17 +101,17 @@ require_paths:
98
101
  - lib/tasks/
99
102
  required_ruby_version: !ruby/object:Gem::Requirement
100
103
  requirements:
101
- - - ">="
104
+ - - '>='
102
105
  - !ruby/object:Gem::Version
103
106
  version: '0'
104
107
  required_rubygems_version: !ruby/object:Gem::Requirement
105
108
  requirements:
106
- - - ">="
109
+ - - '>='
107
110
  - !ruby/object:Gem::Version
108
111
  version: '0'
109
112
  requirements: []
110
113
  rubyforge_project:
111
- rubygems_version: 2.4.6
114
+ rubygems_version: 2.0.14.1
112
115
  signing_key:
113
116
  specification_version: 4
114
117
  summary: Datadog Integration SDK testing/scaffolding facilities.