guise 0.7.0 → 0.8.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
2
  SHA256:
3
- metadata.gz: f734805912d6d41c5bea12c900de53418dbabcd8951f33b153e302fa9d518512
4
- data.tar.gz: 35becba0099ad794d2e3e81b9aa6ac15e784bc7d21f67018f951ed045d4ccbc3
3
+ metadata.gz: 92fede678e19b46a4368edd684d4878caa140c5ebb037be1f731b570e7b8fdf7
4
+ data.tar.gz: 8a12c58c706ec21d7fffba967c36475dc1017b24a423be595f1ce53fc8a82dcb
5
5
  SHA512:
6
- metadata.gz: 28ef2181765e4693ca12b867ba5e4b567c0638f67c910d0a5e3255ab944a44a540586e76c420d00dd72f1b0dca55f20456146a182764d59edfbd5c6695f20772
7
- data.tar.gz: 26d10ef77b03d82ef0366930dbabf570f89485223e39080a7f03d9f0d15fbe1fc2983ed0a40d5fd2f01f5e2934492b3a6ca0a2889226fb2e41fdc505d6763d30
6
+ metadata.gz: e50f9af77388bebc9270fa71dfcac0452b2c34ee0543d1cbfbb4e07259cddeb68e1db189b997bbf1692af61c0e6222fe61aa8da9c2a0c6e58cc6ab7763ce7bcb
7
+ data.tar.gz: c65be86108f09ea7675563fe486c2a9b828f89904a8b2ca4062f26c9050bf04fc5cd059951b284cb8cfa2d082c3d2c9f9c7c4139353c80a7ad94b363b5c0d38c
@@ -1,18 +1,28 @@
1
1
  sudo: false
2
2
  cache: bundler
3
+
3
4
  rvm:
4
- - 2.3.7
5
- - 2.4.4
6
- - 2.5.1
5
+ - 2.3
6
+ - 2.4
7
+ - 2.5
8
+ - 2.6
9
+
7
10
  gemfile:
8
11
  - gemfiles/4.2.gemfile
9
12
  - gemfiles/5.0.gemfile
10
13
  - gemfiles/5.1.gemfile
11
14
  - gemfiles/5.2.gemfile
15
+ - gemfiles/6.0.gemfile
16
+
12
17
  before_install:
13
18
  - gem update --system
14
19
  - gem install bundler
20
+
15
21
  script: 'bundle exec rake'
22
+
16
23
  matrix:
17
- allow_failures:
18
- - gemfile: gemfiles/5.2.gemfile
24
+ exclude:
25
+ - rvm: 2.3
26
+ gemfile: gemfiles/6.0.gemfile
27
+ - rvm: 2.4
28
+ gemfile: gemfiles/6.0.gemfile
data/Appraisals CHANGED
@@ -1,19 +1,28 @@
1
1
  appraise '4.2' do
2
2
  gem 'activerecord', '~> 4.2.0'
3
3
  gem 'activesupport', '~> 4.2.0'
4
+ gem 'sqlite3', '~> 1.3.0'
4
5
  end
5
6
 
6
7
  appraise '5.0' do
7
8
  gem 'activerecord', '~> 5.0.0'
8
9
  gem 'activesupport', '~> 5.0.0'
10
+ gem 'sqlite3', '~> 1.3.0'
9
11
  end
10
12
 
11
13
  appraise '5.1' do
12
14
  gem 'activerecord', '~> 5.1.0'
13
15
  gem 'activesupport', '~> 5.1.0'
16
+ gem 'sqlite3', '~> 1.3.0'
14
17
  end
15
18
 
16
19
  appraise '5.2' do
17
- gem 'activerecord', '~> 5.2.0.rc2'
18
- gem 'activesupport', '~> 5.2.0.rc2'
20
+ gem 'activerecord', '~> 5.2.0'
21
+ gem 'activesupport', '~> 5.2.0'
22
+ gem 'sqlite3', '~> 1.3.0'
23
+ end
24
+
25
+ appraise '6.0' do
26
+ gem 'activerecord', '~> 6.0.0'
27
+ gem 'activesupport', '~> 6.0.0'
19
28
  end
@@ -1,5 +1,16 @@
1
1
  # Changelog
2
2
 
3
+ ## Unreleased
4
+
5
+ ## [0.8.0]
6
+ ## Added
7
+ * Rails 6 support
8
+ * Testing on ruby 2.6
9
+
10
+ ### Fixed
11
+ * Fix how `:validate` option to `guise_for` was being handled. Passing
12
+ `validate: false` would still define validations.
13
+
3
14
  ## [0.7.0] 2018-04-09
4
15
  ### Removed
5
16
 
@@ -4,5 +4,6 @@ source "https://rubygems.org"
4
4
 
5
5
  gem "activerecord", "~> 4.2.0"
6
6
  gem "activesupport", "~> 4.2.0"
7
+ gem "sqlite3", "~> 1.3.0"
7
8
 
8
9
  gemspec path: "../"
@@ -1,21 +1,21 @@
1
1
  PATH
2
2
  remote: ..
3
3
  specs:
4
- guise (0.6.0)
5
- activerecord (>= 4.2, < 6.0)
6
- activesupport (>= 4.2, < 6.0)
4
+ guise (0.8.0)
5
+ activerecord (>= 4.2)
6
+ activesupport (>= 4.2)
7
7
 
8
8
  GEM
9
9
  remote: https://rubygems.org/
10
10
  specs:
11
- activemodel (4.2.10)
12
- activesupport (= 4.2.10)
11
+ activemodel (4.2.11.1)
12
+ activesupport (= 4.2.11.1)
13
13
  builder (~> 3.1)
14
- activerecord (4.2.10)
15
- activemodel (= 4.2.10)
16
- activesupport (= 4.2.10)
14
+ activerecord (4.2.11.1)
15
+ activemodel (= 4.2.11.1)
16
+ activesupport (= 4.2.11.1)
17
17
  arel (~> 6.0)
18
- activesupport (4.2.10)
18
+ activesupport (4.2.11.1)
19
19
  i18n (~> 0.7)
20
20
  minitest (~> 5.1)
21
21
  thread_safe (~> 0.3, >= 0.3.4)
@@ -28,36 +28,36 @@ GEM
28
28
  builder (3.2.3)
29
29
  byebug (10.0.2)
30
30
  coderay (1.1.2)
31
- concurrent-ruby (1.0.5)
31
+ concurrent-ruby (1.1.5)
32
32
  diff-lcs (1.3)
33
33
  i18n (0.9.5)
34
34
  concurrent-ruby (~> 1.0)
35
- method_source (0.9.0)
35
+ method_source (0.9.2)
36
36
  minitest (5.11.3)
37
- pry (0.11.3)
37
+ pry (0.12.2)
38
38
  coderay (~> 1.1.0)
39
39
  method_source (~> 0.9.0)
40
- rake (12.3.1)
41
- redcarpet (3.4.0)
42
- rspec (3.7.0)
43
- rspec-core (~> 3.7.0)
44
- rspec-expectations (~> 3.7.0)
45
- rspec-mocks (~> 3.7.0)
46
- rspec-core (3.7.1)
47
- rspec-support (~> 3.7.0)
48
- rspec-expectations (3.7.0)
40
+ rake (12.3.3)
41
+ redcarpet (3.5.0)
42
+ rspec (3.8.0)
43
+ rspec-core (~> 3.8.0)
44
+ rspec-expectations (~> 3.8.0)
45
+ rspec-mocks (~> 3.8.0)
46
+ rspec-core (3.8.2)
47
+ rspec-support (~> 3.8.0)
48
+ rspec-expectations (3.8.4)
49
49
  diff-lcs (>= 1.2.0, < 2.0)
50
- rspec-support (~> 3.7.0)
51
- rspec-mocks (3.7.0)
50
+ rspec-support (~> 3.8.0)
51
+ rspec-mocks (3.8.1)
52
52
  diff-lcs (>= 1.2.0, < 2.0)
53
- rspec-support (~> 3.7.0)
54
- rspec-support (3.7.1)
53
+ rspec-support (~> 3.8.0)
54
+ rspec-support (3.8.2)
55
55
  sqlite3 (1.3.13)
56
- thor (0.20.0)
56
+ thor (0.20.3)
57
57
  thread_safe (0.3.6)
58
58
  tzinfo (1.2.5)
59
59
  thread_safe (~> 0.1)
60
- yard (0.9.12)
60
+ yard (0.9.20)
61
61
 
62
62
  PLATFORMS
63
63
  ruby
@@ -72,8 +72,8 @@ DEPENDENCIES
72
72
  rake (~> 12.3)
73
73
  redcarpet (~> 3.2)
74
74
  rspec (~> 3.0)
75
- sqlite3 (~> 1.3)
76
- yard (~> 0.8)
75
+ sqlite3 (~> 1.3.0)
76
+ yard (>= 0.9.20)
77
77
 
78
78
  BUNDLED WITH
79
- 1.16.1
79
+ 1.17.2
@@ -4,5 +4,6 @@ source "https://rubygems.org"
4
4
 
5
5
  gem "activerecord", "~> 5.0.0"
6
6
  gem "activesupport", "~> 5.0.0"
7
+ gem "sqlite3", "~> 1.3.0"
7
8
 
8
9
  gemspec path: "../"
@@ -1,20 +1,20 @@
1
1
  PATH
2
2
  remote: ..
3
3
  specs:
4
- guise (0.6.0)
5
- activerecord (>= 4.2, < 6.0)
6
- activesupport (>= 4.2, < 6.0)
4
+ guise (0.8.0)
5
+ activerecord (>= 4.2)
6
+ activesupport (>= 4.2)
7
7
 
8
8
  GEM
9
9
  remote: https://rubygems.org/
10
10
  specs:
11
- activemodel (5.0.7)
12
- activesupport (= 5.0.7)
13
- activerecord (5.0.7)
14
- activemodel (= 5.0.7)
15
- activesupport (= 5.0.7)
11
+ activemodel (5.0.7.2)
12
+ activesupport (= 5.0.7.2)
13
+ activerecord (5.0.7.2)
14
+ activemodel (= 5.0.7.2)
15
+ activesupport (= 5.0.7.2)
16
16
  arel (~> 7.0)
17
- activesupport (5.0.7)
17
+ activesupport (5.0.7.2)
18
18
  concurrent-ruby (~> 1.0, >= 1.0.2)
19
19
  i18n (>= 0.7, < 2)
20
20
  minitest (~> 5.1)
@@ -26,36 +26,36 @@ GEM
26
26
  arel (7.1.4)
27
27
  byebug (10.0.2)
28
28
  coderay (1.1.2)
29
- concurrent-ruby (1.0.5)
29
+ concurrent-ruby (1.1.5)
30
30
  diff-lcs (1.3)
31
- i18n (1.0.0)
31
+ i18n (1.6.0)
32
32
  concurrent-ruby (~> 1.0)
33
- method_source (0.9.0)
33
+ method_source (0.9.2)
34
34
  minitest (5.11.3)
35
- pry (0.11.3)
35
+ pry (0.12.2)
36
36
  coderay (~> 1.1.0)
37
37
  method_source (~> 0.9.0)
38
- rake (12.3.1)
39
- redcarpet (3.4.0)
40
- rspec (3.7.0)
41
- rspec-core (~> 3.7.0)
42
- rspec-expectations (~> 3.7.0)
43
- rspec-mocks (~> 3.7.0)
44
- rspec-core (3.7.1)
45
- rspec-support (~> 3.7.0)
46
- rspec-expectations (3.7.0)
38
+ rake (12.3.3)
39
+ redcarpet (3.5.0)
40
+ rspec (3.8.0)
41
+ rspec-core (~> 3.8.0)
42
+ rspec-expectations (~> 3.8.0)
43
+ rspec-mocks (~> 3.8.0)
44
+ rspec-core (3.8.2)
45
+ rspec-support (~> 3.8.0)
46
+ rspec-expectations (3.8.4)
47
47
  diff-lcs (>= 1.2.0, < 2.0)
48
- rspec-support (~> 3.7.0)
49
- rspec-mocks (3.7.0)
48
+ rspec-support (~> 3.8.0)
49
+ rspec-mocks (3.8.1)
50
50
  diff-lcs (>= 1.2.0, < 2.0)
51
- rspec-support (~> 3.7.0)
52
- rspec-support (3.7.1)
51
+ rspec-support (~> 3.8.0)
52
+ rspec-support (3.8.2)
53
53
  sqlite3 (1.3.13)
54
- thor (0.20.0)
54
+ thor (0.20.3)
55
55
  thread_safe (0.3.6)
56
56
  tzinfo (1.2.5)
57
57
  thread_safe (~> 0.1)
58
- yard (0.9.12)
58
+ yard (0.9.20)
59
59
 
60
60
  PLATFORMS
61
61
  ruby
@@ -70,8 +70,8 @@ DEPENDENCIES
70
70
  rake (~> 12.3)
71
71
  redcarpet (~> 3.2)
72
72
  rspec (~> 3.0)
73
- sqlite3 (~> 1.3)
74
- yard (~> 0.8)
73
+ sqlite3 (~> 1.3.0)
74
+ yard (>= 0.9.20)
75
75
 
76
76
  BUNDLED WITH
77
- 1.16.1
77
+ 1.17.2
@@ -4,5 +4,6 @@ source "https://rubygems.org"
4
4
 
5
5
  gem "activerecord", "~> 5.1.0"
6
6
  gem "activesupport", "~> 5.1.0"
7
+ gem "sqlite3", "~> 1.3.0"
7
8
 
8
9
  gemspec path: "../"
@@ -1,20 +1,20 @@
1
1
  PATH
2
2
  remote: ..
3
3
  specs:
4
- guise (0.6.0)
5
- activerecord (>= 4.2, < 6.0)
6
- activesupport (>= 4.2, < 6.0)
4
+ guise (0.8.0)
5
+ activerecord (>= 4.2)
6
+ activesupport (>= 4.2)
7
7
 
8
8
  GEM
9
9
  remote: https://rubygems.org/
10
10
  specs:
11
- activemodel (5.1.6)
12
- activesupport (= 5.1.6)
13
- activerecord (5.1.6)
14
- activemodel (= 5.1.6)
15
- activesupport (= 5.1.6)
11
+ activemodel (5.1.7)
12
+ activesupport (= 5.1.7)
13
+ activerecord (5.1.7)
14
+ activemodel (= 5.1.7)
15
+ activesupport (= 5.1.7)
16
16
  arel (~> 8.0)
17
- activesupport (5.1.6)
17
+ activesupport (5.1.7)
18
18
  concurrent-ruby (~> 1.0, >= 1.0.2)
19
19
  i18n (>= 0.7, < 2)
20
20
  minitest (~> 5.1)
@@ -26,36 +26,36 @@ GEM
26
26
  arel (8.0.0)
27
27
  byebug (10.0.2)
28
28
  coderay (1.1.2)
29
- concurrent-ruby (1.0.5)
29
+ concurrent-ruby (1.1.5)
30
30
  diff-lcs (1.3)
31
- i18n (1.0.0)
31
+ i18n (1.6.0)
32
32
  concurrent-ruby (~> 1.0)
33
- method_source (0.9.0)
33
+ method_source (0.9.2)
34
34
  minitest (5.11.3)
35
- pry (0.11.3)
35
+ pry (0.12.2)
36
36
  coderay (~> 1.1.0)
37
37
  method_source (~> 0.9.0)
38
- rake (12.3.1)
39
- redcarpet (3.4.0)
40
- rspec (3.7.0)
41
- rspec-core (~> 3.7.0)
42
- rspec-expectations (~> 3.7.0)
43
- rspec-mocks (~> 3.7.0)
44
- rspec-core (3.7.1)
45
- rspec-support (~> 3.7.0)
46
- rspec-expectations (3.7.0)
38
+ rake (12.3.3)
39
+ redcarpet (3.5.0)
40
+ rspec (3.8.0)
41
+ rspec-core (~> 3.8.0)
42
+ rspec-expectations (~> 3.8.0)
43
+ rspec-mocks (~> 3.8.0)
44
+ rspec-core (3.8.2)
45
+ rspec-support (~> 3.8.0)
46
+ rspec-expectations (3.8.4)
47
47
  diff-lcs (>= 1.2.0, < 2.0)
