simple_assertions 0.6.1 → 0.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 89fe8e74e2562b356bd24226ddcc34b5c17983e3
4
- data.tar.gz: fa16be366073492209a255d8376d834a09ed509a
3
+ metadata.gz: 37c55aaed9147d7910c650aaf755cb7c94f0e512
4
+ data.tar.gz: 198548d64a02a14fb250b811c5bd0c60674f1ad4
5
5
  SHA512:
6
- metadata.gz: 0346b129908e86f709b38684a51a928e79504db90dbdbe16a4a5912a6e235b6c2806aa2551c205d56364addbb356ce8fe657cccfbcf6fed3375638e636d8696e
7
- data.tar.gz: 54be640bcbe260811601c0f7a643c86e287671f6e0445f4cdb9111e5ec04c8739e47d0403fdb6b45d9b995afd2ca17cdcf96b8ad802f795737f86a625e16567f
6
+ metadata.gz: ee5a60231674feb5d2bfadcc12727532db5ad1279c0a0ecebb2e5ae3a061370529d5495df909e335051e9176592fc4c170fb42d3c1907ca6e9d2b591bb96ff61
7
+ data.tar.gz: b1fcfd3f85ad2b1de1016eb0d4d76ee5af0432caf559209db6c1a8aaa179d45dce781f943bf2ab421673bd667e4446b6dea1bd92195a35037aef677e3ba282d5
data/.gitignore CHANGED
@@ -3,3 +3,4 @@
3
3
  Gemfile.lock
