accept_values_for 0.7.4 → 0.9.2

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: cda22ace49d9dbacf00ae501bc37d40caa8cf397
4
- data.tar.gz: 3b4f566d7b9e100af716f454289d44ef5fabfe24
2
+ SHA256:
3
+ metadata.gz: fca3117b3183fe7afaaf7b453d836121971a75647708196a09f5b80a39a8fe32
4
+ data.tar.gz: aade7200045bec438d115d3bdb9c3bc490bc4a3bd69a4227dd1e50b0afea09c3
5
5
  SHA512:
6
- metadata.gz: 5abab1db6f74b191d7433f043b6de64c351f1e13de969cd9abdd612ed1b012f28399e73073b54a995d28d1eb893f3c4cedccdc1a5cd9591c5a0ba7ce4d890ebc
7
- data.tar.gz: 7ddf19cf1d37f05ba8b61da3b3e1ed2d3de8f0932049e1f28ef3610fb5eb47f3a781f11baa7aa3861c51a3b3682a5a40f2389f22aa6bd84a5e011fbc083d14d8
6
+ metadata.gz: 852fa26e15bf3bbb929519172638191a0b81ef531e0bbcca62122f9c009628e60c03d56b0cc66cf553a093bfc1a087853346f7f98839ff7cae4fdbcb8c9740be
7
+ data.tar.gz: 542ba60849de1e3746d40483b35013b04597614b2cae5e9eb342d9686cf36832b1ddcefef3891caf058af87416faf305ec0abaa1f1e11dbe63ffe21dc584230f
@@ -0,0 +1,29 @@
1
+ name: CI
2
+ on: [push, pull_request]
3
+ jobs:
4
+ test:
5
+ strategy:
6
+ fail-fast: false
7
+ matrix:
8
+ ruby: [2.6, 2.7, 3.0]
9
+ gemfile:
10
+ - activemodel_5_2
11
+ - activemodel_6_0
12
+ - activemodel_6_1
13
+ - activemodel_7_0
14
+ exclude:
15
+ - ruby: 2.6
16
+ gemfile: activemodel_7_0
17
+ - ruby: 3.0
18
+ gemfile: activemodel_5_2
19
+ name: Ruby ${{ matrix.ruby }}, ${{ matrix.gemfile }}
20
+ runs-on: ubuntu-latest
21
+ env:
22
+ BUNDLE_GEMFILE: gemfiles/${{ matrix.gemfile }}.gemfile
23
+ steps:
24
+ - uses: actions/checkout@v2
25
+ - uses: ruby/setup-ruby@v1
26
+ with:
27
+ ruby-version: ${{ matrix.ruby }}
28
+ bundler-cache: true
29
+ - run: bundle exec rake
data/CHANGELOG.md CHANGED
@@ -1,4 +1,8 @@
1
- # 0.6.0 / Unreleased
1
+ # 0.9.1
2
+
3
+ * Rails 7.0 support
4
+
5
+ # 0.6.0
2
6
 
3
7
  * [ENHANCEMENT] Deprecate Rubies 1.8.7 and 1.9.2
4
8
  * [ENHANCEMENT] Remove `discover` matcher
data/Gemfile CHANGED
@@ -3,7 +3,9 @@ source "https://rubygems.org"
3
3
  gemspec
4
4
 
5
5
  group :test do
6
- gem "activerecord", "~> 4.0", :require => "active_record"
7
- gem "rspec", "~> 3.0"
8
- gem "sqlite3", "~> 1.3"
6
+ gem "activerecord", "~> 7.0", require: "active_record"
7
+ gem "rspec", "~> 3.10"
8
+ gem "sqlite3", "~> 1.4"
9
+ gem "bump", "~> 0.10.0"
9
10
  end
