ruby-agent.gemspec in contrast-agent-7.5.0 vs ruby-agent.gemspec in contrast-agent-7.6.0

- old
+ new

@@ -7,18 +7,11 @@ lib = File.expand_path('lib', __dir__) $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib) # Add the team as authors of the Agent def self.add_authors spec - spec.authors = %w[ - galen.palmer@contrastsecurity.com - harold.mcginnis@contrastsecurity.com - donald.propst@contrastsecurity.com - alex.macdonald@contrastsecurity.com - mark.petersen@contrastsecurity.com - joshua.reed@contrastsecurity.com - ] + spec.authors = %w[ruby@contrastsecurity.com] end # Add those dependencies required to develop or test the Agent def self.add_dev_dependencies spec add_builders(spec) @@ -42,19 +35,18 @@ # Dependencies used for local debugging during development. def self.add_debuggers spec spec.add_development_dependency 'pry' spec.add_development_dependency 'pry-byebug', '>= 3.9' - spec.add_development_dependency 'ruby-debug-ide' end # Dependencies used for framework testing. def self.add_frameworks spec spec.add_development_dependency 'grape', '~> 1.5', '>= 1.5.2' spec.add_development_dependency 'rack-protection', '>= 2' spec.add_development_dependency 'rails', '>= 6', '~> 7' - spec.add_development_dependency 'sinatra', '>= 2' + spec.add_development_dependency 'sinatra', '>= 2', '<4.0.0' end # Dependencies used for linting prior to commit. def self.add_linters spec spec.add_development_dependency 'debride', '1.8.2' @@ -103,22 +95,30 @@ # Dependencies not mocked out during RSpec that we test real code of, beyond just frameworks. def self.add_tested_gems spec spec.add_development_dependency 'async' spec.add_development_dependency 'execjs' spec.add_development_dependency 'rhino' - spec.add_development_dependency 'sqlite3' + if ENV.fetch('CONTRAST__PIPELINE__RUN', nil) == 'true' + spec.add_development_dependency 'sqlite3', '1.6.6' + else + spec.add_development_dependency 'sqlite3' + end spec.add_development_dependency 'tilt' spec.add_development_dependency 'xpath' + spec.add_development_dependency 'ruby' end # Add those dependencies required to run the Agent in customer applications. # # Note: If you add a runtime dependency to the Agent, you'll need to update the # dependencies.csv in this directory to indicate that and create a # corresponding update to the fake gem server data in TeamServer. def self.add_dependencies spec - # TODO: RUBY-99999 investigate init_with_options segmentation fault - spec.add_dependency 'ffi' + if ENV.fetch('CONTRAST__PIPELINE__RUN', nil) == 'true' + spec.add_dependency 'ffi', '1.15.5' + else + spec.add_dependency 'ffi' + end spec.add_dependency 'ougai', '>= 1.8', '< 3.0.0' spec.add_dependency 'rack', '>= 2.0', '< 4.0.0' # bind this directly as we've had issues w/ build changes on bug release spec.add_dependency 'contrast-agent-lib', '1.1.1'