Commit d20fcc6
Changed files (8)
bin/cibuild
@@ -1,22 +1,21 @@
#!/bin/sh
-# script/cibuild: Setup environment for CI to run tests. This is primarily
-# designed to run on the continuous integration server.
-
set -e
-cd "$(dirname "$0")/.."
-
-echo ["$(date "+%H:%M:%S")"] "==> Started at…"
+[ -z "$DEBUG" ] || set -x
-# GC customizations
+cd "$(dirname "$0")/.."
export RUBY_GC_MALLOC_LIMIT=79000000
export RUBY_GC_HEAP_INIT_SLOTS=800000
export RUBY_HEAP_FREE_MIN=100000
export RUBY_HEAP_SLOTS_INCREMENT=400000
export RUBY_HEAP_SLOTS_GROWTH_FACTOR=1
-ruby -v
-gem install bundler --conservative
+echo ["$(date "+%H:%M:%S")"] "==> Running setup…"
+bin/setup
+
+echo ["$(date "+%H:%M:%S")"] "==> Running tests…"
bin/test
+
+echo ["$(date "+%H:%M:%S")"] "==> Running linters…"
bin/lint
bin/lint
@@ -2,10 +2,8 @@
set -e
-[ -z "$DEBUG" ] || set -x
+cd "$(dirname "$0")/.."
-echo [$(date "+%H:%M:%S")] "==> Running setup…"
-bin/setup
+export RUBYOPT='-W0'
-echo [$(date "+%H:%M:%S")] "==> Running linters…"
bundle exec rake lint
bin/setup
@@ -1,6 +1,7 @@
#!/usr/bin/env bash
set -euo pipefail
IFS=$'\n\t'
-set -vx
+ruby -v
+gem install bundler --conservative -v '~> 2.0'
bundle check || bundle install --jobs "$(sysctl -n hw.ncpu || nproc)"
bin/shipit
@@ -0,0 +1,8 @@
+#!/bin/sh
+
+set -e
+
+cd "$(dirname "$0")/.."
+
+bin/cibuild
+bundle exec rake release
bin/test
@@ -1,21 +1,9 @@
-#!/bin/bash
-
-# script/test: Run test suite for application. Optionally pass in a path to an
-# individual test file to run a single test.
-
+#!/bin/sh
set -e
cd "$(dirname "$0")/.."
-[ -z "$DEBUG" ] || set -x
-
-echo ["$(date "+%H:%M:%S")"] "==> Running setup…"
-bin/setup
+export RUBYOPT='-W0'
-echo ["$(date "+%H:%M:%S")"] "==> Running tests…"
-if [[ $# -eq 0 ]]; then
- bundle exec rake spec
-else
- bundle exec rspec "$1"
-fi
+bundle exec rspec "$@"
spec/scim/kit/v2/filter_spec.rb
@@ -35,9 +35,9 @@ RSpec.describe Scim::Kit::V2::Filter do
specify { expect(subject.parse_with_debug('userName eq "jeramy@ziemann.biz"')).to be_truthy }
specify { expect(subject.parse_with_debug(%((title pr) and (userType eq "Employee")))).to be_truthy }
- specify { expect(subject.attribute_expression.parse_with_debug(%(title pr and userType eq "Employee"))).not_to be_truthy }
+ specify { expect(subject.attribute_expression).not_to parse(%(title pr and userType eq "Employee")) }
specify { expect(subject.logical_expression.parse_with_debug(%((title pr) and (userType eq "Employee")))).to be_truthy }
- specify { expect(subject.value_path.parse_with_debug(%(title pr and userType eq "Employee"))).not_to be_truthy }
+ specify { expect(subject.value_path).not_to parse(%(title pr and userType eq "Employee")) }
[
'emails[(type eq "work") and (value co "@example.com")]'
.rspec
@@ -1,3 +1,3 @@
---format documentation
+--format progress
--color
--require spec_helper
scim-kit.gemspec
@@ -27,7 +27,7 @@ Gem::Specification.new do |spec|
File.basename(file)
end
spec.require_paths = ['lib']
- spec.required_ruby_version = '>= 2.5.0'
+ spec.required_ruby_version = Gem::Requirement.new('>= 2.5.0')
spec.metadata['yard.run'] = 'yri'
spec.add_dependency 'activemodel', '>= 5.2.0'