48
- rspec-support (~> 3.7.0)
49
- rspec-mocks (3.7.0)
48
+ rspec-support (~> 3.8.0)
49
+ rspec-mocks (3.8.1)
50
50
  diff-lcs (>= 1.2.0, < 2.0)
51
- rspec-support (~> 3.7.0)
52
- rspec-support (3.7.1)
51
+ rspec-support (~> 3.8.0)
52
+ rspec-support (3.8.2)
53
53
  sqlite3 (1.3.13)
54
- thor (0.20.0)
54
+ thor (0.20.3)
55
55
  thread_safe (0.3.6)
56
56
  tzinfo (1.2.5)
57
57
  thread_safe (~> 0.1)
58
- yard (0.9.12)
58
+ yard (0.9.20)
59
59
 
60
60
  PLATFORMS
61
61
  ruby
@@ -70,8 +70,8 @@ DEPENDENCIES
70
70
  rake (~> 12.3)
71
71
  redcarpet (~> 3.2)
72
72
  rspec (~> 3.0)
73
- sqlite3 (~> 1.3)
74
- yard (~> 0.8)
73
+ sqlite3 (~> 1.3.0)
74
+ yard (>= 0.9.20)
75
75
 
76
76
  BUNDLED WITH
77
- 1.16.1
77
+ 1.17.2
@@ -2,7 +2,8 @@
2
2
 
3
3
  source "https://rubygems.org"
4
4
 
5
- gem "activerecord", "~> 5.2.0.rc2"
6
- gem "activesupport", "~> 5.2.0.rc2"
5
+ gem "activerecord", "~> 5.2.0"
6
+ gem "activesupport", "~> 5.2.0"
7
+ gem "sqlite3", "~> 1.3.0"
7
8
 
8
9
  gemspec path: "../"
@@ -1,20 +1,20 @@
1
1
  PATH
2
2
  remote: ..
3
3
  specs:
4
- guise (0.6.0)
5
- activerecord (>= 4.2, < 6.0)
6
- activesupport (>= 4.2, < 6.0)
4
+ guise (0.8.0)
5
+ activerecord (>= 4.2)
6
+ activesupport (>= 4.2)
7
7
 
8
8
  GEM
9
9
  remote: https://rubygems.org/
10
10
  specs:
11
- activemodel (5.2.0.rc2)
12
- activesupport (= 5.2.0.rc2)
13
- activerecord (5.2.0.rc2)
14
- activemodel (= 5.2.0.rc2)
15
- activesupport (= 5.2.0.rc2)
11
+ activemodel (5.2.3)
12
+ activesupport (= 5.2.3)
13
+ activerecord (5.2.3)
14
+ activemodel (= 5.2.3)
15
+ activesupport (= 5.2.3)
16
16
  arel (>= 9.0)
17
- activesupport (5.2.0.rc2)
17
+ activesupport (5.2.3)
18
18
  concurrent-ruby (~> 1.0, >= 1.0.2)
19
19
  i18n (>= 0.7, < 2)
20
20
  minitest (~> 5.1)
@@ -26,43 +26,43 @@ GEM
26
26
  arel (9.0.0)
27
27
  byebug (10.0.2)
28
28
  coderay (1.1.2)
29
- concurrent-ruby (1.0.5)
29
+ concurrent-ruby (1.1.5)
30
30
  diff-lcs (1.3)
31
- i18n (1.0.0)
31
+ i18n (1.6.0)
32
32
  concurrent-ruby (~> 1.0)
33
- method_source (0.9.0)
33
+ method_source (0.9.2)
34
34
  minitest (5.11.3)
35
- pry (0.11.3)
35
+ pry (0.12.2)
36
36
  coderay (~> 1.1.0)
37
37
  method_source (~> 0.9.0)
38
- rake (12.3.1)
39
- redcarpet (3.4.0)
40
- rspec (3.7.0)
41
- rspec-core (~> 3.7.0)
42
- rspec-expectations (~> 3.7.0)
43
- rspec-mocks (~> 3.7.0)
44
- rspec-core (3.7.1)
45
- rspec-support (~> 3.7.0)
46
- rspec-expectations (3.7.0)
38
+ rake (12.3.3)
39
+ redcarpet (3.5.0)
40
+ rspec (3.8.0)
41
+ rspec-core (~> 3.8.0)
42
+ rspec-expectations (~> 3.8.0)
43
+ rspec-mocks (~> 3.8.0)
44
+ rspec-core (3.8.2)
45
+ rspec-support (~> 3.8.0)
46
+ rspec-expectations (3.8.4)
47
47
  diff-lcs (>= 1.2.0, < 2.0)
48
- rspec-support (~> 3.7.0)
49
- rspec-mocks (3.7.0)
48
+ rspec-support (~> 3.8.0)
49
+ rspec-mocks (3.8.1)
50
50
  diff-lcs (>= 1.2.0, < 2.0)
51
- rspec-support (~> 3.7.0)
52
- rspec-support (3.7.1)
51
+ rspec-support (~> 3.8.0)
52
+ rspec-support (3.8.2)
53
53
  sqlite3 (1.3.13)
54
- thor (0.20.0)
54
+ thor (0.20.3)
55
55
  thread_safe (0.3.6)
56
56
  tzinfo (1.2.5)
57
57
  thread_safe (~> 0.1)
58
- yard (0.9.12)
58
+ yard (0.9.20)
59
59
 
60
60
  PLATFORMS
61
61
  ruby
62
62
 
63
63
  DEPENDENCIES
64
- activerecord (~> 5.2.0.rc2)
65
- activesupport (~> 5.2.0.rc2)
64
+ activerecord (~> 5.2.0)
65
+ activesupport (~> 5.2.0)
66
66
  appraisal (>= 1.0)
67
67
  byebug (~> 10.0)
68
68
  guise!
@@ -70,8 +70,8 @@ DEPENDENCIES
70
70
  rake (~> 12.3)
71
71
  redcarpet (~> 3.2)
72
72
  rspec (~> 3.0)
73
- sqlite3 (~> 1.3)
74
- yard (~> 0.8)
73
+ sqlite3 (~> 1.3.0)
74
+ yard (>= 0.9.20)
75
75
 
76
76
  BUNDLED WITH
77
- 1.16.1
77
+ 1.17.2
@@ -0,0 +1,8 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "https://rubygems.org"
4
+
5
+ gem "activerecord", "~> 6.0.0"
6
+ gem "activesupport", "~> 6.0.0"
7
+
8
+ gemspec path: "../"
@@ -0,0 +1,77 @@
1
+ PATH
2
+ remote: ..
3
+ specs:
4
+ guise (0.8.0)
5
+ activerecord (>= 4.2)
6
+ activesupport (>= 4.2)
7
+
8
+ GEM
9
+ remote: https://rubygems.org/
10
+ specs:
11
+ activemodel (6.0.0)
12
+ activesupport (= 6.0.0)
13
+ activerecord (6.0.0)
14
+ activemodel (= 6.0.0)
15
+ activesupport (= 6.0.0)
16
+ activesupport (6.0.0)
17
+ concurrent-ruby (~> 1.0, >= 1.0.2)
18
+ i18n (>= 0.7, < 2)
19
+ minitest (~> 5.1)
20
+ tzinfo (~> 1.1)
21
+ zeitwerk (~> 2.1, >= 2.1.8)
22
+ appraisal (2.2.0)
23
+ bundler
24
+ rake
25
+ thor (>= 0.14.0)
26
+ byebug (10.0.2)
27
+ coderay (1.1.2)
28
+ concurrent-ruby (1.1.5)
29
+ diff-lcs (1.3)
30
+ i18n (1.6.0)
31
+ concurrent-ruby (~> 1.0)
32
+ method_source (0.9.2)
33
+ minitest (5.11.3)
34
+ pry (0.12.2)
35
+ coderay (~> 1.1.0)
36
+ method_source (~> 0.9.0)
37
+ rake (12.3.3)
38
+ redcarpet (3.5.0)
39
+ rspec (3.8.0)
40
+ rspec-core (~> 3.8.0)
41
+ rspec-expectations (~> 3.8.0)
42
+ rspec-mocks (~> 3.8.0)
43
+ rspec-core (3.8.2)
44
+ rspec-support (~> 3.8.0)
45
+ rspec-expectations (3.8.4)
46
+ diff-lcs (>= 1.2.0, < 2.0)
47
+ rspec-support (~> 3.8.0)
48
+ rspec-mocks (3.8.1)
49
+ diff-lcs (>= 1.2.0, < 2.0)
50
+ rspec-support (~> 3.8.0)
51
+ rspec-support (3.8.2)
52
+ sqlite3 (1.4.1)
53
+ thor (0.20.3)
54
+ thread_safe (0.3.6)
55
+ tzinfo (1.2.5)
56
+ thread_safe (~> 0.1)
57
+ yard (0.9.20)
58
+ zeitwerk (2.1.9)
59
+
60
+ PLATFORMS
61
+ ruby
62
+
63
+ DEPENDENCIES
64
+ activerecord (~> 6.0.0)
65
+ activesupport (~> 6.0.0)
66
+ appraisal (>= 1.0)
67
+ byebug (~> 10.0)
68
+ guise!
69
+ pry (~> 0.9)
70
+ rake (~> 12.3)
71
+ redcarpet (~> 3.2)
72
+ rspec (~> 3.0)
73
+ sqlite3 (~> 1.3)
74
+ yard (>= 0.9.20)
75
+
76
+ BUNDLED WITH
77
+ 1.17.2
@@ -3,11 +3,10 @@ require File.expand_path('../lib/guise/version', __FILE__)
3
3
 
4
4
  Gem::Specification.new do |gem|
5
5
  gem.authors = ["Eduardo Gutierrez"]
6
- gem.email = ["edd_d@mit.edu"]
7
- gem.description = %q{ Multiple inheritance STI }
6
+ gem.description = %q{ Flexible roles system for any context }
8
7
  gem.summary = %q{
9
- Guise provides methods to setup single table
10
- inheritance with multiple inheritances possible.
8
+ Guise manages roles without having to define them in as records in the
9
+ database. Also works as multi-table inheritance.
11
10
  }
12
11
  gem.homepage = "https://github.com/ecbypi/guise"
13
12
 
@@ -21,8 +20,8 @@ Gem::Specification.new do |gem|
21
20
 
22
21
  gem.required_ruby_version = ">= 2.3.0"
23
22
 
24
- gem.add_dependency "activerecord", ">= 4.2", "< 6.0"
25
- gem.add_dependency "activesupport", ">= 4.2", "< 6.0"
23
+ gem.add_dependency "activerecord", ">= 4.2"
24
+ gem.add_dependency "activesupport", ">= 4.2"
26
25
  gem.add_development_dependency "appraisal", ">= 1.0"
27
26
  gem.add_development_dependency "byebug", "~> 10.0"
28
27
  gem.add_development_dependency "pry", "~> 0.9"
@@ -30,5 +29,5 @@ Gem::Specification.new do |gem|
30
29
  gem.add_development_dependency "redcarpet", "~> 3.2"
31
30
  gem.add_development_dependency "rspec", "~> 3.0"
32
31
  gem.add_development_dependency "sqlite3", "~> 1.3"
33
- gem.add_development_dependency "yard", "~> 0.8"
32
+ gem.add_development_dependency "yard", ">= 0.9.20"
34
33
  end
@@ -80,8 +80,16 @@ module Guise
80
80
  def initialize(association_class, options, association_options)
81
81
  @association_class = association_class
82
82
  @options = options
83
- @association_options = association_options.reverse_merge!(@options.default_association_options)
84
- @define_validations = !@association_options.delete(:validate)
83
+
84
+ # if `:validate` is specified, coerce the value into a boolean, otherwise, default to
85
+ # `true`
86
+ @define_validations = if association_options.key?(:validate)
87
+ !!association_options.delete(:validate)
88
+ else
89
+ true
90
+ end
91
+
92
+ @association_options = @options.default_association_options.merge(association_options)
85
93
  end
86
94
 
87
95
  def build!
@@ -1,3 +1,3 @@
1
1
  module Guise
2
- VERSION = "0.7.0"
2
+ VERSION = "0.8.0"
3
3
  end
@@ -284,6 +284,10 @@ describe Guise do
284
284
  )
285
285
  ]
286
286
  end
287
+
288
+ it "skips validations with `validate: false`" do
289
+ expect(Permission._validators[:privilege]).to be_empty
290
+ end
287
291
  end
