Skip to content
This repository has been archived by the owner on May 10, 2021. It is now read-only.

Commit

Permalink
Fixed announcing job_attributes and rubocop bump
Browse files Browse the repository at this point in the history
  • Loading branch information
Joseph Henrich committed Aug 25, 2014
1 parent eb9e678 commit b14df8f
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 4 deletions.
3 changes: 3 additions & 0 deletions .rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@
Style/CyclomaticComplexity:
Max: 9

Metrics/PerceivedComplexity:
Max: 11

########
# Fix these later
# Configuration parameters: CountComments.
Expand Down
2 changes: 1 addition & 1 deletion Gemfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
source "https://rubygems.org"
source 'https://rubygems.org'

# Specify your gem's dependencies in jenkins_pipeline_builder.gemspec
gemspec
2 changes: 1 addition & 1 deletion jenkins_pipeline_builder.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -42,5 +42,5 @@ automating Job & Pipeline creation from the YAML files checked-in with your appl
spec.add_development_dependency 'yard'
spec.add_development_dependency 'rspec_junit_formatter'
spec.add_development_dependency 'webmock'
spec.add_development_dependency 'rubocop'
spec.add_development_dependency 'rubocop', '> 0.24.0'
end
3 changes: 2 additions & 1 deletion lib/jenkins_pipeline_builder/extensions.rb
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,8 @@ def job_attribute(&block)
return false
end
JenkinsPipelineBuilder.registry.register([:job], set)
puts "Successfully registered #{set.name} for versions #{set.min_version} and higher" if set.announced
versions = set.extensions.map { |ext| ext.min_version }
puts "Successfully registered #{set.name} for versions #{versions}" if set.announced
end

module JenkinsPipelineBuilder
Expand Down
2 changes: 1 addition & 1 deletion lib/jenkins_pipeline_builder/version.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,5 @@
#

module JenkinsPipelineBuilder
VERSION = '0.7.1'
VERSION = '0.7.2'
end

0 comments on commit b14df8f

Please sign in to comment.