seatbelt 0.5.0 → 2.0.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 75abded8d89e147f457755b7fe7be161a0cb195e
4
- data.tar.gz: 899c5958c9befb0313f5aade6da73c82fd321bf1
2
+ SHA256:
3
+ metadata.gz: 8823d18a4d3a72fb1698db76f55ec67028035fcc5d7928263c8ed777b3101a72
4
+ data.tar.gz: 3d751c9f02bc549675049f233dfed047d340f6273afbce09fd83f2ec354fc01e
5
5
  SHA512:
6
- metadata.gz: 30dfbd2f4392fc3e7372f12197120dbe905c090ca9019b67aab5cb868c02a0dd2145d3a8e8333dca3c3c1ceea90f83253c794da1432ff613766821036804fab9
7
- data.tar.gz: 77ae5490f7ca72ba12edea4d508b3b8589687e1b32232649a7034c1d17aec69c11fe34b948e9322db9316971b71708eff84647c33d2f985208a4b0e801a0eaf8
6
+ metadata.gz: 8f5606bb8f6f6d39546f281d939ed16f617530624eb27128cc54964776c3d05f27a871402e58f88edd168786fce072f043c9b04317130aec761e81749a9c7e01
7
+ data.tar.gz: f4e35d262e1c4be956758aae497b1fa2db8ede185d830f332b9e9395c5bc32884a14db427567075d6dedd773a61b29269455d6e456e528eb3e4eaf2dc1be881c
data/.travis.yml CHANGED
@@ -1,42 +1,28 @@
1
1
  language: ruby
2
2
 
3
3
  rvm:
4
- - 1.9.3
5
- - 2.0.0
6
- - 2.1.0
7
4
  - 2.2.3
8
5
  # - jruby-18mode # JRuby in 1.8 mode
9
6
  - jruby-19mode # JRuby in 1.9 mode
10
7
  - rbx-2.2.1
11
8
 
12
9
  gemfile:
13
- - gemfiles/rails_3.2.gemfile
14
10
  - gemfiles/rails_4.0.gemfile
15
11
  - gemfiles/rails_4.1.gemfile
16
12
  - gemfiles/rails_4.2.gemfile
13
+ - gemfiles/rails_5.0.gemfile
17
14
 
18
15
  matrix:
19
16
  allow_failures:
20
17
  - rvm: rbx-2.2.1
21
18
  - rvm: jruby-19mode
22
- - gemfile: gemfiles/rails_3.2.gemfile
23
19
  exclude:
24
- - rvm: 1.9.3
25
- gemfile: gemfiles/rails_4.0.gemfile
26
- - rvm: 1.9.3
27
- gemfile: gemfiles/rails_4.1.gemfile
28
- - rvm: 1.9.3
29
- gemfile: gemfiles/rails_4.2.gemfile
30
- - rvm: jruby-19mode
31
- gemfile: gemfiles/rails_3.2.gemfile
32
20
  - rvm: jruby-19mode
33
21
  gemfile: gemfiles/rails_4.0.gemfile
34
22
  - rvm: jruby-19mode
35
23
  gemfile: gemfiles/rails_4.1.gemfile
36
24
  - rvm: jruby-19mode
37
25
  gemfile: gemfiles/rails_4.2.gemfile
38
- - rvm: rbx-2.2.1
39
- gemfile: gemfiles/rails_3.2.gemfile
40
26
  - rvm: rbx-2.2.1
41
27
  gemfile: gemfiles/rails_4.0.gemfile
42
28
  - rvm: rbx-2.2.1
data/CHANGELOG.md CHANGED
@@ -1,5 +1,15 @@
1
1
  # CHANGELOG
2
2
 
3
+ ## 2.0.0
4
+
5
+ * **breaking change**: drop support for test-unit and older versions of minitest
6
+ * support Rails `>= 6.0`
7
+
8
+ ## 1.0.0
9
+
10
+ * support Rails `5.0`
11
+ * cancel support for Ruby < `2.2`
12
+
3
13
  ## 0.5.0
4
14
 
5
15
  * fix issue with encoding for latest _mail_ gem version (`2.6.4`)
data/Gemfile CHANGED
@@ -1,7 +1,7 @@
1
1
  source "https://rubygems.org"
2
2
 
3
- gem 'rubysl', :platforms => :rbx
4
- gem "jruby-openssl", :platforms => :jruby
5
- gem "rails", '~> 4'
3
+ # gem 'rubysl', :platforms => :rbx
4
+ # gem "jruby-openssl", :platforms => :jruby
5
+ gem "rails", '~> 6'
6
6
 
7
7
  gemspec