4
4
  pkg/*
5
5
  rdoc
6
+ coverage
@@ -1,10 +1,17 @@
1
- # This configuration was generated by `rubocop --auto-gen-config`
2
- # on 2017-01-09 15:27:00 +0100 using RuboCop version 0.29.1.
1
+ # This configuration was generated by
2
+ # `rubocop --auto-gen-config`
3
+ # on 2017-01-09 16:01:51 +0100 using RuboCop version 0.46.0.
3
4
  # The point is for the user to remove these configuration records
4
5
  # one by one as the offenses are removed from the code base.
5
6
  # Note that changes in the inspected code, or installation of new
6
7
  # versions of RuboCop, may require this file to be generated again.
7
8
 
9
+ # Offense count: 1
10
+ # Cop supports --auto-correct.
11
+ Lint/UnifiedInteger:
12
+ Exclude:
13
+ - 'lib/simple_assertions/assert_errors_on.rb'
14
+
8
15
  # Offense count: 1
9
16
  Metrics/AbcSize:
10
17
  Max: 45
@@ -14,7 +21,8 @@ Metrics/CyclomaticComplexity:
14
21
  Max: 9
15
22
 
16
23
  # Offense count: 16
17
- # Configuration parameters: AllowURI, URISchemes.
24
+ # Configuration parameters: AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, IgnoredPatterns.
25
+ # URISchemes: http, https
18
26
  Metrics/LineLength:
19
27
  Max: 126
20
28
 
@@ -22,3 +30,11 @@ Metrics/LineLength:
22
30
  # Configuration parameters: CountComments.
23
31
  Metrics/MethodLength:
24
32
  Max: 32
33
+
34
+ # Offense count: 1
35
+ # Cop supports --auto-correct.
36
+ # Configuration parameters: EnforcedStyle, SupportedStyles.
37
+ # SupportedStyles: only_raise, only_fail, semantic
38
+ Style/SignalException:
39
+ Exclude:
40
+ - 'spec/simple_assertions/assert_raises_spec.rb'
@@ -3,11 +3,16 @@ sudo: false
3
3
  cache: bundler
4
4
  bundler_args: --without tools
5
5
  rvm:
6
- - 2.0
7
- - 2.1
6
+ - 2.4.1
7
+ - 2.3.4
8
8
  - 2.2
9
+ - 2.1
10
+ - 2.0
11
+ - jruby-9.1.8.0
9
12
  - ruby-head
10
13
  - jruby-head
14
+ after_success:
15
+ - '[ "${TRAVIS_JOB_NUMBER#*.}" = "1" ] && [ "$TRAVIS_BRANCH" = "master" ] && bundle exec codeclimate-test-reporter'
11
16
  env:
12
17
  global:
13
18
  - CODECLIMATE_REPO_TOKEN=1b43f2bc46bf75b5ae0a4e0c956990346599bf84178fabec28f35c899947093b
@@ -15,7 +20,9 @@ env:
15
20
  matrix:
16
21
  fast_finish: true
17
22
  allow_failures:
23
+ - rvm: ruby-head
18
24
  - rvm: jruby-head
25
+ - rvm: jruby-9.1.5.0
19
26
  notifications:
20
27
  webhooks:
21
28
  urls:
data/Gemfile CHANGED
@@ -3,8 +3,9 @@ source "http://rubygems.org"
3
3
  # Specify your gem's dependencies in test-unit-assertions.gemspec
4
4
  gemspec
5
5
 
6
- if ENV["CODECLIMATE_REPO_TOKEN"]
7
- gem "codeclimate-test-reporter", group: :test, require: nil
6
+ group :test do
7
+ gem "codeclimate-test-reporter", "~> 1.0.0"
8
+ gem "simplecov"
8
9
  end
9
10
 
10
11
  group :tools do
data/README.md CHANGED
@@ -45,6 +45,12 @@ end
45
45
 
46
46
  Note that only ruby version >= 2.0 is supported.
47
47
 
48
+ ## Release
49
+
50
+ edit lib/simple_assertions/version.rb
51
+ git commit -am "Release X.Y.Z"
52
+ rake release
53
+
48
54
  ## Contributing
49
55
 
50
56
  1. [Fork it](https://github.com/neopoly/simple_assertions/fork)
@@ -35,7 +35,7 @@ module SimpleAssertions
35
35
  errors = Array(object.errors[field])
36
36
 
37
37
  case pattern
38
- when Fixnum
38
+ when Integer
39
39
  assert_equal pattern, errors.size,
40
40
  "#{pattern} error(s) expected for #{object.class}.#{field} but got #{errors.inspect}."
41
41
  when Regexp
@@ -1,3 +1,3 @@
1
1
  module SimpleAssertions
2
- VERSION = "0.6.1"
2
+ VERSION = "0.7.0".freeze
3
3
  end
@@ -22,5 +22,5 @@ Gem::Specification.new do |s|
22
22
  s.add_runtime_dependency "rdoc"
23
23
 
24
24
  s.add_development_dependency "minitest", "~> 5.5.1"
25
- s.add_development_dependency "activemodel"
25
+ s.add_development_dependency "activemodel", "~> 4.2.1"
26
26
  end
@@ -1,6 +1,6 @@
1
1
  if ENV["CODECLIMATE_REPO_TOKEN"]
2
- require "codeclimate-test-reporter"
3
- CodeClimate::TestReporter.start
2
+ require "simplecov"
3
+ SimpleCov.start
4
4
  end
5
5
 
6
6
  require "minitest/autorun"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: simple_assertions
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.1
4
+ version: 0.7.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Peter Suschlik
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-01-09 00:00:00.000000000 Z
11
+ date: 2017-04-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake
@@ -56,16 +56,16 @@ dependencies:
56
56
  name: activemodel
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - ">="
59
+ - - "~>"
60
60
  - !ruby/object:Gem::Version
61
- version: '0'
61
+ version: 4.2.1
62
62
  type: :development
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
- - - ">="
66
+ - - "~>"
67
67
  - !ruby/object:Gem::Version
68
- version: '0'
68
+ version: 4.2.1
69
69
  description: A collection of useful assertions.
70
70
  email:
71
71
  - ps@neopoly.de
@@ -109,7 +109,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
109
109
  version: '0'
110
110
  requirements: []
111
111
  rubyforge_project:
112
- rubygems_version: 2.5.2
112
+ rubygems_version: 2.6.11
113
113
  signing_key:
114
114
  specification_version: 4
115
115
  summary: A collection of useful assertions.