Skip to content

Commit

Permalink
Merge pull request #24 from DataDog/anmarchenko/gemspec_refinement
Browse files Browse the repository at this point in the history
prepare gemspec for release; specify ddtrace as dev dependency, not runtime one
  • Loading branch information
anmarchenko authored Sep 11, 2023
2 parents cbc008c + 6b6e593 commit d6067d6
Show file tree
Hide file tree
Showing 105 changed files with 365 additions and 219 deletions.
3 changes: 3 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ source "https://rubygems.org"
# Specify your gem's dependencies in datadog-ci.gemspec
gemspec

# needed to run tests, always present at runtime
gem "ddtrace"

gem "pry"
gem "rake"
gem "rspec"
Expand Down
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ Datadog.configure do |c|
# Enables the RSpec instrumentation
c.ci.instrument :rspec, **options
end

```

`options` are the following keyword arguments:
Expand Down
50 changes: 27 additions & 23 deletions datadog-ci.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -4,35 +4,39 @@ require_relative "lib/datadog/ci/version"

Gem::Specification.new do |spec|
spec.name = "datadog-ci"
spec.version = Datadog::CI::VERSION
spec.version = Datadog::CI::VERSION::STRING
spec.required_ruby_version = [
">= #{Datadog::CI::VERSION::MINIMUM_RUBY_VERSION}",
"< #{Datadog::CI::VERSION::MAXIMUM_RUBY_VERSION}"
]
spec.required_rubygems_version = ">= 2.0.0"
spec.authors = ["Datadog, Inc."]
spec.email = ["dev@datadoghq.com"]

spec.summary = "Datadog CI visibility for your ruby application"
# spec.description = "TODO: Write a longer description or delete this line."
# spec.homepage = "TODO: Put your gem's website or public repo URL here."
spec.license = "BSD-3-Clause"
# spec.required_ruby_version = ">= 2.6.0"
spec.description = <<-DESC
datadog-ci is a Datadog's CI visibility library for Ruby. It traces
tests as they are being executed and brings developers visibility into
their CI pipelines.
DESC

spec.metadata["allowed_push_host"] = "TODO: Set to your gem server 'https://example.com'"
spec.homepage = "https://github.com/DataDog/datadog-ci-rb"
spec.license = "BSD-3-Clause"

# spec.metadata["homepage_uri"] = spec.homepage
# spec.metadata["source_code_uri"] = "TODO: Put your gem's public repo URL here."
# spec.metadata["changelog_uri"] = "TODO: Put your gem's CHANGELOG.md URL here."
spec.metadata["allowed_push_host"] = "https://rubygems.org"
spec.metadata["changelog_uri"] = "https://github.com/DataDog/datadog-ci-rb/blob/main/CHANGELOG.md"
spec.metadata["homepage_uri"] = spec.homepage
spec.metadata["source_code_uri"] = "https://github.com/DataDog/datadog-ci-rb"

spec.files =
Dir[*%w[
CHANGELOG.md
LICENSE*
NOTICE
README.md
lib/**/*
sig/**/*
]].select { |fn| File.file?(fn) } # We don't want directories, only files

# Specify which files should be added to the gem when it is released.
# The `git ls-files -z` loads the files in the RubyGem that have been added into git.
spec.files = Dir.chdir(__dir__) do
`git ls-files -z`.split("\x0").reject do |f|
(f == __FILE__) || f.match(%r{\A(?:(?:bin|test|spec|features)/|\.(?:git|travis|circleci)|appveyor)})
end
end
spec.bindir = "exe"
spec.executables = spec.files.grep(%r{\Aexe/}) { |f| File.basename(f) }
spec.require_paths = ["lib"]

spec.add_dependency "ddtrace", "~> 1"

# For more information and examples about making a new gem, check out our
# guide at: https://bundler.io/guides/creating_gem.html
end
1 change: 1 addition & 0 deletions gemfiles/jruby_9.4.0.0_cucumber_3.gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

source "https://rubygems.org"

gem "ddtrace"
gem "pry"
gem "rake"
gem "rspec"
Expand Down
6 changes: 3 additions & 3 deletions gemfiles/jruby_9.4.0.0_cucumber_3.gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ PATH
remote: ..
specs:
datadog-ci (0.1.0)
ddtrace (~> 1)

GEM
remote: https://rubygems.org/
Expand Down Expand Up @@ -33,7 +32,7 @@ GEM
cucumber-expressions (6.0.1)
cucumber-tag_expressions (1.1.1)
cucumber-wire (0.0.1)
ddtrace (1.13.1)
ddtrace (1.14.0)
debase-ruby_core_source (= 3.2.1)
libdatadog (~> 3.0.0.1.0)
libddwaf (~> 1.9.0.0.0)
Expand Down Expand Up @@ -85,7 +84,7 @@ GEM
rspec-support (3.12.1)
rspec_junit_formatter (0.6.0)
rspec-core (>= 2, < 4, != 2.12.0)
rubocop (1.56.1)
rubocop (1.56.2)
base64 (~> 0.1.1)
json (~> 2.3)
language_server-protocol (>= 3.17.0)
Expand Down Expand Up @@ -139,6 +138,7 @@ DEPENDENCIES
climate_control
cucumber (~> 3)
datadog-ci!
ddtrace
os
pimpmychangelog (>= 0.1.2)
pry
Expand Down
1 change: 1 addition & 0 deletions gemfiles/jruby_9.4.0.0_cucumber_4.gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

source "https://rubygems.org"

gem "ddtrace"
gem "pry"
gem "rake"
gem "rspec"
Expand Down
10 changes: 5 additions & 5 deletions gemfiles/jruby_9.4.0.0_cucumber_4.gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,11 @@ PATH
remote: ..
specs:
datadog-ci (0.1.0)
ddtrace (~> 1)

GEM
remote: https://rubygems.org/
specs:
activesupport (7.0.7)
activesupport (7.0.7.2)
concurrent-ruby (~> 1.0, >= 1.0.2)
i18n (>= 1.6, < 2)
minitest (>= 5.1)
Expand Down Expand Up @@ -53,7 +52,7 @@ GEM
cucumber-core (~> 7.1, >= 7.1.0)
cucumber-cucumber-expressions (~> 10.1, >= 10.1.0)
cucumber-messages (~> 12.2, >= 12.2.0)
ddtrace (1.13.1)
ddtrace (1.14.0)
debase-ruby_core_source (= 3.2.1)
libdatadog (~> 3.0.0.1.0)
libddwaf (~> 1.9.0.0.0)
Expand All @@ -72,7 +71,7 @@ GEM
lint_roller (1.1.0)
method_source (1.0.0)
middleware (0.1.0)
minitest (5.19.0)
minitest (5.20.0)
msgpack (1.7.2-java)
multi_test (0.1.2)
os (1.1.4)
Expand Down Expand Up @@ -112,7 +111,7 @@ GEM
rspec-support (3.12.1)
rspec_junit_formatter (0.6.0)
rspec-core (>= 2, < 4, != 2.12.0)
rubocop (1.56.1)
rubocop (1.56.2)
base64 (~> 0.1.1)
json (~> 2.3)
language_server-protocol (>= 3.17.0)
Expand Down Expand Up @@ -171,6 +170,7 @@ DEPENDENCIES
climate_control
cucumber (~> 4)
datadog-ci!
ddtrace
os
pimpmychangelog (>= 0.1.2)
pry
Expand Down
1 change: 1 addition & 0 deletions gemfiles/jruby_9.4.0.0_cucumber_5.gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

source "https://rubygems.org"

gem "ddtrace"
gem "pry"
gem "rake"
gem "rspec"
Expand Down
10 changes: 5 additions & 5 deletions gemfiles/jruby_9.4.0.0_cucumber_5.gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,11 @@ PATH
remote: ..
specs:
datadog-ci (0.1.0)
ddtrace (~> 1)

GEM
remote: https://rubygems.org/
specs:
activesupport (7.0.7)
activesupport (7.0.7.2)
concurrent-ruby (~> 1.0, >= 1.0.2)
i18n (>= 1.6, < 2)
minitest (>= 5.1)
Expand Down Expand Up @@ -53,7 +52,7 @@ GEM
cucumber-core (~> 8.0, >= 8.0.1)
cucumber-cucumber-expressions (~> 10.3, >= 10.3.0)
cucumber-messages (~> 13.0, >= 13.0.1)
ddtrace (1.13.1)
ddtrace (1.14.0)
debase-ruby_core_source (= 3.2.1)
libdatadog (~> 3.0.0.1.0)
libddwaf (~> 1.9.0.0.0)
Expand All @@ -72,7 +71,7 @@ GEM
lint_roller (1.1.0)
method_source (1.0.0)
middleware (0.1.0)
minitest (5.19.0)
minitest (5.20.0)
msgpack (1.7.2-java)
multi_test (0.1.2)
os (1.1.4)
Expand Down Expand Up @@ -112,7 +111,7 @@ GEM
rspec-support (3.12.1)
rspec_junit_formatter (0.6.0)
rspec-core (>= 2, < 4, != 2.12.0)
rubocop (1.56.1)
rubocop (1.56.2)
base64 (~> 0.1.1)
json (~> 2.3)
language_server-protocol (>= 3.17.0)
Expand Down Expand Up @@ -171,6 +170,7 @@ DEPENDENCIES
climate_control
cucumber (~> 5)
datadog-ci!
ddtrace
os
pimpmychangelog (>= 0.1.2)
pry
Expand Down
1 change: 1 addition & 0 deletions gemfiles/jruby_9.4.0.0_cucumber_6.gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

source "https://rubygems.org"

gem "ddtrace"
gem "pry"
gem "rake"
gem "rspec"
Expand Down
10 changes: 5 additions & 5 deletions gemfiles/jruby_9.4.0.0_cucumber_6.gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,11 @@ PATH
remote: ..
specs:
datadog-ci (0.1.0)
ddtrace (~> 1)

GEM
remote: https://rubygems.org/
specs:
activesupport (7.0.7)
activesupport (7.0.7.2)
concurrent-ruby (~> 1.0, >= 1.0.2)
i18n (>= 1.6, < 2)
minitest (>= 5.1)
Expand Down Expand Up @@ -54,7 +53,7 @@ GEM
cucumber-core (~> 9.0, >= 9.0.1)
cucumber-cucumber-expressions (~> 12.1, >= 12.1.1)
cucumber-messages (~> 15.0, >= 15.0.0)
ddtrace (1.13.1)
ddtrace (1.14.0)
debase-ruby_core_source (= 3.2.1)
libdatadog (~> 3.0.0.1.0)
libddwaf (~> 1.9.0.0.0)
Expand All @@ -76,7 +75,7 @@ GEM
mime-types (3.5.1)
mime-types-data (~> 3.2015)
mime-types-data (3.2023.0808)
minitest (5.19.0)
minitest (5.20.0)
msgpack (1.7.2-java)
multi_test (0.1.2)
os (1.1.4)
Expand Down Expand Up @@ -116,7 +115,7 @@ GEM
rspec-support (3.12.1)
rspec_junit_formatter (0.6.0)
rspec-core (>= 2, < 4, != 2.12.0)
rubocop (1.56.1)
rubocop (1.56.2)
base64 (~> 0.1.1)
json (~> 2.3)
language_server-protocol (>= 3.17.0)
Expand Down Expand Up @@ -175,6 +174,7 @@ DEPENDENCIES
climate_control
cucumber (~> 6)
datadog-ci!
ddtrace
os
pimpmychangelog (>= 0.1.2)
pry
Expand Down
1 change: 1 addition & 0 deletions gemfiles/jruby_9.4.0.0_cucumber_7.gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

source "https://rubygems.org"

gem "ddtrace"
gem "pry"
gem "rake"
gem "rspec"
Expand Down
6 changes: 3 additions & 3 deletions gemfiles/jruby_9.4.0.0_cucumber_7.gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ PATH
remote: ..
specs:
datadog-ci (0.1.0)
ddtrace (~> 1)

GEM
remote: https://rubygems.org/
Expand Down Expand Up @@ -46,7 +45,7 @@ GEM
cucumber-wire (6.2.1)
cucumber-core (~> 10.1, >= 10.1.0)
cucumber-cucumber-expressions (~> 14.0, >= 14.0.0)
ddtrace (1.13.1)
ddtrace (1.14.0)
debase-ruby_core_source (= 3.2.1)
libdatadog (~> 3.0.0.1.0)
libddwaf (~> 1.9.0.0.0)
Expand Down Expand Up @@ -99,7 +98,7 @@ GEM
rspec-support (3.12.1)
rspec_junit_formatter (0.6.0)
rspec-core (>= 2, < 4, != 2.12.0)
rubocop (1.56.1)
rubocop (1.56.2)
base64 (~> 0.1.1)
json (~> 2.3)
language_server-protocol (>= 3.17.0)
Expand Down Expand Up @@ -155,6 +154,7 @@ DEPENDENCIES
climate_control
cucumber (~> 7)
datadog-ci!
ddtrace
os
pimpmychangelog (>= 0.1.2)
pry
Expand Down
1 change: 1 addition & 0 deletions gemfiles/jruby_9.4.0.0_cucumber_8.gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

source "https://rubygems.org"

gem "ddtrace"
gem "pry"
gem "rake"
gem "rspec"
Expand Down
6 changes: 3 additions & 3 deletions gemfiles/jruby_9.4.0.0_cucumber_8.gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ PATH
remote: ..
specs:
datadog-ci (0.1.0)
ddtrace (~> 1)

GEM
remote: https://rubygems.org/
Expand Down Expand Up @@ -40,7 +39,7 @@ GEM
cucumber-messages (~> 18.0, >= 18.0.0)
cucumber-messages (18.0.0)
cucumber-tag-expressions (4.1.0)
ddtrace (1.13.1)
ddtrace (1.14.0)
debase-ruby_core_source (= 3.2.1)
libdatadog (~> 3.0.0.1.0)
libddwaf (~> 1.9.0.0.0)
Expand Down Expand Up @@ -93,7 +92,7 @@ GEM
rspec-support (3.12.1)
rspec_junit_formatter (0.6.0)
rspec-core (>= 2, < 4, != 2.12.0)
rubocop (1.56.1)
rubocop (1.56.2)
base64 (~> 0.1.1)
json (~> 2.3)
language_server-protocol (>= 3.17.0)
Expand Down Expand Up @@ -149,6 +148,7 @@ DEPENDENCIES
climate_control
cucumber (~> 8)
datadog-ci!
ddtrace
os
pimpmychangelog (>= 0.1.2)
pry
Expand Down
1 change: 1 addition & 0 deletions gemfiles/jruby_9.4.0.0_minitest_5.gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

source "https://rubygems.org"

gem "ddtrace"
gem "pry"
gem "rake"
gem "rspec"
Expand Down
Loading

0 comments on commit d6067d6

Please sign in to comment.