unidom-common-rspec 2.0.1 → 2.0.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
2
  SHA256:
3
- metadata.gz: e73a57fee4cef81976cb6d387f8ee3b79c7f220533492971eed511233a545629
4
- data.tar.gz: 9b1612de7e7f00f400326bec3b428fa870d52fd8c3eedd92272350f17236874e
3
+ metadata.gz: e4dc4838103d8f1759f6c4b00f74555c6de686ac3c74435e3b6ac61bcbe9d8f2
4
+ data.tar.gz: a2fa3ca52eeb5c6129eb518f4f6fc21eec9283ab991cd91b4cbe4c77f1458844
5
5
  SHA512:
6
- metadata.gz: 22e69f347d5638e3022e20111643ab5bd3a97d6a6af7749a5b949ffbe7f916c8d9a5956309e746b0bd048e944557c7863e2739804727a3b30312dc5a98d2c740
7
- data.tar.gz: 6c42f4595da343f446ba97eec954eed80d689cd109ee43d456516b56e2a815426fb42077835612ae2b4efdc74616fe672debdb319fcf60ca20f13bb8bde15da0
6
+ metadata.gz: 2276222c6654378ee738bd82d8b729565baca2477ff9bb2dbf1c3985e29420421cd0f4e7394742e45dd4f934b8913eee4899af559b411329b68396938214449c
7
+ data.tar.gz: c170cd5e5513c60a8dfdb3fa140e2e1b0096c8d3ab09f5e2b52406111a163524340b7e8380a4281f22b4291b93d6fe33e22f93389fb1890b75f679a50524196c
data/CHANGELOG.md CHANGED
@@ -2,87 +2,94 @@
2
2
 
3
3
  ## v0.1
4
4
 
5
- 1. Scope shared examples
5
+ 1. Scope shared examples.
6
6
 
7
7
  ## v0.2
8
8
 
9
- 1. Validates shared examples
9
+ 1. Validates shared examples.
10
10
 
11
11
  ## v0.3
12
12
 
13
- 1. Model Extension shared examples
13
+ 1. Model Extension shared examples.
14
14
 
15
15
  ## v0.4
16
16
 
17
- 1. Has Many shared examples
17
+ 1. Has Many shared examples.
18
18
 
19
19
  ## v0.5
20
20
 
21
- 1. Belongs To shared examples
22
- 2. Improved the Model Extension shared examples for the validates behaviors of the #``grade`` attribute & the #``priority`` attribute
23
- 3. Improved the Model Extension shared examples for the scope behaviours of the #``priority`` attribute
21
+ 1. Belongs To shared examples.
22
+ 2. Improved the Model Extension shared examples for the validates behaviors of the #``grade`` attribute & the #``priority`` attribute.
23
+ 3. Improved the Model Extension shared examples for the scope behaviours of the #``priority`` attribute.
24
24
 
25
25
  ## v0.6
26
26
 
27
- 1. Has One shared examples
27
+ 1. Has One shared examples.
28
28
 
29
29
  ## v0.6.1
30
30
 
31
- 1. Improved the Belongs To shared examples for the #``build_association`` method, the #``create_association`` method, & the #``create_association!`` method
32
- 2. Improved the Has One shared examples for the #``build_association`` method, the #``create_association`` method, & the #``create_association!`` method
31
+ 1. Improved the Belongs To shared examples for the #``build_association`` method, the #``create_association`` method, & the #``create_association!`` method.
32
+ 2. Improved the Has One shared examples for the #``build_association`` method, the #``create_association`` method, & the #``create_association!`` method.
33
33
 
34
34
  ## v0.6.2
35
35
 
36
- 1. Improved the Has Many shared examples for the #``collection.build`` method, the #``collection.create`` method, & the #``collection.create!`` method
36
+ 1. Improved the Has Many shared examples for the #``collection.build`` method, the #``collection.create`` method, & the #``collection.create!`` method.
37
37
 
38
38
  ## v0.7
39
39
 
40
- 1. Each Validator shared examples
40
+ 1. Each Validator shared examples.
41
41
 
42
42
  ## v0.7.1
43
43
 
44
- 1. Improved the Model Extension shared examples for the ``ordinal_is`` scope, the ``grade_is`` scope, the ``grade_higher_than`` scope, the ``grade_lower_than`` scope, the ``priority_is`` scope, the ``priority_higher_than`` scope, & the ``priority_lower_than`` scope
45
- 2. Improved the Model Extension shared examples for the validations on the #``ordinal`` attribute
44
+ 1. Improved the Model Extension shared examples for the ``ordinal_is`` scope, the ``grade_is`` scope, the ``grade_higher_than`` scope, the ``grade_lower_than`` scope, the ``priority_is`` scope, the ``priority_higher_than`` scope, & the ``priority_lower_than`` scope.
45
+ 2. Improved the Model Extension shared examples for the validations on the #``ordinal`` attribute.
46
46
 
47
47
  ## v0.7.2
48
48
 
49
- 1. Improved the Validates shared examples for the failure message
49
+ 1. Improved the Validates shared examples for the failure message.
50
50
 
51
51
  ## v0.8
52
52
 
53
- 1. Monomorphic Scope shared examples
54
- 2. Polymorphic Scope shared examples
53
+ 1. Monomorphic Scope shared examples.
54
+ 2. Polymorphic Scope shared examples.
55
55
 
56
56
  ## v0.9
57
57
 
58
- 1. Validates Text shared examples
59
- 2. Validates Numericality shared examples
58
+ 1. Validates Text shared examples.
59
+ 2. Validates Numericality shared examples.
60
60
 
61
61
  ## v0.9.1
62
62
 
63
- 1. Improved the Validates Text shared examples for the length
63
+ 1. Improved the Validates Text shared examples for the length.
64
64
 
65
65
  ## v0.10
66
66
 
67
- 1. Assert Present shared examples
67
+ 1. Assert Present shared examples.
68
68
 
69
69
  ## v0.10.1
70
70
 
71
- 1. Improved the Scope shared examples to separate the Monomorphic Scope shared examples, & the Polymorphic Scope shared examples
72
- 2. Improved the Validates shared examples to separate the Validates Text shared examples, & the Validates Numericality shared examples
71
+ 1. Improved the Scope shared examples to separate the Monomorphic Scope shared examples, & the Polymorphic Scope shared examples.
72
+ 2. Improved the Validates shared examples to separate the Validates Text shared examples, & the Validates Numericality shared examples.
73
73
 
74
74
  ## v1.0
75
75
 
76
- 1. Improved the compatibility for Rails 6.x & RSpec Rails 4.x
76
+ 1. Improved the compatibility for Rails 6.x & RSpec Rails 4.x.
77
77
 
78
78
  ## v1.1
79
79
 
80
- 1. Improved the Ruby Gem Specification to depend on Rake v13.0, & RSpec v3.9
80
+ 1. Improved the Ruby Gem Specification to depend on Rake v13.0 & RSpec v3.9.
81
81
 
82
82
  ## v2.0
83
83
 
84
- 1. Improved the Scope shared examples for Ruby 3.0
84
+ 1. Improved the Scope shared examples for Ruby 3.0.
85
85
 
86
86
  ## v2.0.1
87
87
 
88
- 1. Improved the compatibility of Validates Numericality shared examples and Each Validator shared examples
88
+ 1. Improved the compatibility of Validates Numericality shared examples and Each Validator shared examples.
89
+
90
+ ## v2.0.2
91
+
92
+ 1. Improved the Ruby Gem Specification for homepage URL.
93
+ 2. Improved the Ruby Gem Specification to depend on RSpec Rails 5.x.
94
+ 3. Upgraded the Gemfile.lock file.
95
+ 4. Cleaned the un-used RSpec examples.
data/Gemfile.lock CHANGED
@@ -1,46 +1,48 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- unidom-common-rspec (1.1)
4
+ unidom-common-rspec (2.0.2)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
8
8
  specs:
9
- actionpack (6.0.2.2)
10
- actionview (= 6.0.2.2)
11
- activesupport (= 6.0.2.2)
12
- rack (~> 2.0, >= 2.0.8)
9
+ actionpack (6.1.4)
10
+ actionview (= 6.1.4)
11
+ activesupport (= 6.1.4)
12
+ rack (~> 2.0, >= 2.0.9)
13
13
  rack-test (>= 0.6.3)
14
14
  rails-dom-testing (~> 2.0)
15
15
  rails-html-sanitizer (~> 1.0, >= 1.2.0)
16
- actionview (6.0.2.2)
17
- activesupport (= 6.0.2.2)
16
+ actionview (6.1.4)
17
+ activesupport (= 6.1.4)
18
18
  builder (~> 3.1)
19
19
  erubi (~> 1.4)
20
20
  rails-dom-testing (~> 2.0)
21
21
  rails-html-sanitizer (~> 1.1, >= 1.2.0)
22
- activesupport (6.0.2.2)
22
+ activesupport (6.1.4)
23
23
  concurrent-ruby (~> 1.0, >= 1.0.2)
24
- i18n (>= 0.7, < 2)
25
- minitest (~> 5.1)
26
- tzinfo (~> 1.1)
27
- zeitwerk (~> 2.2)
24
+ i18n (>= 1.6, < 2)
25
+ minitest (>= 5.1)
26
+ tzinfo (~> 2.0)
27
+ zeitwerk (~> 2.3)
28
28
  builder (3.2.4)
29
- concurrent-ruby (1.1.6)
29
+ concurrent-ruby (1.1.9)
30
30
  crass (1.0.6)
31
- diff-lcs (1.3)
32
- erubi (1.9.0)
33
- i18n (1.8.2)
31
+ diff-lcs (1.4.4)
32
+ erubi (1.10.0)
33
+ i18n (1.8.10)
34
34
  concurrent-ruby (~> 1.0)
35
- loofah (2.5.0)
35
+ loofah (2.11.0)
36
36
  crass (~> 1.0.2)
37
37
  nokogiri (>= 1.5.9)
38
38
  method_source (1.0.0)
39
- mini_portile2 (2.4.0)
40
- minitest (5.14.0)
41
- nokogiri (1.10.9)
42
- mini_portile2 (~> 2.4.0)
43
- rack (2.2.2)
39
+ mini_portile2 (2.6.1)
40
+ minitest (5.14.4)
41
+ nokogiri (1.12.0)
42
+ mini_portile2 (~> 2.6.1)
43
+ racc (~> 1.4)
44
+ racc (1.5.2)
45
+ rack (2.2.3)
44
46
  rack-test (1.1.0)
45
47
  rack (>= 1.0, < 3)
46
48
  rails-dom-testing (2.0.3)
@@ -48,39 +50,38 @@ GEM
48
50
  nokogiri (>= 1.6)
49
51
  rails-html-sanitizer (1.3.0)
50
52
  loofah (~> 2.3)
51
- railties (6.0.2.2)
52
- actionpack (= 6.0.2.2)
53
- activesupport (= 6.0.2.2)
53
+ railties (6.1.4)
54
+ actionpack (= 6.1.4)
55
+ activesupport (= 6.1.4)
54
56
  method_source
55
- rake (>= 0.8.7)
56
- thor (>= 0.20.3, < 2.0)
57
- rake (13.0.1)
58
- rspec (3.9.0)
59
- rspec-core (~> 3.9.0)
60
- rspec-expectations (~> 3.9.0)
61
- rspec-mocks (~> 3.9.0)
62
- rspec-core (3.9.1)
63
- rspec-support (~> 3.9.1)
64
- rspec-expectations (3.9.1)
57
+ rake (>= 0.13)
58
+ thor (~> 1.0)
59
+ rake (13.0.6)
60
+ rspec (3.10.0)
61
+ rspec-core (~> 3.10.0)
62
+ rspec-expectations (~> 3.10.0)
63
+ rspec-mocks (~> 3.10.0)
64
+ rspec-core (3.10.1)
65
+ rspec-support (~> 3.10.0)
66
+ rspec-expectations (3.10.1)
65
67
  diff-lcs (>= 1.2.0, < 2.0)
66
- rspec-support (~> 3.9.0)
67
- rspec-mocks (3.9.1)
68
+ rspec-support (~> 3.10.0)
69
+ rspec-mocks (3.10.2)
68
70
  diff-lcs (>= 1.2.0, < 2.0)
69
- rspec-support (~> 3.9.0)
70
- rspec-rails (4.0.0)
71
- actionpack (>= 4.2)
72
- activesupport (>= 4.2)
73
- railties (>= 4.2)
74
- rspec-core (~> 3.9)
75
- rspec-expectations (~> 3.9)
76
- rspec-mocks (~> 3.9)
77
- rspec-support (~> 3.9)
78
- rspec-support (3.9.2)
79
- thor (1.0.1)
80
- thread_safe (0.3.6)
81
- tzinfo (1.2.7)
82
- thread_safe (~> 0.1)
83
- zeitwerk (2.3.0)
71
+ rspec-support (~> 3.10.0)
72
+ rspec-rails (5.0.1)
73
+ actionpack (>= 5.2)
74
+ activesupport (>= 5.2)
75
+ railties (>= 5.2)
76
+ rspec-core (~> 3.10)
77
+ rspec-expectations (~> 3.10)
78
+ rspec-mocks (~> 3.10)
79
+ rspec-support (~> 3.10)
80
+ rspec-support (3.10.2)
81
+ thor (1.1.0)
82
+ tzinfo (2.0.4)
83
+ concurrent-ruby (~> 1.0)
84
+ zeitwerk (2.4.2)
84
85
 
85
86
  PLATFORMS
86
87
  ruby
@@ -88,9 +89,9 @@ PLATFORMS
88
89
  DEPENDENCIES
89
90
  bundler (~> 2.0)
90
91
  rake (~> 13.0)
91
- rspec (~> 3.9)
92
- rspec-rails (~> 4.0)
92
+ rspec (~> 3.0)
93
+ rspec-rails (~> 5.0)
93
94
  unidom-common-rspec!
94
95
 
95
96
  BUNDLED WITH
96
- 2.1.4
97
+ 2.2.13
data/ROADMAP.md CHANGED
@@ -2,87 +2,94 @@
2
2
 
3
3
  ## v0.1
4
4
 
5
- 1. Scope shared examples
5
+ 1. Scope shared examples.
6
6
 
7
7
  ## v0.2
8
8
 
9
- 1. Validates shared examples
9
+ 1. Validates shared examples.
10
10
 
11
11
  ## v0.3
12
12
 
13
- 1. Model Extension shared examples
13
+ 1. Model Extension shared examples.
14
14
 
15
15
  ## v0.4
16
16
 
17
- 1. Has Many shared examples
17
+ 1. Has Many shared examples.
18
18
 
19
19
  ## v0.5
20
20
 
21
- 1. Belongs To shared examples
22
- 2. Improve the Model Extension shared examples for the validates behaviors of the #``grade`` attribute & the #``priority`` attribute
23
- 3. Improve the Model Extension shared examples for the scope behaviours of the #``priority`` attribute
21
+ 1. Belongs To shared examples.
22
+ 2. Improve the Model Extension shared examples for the validates behaviors of the #``grade`` attribute & the #``priority`` attribute.
23
+ 3. Improve the Model Extension shared examples for the scope behaviours of the #``priority`` attribute.
24
24
 
25
25
  ## v0.6
26
26
 