11
+
data/README.md CHANGED
@@ -7,7 +7,7 @@ be accepted by your model and which should not.
7
7
  Read the [original blog post](http://gusiev.com/2010/06/ultimate-rspec-matcher-to-test-validation/).
8
8
 
9
9
  [![Gem Version](https://badge.fury.io/rb/accept_values_for.png)](http://badge.fury.io/rb/accept_values_for)
10
- [![Build Status](https://travis-ci.org/bogdan/accept_values_for.png?branch=master)](https://travis-ci.org/bogdan/accept_values_for)
10
+ [![Build Status](https://github.com/bogdan/accept_values_for/workflows/CI/badge.svg?branch=master)](https://github.com/bogdan/accept_values_for/actions)
11
11
  [![Code Climate](https://codeclimate.com/github/bogdan/accept_values_for.png)](https://codeclimate.com/github/bogdan/accept_values_for)
12
12
 
13
13
  ## Usage
@@ -25,8 +25,8 @@ end
25
25
 
26
26
  ## Dependencies
27
27
 
28
- * Active Model (4 or 5)
29
- * RSpec (2 or 3)
28
+ * Active Model (5, 6, 7)
29
+ * RSpec (3)
30
30
 
31
31
  ## Installation
32
32
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |spec|
4
4
  spec.name = "accept_values_for"
5
- spec.version = "0.7.4"
5
+ spec.version = "0.9.2"
6
6
 
7
7
  spec.author = "Bogdan Gusiev"
8
8
  spec.email = "agresso@gmail.com"
@@ -18,9 +18,9 @@ Gem::Specification.new do |spec|
18
18
  spec.files = `git ls-files -z`.split("\x0")
19
19
  spec.test_files = spec.files.grep(/^spec/)
20
20
 
21
- spec.add_dependency "activemodel", ">= 4.2", "< 5.2"
22
- spec.add_dependency "rspec", ">= 2.0", "< 4.0"
21
+ spec.add_dependency "activemodel", ">= 5.0", "< 7.1"
22
+ spec.add_dependency "rspec", ">= 3.0", "< 4.0"
23
23
 
24
- spec.add_development_dependency "bundler", "~> 1.5"
25
- spec.add_development_dependency "rake", "~> 10.1"
24
+ spec.add_development_dependency "bundler", "~> 2.2"
25
+ spec.add_development_dependency "rake", "~> 12.3"
26
26
  end
@@ -0,0 +1,11 @@
1
+ source "https://rubygems.org"
2
+
3
+ gemspec path: ".."
4
+
5
+ gem "activemodel", "~> 5.2.0"
6
+
7
+ group :test do
8
+ gem "activerecord", "~> 5.2.0", require: "active_record"
9
+ gem "rspec", "~> 3.8"
10
+ gem "sqlite3", "~> 1.4"
11
+ end
@@ -0,0 +1,11 @@
1
+ source "https://rubygems.org"
2
+
3
+ gemspec path: ".."
4
+
5
+ gem "activemodel", "~> 6.0.0"
6
+
7
+ group :test do
8
+ gem "activerecord", "~> 6.0.0", require: "active_record"
9
+ gem "rspec", "~> 3.8"
10
+ gem "sqlite3", "~> 1.4"
11
+ end
@@ -0,0 +1,11 @@
1
+ source "https://rubygems.org"
2
+
3
+ gemspec path: ".."
4
+
5
+ gem "activemodel", "~> 6.1.0"
6
+
7
+ group :test do
8
+ gem "activerecord", "~> 6.1.0", require: "active_record"
9
+ gem "rspec", "~> 3.10"
10
+ gem "sqlite3", "~> 1.4"
11
+ end
@@ -0,0 +1,11 @@
1
+ source "https://rubygems.org"
2
+
3
+ gemspec path: ".."
4
+
5
+ gem "activemodel", "~> 7.0.0"
6
+
7
+ group :test do
8
+ gem "activerecord", "~> 7.0.0", require: "active_record"
9
+ gem "rspec", "~> 3.10"
10
+ gem "sqlite3", "~> 1.4"
11
+ end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: accept_values_for
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.4
4
+ version: 0.9.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Bogdan Gusiev
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-05-24 00:00:00.000000000 Z
11
+ date: 2021-12-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activemodel
@@ -16,27 +16,27 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: '4.2'
19
+ version: '5.0'
20
20
  - - "<"
21
21
  - !ruby/object:Gem::Version
22
- version: '5.2'
22
+ version: '7.1'
23
23
  type: :runtime
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
26
26
  requirements:
27
27
  - - ">="
28
28
  - !ruby/object:Gem::Version
29
- version: '4.2'
29
+ version: '5.0'
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
- version: '5.2'
32
+ version: '7.1'
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: rspec
35
35
  requirement: !ruby/object:Gem::Requirement
36
36
  requirements:
37
37
  - - ">="
38
38
  - !ruby/object:Gem::Version
39
- version: '2.0'
39
+ version: '3.0'
40
40
  - - "<"
41
41
  - !ruby/object:Gem::Version
42
42
  version: '4.0'
@@ -46,7 +46,7 @@ dependencies:
46
46
  requirements:
47
47
  - - ">="
48
48
  - !ruby/object:Gem::Version
49
- version: '2.0'
49
+ version: '3.0'
50
50
  - - "<"
51
51
  - !ruby/object:Gem::Version
52
52
  version: '4.0'
@@ -56,28 +56,28 @@ dependencies:
56
56
  requirements:
57
57
  - - "~>"
58
58
  - !ruby/object:Gem::Version
59
- version: '1.5'
59
+ version: '2.2'
60
60
  type: :development
61
61
  prerelease: false
62
62
  version_requirements: !ruby/object:Gem::Requirement
63
63
  requirements:
64
64
  - - "~>"
65
65
  - !ruby/object:Gem::Version
66
- version: '1.5'
66
+ version: '2.2'
67
67
  - !ruby/object:Gem::Dependency
68
68
  name: rake
69
69
  requirement: !ruby/object:Gem::Requirement
70
70
  requirements:
71
71
  - - "~>"
72
72
  - !ruby/object:Gem::Version
73
- version: '10.1'
73
+ version: '12.3'
74
74
  type: :development
75
75
  prerelease: false
76
76
  version_requirements: !ruby/object:Gem::Requirement
77
77
  requirements:
78
78
  - - "~>"
79
79
  - !ruby/object:Gem::Version
80
- version: '10.1'
80
+ version: '12.3'
81
81
  description: Writing specs for complex validations is annoying. AcceptValuesFor makes
82
82
  iteasy to test your validations with real world values, asserting which valuesshould
83
83
  be accepted by your model and which should not.
@@ -86,17 +86,18 @@ executables: []
86
86
  extensions: []
87
87
  extra_rdoc_files: []
88
88
  files:
89
+ - ".github/workflows/ci.yml"
89
90
  - ".gitignore"
90
- - ".travis.yml"
91
91
  - CHANGELOG.md
92
92
  - Gemfile
93
93
  - LICENSE.txt
94
94
  - README.md
95
95
  - Rakefile
96
96
  - accept_values_for.gemspec
97
- - gemfiles/activemodel_4_2.gemfile
98
- - gemfiles/activemodel_5_0.gemfile
99
- - gemfiles/activemodel_5_1.gemfile
97
+ - gemfiles/activemodel_5_2.gemfile
98
+ - gemfiles/activemodel_6_0.gemfile
99
+ - gemfiles/activemodel_6_1.gemfile
100
+ - gemfiles/activemodel_7_0.gemfile
100
101
  - lib/accept_values_for.rb
101
102
  - lib/accept_values_for/helpers.rb
102
103
  - lib/accept_values_for/matcher.rb
@@ -106,7 +107,7 @@ homepage: https://github.com/bogdan/accept_values_for
106
107
  licenses:
107
108
  - MIT
108
109
  metadata: {}
109
- post_install_message:
110
+ post_install_message:
110
111
  rdoc_options: []
111
112
  require_paths:
112
113
  - lib
@@ -121,9 +122,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
121
122
  - !ruby/object:Gem::Version
122
123
  version: '0'
123
124
  requirements: []
124
- rubyforge_project:
125
- rubygems_version: 2.6.7
126
- signing_key:
125
+ rubygems_version: 3.2.22
126
+ signing_key:
127
127
  specification_version: 4
128
128
  summary: Test complex Active Record validations with RSpec
129
129
  test_files:
data/.travis.yml DELETED
@@ -1,20 +0,0 @@
1
- language: ruby
2
- rvm:
3
- - 2.1.10
4
- - 2.2.7
5
- - 2.3.4
6
- - 2.4.1
7
- gemfile:
8
- - gemfiles/activemodel_4_2.gemfile
9
- - gemfiles/activemodel_5_0.gemfile
10
- - gemfiles/activemodel_5_1.gemfile
11
- matrix:
12
- exclude:
13
- - gemfile: gemfiles/activemodel_5_0.gemfile
14
- rvm: 2.1.10
15
- - gemfile: gemfiles/activemodel_5_1.gemfile
16
- rvm: 2.1.10
17
- allow_failures:
18
- branches:
19
- only:
20
- - master
@@ -1,11 +0,0 @@
1
- source "https://rubygems.org"
2
-
3
- gemspec :path => ".."
4
-
5
- gem "activemodel", "~> 4.2.0"
6
-
7
- group :test do
8
- gem "activerecord", "~> 4.2.0", :require => "active_record"
9
- gem "rspec", "~> 2.14"
10
- gem "sqlite3-ruby", "~> 1.3"
11
- end
@@ -1,11 +0,0 @@
1
- source "https://rubygems.org"
2
-
3
- gemspec :path => ".."
4
-
5
- gem "activemodel", "~> 5.0.0"
6
-
7
- group :test do
8
- gem "activerecord", "~> 5.0.0", :require => "active_record"
9
- gem "rspec", "~> 3.5"
10
- gem "sqlite3-ruby", "~> 1.3"
11
- end
@@ -1,11 +0,0 @@
1
- source "https://rubygems.org"
2
-
3
- gemspec :path => ".."
4
-
5
- gem "activemodel", "~> 5.1.0"
6
-
7
- group :test do
8
- gem "activerecord", "~> 5.1.0", :require => "active_record"
9
- gem "rspec", "~> 3.5"
10
- gem "sqlite3-ruby", "~> 1.3"
11
- end