Hello community,
here is the log from the commit of package rubygem-simplecov-html for
openSUSE:Factory checked in at 2015-04-25 09:53:05
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/rubygem-simplecov-html (Old)
and /work/SRC/openSUSE:Factory/.rubygem-simplecov-html.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "rubygem-simplecov-html"
Changes:
--------
---
/work/SRC/openSUSE:Factory/rubygem-simplecov-html/rubygem-simplecov-html.changes
2015-02-20 12:01:33.000000000 +0100
+++
/work/SRC/openSUSE:Factory/.rubygem-simplecov-html.new/rubygem-simplecov-html.changes
2015-04-25 11:25:45.000000000 +0200
@@ -1,0 +2,6 @@
+Thu Apr 23 08:08:43 UTC 2015 - [email protected]
+
+- updated to version 0.10.0
+ no changelog found
+
+-------------------------------------------------------------------
Old:
----
simplecov-html-0.9.0.gem
New:
----
simplecov-html-0.10.0.gem
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ rubygem-simplecov-html.spec ++++++
--- /var/tmp/diff_new_pack.d2YwMk/_old 2015-04-25 11:25:46.000000000 +0200
+++ /var/tmp/diff_new_pack.d2YwMk/_new 2015-04-25 11:25:46.000000000 +0200
@@ -24,13 +24,13 @@
#
Name: rubygem-simplecov-html
-Version: 0.9.0
+Version: 0.10.0
Release: 0
%define mod_name simplecov-html
%define mod_full_name %{mod_name}-%{version}
BuildRoot: %{_tmppath}/%{name}-%{version}-build
+BuildRequires: %{ruby >= 1.8.7}
BuildRequires: %{rubygem gem2rpm}
-BuildRequires: %{ruby}
BuildRequires: ruby-macros >= 5
Url: https://github.com/colszowka/simplecov-html
Source: http://rubygems.org/gems/%{mod_full_name}.gem
++++++ simplecov-html-0.9.0.gem -> simplecov-html-0.10.0.gem ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/.rubocop.yml new/.rubocop.yml
--- old/.rubocop.yml 1970-01-01 01:00:00.000000000 +0100
+++ new/.rubocop.yml 2015-04-18 19:10:19.000000000 +0200
@@ -0,0 +1,50 @@
+Metrics/BlockNesting:
+ Max: 2
+
+Metrics/LineLength:
+ AllowURI: true
+ Enabled: false
+
+Metrics/MethodLength:
+ CountComments: false
+ Max: 10
+
+Metrics/ParameterLists:
+ Max: 4
+ CountKeywordArgs: true
+
+Style/AccessModifierIndentation:
+ EnforcedStyle: outdent
+
+Style/CollectionMethods:
+ PreferredMethods:
+ map: 'collect'
+ reduce: 'inject'
+ find: 'detect'
+ find_all: 'select'
+
+Style/Documentation:
+ Enabled: false
+
+Style/DoubleNegation:
+ Enabled: false
+
+Style/FileName:
+ Exclude:
+ - 'lib/simplecov-html.rb'
+ - 'test/test_simple_cov-html.rb'
+
+Style/HashSyntax:
+ EnforcedStyle: hash_rockets
+
+Style/RegexpLiteral:
+ Enabled: false
+
+Style/SpaceInsideHashLiteralBraces:
+ EnforcedStyle: no_space
+
+Style/StringLiterals:
+ EnforcedStyle: double_quotes
+
+Style/TrailingComma:
+ EnforcedStyleForMultiline: 'comma'
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/.travis.yml new/.travis.yml
--- old/.travis.yml 1970-01-01 01:00:00.000000000 +0100
+++ new/.travis.yml 2015-04-18 19:10:19.000000000 +0200
@@ -0,0 +1,27 @@
+language: ruby
+
+before_install:
+ - gem install bundler
+
+bundler_args: --without development --jobs=3 --retry=3
+
+cache: bundler
+
+sudo: false
+
+rvm:
+ - 1.8.7
+ - 1.9.3
+ - 2.0.0
+ - 2.1
+ - 2.2
+ - ruby-head
+ - jruby
+ - rbx-2
+
+matrix:
+ allow_failures:
+ - rvm: ruby-head
+ - rvm: jruby
+ - rvm: rbx-2
+ fast_finish: true
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/Gemfile new/Gemfile
--- old/Gemfile 2015-02-18 15:18:43.000000000 +0100
+++ new/Gemfile 2015-04-18 19:10:19.000000000 +0200
@@ -1,15 +1,22 @@
-source 'https://rubygems.org'
+source "https://rubygems.org"
gemspec
-group :development do
- # Use local copy of simplecov in development when checked out, fetch from
git otherwise
- if File.directory?(File.dirname(__FILE__) + '/../simplecov')
- gem 'simplecov', :path => File.dirname(__FILE__) + '/../simplecov'
- else
- gem 'simplecov', :git => 'https://github.com/colszowka/simplecov'
- end
+gem "rake"
+
+# Use local copy of simplecov in development when checked out, fetch from git
otherwise
+if File.directory?(File.dirname(__FILE__) + "/../simplecov")
+ gem "simplecov", :path => File.dirname(__FILE__) + "/../simplecov"
+else
+ gem "simplecov", :git => "https://github.com/colszowka/simplecov"
+end
- gem 'guard-bundler'
- gem 'guard-rake'
+group :test do
+ gem "test-unit"
+end
+
+group :development do
+ gem "rubocop"
+ gem "sass"
+ gem "sprockets"
end
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/Guardfile new/Guardfile
--- old/Guardfile 2015-02-18 15:18:43.000000000 +0100
+++ new/Guardfile 2015-04-18 19:10:19.000000000 +0200
@@ -1,12 +1,12 @@
# A sample Guardfile
# More info at https://github.com/guard/guard#readme
-guard 'bundler' do
- watch('Gemfile')
+guard "bundler" do
+ watch("Gemfile")
# Uncomment next line if Gemfile contain `gemspec' command
# watch(/^.+\.gemspec/)
end
-guard 'rake', :task => 'assets:compile' do
+guard "rake", :task => "assets:compile" do
watch(%r{^assets\/})
-end
\ No newline at end of file
+end
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/Rakefile new/Rakefile
--- old/Rakefile 2015-02-18 15:18:43.000000000 +0100
+++ new/Rakefile 2015-04-18 19:10:19.000000000 +0200
@@ -1,4 +1,4 @@
-require 'bundler'
+require "bundler"
Bundler::GemHelper.install_tasks
# See https://github.com/colszowka/simplecov/issues/171
@@ -9,24 +9,33 @@
# Enforce proper permissions on each build
Rake::Task[:build].prerequisites.unshift :fix_permissions
-require 'rake/testtask'
+require "rake/testtask"
Rake::TestTask.new(:test) do |test|
- test.libs << 'lib' << 'test'
- test.pattern = 'test/**/test_*.rb'
+ test.libs << "lib" << "test"
+ test.pattern = "test/**/test_*.rb"
test.verbose = true
end
-task :default => :test
+begin
+ require "rubocop/rake_task"
+ RuboCop::RakeTask.new
+rescue LoadError
+ task :rubocop do
+ $stderr.puts "Rubocop is disabled"
+ end
+end
+
+task :default => [:test, :rubocop]
namespace :assets do
desc "Compiles all assets"
task :compile do
puts "Compiling assets"
- require 'sprockets'
+ require "sprockets"
assets = Sprockets::Environment.new
- assets.append_path 'assets/javascripts'
- assets.append_path 'assets/stylesheets'
- assets['application.js'].write_to('public/application.js')
- assets['application.css'].write_to('public/application.css')
+ assets.append_path "assets/javascripts"
+ assets.append_path "assets/stylesheets"
+ assets["application.js"].write_to("public/application.js")
+ assets["application.css"].write_to("public/application.css")
end
end
Files old/checksums.yaml.gz and new/checksums.yaml.gz differ
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/lib/simplecov-html/version.rb
new/lib/simplecov-html/version.rb
--- old/lib/simplecov-html/version.rb 2015-02-18 15:18:43.000000000 +0100
+++ new/lib/simplecov-html/version.rb 2015-04-18 19:10:19.000000000 +0200
@@ -1,7 +1,27 @@
module SimpleCov
module Formatter
class HTMLFormatter
- VERSION = "0.9.0"
+ VERSION = "0.10.0"
+
+ def VERSION.to_a
+ split(".").map(&:to_i)
+ end
+
+ def VERSION.major
+ to_a[0]
+ end
+
+ def VERSION.minor
+ to_a[1]
+ end
+
+ def VERSION.patch
+ to_a[2]
+ end
+
+ def VERSION.pre
+ to_a[3]
+ end
end
end
end
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/lib/simplecov-html.rb new/lib/simplecov-html.rb
--- old/lib/simplecov-html.rb 2015-02-18 15:18:43.000000000 +0100
+++ new/lib/simplecov-html.rb 2015-04-18 19:10:19.000000000 +0200
@@ -1,103 +1,110 @@
-require 'erb'
-require 'cgi'
-require 'fileutils'
-require 'digest/sha1'
-require 'time'
+require "erb"
+require "cgi"
+require "fileutils"
+require "digest/sha1"
+require "time"
# Ensure we are using a compatible version of SimpleCov
-if Gem::Version.new(SimpleCov::VERSION) < Gem::Version.new("0.9.0")
- raise RuntimeError, "The version of SimpleCov you are using is too old.
Please update with `gem install simplecov` or `bundle update simplecov`"
+major, minor, patch = SimpleCov::VERSION.scan(/\d+/).first(3).map(&:to_i)
+if major < 0 || minor < 9 || patch < 0
+ fail "The version of SimpleCov you are using is too old. "\
+ "Please update with `gem install simplecov` or `bundle update simplecov`"
end
-class SimpleCov::Formatter::HTMLFormatter
- def format(result)
- Dir[File.join(File.dirname(__FILE__), '../public/*')].each do |path|
- FileUtils.cp_r(path, asset_output_path)
+module SimpleCov
+ module Formatter
+ class HTMLFormatter
+ def format(result)
+ Dir[File.join(File.dirname(__FILE__), "../public/*")].each do |path|
+ FileUtils.cp_r(path, asset_output_path)
+ end
+
+ File.open(File.join(output_path, "index.html"), "wb") do |file|
+ file.puts template("layout").result(binding)
+ end
+ puts output_message(result)
+ end
+
+ def output_message(result)
+ "Coverage report generated for #{result.command_name} to
#{output_path}. #{result.covered_lines} / #{result.total_lines} LOC
(#{result.covered_percent.round(2)}%) covered."
+ end
+
+ private
+
+ # Returns the an erb instance for the template of given name
+ def template(name)
+ ERB.new(File.read(File.join(File.dirname(__FILE__), "../views/",
"#{name}.erb")))
+ end
+
+ def output_path
+ SimpleCov.coverage_path
+ end
+
+ def asset_output_path
+ return @asset_output_path if defined?(@asset_output_path) &&
@asset_output_path
+ @asset_output_path = File.join(output_path, "assets",
SimpleCov::Formatter::HTMLFormatter::VERSION)
+ FileUtils.mkdir_p(@asset_output_path)
+ @asset_output_path
+ end
+
+ def assets_path(name)
+ File.join("./assets", SimpleCov::Formatter::HTMLFormatter::VERSION,
name)
+ end
+
+ # Returns the html for the given source_file
+ def formatted_source_file(source_file)
+ template("source_file").result(binding)
+ end
+
+ # Returns a table containing the given source files
+ def formatted_file_list(title, source_files)
+ title_id = title.gsub(/^[^a-zA-Z]+/, "").gsub(/[^a-zA-Z0-9\-\_]/, "")
+ # Silence a warning by using the following variable to assign to
itself:
+ # "warning: possibly useless use of a variable in void context"
+ # The variable is used by ERB via binding.
+ title_id = title_id
+ template("file_list").result(binding)
+ end
+
+ def coverage_css_class(covered_percent)
+ if covered_percent > 90
+ "green"
+ elsif covered_percent > 80
+ "yellow"
+ else
+ "red"
+ end
+ end
+
+ def strength_css_class(covered_strength)
+ if covered_strength > 1
+ "green"
+ elsif covered_strength == 1
+ "yellow"
+ else
+ "red"
+ end
+ end
+
+ # Return a (kind of) unique id for the source file given. Uses SHA1 on
path for the id
+ def id(source_file)
+ Digest::SHA1.hexdigest(source_file.filename)
+ end
+
+ def timeago(time)
+ "<abbr class=\"timeago\"
title=\"#{time.iso8601}\">#{time.iso8601}</abbr>"
+ end
+
+ def shortened_filename(source_file)
+ source_file.filename.gsub(SimpleCov.root, ".").gsub(/^\.\//, "")
+ end
+
+ def link_to_source_file(source_file)
+ %(<a href="##{id source_file}" class="src_link"
title="#{shortened_filename source_file}">#{shortened_filename source_file}</a>)
+ end
end
-
- File.open(File.join(output_path, "index.html"), 'wb') do |file|
- file.puts template('layout').result(binding)
- end
- puts output_message(result)
- end
-
- def output_message(result)
- "Coverage report generated for #{result.command_name} to #{output_path}.
#{result.covered_lines} / #{result.total_lines} LOC
(#{result.covered_percent.round(2)}%) covered."
- end
-
- private
-
- # Returns the an erb instance for the template of given name
- def template(name)
- ERB.new(File.read(File.join(File.dirname(__FILE__), '../views/',
"#{name}.erb")))
- end
-
- def output_path
- SimpleCov.coverage_path
- end
-
- def asset_output_path
- return @asset_output_path if defined? @asset_output_path and
@asset_output_path
- @asset_output_path = File.join(output_path, 'assets',
SimpleCov::Formatter::HTMLFormatter::VERSION)
- FileUtils.mkdir_p(@asset_output_path)
- @asset_output_path
- end
-
- def assets_path(name)
- File.join('./assets', SimpleCov::Formatter::HTMLFormatter::VERSION, name)
- end
-
- # Returns the html for the given source_file
- def formatted_source_file(source_file)
- template('source_file').result(binding)
- end
-
- # Returns a table containing the given source files
- def formatted_file_list(title, source_files)
- # Silence a warning by using the following variable to assign to itself:
- # "warning: possibly useless use of a variable in void context"
- # The variable is used by ERB via binding.
- title_id = title_id = title.gsub(/^[^a-zA-Z]+/,
'').gsub(/[^a-zA-Z0-9\-\_]/, '')
- template('file_list').result(binding)
- end
-
- def coverage_css_class(covered_percent)
- if covered_percent > 90
- 'green'
- elsif covered_percent > 80
- 'yellow'
- else
- 'red'
- end
- end
-
- def strength_css_class(covered_strength)
- if covered_strength > 1
- 'green'
- elsif covered_strength == 1
- 'yellow'
- else
- 'red'
- end
- end
-
- # Return a (kind of) unique id for the source file given. Uses SHA1 on path
for the id
- def id(source_file)
- Digest::SHA1.hexdigest(source_file.filename)
- end
-
- def timeago(time)
- "<abbr class=\"timeago\" title=\"#{time.iso8601}\">#{time.iso8601}</abbr>"
- end
-
- def shortened_filename(source_file)
- source_file.filename.gsub(SimpleCov.root, '.').gsub(/^\.\//, '')
- end
-
- def link_to_source_file(source_file)
- %Q(<a href="##{id source_file}" class="src_link"
title="#{shortened_filename source_file}">#{shortened_filename source_file}</a>)
end
end
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__)))
-require 'simplecov-html/version'
+require "simplecov-html/version"
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/metadata new/metadata
--- old/metadata 2015-02-18 15:18:43.000000000 +0100
+++ new/metadata 2015-04-18 19:10:19.000000000 +0200
@@ -1,57 +1,29 @@
--- !ruby/object:Gem::Specification
name: simplecov-html
version: !ruby/object:Gem::Version
- version: 0.9.0
+ version: 0.10.0
platform: ruby
authors:
- Christoph Olszowka
autorequire:
bindir: bin
cert_chain: []
-date: 2015-02-18 00:00:00.000000000 Z
+date: 2015-04-18 00:00:00.000000000 Z
dependencies:
- !ruby/object:Gem::Dependency
- name: rake
+ name: bundler
requirement: !ruby/object:Gem::Requirement
requirements:
- - - ">="
+ - - "~>"
- !ruby/object:Gem::Version
- version: '0'
+ version: '1.9'
type: :development
prerelease: false
version_requirements: !ruby/object:Gem::Requirement
requirements:
- - - ">="
+ - - "~>"
- !ruby/object:Gem::Version
- version: '0'
-- !ruby/object:Gem::Dependency
- name: sprockets
- requirement: !ruby/object:Gem::Requirement
- requirements:
- - - ">="
- - !ruby/object:Gem::Version
- version: '0'
- type: :development
- prerelease: false
- version_requirements: !ruby/object:Gem::Requirement
- requirements:
- - - ">="
- - !ruby/object:Gem::Version
- version: '0'
-- !ruby/object:Gem::Dependency
- name: sass
- requirement: !ruby/object:Gem::Requirement
- requirements:
- - - ">="
- - !ruby/object:Gem::Version
- version: '0'
- type: :development
- prerelease: false
- version_requirements: !ruby/object:Gem::Requirement
- requirements:
- - - ">="
- - !ruby/object:Gem::Version
- version: '0'
+ version: '1.9'
description: Default HTML formatter for SimpleCov code coverage tool for ruby
1.9+
email:
- christoph at olszowka de
@@ -61,6 +33,8 @@
files:
- ".document"
- ".gitignore"
+- ".rubocop.yml"
+- ".travis.yml"
- Gemfile
- Guardfile
- LICENSE
@@ -123,17 +97,18 @@
requirements:
- - ">="
- !ruby/object:Gem::Version
- version: '0'
+ version: 1.8.7
required_rubygems_version: !ruby/object:Gem::Requirement
requirements:
- - ">="
- !ruby/object:Gem::Version
version: '0'
requirements: []
-rubyforge_project: simplecov-html
+rubyforge_project:
rubygems_version: 2.4.5
signing_key:
specification_version: 4
summary: Default HTML formatter for SimpleCov code coverage tool for ruby 1.9+
-test_files: []
-has_rdoc:
+test_files:
+- test/helper.rb
+- test/test_simple_cov-html.rb
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/simplecov-html.gemspec new/simplecov-html.gemspec
--- old/simplecov-html.gemspec 2015-02-18 15:18:43.000000000 +0100
+++ new/simplecov-html.gemspec 2015-04-18 19:10:19.000000000 +0200
@@ -1,26 +1,22 @@
-# -*- encoding: utf-8 -*-
-$:.push File.expand_path("../lib", __FILE__)
-require 'simplecov-html/version'
+$LOAD_PATH.push File.expand_path("../lib", __FILE__)
+require "simplecov-html/version"
-Gem::Specification.new do |s|
- s.name = "simplecov-html"
- s.version = SimpleCov::Formatter::HTMLFormatter::VERSION
- s.platform = Gem::Platform::RUBY
- s.authors = ["Christoph Olszowka"]
- s.email = ["christoph at olszowka de"]
- s.homepage = "https://github.com/colszowka/simplecov-html"
- s.summary = %Q{Default HTML formatter for SimpleCov code coverage tool
for ruby 1.9+}
- s.description = %Q{Default HTML formatter for SimpleCov code coverage tool
for ruby 1.9+}
- s.license = "MIT"
+Gem::Specification.new do |gem|
+ gem.name = "simplecov-html"
+ gem.version = SimpleCov::Formatter::HTMLFormatter::VERSION
+ gem.platform = Gem::Platform::RUBY
+ gem.authors = ["Christoph Olszowka"]
+ gem.email = ["christoph at olszowka de"]
+ gem.homepage = "https://github.com/colszowka/simplecov-html"
+ gem.description = %(Default HTML formatter for SimpleCov code coverage tool
for ruby 1.9+)
+ gem.summary = gem.description
+ gem.license = "MIT"
- s.rubyforge_project = "simplecov-html"
+ gem.required_ruby_version = ">= 1.8.7"
+ gem.add_development_dependency "bundler", "~> 1.9"
- s.add_development_dependency 'rake'
- s.add_development_dependency 'sprockets'
- s.add_development_dependency 'sass'
-
- s.files = `git ls-files`.split("\n")
- s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
- s.executables = `git ls-files -- bin/*`.split("\n").map{ |f|
File.basename(f) }
- s.require_paths = ["lib"]
+ gem.files = `git ls-files`.split("\n")
+ gem.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
+ gem.executables = `git ls-files -- bin/*`.split("\n").map { |f|
File.basename(f) }
+ gem.require_paths = ["lib"]
end
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/test/helper.rb new/test/helper.rb
--- old/test/helper.rb 2015-02-18 15:18:43.000000000 +0100
+++ new/test/helper.rb 2015-04-18 19:10:19.000000000 +0200
@@ -1,9 +1,4 @@
-require 'rubygems'
-require 'bundler/setup'
-require 'simplecov'
-require 'simplecov-html'
-
-require 'test/unit'
-
-class Test::Unit::TestCase
-end
+require "bundler/setup"
+require "simplecov"
+require "simplecov-html"
+require "test/unit"
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/test/test_simple_cov-html.rb
new/test/test_simple_cov-html.rb
--- old/test/test_simple_cov-html.rb 2015-02-18 15:18:43.000000000 +0100
+++ new/test/test_simple_cov-html.rb 2015-04-18 19:10:19.000000000 +0200
@@ -1,4 +1,4 @@
-require 'helper'
+require "helper"
class TestSimpleCovHtml < Test::Unit::TestCase
def test_defined