27
- 1. Has One shared examples
27
+ 1. Has One shared examples.
28
28
 
29
29
  ## v0.6.1
30
30
 
31
- 1. Improve the Belongs To shared examples for the #``build_association`` method, the #``create_association`` method, & the #``create_association!`` method
32
- 2. Improve the Has One shared examples for the #``build_association`` method, the #``create_association`` method, & the #``create_association!`` method
31
+ 1. Improve the Belongs To shared examples for the #``build_association`` method, the #``create_association`` method, & the #``create_association!`` method.
32
+ 2. Improve the Has One shared examples for the #``build_association`` method, the #``create_association`` method, & the #``create_association!`` method.
33
33
 
34
34
  ## v0.6.2
35
35
 
36
- 1. Improve the Has Many shared examples for the #``collection.build`` method, the #``collection.create`` method, & the #``collection.create!`` method
36
+ 1. Improve the Has Many shared examples for the #``collection.build`` method, the #``collection.create`` method, & the #``collection.create!`` method.
37
37
 
38
38
  ## v0.7
39
39
 
40
- 1. Each Validator shared examples
40
+ 1. Each Validator shared examples.
41
41
 
42
42
  ## v0.7.1
43
43
 
44
- 1. Improve the Model Extension shared examples for the ``ordinal_is`` scope, the ``grade_is`` scope, the ``grade_higher_than`` scope, the ``grade_lower_than`` scope, the ``priority_is`` scope, the ``priority_higher_than`` scope, & the ``priority_lower_than`` scope
45
- 2. Improve the Model Extension shared examples for the validations on the #``ordinal`` attribute
44
+ 1. Improve the Model Extension shared examples for the ``ordinal_is`` scope, the ``grade_is`` scope, the ``grade_higher_than`` scope, the ``grade_lower_than`` scope, the ``priority_is`` scope, the ``priority_higher_than`` scope, & the ``priority_lower_than`` scope.
45
+ 2. Improve the Model Extension shared examples for the validations on the #``ordinal`` attribute.
46
46
 
47
47
  ## v0.7.2
48
48
 
49
- 1. Improve the Validates shared examples for the failure message
49
+ 1. Improve the Validates shared examples for the failure message.
50
50
 
51
51
  ## v0.8
52
52
 
53
- 1. Monomorphic Scope shared examples
54
- 2. Polymorphic Scope shared examples
53
+ 1. Monomorphic Scope shared examples.
54
+ 2. Polymorphic Scope shared examples.
55
55
 
56
56
  ## v0.9
57
57
 
58
- 1. Validates Text shared examples
59
- 2. Validates Numericality shared examples
58
+ 1. Validates Text shared examples.
59
+ 2. Validates Numericality shared examples.
60
60
 
61
61
  ## v0.9.1
62
62
 
63
- 1. Improve the Validates Text shared examples for the length
63
+ 1. Improve the Validates Text shared examples for the length.
64
64
 
65
65
  ## v0.10
66
66
 
67
- 1. Assert Present shared examples
67
+ 1. Assert Present shared examples.
68
68
 
69
69
  ## v0.10.1
70
70
 
71
- 1. Improve the Scope shared examples to separate the Monomorphic Scope shared examples, & the Polymorphic Scope shared examples
72
- 2. Improve the Validates shared examples to separate the Validates Text shared examples, & the Validates Numericality shared examples
71
+ 1. Improve the Scope shared examples to separate the Monomorphic Scope shared examples, & the Polymorphic Scope shared examples.
72
+ 2. Improve the Validates shared examples to separate the Validates Text shared examples, & the Validates Numericality shared examples.
73
73
 
74
74
  ## v1.0
75
75
 
76
- 1. Improve the compatibility for Rails 6.x & RSpec Rails 4.x
76
+ 1. Improve the compatibility for Rails 6.x & RSpec Rails 4.x.
77
77
 
78
78
  ## v1.1
79
79
 