data/README.md CHANGED
@@ -4,10 +4,7 @@
4
4
  [![Code Climate](https://codeclimate.com/github/alto/seatbelt/badges/gpa.svg)](https://codeclimate.com/github/alto/seatbelt)
5
5
 
6
6
  Seatbelt provides a number of custom, high-level assertions for Ruby and Ruby on Rails. The assertions work well with Ruby
7
- [1.9.3](http://ruby-doc.org/core-1.9.3/),
8
- [2.0.0](http://ruby-doc.org/core-2.0.0/),
9
- [2.0.0](http://ruby-doc.org/core-2.1.0/) and
10
- [2.1.0](http://ruby-doc.org/core-2.2.0/).
7
+ [2.2.3](http://ruby-doc.org/core-2.2.3/).
11
8
 
12
9
  ## Installation
13
10
 
@@ -0,0 +1,7 @@
1
+ source "https://rubygems.org"
2
+
3
+ gem 'rubysl', platforms: :rbx
4
+ gem "jruby-openssl", platforms: :jruby
5
+ gem "rails", "~> 5"
6
+
7
+ gemspec :path => "../"
@@ -1,3 +1,3 @@
1
1
  module Seatbelt
2
- VERSION = "0.5.0"
2
+ VERSION = "2.0.0"
3
3
  end
data/lib/seatbelt.rb CHANGED
@@ -12,17 +12,9 @@ if defined?(Test)
12
12
  end
13
13
 
14
14
  if defined?(Minitest)
15
- if Minitest::Unit::VERSION[0].to_i < 5
16
- class Minitest::Unit::TestCase
17
- include Seatbelt::AssertContentType if defined?(ActionController)
18
- include AssertJson
19
- include Seatbelt::AssertMail if defined?(ActionMailer)
20
- end
21
- else
22
- class Minitest::Test
23
- include Seatbelt::AssertContentType if defined?(ActionController)
24
- include AssertJson
25
- include Seatbelt::AssertMail if defined?(ActionMailer)
26
- end
15
+ class Minitest::Test
16
+ include Seatbelt::AssertContentType if defined?(ActionController)
17
+ include AssertJson
18
+ include Seatbelt::AssertMail if defined?(ActionMailer)
27
19
  end
28
20
  end
data/seatbelt.gemspec CHANGED
@@ -6,7 +6,7 @@ Gem::Specification.new do |gem|
6
6
  gem.email = ["boettger@mt7.de"]
7
7
  gem.summary = %q{Provide custom assertions for Ruby and Ruby on Rails}
8
8
  gem.description = %q{Goal is to provide custom, high quality and high level assertions for Ruby and Ruby on Rails}
9
- gem.homepage = "http://github.com/alto/seatbelt"
9
+ gem.homepage = "https://github.com/alto/seatbelt"
10
10
  gem.licenses = ["MIT"]
11
11
 
12
12
  gem.files = `git ls-files`.split($\)
@@ -7,7 +7,7 @@ class Mailer < ActionMailer::Base
7
7
  :cc => 'cc@seatbelt.co.nz',
8
8
  :bcc => 'bcc@seatbelt.co.nz',
9
9
  :subject => 'mail subject'}.merge(options)) do |format|
10
- format.text { render :text => options[:body] || 'mail body text' }
10
+ format.text { render :plain => options[:body] || 'mail body text' }
11
11
  end
12
12
  end
13
13
 
data/test/test_helper.rb CHANGED
@@ -2,7 +2,7 @@ require 'maxitest/autorun'
2
2
  require 'active_support'
3
3
  require 'action_mailer'
4
4
  require 'json'
5
- require 'mocha/setup'
5
+ require 'mocha/minitest'
6
6
 
7
7
  $:.push File.expand_path("../../lib", __FILE__)
8
8
  require File.dirname(__FILE__) + '/../lib/seatbelt.rb'
@@ -15,10 +15,6 @@ Dir[File.dirname(__FILE__) + "/helpers/**/*.rb"].sort.each { |f| require File.ex
15
15
 
16
16
  class Minitest::Test
17
17
  def assert_assertion_fails(&block)
18
- if Object.const_defined?(:MiniTest)
19
- assert_raises(MiniTest::Assertion, &block)
20
- else
21
- assert_raises(Test::Unit::AssertionFailedError, &block)
22
- end
18
+ assert_raises(::Minitest::Assertion, &block)
23
19
  end
24
20
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: seatbelt
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
4
+ version: 2.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Thorsten Böttger
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-07-13 00:00:00.000000000 Z
11
+ date: 2023-08-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: assert_json
@@ -113,6 +113,7 @@ files:
113
113
  - gemfiles/rails_4.0.gemfile
114
114
  - gemfiles/rails_4.1.gemfile
115
115
  - gemfiles/rails_4.2.gemfile
116
+ - gemfiles/rails_5.0.gemfile
116
117
  - lib/seatbelt.rb
117
118
  - lib/seatbelt/assert_content_type.rb
118
119
  - lib/seatbelt/assert_mail.rb
@@ -124,11 +125,11 @@ files:
124
125
  - test/assert_mail_test.rb
125
126
  - test/helpers/mailer.rb
126
127
  - test/test_helper.rb
127
- homepage: http://github.com/alto/seatbelt
128
+ homepage: https://github.com/alto/seatbelt
128
129
  licenses:
129
130
  - MIT
130
131
  metadata: {}
131
- post_install_message:
132
+ post_install_message:
132
133
  rdoc_options: []
133
134
  require_paths:
134
135
  - lib
@@ -143,9 +144,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
143
144
  - !ruby/object:Gem::Version
144
145
  version: '0'
145
146
  requirements: []
146
- rubyforge_project:
147
- rubygems_version: 2.4.5
148
- signing_key:
147
+ rubygems_version: 3.3.26
148
+ signing_key:
149
149
  specification_version: 4
150
150
  summary: Provide custom assertions for Ruby and Ruby on Rails
151
151
  test_files: