From f9d0521b884f0fdc7ef03886c377d89cbc998876 Mon Sep 17 00:00:00 2001 From: Yegor Bugayenko Date: Mon, 23 Aug 2021 22:41:46 +0300 Subject: [PATCH] #7 up --- .rultor.yml | 25 +++++++++---------------- .travis.yml | 9 ++++++--- lib/xembly/xembler.rb | 1 + xembly.gemspec | 18 +++++++++--------- 4 files changed, 25 insertions(+), 28 deletions(-) diff --git a/.rultor.yml b/.rultor.yml index b33c98f..b3e6d7e 100644 --- a/.rultor.yml +++ b/.rultor.yml @@ -1,28 +1,21 @@ assets: rubygems.yml: yegor256/home#assets/rubygems.yml - s3cfg: yegor256/home#assets/s3cfg install: | - sudo apt-get update - sudo gem install pdd -v 0.20.5 + pdd -f /dev/null + sudo bundle install --no-color "--gemfile=$(pwd)/Gemfile" release: script: |- - sudo bundle install - rake - rm -rf *.gem + bundle exec rake clean test rubocop copyright sed -i "s/1\.0\.snapshot/${tag}/g" lib/xembly/version.rb git add lib/xembly/version.rb git commit -m "version set to ${tag}" gem build xembly.gemspec chmod 0600 ../rubygems.yml gem push *.gem --config-file ../rubygems.yml - sudo gem install xembly - pdd --source=$(pwd) --verbose --file=xembly-gem.xml -e=test/** -e=features/** -e=README.md - s3cmd --no-progress put xembly-gem.xml --config=../s3cfg s3://pdd.teamed.io/xembly-gem.xml - commanders: - - yegor256 -architect: -- yegor256 -- davvd merge: - commanders: [] -deploy: {} + script: |- + bundle exec rake clean test rubocop copyright +deploy: + script: |- + echo "There is nothing to deploy" + exit -1 diff --git a/.travis.yml b/.travis.yml index ef22fe5..6da69a4 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,12 +1,15 @@ language: ruby rvm: - - 2.2.2 + - 2.6.0 cache: bundler branches: only: - master install: + - gem install pdd -v 0.20.5 - travis_retry bundle update script: - - rake - + - pdd -f /dev/null + - bundle exec rake +after_success: + - "bash <(curl -s https://codecov.io/bash)" diff --git a/lib/xembly/xembler.rb b/lib/xembly/xembler.rb index daa583f..7c4b7aa 100644 --- a/lib/xembly/xembler.rb +++ b/lib/xembly/xembler.rb @@ -37,6 +37,7 @@ def apply(xml) cursor = [dom] @dirs.each do |dir| cursor = dir.exec(dom, cursor) + Xembly.log.info "Applied: #{dir}" end Xembly.log.info "#{@dirs.length} directive(s) applied" dom diff --git a/xembly.gemspec b/xembly.gemspec index beab657..0c980eb 100644 --- a/xembly.gemspec +++ b/xembly.gemspec @@ -44,14 +44,14 @@ Gem::Specification.new do |s| s.test_files = s.files.grep(/^(test|spec|features)\//) s.rdoc_options = ['--charset=UTF-8'] s.extra_rdoc_files = ['README.md', 'LICENSE.txt'] - s.add_runtime_dependency 'nokogiri', '1.6.7.2' + s.add_runtime_dependency 'nokogiri', '1.12.3' s.add_runtime_dependency 'slop', '4.4.1' - s.add_runtime_dependency 'rake', '11.1.1' - s.add_development_dependency 'coveralls', '0.7.2' - s.add_development_dependency 'rdoc', '4.2.0' - s.add_development_dependency 'cucumber', '1.3.17' - s.add_development_dependency 'minitest', '5.5.0' - s.add_development_dependency 'rubocop', '0.24.1' - s.add_development_dependency 'rubocop-rspec', '1.2.1' - s.add_development_dependency 'rspec-rails', '3.1.0' + s.add_runtime_dependency 'rake', '13.0.6' + s.add_development_dependency 'coveralls', '0.8.23' + s.add_development_dependency 'rdoc', '6.3.2' + s.add_development_dependency 'cucumber', '7.0.0' + s.add_development_dependency 'minitest', '5.14.4' + s.add_development_dependency 'rubocop', '1.19.1' + s.add_development_dependency 'rubocop-rspec', '2.4.0' + s.add_development_dependency 'rspec-rails', '5.0.2' end