288
292
 
289
293
  describe '.scoped_guise_of' do
@@ -68,7 +68,7 @@ end
68
68
  class Permission < ActiveRecord::Base
69
69
  self.table_name = :privileges
70
70
 
71
- guise_for :Person, foreign_key: :employee_id
71
+ guise_for :Person, foreign_key: :employee_id, validate: false
72
72
  end
73
73
 
74
74
  RSpec.configure do |config|
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: guise
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.0
4
+ version: 0.8.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Eduardo Gutierrez
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-04-09 00:00:00.000000000 Z
11
+ date: 2019-08-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord
@@ -17,9 +17,6 @@ dependencies:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
19
  version: '4.2'
20
- - - "<"
21
- - !ruby/object:Gem::Version
22
- version: '6.0'
23
20
  type: :runtime
24
21
  prerelease: false
25
22
  version_requirements: !ruby/object:Gem::Requirement
@@ -27,9 +24,6 @@ dependencies:
27
24
  - - ">="
28
25
  - !ruby/object:Gem::Version
29
26
  version: '4.2'
30
- - - "<"
31
- - !ruby/object:Gem::Version
32
- version: '6.0'
33
27
  - !ruby/object:Gem::Dependency
34
28
  name: activesupport
35
29
  requirement: !ruby/object:Gem::Requirement
@@ -37,9 +31,6 @@ dependencies:
37
31
  - - ">="
38
32
  - !ruby/object:Gem::Version
39
33
  version: '4.2'
40
- - - "<"
41
- - !ruby/object:Gem::Version
42
- version: '6.0'
43
34
  type: :runtime
44
35
  prerelease: false
45
36
  version_requirements: !ruby/object:Gem::Requirement
@@ -47,9 +38,6 @@ dependencies:
47
38
  - - ">="
48
39
  - !ruby/object:Gem::Version
49
40
  version: '4.2'
50
- - - "<"
51
- - !ruby/object:Gem::Version
52
- version: '6.0'
53
41
  - !ruby/object:Gem::Dependency
54
42
  name: appraisal
55
43
  requirement: !ruby/object:Gem::Requirement
@@ -152,19 +140,18 @@ dependencies:
152
140
  name: yard
153
141
  requirement: !ruby/object:Gem::Requirement
154
142
  requirements:
155
- - - "~>"
143
+ - - ">="
156
144
  - !ruby/object:Gem::Version
157
- version: '0.8'
145
+ version: 0.9.20
158
146
  type: :development
159
147
  prerelease: false
160
148
  version_requirements: !ruby/object:Gem::Requirement
161
149
  requirements:
162
- - - "~>"
150
+ - - ">="
163
151
  - !ruby/object:Gem::Version
164
- version: '0.8'
165
- description: " Multiple inheritance STI "
166
- email:
167
- - edd_d@mit.edu
152
+ version: 0.9.20
153
+ description: " Flexible roles system for any context "
154
+ email:
168
155
  executables: []
169
156
  extensions: []
170
157
  extra_rdoc_files: []
@@ -193,6 +180,8 @@ files:
193
180
  - gemfiles/5.1.gemfile.lock
194
181
  - gemfiles/5.2.gemfile
195
182
  - gemfiles/5.2.gemfile.lock
183
+ - gemfiles/6.0.gemfile
184
+ - gemfiles/6.0.gemfile.lock
196
185
  - guise.gemspec
197
186
  - lib/guise.rb
198
187
  - lib/guise/builders.rb
@@ -225,12 +214,11 @@ required_rubygems_version: !ruby/object:Gem::Requirement
225
214
  - !ruby/object:Gem::Version
226
215
  version: '0'
227
216
  requirements: []
228
- rubyforge_project:
229
- rubygems_version: 2.7.6
217
+ rubygems_version: 3.0.3
230
218
  signing_key:
231
219
  specification_version: 4
232
- summary: Guise provides methods to setup single table inheritance with multiple inheritances
233
- possible.
220
+ summary: Guise manages roles without having to define them in as records in the database.
221
+ Also works as multi-table inheritance.
234
222
  test_files:
235
223
  - spec/guise_spec.rb
236
224
  - spec/spec_helper.rb