80
- 1. Improve the Ruby Gem Specification to depend on Rake v13.0, & RSpec v4.0
80
+ 1. Improve the Ruby Gem Specification to depend on Rake v13.0, & RSpec v4.0.
81
81
 
82
82
  ## v2.0
83
83
 
84
- 1. Improve the Scope shared examples for Ruby 3.0
84
+ 1. Improve the Scope shared examples for Ruby 3.0.
85
85
 
86
86
  ## v2.0.1
87
87
 
88
- 1. Improve the compatibility of Validates Numericality shared examples and Each Validator shared examples
88
+ 1. Improve the compatibility of Validates Numericality shared examples and Each Validator shared examples.
89
+
90
+ ## v2.0.2
91
+
92
+ 1. Improve the Ruby Gem Specification for homepage URL.
93
+ 2. Improve the Ruby Gem Specification to depend on RSpec Rails 5.x.
94
+ 3. Upgrade the Gemfile.lock file.
95
+ 4. Clean the un-used RSpec examples.
@@ -1,7 +1,7 @@
1
1
  module Unidom
2
2
  module Common
3
3
  module RSpec
4
- VERSION = '2.0.1'
4
+ VERSION = '2.0.2'
5
5
  end
6
6
  end
7
7
  end
@@ -11,7 +11,7 @@ Gem::Specification.new do |spec|
11
11
 
12
12
  spec.summary = 'Unidom Common RSpec 是为 Unidom Common 设计的基于 RSpec 的共享测试用例。'
13
13
  spec.description = 'Unidom Common RSpec is a RSpec-based Shared Example for the Unidom Common-based models. Unidom Common RSpec 是为 Unidom Common 设计的基于 RSpec 的共享测试用例。'
14
- spec.homepage = 'https://github.com/topbitdu/unidom-common-rspec'
14
+ spec.homepage = 'https://gitee.com/Unidom/unidom-common-rspec'
15
15
  spec.license = 'MIT'
16
16
 
17
17
  # Prevent pushing this gem to RubyGems.org. To allow pushes either set the 'allowed_push_host'
@@ -27,10 +27,10 @@ Gem::Specification.new do |spec|
27
27
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
28
28
  spec.require_paths = [ 'lib' ]
29
29
 
30
- spec.add_development_dependency 'rspec-rails', '~> 4.0'
30
+ spec.add_development_dependency 'rspec-rails', '~> 5.0'
31
31
 
32
32
  spec.add_development_dependency 'bundler', '~> 2.0'
33
33
  spec.add_development_dependency 'rake', '~> 13.0'
34
- spec.add_development_dependency 'rspec', '~> 3.9'
34
+ spec.add_development_dependency 'rspec', '~> 3.0'
35
35
 
36
36
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: unidom-common-rspec
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.1
4
+ version: 2.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Topbit Du
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '4.0'
19
+ version: '5.0'
20
20
  type: :development
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: '4.0'
26
+ version: '5.0'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: bundler
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -58,14 +58,14 @@ dependencies:
58
58
  requirements:
59
59
  - - "~>"
60
60
  - !ruby/object:Gem::Version
61
- version: '3.9'
61
+ version: '3.0'
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: '3.9'
68
+ version: '3.0'
69
69
  description: Unidom Common RSpec is a RSpec-based Shared Example for the Unidom Common-based
70
70
  models. Unidom Common RSpec 是为 Unidom Common 设计的基于 RSpec 的共享测试用例。
71
71
  email:
@@ -102,7 +102,7 @@ files:
102
102
  - lib/unidom/common/rspec/validates_text_shared_examples.rb
103
103
  - lib/unidom/common/rspec/version.rb
104
104
  - unidom-common-rspec.gemspec
105
- homepage: https://github.com/topbitdu/unidom-common-rspec
105
+ homepage: https://gitee.com/Unidom/unidom-common-rspec
106
106
  licenses:
107
107
  - MIT
108
108
  metadata: {}