outrigger 1.2.3 → 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
2
  SHA1:
3
- metadata.gz: a63553d16f5a85d6d18cea29ea8a07f9d5f1f0a9
4
- data.tar.gz: b3a9636b7851d488a152fbc9ed03dac3b9345b75
3
+ metadata.gz: e82a9874959275eb5b4654aeb4374115ce636d83
4
+ data.tar.gz: 2d769c28f0494b2d1a75b06fc5d6a81d804953ec
5
5
  SHA512:
6
- metadata.gz: 407cc16bda5c6c9f80294b887c057529f514dd416397a512703fc33dcaba3fba31159b2c7256d6760a1f49a8dc39eb1509e34317c47b3e3cbc1f39e8850dffcc
7
- data.tar.gz: 28dc388ab405ed7c03352577f21fa9e995fa35307701eb7fc46a922f69e4d28062934c9aa5be08154a3977c8afc7985e91f60fcfca8c4e703983d5f803715751
6
+ metadata.gz: 71cf03df7b484f547bcef6b2a6022b6fdfecd2133b0b35ecd235f0fd50404ca0ddd267a0c3c12674be902d2112d54f72248ea80d8edf4823866be0f800ad4d2e
7
+ data.tar.gz: 59e5e4940e5c7e1836f2d73430b001ba05481461bb25d6b6be4c81370a1b238f6e54a7a76f9187ecda3008f24bbbf3b77ff2cbe76a44a7dd4f7adcf5167bdb89
@@ -28,18 +28,18 @@ module RuboCop
28
28
  tag = tag_node(node)
29
29
 
30
30
  if allowed_tags.empty?
31
- add_offense(tag,
32
- location: :expression,
33
- message: 'No allowed tags have been defined in the RuboCop configuration.')
31
+ add_offense tag,
32
+ location: :expression,
33
+ message: 'No allowed tags have been defined in the RuboCop configuration.'
34
34
  elsif tag
35
35
  return if allowed_tags.include? tag.children.last.to_a.last
36
- add_offense(tag,
37
- location: :expression,
38
- message: "Tags may only be one of #{allowed_tags}.")
36
+ add_offense tag,
37
+ location: :expression,
38
+ message: "Tags may only be one of #{allowed_tags}."
39
39
  else
40
- add_offense(klass,
41
- location: :expression,
42
- message: "All migrations require a tag from #{allowed_tags}.")
40
+ add_offense klass,
41
+ location: :expression,
42
+ message: "All migrations require a tag from #{allowed_tags}."
43
43
  end
44
44
  end
45
45
 
@@ -1,3 +1,3 @@
1
1
  module Outrigger
2
- VERSION = '1.2.3'.freeze
2
+ VERSION = '2.0.0'.freeze
3
3
  end
@@ -2,4 +2,4 @@ source 'https://rubygems.org'
2
2
 
3
3
  gemspec path: '../../'
4
4
 
5
- gem 'rails', '~> 5.0.0'
5
+ gem 'rails', '~> 5.0.7'
@@ -1,131 +1,129 @@
1
1
  PATH
2
2
  remote: ../..
3
3
  specs:
4
- outrigger (1.2.0)
5
- activerecord (>= 4.2, < 5.2)
4
+ outrigger (1.3.0)
5
+ activerecord (>= 5.0, < 5.3)
6
6
 
7
7
  GEM
8
8
  remote: https://rubygems.org/
9
9
  specs:
10
- actioncable (5.0.6)
11
- actionpack (= 5.0.6)
10
+ actioncable (5.0.7)
11
+ actionpack (= 5.0.7)
12
12
  nio4r (>= 1.2, < 3.0)
13
13
  websocket-driver (~> 0.6.1)
14
- actionmailer (5.0.6)
15
- actionpack (= 5.0.6)
16
- actionview (= 5.0.6)
17
- activejob (= 5.0.6)
14
+ actionmailer (5.0.7)
15
+ actionpack (= 5.0.7)
16
+ actionview (= 5.0.7)
17
+ activejob (= 5.0.7)
18
18
  mail (~> 2.5, >= 2.5.4)
19
19
  rails-dom-testing (~> 2.0)
20
- actionpack (5.0.6)
21
- actionview (= 5.0.6)
22
- activesupport (= 5.0.6)
20
+ actionpack (5.0.7)
21
+ actionview (= 5.0.7)
22
+ activesupport (= 5.0.7)
23
23
  rack (~> 2.0)
24
24
  rack-test (~> 0.6.3)
25
25
  rails-dom-testing (~> 2.0)
26
26
  rails-html-sanitizer (~> 1.0, >= 1.0.2)
27
- actionview (5.0.6)
28
- activesupport (= 5.0.6)
27
+ actionview (5.0.7)
28
+ activesupport (= 5.0.7)
29
29
  builder (~> 3.1)
30
30
  erubis (~> 2.7.0)
31
31
  rails-dom-testing (~> 2.0)
32
32
  rails-html-sanitizer (~> 1.0, >= 1.0.3)
33
- activejob (5.0.6)
34
- activesupport (= 5.0.6)
33
+ activejob (5.0.7)
34
+ activesupport (= 5.0.7)
35
35
  globalid (>= 0.3.6)
36
- activemodel (5.0.6)
37
- activesupport (= 5.0.6)
38
- activerecord (5.0.6)
39
- activemodel (= 5.0.6)
40
- activesupport (= 5.0.6)
36
+ activemodel (5.0.7)
37
+ activesupport (= 5.0.7)
38
+ activerecord (5.0.7)
39
+ activemodel (= 5.0.7)
40
+ activesupport (= 5.0.7)
41
41
  arel (~> 7.0)
42
- activesupport (5.0.6)
42
+ activesupport (5.0.7)
43
43
  concurrent-ruby (~> 1.0, >= 1.0.2)
44
- i18n (~> 0.7)
44
+ i18n (>= 0.7, < 2)
45
45
  minitest (~> 5.1)
46
46
  tzinfo (~> 1.1)
47
47
  arel (7.1.4)
48
- ast (2.3.0)
48
+ ast (2.4.0)
49
49
  builder (3.2.3)
50
50
  concurrent-ruby (1.0.5)
51
- crass (1.0.2)
51
+ crass (1.0.4)
52
52
  diff-lcs (1.3)
53
- docile (1.1.5)
53
+ docile (1.3.1)
54
54
  erubis (2.7.0)
55
- globalid (0.4.0)
55
+ globalid (0.4.1)
56
56
  activesupport (>= 4.2.0)
57
- i18n (0.8.6)
57
+ i18n (1.0.1)
58
+ concurrent-ruby (~> 1.0)
58
59
  json (2.1.0)
59
- loofah (2.1.1)
60
+ loofah (2.2.2)
60
61
  crass (~> 1.0.2)
61
62
  nokogiri (>= 1.5.9)
62
- mail (2.6.6)
63
- mime-types (>= 1.16, < 4)
63
+ mail (2.7.0)
64
+ mini_mime (>= 0.1.1)
64
65
  method_source (0.9.0)
65
- mime-types (3.1)
66
- mime-types-data (~> 3.2015)
67
- mime-types-data (3.2016.0521)
66
+ mini_mime (1.0.0)
68
67
  mini_portile2 (2.3.0)
69
- minitest (5.10.3)
70
- nio4r (2.1.0)
71
- nokogiri (1.8.1)
68
+ minitest (5.11.3)
69
+ nio4r (2.3.1)
70
+ nokogiri (1.8.2)
72
71
  mini_portile2 (~> 2.3.0)
73
- parallel (1.12.0)
74
- parser (2.4.0.0)
75
- ast (~> 2.2)
72
+ parallel (1.12.1)
73
+ parser (2.5.1.0)
74
+ ast (~> 2.4.0)
76
75
  powerpack (0.1.1)
77
- rack (2.0.3)
76
+ rack (2.0.5)
78
77
  rack-test (0.6.3)
79
78
  rack (>= 1.0)
80
- rails (5.0.6)
81
- actioncable (= 5.0.6)
82
- actionmailer (= 5.0.6)
83
- actionpack (= 5.0.6)
84
- actionview (= 5.0.6)
85
- activejob (= 5.0.6)
86
- activemodel (= 5.0.6)
87
- activerecord (= 5.0.6)
88
- activesupport (= 5.0.6)
79
+ rails (5.0.7)
80
+ actioncable (= 5.0.7)
81
+ actionmailer (= 5.0.7)
82
+ actionpack (= 5.0.7)
83
+ actionview (= 5.0.7)
84
+ activejob (= 5.0.7)
85
+ activemodel (= 5.0.7)
86
+ activerecord (= 5.0.7)
87
+ activesupport (= 5.0.7)
89
88
  bundler (>= 1.3.0)
90
- railties (= 5.0.6)
89
+ railties (= 5.0.7)
91
90
  sprockets-rails (>= 2.0.0)
92
91
  rails-dom-testing (2.0.3)
93
92
  activesupport (>= 4.2.0)
94
93
  nokogiri (>= 1.6)
95
- rails-html-sanitizer (1.0.3)
96
- loofah (~> 2.0)
97
- railties (5.0.6)
98
- actionpack (= 5.0.6)
99
- activesupport (= 5.0.6)
94
+ rails-html-sanitizer (1.0.4)
95
+ loofah (~> 2.2, >= 2.2.2)
96
+ railties (5.0.7)
97
+ actionpack (= 5.0.7)
98
+ activesupport (= 5.0.7)
100
99
  method_source
101
100
  rake (>= 0.8.7)
102
101
  thor (>= 0.18.1, < 2.0)
103
- rainbow (2.2.2)
104
- rake
105
- rake (12.1.0)
106
- rspec (3.6.0)
107
- rspec-core (~> 3.6.0)
108
- rspec-expectations (~> 3.6.0)
109
- rspec-mocks (~> 3.6.0)
110
- rspec-core (3.6.0)
111
- rspec-support (~> 3.6.0)
112
- rspec-expectations (3.6.0)
102
+ rainbow (3.0.0)
103
+ rake (12.3.1)
104
+ rspec (3.7.0)
105
+ rspec-core (~> 3.7.0)
106
+ rspec-expectations (~> 3.7.0)
107
+ rspec-mocks (~> 3.7.0)
108
+ rspec-core (3.7.1)
109
+ rspec-support (~> 3.7.0)
110
+ rspec-expectations (3.7.0)
113
111
  diff-lcs (>= 1.2.0, < 2.0)
114
- rspec-support (~> 3.6.0)
115
- rspec-mocks (3.6.0)
112
+ rspec-support (~> 3.7.0)
113
+ rspec-mocks (3.7.0)
116
114
  diff-lcs (>= 1.2.0, < 2.0)
117
- rspec-support (~> 3.6.0)
118
- rspec-support (3.6.0)
119
- rubocop (0.50.0)
115
+ rspec-support (~> 3.7.0)
116
+ rspec-support (3.7.1)
117
+ rubocop (0.52.1)
120
118
  parallel (~> 1.10)
121
- parser (>= 2.3.3.1, < 3.0)
119
+ parser (>= 2.4.0.2, < 3.0)
122
120
  powerpack (~> 0.1)
123
- rainbow (>= 2.2.2, < 3.0)
121
+ rainbow (>= 2.2.2, < 4.0)
124
122
  ruby-progressbar (~> 1.7)
125
123
  unicode-display_width (~> 1.0, >= 1.0.1)
126
124
  ruby-progressbar (1.9.0)
127
- simplecov (0.15.1)
128
- docile (~> 1.1.0)
125
+ simplecov (0.16.1)
126
+ docile (~> 1.1)
129
127
  json (>= 1.8, < 3)
130
128
  simplecov-html (~> 0.10.0)
131
129
  simplecov-html (0.10.2)
@@ -138,12 +136,12 @@ GEM
138
136
  sprockets (>= 3.0.0)
139
137
  thor (0.20.0)
140
138
  thread_safe (0.3.6)
141
- tzinfo (1.2.3)
139
+ tzinfo (1.2.5)
142
140
  thread_safe (~> 0.1)
143
- unicode-display_width (1.3.0)
141
+ unicode-display_width (1.3.3)
144
142
  websocket-driver (0.6.5)
145
143
  websocket-extensions (>= 0.1.0)
146
- websocket-extensions (0.1.2)
144
+ websocket-extensions (0.1.3)
147
145
 
148
146
  PLATFORMS
149
147
  ruby
@@ -151,10 +149,11 @@ PLATFORMS
151
149
  DEPENDENCIES
152
150
  bundler (~> 1.15)
153
151
  outrigger!
154
- rails (~> 5.0.0)
152
+ rails (~> 5.0.7)
153
+ railties (>= 5.0, < 5.3)
155
154
  rake (~> 12.0)
156
- rspec (~> 3.6.0)
157
- rubocop (~> 0.50.0)
155
+ rspec (~> 3.7.0)
156
+ rubocop (~> 0.52.0)
158
157
  simplecov (~> 0)
159
158
 
160
159
  BUNDLED WITH
@@ -2,4 +2,4 @@ source 'https://rubygems.org'
2
2
 
3
3
  gemspec path: '../../'
4
4
 
5
- gem 'rails', '~> 4.2.6'
5
+ gem 'rails', '~> 5.1.6'
@@ -0,0 +1,160 @@
1
+ PATH
2
+ remote: ../..
3
+ specs:
4
+ outrigger (1.3.0)
5
+ activerecord (>= 5.0, < 5.3)
6
+
7
+ GEM
8
+ remote: https://rubygems.org/
9
+ specs:
10
+ actioncable (5.1.6)
11
+ actionpack (= 5.1.6)
12
+ nio4r (~> 2.0)
13
+ websocket-driver (~> 0.6.1)
14
+ actionmailer (5.1.6)
15
+ actionpack (= 5.1.6)
16
+ actionview (= 5.1.6)
17
+ activejob (= 5.1.6)
18
+ mail (~> 2.5, >= 2.5.4)
19
+ rails-dom-testing (~> 2.0)
20
+ actionpack (5.1.6)
21
+ actionview (= 5.1.6)
22
+ activesupport (= 5.1.6)
23
+ rack (~> 2.0)
24
+ rack-test (>= 0.6.3)
25
+ rails-dom-testing (~> 2.0)
26
+ rails-html-sanitizer (~> 1.0, >= 1.0.2)
27
+ actionview (5.1.6)
28
+ activesupport (= 5.1.6)
29
+ builder (~> 3.1)
30
+ erubi (~> 1.4)
31
+ rails-dom-testing (~> 2.0)
32
+ rails-html-sanitizer (~> 1.0, >= 1.0.3)
33
+ activejob (5.1.6)
34
+ activesupport (= 5.1.6)
35
+ globalid (>= 0.3.6)
36
+ activemodel (5.1.6)
37
+ activesupport (= 5.1.6)
38
+ activerecord (5.1.6)
39
+ activemodel (= 5.1.6)
40
+ activesupport (= 5.1.6)
41
+ arel (~> 8.0)
42
+ activesupport (5.1.6)
43
+ concurrent-ruby (~> 1.0, >= 1.0.2)
44
+ i18n (>= 0.7, < 2)
45
+ minitest (~> 5.1)
46
+ tzinfo (~> 1.1)
47
+ arel (8.0.0)
48
+ ast (2.4.0)
49
+ builder (3.2.3)
50
+ concurrent-ruby (1.0.5)
51
+ crass (1.0.4)
52
+ diff-lcs (1.3)
53
+ docile (1.3.1)
54
+ erubi (1.7.1)
55
+ globalid (0.4.1)
56
+ activesupport (>= 4.2.0)
57
+ i18n (1.0.1)
58
+ concurrent-ruby (~> 1.0)
59
+ json (2.1.0)
60
+ loofah (2.2.2)
61
+ crass (~> 1.0.2)
62
+ nokogiri (>= 1.5.9)
63
+ mail (2.7.0)
64
+ mini_mime (>= 0.1.1)
65
+ method_source (0.9.0)
66
+ mini_mime (1.0.0)
67
+ mini_portile2 (2.3.0)
68
+ minitest (5.11.3)
69
+ nio4r (2.3.1)
70
+ nokogiri (1.8.2)
71
+ mini_portile2 (~> 2.3.0)
72
+ parallel (1.12.1)
73
+ parser (2.5.1.0)
74
+ ast (~> 2.4.0)
75
+ powerpack (0.1.1)
76
+ rack (2.0.5)
77
+ rack-test (1.0.0)
78
+ rack (>= 1.0, < 3)
79
+ rails (5.1.6)
80
+ actioncable (= 5.1.6)
81
+ actionmailer (= 5.1.6)
82
+ actionpack (= 5.1.6)
83
+ actionview (= 5.1.6)
84
+ activejob (= 5.1.6)
85
+ activemodel (= 5.1.6)
86
+ activerecord (= 5.1.6)
87
+ activesupport (= 5.1.6)
88
+ bundler (>= 1.3.0)
89
+ railties (= 5.1.6)
90
+ sprockets-rails (>= 2.0.0)
91
+ rails-dom-testing (2.0.3)
92
+ activesupport (>= 4.2.0)
93
+ nokogiri (>= 1.6)
94
+ rails-html-sanitizer (1.0.4)
95
+ loofah (~> 2.2, >= 2.2.2)
96
+ railties (5.1.6)
97
+ actionpack (= 5.1.6)
98
+ activesupport (= 5.1.6)
99
+ method_source
100
+ rake (>= 0.8.7)
101
+ thor (>= 0.18.1, < 2.0)
102
+ rainbow (3.0.0)
103
+ rake (12.3.1)
104
+ rspec (3.7.0)
105
+ rspec-core (~> 3.7.0)
106
+ rspec-expectations (~> 3.7.0)
107
+ rspec-mocks (~> 3.7.0)
108
+ rspec-core (3.7.1)
109
+ rspec-support (~> 3.7.0)
110
+ rspec-expectations (3.7.0)
111
+ diff-lcs (>= 1.2.0, < 2.0)
112
+ rspec-support (~> 3.7.0)
113
+ rspec-mocks (3.7.0)
114
+ diff-lcs (>= 1.2.0, < 2.0)
115
+ rspec-support (~> 3.7.0)
116
+ rspec-support (3.7.1)
117
+ rubocop (0.52.1)
118
+ parallel (~> 1.10)
119
+ parser (>= 2.4.0.2, < 3.0)
120
+ powerpack (~> 0.1)
121
+ rainbow (>= 2.2.2, < 4.0)
122
+ ruby-progressbar (~> 1.7)
123
+ unicode-display_width (~> 1.0, >= 1.0.1)
124
+ ruby-progressbar (1.9.0)
125
+ simplecov (0.16.1)
126
+ docile (~> 1.1)
127
+ json (>= 1.8, < 3)
128
+ simplecov-html (~> 0.10.0)
129
+ simplecov-html (0.10.2)
130
+ sprockets (3.7.1)
131
+ concurrent-ruby (~> 1.0)
132
+ rack (> 1, < 3)
133
+ sprockets-rails (3.2.1)
134
+ actionpack (>= 4.0)
135
+ activesupport (>= 4.0)
136
+ sprockets (>= 3.0.0)
137
+ thor (0.20.0)
138
+ thread_safe (0.3.6)
139
+ tzinfo (1.2.5)
140
+ thread_safe (~> 0.1)
141
+ unicode-display_width (1.3.3)
142
+ websocket-driver (0.6.5)
143
+ websocket-extensions (>= 0.1.0)
144
+ websocket-extensions (0.1.3)
145
+
146
+ PLATFORMS
147
+ ruby
148
+
149
+ DEPENDENCIES
150
+ bundler (~> 1.15)
151
+ outrigger!
152
+ rails (~> 5.1.6)
153
+ railties (>= 5.0, < 5.3)
154
+ rake (~> 12.0)
155
+ rspec (~> 3.7.0)
156
+ rubocop (~> 0.52.0)
157
+ simplecov (~> 0)
158
+
159
+ BUNDLED WITH
160
+ 1.15.3
@@ -0,0 +1,5 @@
1
+ source 'https://rubygems.org'
2
+
3
+ gemspec path: '../../'
4
+
5
+ gem 'rails', '~> 5.2.0'
@@ -0,0 +1,168 @@
1
+ PATH
2
+ remote: ../..
3
+ specs:
4
+ outrigger (1.3.0)
5
+ activerecord (>= 5.0, < 5.3)
6
+
7
+ GEM
8
+ remote: https://rubygems.org/
9
+ specs:
10
+ actioncable (5.2.0)
11
+ actionpack (= 5.2.0)
12
+ nio4r (~> 2.0)
13
+ websocket-driver (>= 0.6.1)
14
+ actionmailer (5.2.0)
15
+ actionpack (= 5.2.0)
16
+ actionview (= 5.2.0)
17
+ activejob (= 5.2.0)
18
+ mail (~> 2.5, >= 2.5.4)
19
+ rails-dom-testing (~> 2.0)
20
+ actionpack (5.2.0)
21
+ actionview (= 5.2.0)
22
+ activesupport (= 5.2.0)
23
+ rack (~> 2.0)
24
+ rack-test (>= 0.6.3)
25
+ rails-dom-testing (~> 2.0)
26
+ rails-html-sanitizer (~> 1.0, >= 1.0.2)
27
+ actionview (5.2.0)
28
+ activesupport (= 5.2.0)
29
+ builder (~> 3.1)
30
+ erubi (~> 1.4)
31
+ rails-dom-testing (~> 2.0)
32
+ rails-html-sanitizer (~> 1.0, >= 1.0.3)
33
+ activejob (5.2.0)
34
+ activesupport (= 5.2.0)
35
+ globalid (>= 0.3.6)
36
+ activemodel (5.2.0)
37
+ activesupport (= 5.2.0)
38
+ activerecord (5.2.0)
39
+ activemodel (= 5.2.0)
40
+ activesupport (= 5.2.0)
41
+ arel (>= 9.0)
42
+ activestorage (5.2.0)
43
+ actionpack (= 5.2.0)
44
+ activerecord (= 5.2.0)
45
+ marcel (~> 0.3.1)
46
+ activesupport (5.2.0)
47
+ concurrent-ruby (~> 1.0, >= 1.0.2)
48
+ i18n (>= 0.7, < 2)
49
+ minitest (~> 5.1)
50
+ tzinfo (~> 1.1)
51
+ arel (9.0.0)
52
+ ast (2.4.0)
53
+ builder (3.2.3)
54
+ concurrent-ruby (1.0.5)
55
+ crass (1.0.4)
56
+ diff-lcs (1.3)
57
+ docile (1.3.1)
58
+ erubi (1.7.1)
59
+ globalid (0.4.1)
60
+ activesupport (>= 4.2.0)
61
+ i18n (1.0.1)
62
+ concurrent-ruby (~> 1.0)
63
+ json (2.1.0)
64
+ loofah (2.2.2)
65
+ crass (~> 1.0.2)
66
+ nokogiri (>= 1.5.9)
67
+ mail (2.7.0)
68
+ mini_mime (>= 0.1.1)
69
+ marcel (0.3.2)
70
+ mimemagic (~> 0.3.2)
71
+ method_source (0.9.0)
72
+ mimemagic (0.3.2)
73
+ mini_mime (1.0.0)
74
+ mini_portile2 (2.3.0)
75
+ minitest (5.11.3)
76
+ nio4r (2.3.1)
77
+ nokogiri (1.8.2)
78
+ mini_portile2 (~> 2.3.0)
79
+ parallel (1.12.1)
80
+ parser (2.5.1.0)
81
+ ast (~> 2.4.0)
82
+ powerpack (0.1.1)
83
+ rack (2.0.5)
84
+ rack-test (1.0.0)
85
+ rack (>= 1.0, < 3)
86
+ rails (5.2.0)
87
+ actioncable (= 5.2.0)
88
+ actionmailer (= 5.2.0)
89
+ actionpack (= 5.2.0)
90
+ actionview (= 5.2.0)
91
+ activejob (= 5.2.0)
92
+ activemodel (= 5.2.0)
93
+ activerecord (= 5.2.0)
94
+ activestorage (= 5.2.0)
95
+ activesupport (= 5.2.0)
96
+ bundler (>= 1.3.0)
97
+ railties (= 5.2.0)
98
+ sprockets-rails (>= 2.0.0)
99
+ rails-dom-testing (2.0.3)
100
+ activesupport (>= 4.2.0)
101
+ nokogiri (>= 1.6)
102
+ rails-html-sanitizer (1.0.4)
103
+ loofah (~> 2.2, >= 2.2.2)
104
+ railties (5.2.0)
105
+ actionpack (= 5.2.0)
106
+ activesupport (= 5.2.0)
107
+ method_source
108
+ rake (>= 0.8.7)
109
+ thor (>= 0.18.1, < 2.0)
110
+ rainbow (3.0.0)
111
+ rake (12.3.1)
112
+ rspec (3.7.0)
113
+ rspec-core (~> 3.7.0)
114
+ rspec-expectations (~> 3.7.0)
115
+ rspec-mocks (~> 3.7.0)
116
+ rspec-core (3.7.1)
117
+ rspec-support (~> 3.7.0)
118
+ rspec-expectations (3.7.0)
119
+ diff-lcs (>= 1.2.0, < 2.0)
120
+ rspec-support (~> 3.7.0)
121
+ rspec-mocks (3.7.0)
122
+ diff-lcs (>= 1.2.0, < 2.0)
123
+ rspec-support (~> 3.7.0)
124
+ rspec-support (3.7.1)
125
+ rubocop (0.52.1)
126
+ parallel (~> 1.10)
127
+ parser (>= 2.4.0.2, < 3.0)
128
+ powerpack (~> 0.1)
129
+ rainbow (>= 2.2.2, < 4.0)
130
+ ruby-progressbar (~> 1.7)
131
+ unicode-display_width (~> 1.0, >= 1.0.1)
132
+ ruby-progressbar (1.9.0)
133
+ simplecov (0.16.1)
134
+ docile (~> 1.1)
135
+ json (>= 1.8, < 3)
136
+ simplecov-html (~> 0.10.0)
137
+ simplecov-html (0.10.2)
138
+ sprockets (3.7.1)
139
+ concurrent-ruby (~> 1.0)
140
+ rack (> 1, < 3)
141
+ sprockets-rails (3.2.1)
142
+ actionpack (>= 4.0)
143
+ activesupport (>= 4.0)
144
+ sprockets (>= 3.0.0)
145
+ thor (0.20.0)
146
+ thread_safe (0.3.6)
147
+ tzinfo (1.2.5)
148
+ thread_safe (~> 0.1)
149
+ unicode-display_width (1.3.3)
150
+ websocket-driver (0.7.0)
151
+ websocket-extensions (>= 0.1.0)
152
+ websocket-extensions (0.1.3)
153
+
154
+ PLATFORMS
155
+ ruby
156
+
157
+ DEPENDENCIES
158
+ bundler (~> 1.15)
159
+ outrigger!
160
+ rails (~> 5.2.0)
161
+ railties (>= 5.0, < 5.3)
162
+ rake (~> 12.0)
163
+ rspec (~> 3.7.0)
164
+ rubocop (~> 0.52.0)
165
+ simplecov (~> 0)
166
+
167
+ BUNDLED WITH
168
+ 1.15.3
@@ -14,35 +14,20 @@ RSpec.describe RuboCop::Cop::Migration::Tagged do # rubocop:disable Metrics/Bloc
14
14
  let(:config) { RuboCop::Config.new(config_hash) }
15
15
 
16
16
  let(:migration_class) do
17
- <<-RUBY
18
- class Test < ActiveRecord::Migration
19
- tag :predeploy
20
- def change
17
+ <<~RUBY
18
+ class Test < ActiveRecord::Migration[4.2]
19
+ tag :predeploy
20
+ def change
21
+ end
21
22
  end
22
- end
23
- RUBY
24
- end
25
-
26
- let(:migration_class_42) do
27
- <<-RUBY
28
- class Test < ActiveRecord::Migration[4.2]
29
- tag :predeploy
30
- def change
31
- end
32
- end
33
23
  RUBY
34
24
  end
35
25
 
36
26
  subject(:cop) { described_class.new(config) }
37
27
 
38
28
  shared_examples_for 'valid migrations' do
39
- it 'passes valid unversioned migration' do
40
- inspect_source(migration_class)
41
- expect(cop.offenses.empty?).to be(true)
42
- end
43
-
44
29
  it 'passes valid versioned migration' do
45
- inspect_source(migration_class_42)
30
+ inspect_source(migration_class)
46
31
  expect(cop.offenses.empty?).to be(true)
47
32
  end
48
33
  end
@@ -50,67 +35,36 @@ RSpec.describe RuboCop::Cop::Migration::Tagged do # rubocop:disable Metrics/Bloc
50
35
  context 'valid config' do # rubocop:disable Metrics/BlockLength
51
36
  include_examples 'valid migrations'
52
37
 
53
- context 'missing tags' do # rubocop:disable Metrics/BlockLength
38
+ context 'missing tags' do
54
39
  let(:migration_class) do
55
- <<-RUBY
56
- class Test < ActiveRecord::Migration
57
- def change
58
- end
59
- end
60
- RUBY
61
- end
62
-
63
- let(:migration_class_42) do
64
- <<-RUBY
65
- class Test < ActiveRecord::Migration[4.2]
66
- def change
40
+ <<~RUBY
41
+ class Test < ActiveRecord::Migration[4.2]
42
+ def change
43
+ end
67
44
  end
68
- end
69
45
  RUBY
70
46
  end
71
47
 
72
- it 'finds missing tag in unversioned migration' do
73
- inspect_source(migration_class)
74
- expect(cop.offenses.empty?).to be(false)
75
- expect(cop.offenses.first.message).to match(/All migrations require a tag from/)
76
- end
77
-
78
48
  it 'finds missing tag in versioned migration' do
79
- inspect_source(migration_class_42)
49
+ inspect_source(migration_class)
80
50
  expect(cop.offenses.empty?).to be(false)
81
51
  expect(cop.offenses.first.message).to match(/All migrations require a tag from/)
82
52
  end
83
53
  end
84
54
 
85
- context 'invalid tag' do # rubocop:disable Metrics/BlockLength
55
+ context 'invalid tag' do
86
56
  let(:migration_class) do
87
- <<-RUBY
88
- class Test < ActiveRecord::Migration
89
- tag :foobar
90
- def change
57
+ <<~RUBY
58
+ class Test < ActiveRecord::Migration[4.2]
59
+ tag :foobar
60
+ def change
61
+ end
91
62
  end
92
- end
93
63
  RUBY
94
64
  end
95
65
 
96
- let(:migration_class_42) do
97
- <<-RUBY
98
- class Test < ActiveRecord::Migration[4.2]
99
- tag :foobar
100
- def change
101
- end
102
- end
103
- RUBY
104
- end
105
-
106
- it 'fails on invalid tag in unversioned migration' do
107
- inspect_source(migration_class)
108
- expect(cop.offenses.empty?).to be(false)
109
- expect(cop.offenses.first.message).to match(/Tags may only be one of/)
110
- end
111
-
112
66
  it 'fails on invalid tag in versioned migration' do
113
- inspect_source(migration_class_42)
67
+ inspect_source(migration_class)
114
68
  expect(cop.offenses.empty?).to be(false)
115
69
  expect(cop.offenses.first.message).to match(/Tags may only be one of/)
116
70
  end
@@ -127,14 +81,8 @@ RSpec.describe RuboCop::Cop::Migration::Tagged do # rubocop:disable Metrics/Bloc
127
81
  }
128
82
  end
129
83
 
130
- it 'fails on missing tags in configuration on unversioned migration' do
131
- inspect_source(migration_class)
132
- expect(cop.offenses.empty?).to be(false)
133
- expect(cop.offenses.first.message).to match(/No allowed tags have been defined/)
134
- end
135
-
136
84
  it 'fails on missing tags in configuration on versioned migration' do
137
- inspect_source(migration_class_42)
85
+ inspect_source(migration_class)
138
86
  expect(cop.offenses.empty?).to be(false)
139
87
  expect(cop.offenses.first.message).to match(/No allowed tags have been defined/)
140
88
  end
@@ -2,19 +2,6 @@ require 'spec_helper'
2
2
 
3
3
  describe Outrigger do
4
4
  describe 'filter' do
5
- before do
6
- class PreDeployMigration < ActiveRecord::Migration
7
- tag :predeploy
8
- end
9
-
10
- class UntaggedMigration < ActiveRecord::Migration
11
- end
12
-
13
- class MultiMigration < ActiveRecord::Migration
14
- tag :predeploy, :dynamo
15
- end
16
- end
17
-
18
5
  it 'should return a proc that tests migrations' do
19
6
  filter = Outrigger.filter(:predeploy)
20
7
 
@@ -22,7 +9,7 @@ describe Outrigger do
22
9
  end
23
10
 
24
11
  it 'should accept multiple tags' do
25
- filter = Outrigger.filter(:predeploy, :dynamo)
12
+ filter = Outrigger.filter(:predeploy, :postdeploy)
26
13
 
27
14
  expect(filter.call(MultiMigration)).to eq(true)
28
15
  expect(filter.call(PreDeployMigration)).to eq(false)
@@ -6,12 +6,6 @@ class TestProxy
6
6
  end
7
7
 
8
8
  describe Outrigger::TaggableProxy do
9
- before do
10
- class PreDeployMigration < ActiveRecord::Migration
11
- tag :predeploy
12
- end
13
- end
14
-
15
9
  it 'it should delegate tags to the migration' do
16
10
  proxy = TestProxy.new
17
11
  proxy.migration = PreDeployMigration.new
@@ -1,25 +1,6 @@
1
1
  require 'spec_helper'
2
2
 
3
- module ActiveRecord
4
- class Migration
5
- include Outrigger::Taggable
6
- end
7
- end
8
-
9
3
  describe Outrigger::Taggable do
10
- before do
11
- class PreDeployMigration < ActiveRecord::Migration
12
- tag :predeploy
13
- end
14
-
15
- class UntaggedMigration < ActiveRecord::Migration
16
- end
17
-
18
- class PostDeployMigration < ActiveRecord::Migration
19
- tag :postdeploy
20
- end
21
- end
22
-
23
4
  it 'PreDeployMigration should be predeploy' do
24
5
  expect(PreDeployMigration.tags).to eq([:predeploy])
25
6
  end
@@ -4,7 +4,7 @@ SimpleCov.start do
4
4
  add_filter 'spec'
5
5
  track_files 'lib/**/*.rb'
6
6
  end
7
- SimpleCov.minimum_coverage(75)
7
+ SimpleCov.minimum_coverage(85)
8
8
 
9
9
  require 'bundler/setup'
10
10
  require 'rails/railtie'
@@ -13,6 +13,24 @@ require 'rubocop/rspec/support'
13
13
 
14
14
  require 'outrigger'
15
15
 
16
+ ActiveRecord::Migration.send :include, Outrigger::Taggable
17
+ ActiveRecord::MigrationProxy.send :include, Outrigger::TaggableProxy
18
+
19
+ class PreDeployMigration < ActiveRecord::Migration[5.0]
20
+ tag :predeploy
21
+ end
22
+
23
+ class UntaggedMigration < ActiveRecord::Migration[5.0]
24
+ end
25
+
26
+ class PostDeployMigration < ActiveRecord::Migration[5.0]
27
+ tag :postdeploy
28
+ end
29
+
30
+ class MultiMigration < ActiveRecord::Migration[5.0]
31
+ tag :predeploy, :postdeploy
32
+ end
33
+
16
34
  RSpec.configure do |config|
17
35
  config.order = 'random'
18
36
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: outrigger
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.3
4
+ version: 2.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Drew Bowman
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-04-10 00:00:00.000000000 Z
11
+ date: 2018-05-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord
@@ -16,20 +16,20 @@ 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: '5.3'
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: '5.3'
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: bundler
35
35
  requirement: !ruby/object:Gem::Requirement
@@ -50,20 +50,20 @@ dependencies:
50
50
  requirements:
51
51
  - - ">="
52
52
  - !ruby/object:Gem::Version
53
- version: '4.2'
53
+ version: '5.0'
54
54
  - - "<"
55
55
  - !ruby/object:Gem::Version
56
- version: '5.2'
56
+ version: '5.3'
57
57
  type: :development
58
58
  prerelease: false
59
59
  version_requirements: !ruby/object:Gem::Requirement
60
60
  requirements:
61
61
  - - ">="
62
62
  - !ruby/object:Gem::Version
63
- version: '4.2'
63
+ version: '5.0'
64
64
  - - "<"
65
65
  - !ruby/object:Gem::Version
66
- version: '5.2'
66
+ version: '5.3'
67
67
  - !ruby/object:Gem::Dependency
68
68
  name: rake
69
69
  requirement: !ruby/object:Gem::Requirement
@@ -84,14 +84,14 @@ dependencies:
84
84
  requirements:
85
85
  - - "~>"
86
86
  - !ruby/object:Gem::Version
87
- version: 3.6.0
87
+ version: 3.7.0
88
88
  type: :development
89
89
  prerelease: false
90
90
  version_requirements: !ruby/object:Gem::Requirement
91
91
  requirements:
92
92
  - - "~>"
93
93
  - !ruby/object:Gem::Version
94
- version: 3.6.0
94
+ version: 3.7.0
95
95
  - !ruby/object:Gem::Dependency
96
96
  name: rubocop
97
97
  requirement: !ruby/object:Gem::Requirement
@@ -134,10 +134,12 @@ files:
134
134
  - lib/outrigger/taggable_proxy.rb
135
135
  - lib/outrigger/version.rb
136
136
  - lib/tasks/outrigger.rake
137
- - spec/gemfiles/rails-4.2.gemfile
138
- - spec/gemfiles/rails-4.2.gemfile.lock
139
137
  - spec/gemfiles/rails-5.0.gemfile
140
138
  - spec/gemfiles/rails-5.0.gemfile.lock
139
+ - spec/gemfiles/rails-5.1.gemfile
140
+ - spec/gemfiles/rails-5.1.gemfile.lock
141
+ - spec/gemfiles/rails-5.2.gemfile
142
+ - spec/gemfiles/rails-5.2.gemfile.lock
141
143
  - spec/outrigger/cops/migration/tagged_spec.rb
142
144
  - spec/outrigger/outrigger_spec.rb
143
145
  - spec/outrigger/railtie_spec.rb
@@ -169,10 +171,12 @@ signing_key:
169
171
  specification_version: 4
170
172
  summary: Tag migrations and run them separately
171
173
  test_files:
172
- - spec/gemfiles/rails-4.2.gemfile
173
- - spec/gemfiles/rails-4.2.gemfile.lock
174
174
  - spec/gemfiles/rails-5.0.gemfile
175
175
  - spec/gemfiles/rails-5.0.gemfile.lock
176
+ - spec/gemfiles/rails-5.1.gemfile
177
+ - spec/gemfiles/rails-5.1.gemfile.lock
178
+ - spec/gemfiles/rails-5.2.gemfile
179
+ - spec/gemfiles/rails-5.2.gemfile.lock
176
180
  - spec/outrigger/cops/migration/tagged_spec.rb
177
181
  - spec/outrigger/outrigger_spec.rb
178
182
  - spec/outrigger/railtie_spec.rb
@@ -1,162 +0,0 @@
1
- PATH
2
- remote: ../..
3
- specs:
4
- outrigger (1.2.0)
5
- activerecord (>= 4.2, < 5.2)
6
-
7
- GEM
8
- remote: https://rubygems.org/
9
- specs:
10
- actionmailer (4.2.10)
11
- actionpack (= 4.2.10)
12
- actionview (= 4.2.10)
13
- activejob (= 4.2.10)
14
- mail (~> 2.5, >= 2.5.4)
15
- rails-dom-testing (~> 1.0, >= 1.0.5)
16
- actionpack (4.2.10)
17
- actionview (= 4.2.10)
18
- activesupport (= 4.2.10)
19
- rack (~> 1.6)
20
- rack-test (~> 0.6.2)
21
- rails-dom-testing (~> 1.0, >= 1.0.5)
22
- rails-html-sanitizer (~> 1.0, >= 1.0.2)
23
- actionview (4.2.10)
24
- activesupport (= 4.2.10)
25
- builder (~> 3.1)
26
- erubis (~> 2.7.0)
27
- rails-dom-testing (~> 1.0, >= 1.0.5)
28
- rails-html-sanitizer (~> 1.0, >= 1.0.3)
29
- activejob (4.2.10)
30
- activesupport (= 4.2.10)
31
- globalid (>= 0.3.0)
32
- activemodel (4.2.10)
33
- activesupport (= 4.2.10)
34
- builder (~> 3.1)
35
- activerecord (4.2.10)
36
- activemodel (= 4.2.10)
37
- activesupport (= 4.2.10)
38
- arel (~> 6.0)
39
- activesupport (4.2.10)
40
- i18n (~> 0.7)
41
- minitest (~> 5.1)
42
- thread_safe (~> 0.3, >= 0.3.4)
43
- tzinfo (~> 1.1)
44
- arel (6.0.4)
45
- ast (2.3.0)
46
- awesome_print (1.8.0)
47
- builder (3.2.3)
48
- coderay (1.1.2)
49
- concurrent-ruby (1.0.5)
50
- crass (1.0.2)
51
- diff-lcs (1.3)
52
- docile (1.1.5)
53
- erubis (2.7.0)
54
- globalid (0.4.0)
55
- activesupport (>= 4.2.0)
56
- i18n (0.8.6)
57
- json (2.1.0)
58
- loofah (2.1.1)
59
- crass (~> 1.0.2)
60
- nokogiri (>= 1.5.9)
61
- mail (2.6.6)
62
- mime-types (>= 1.16, < 4)
63
- method_source (0.9.0)
64
- mime-types (3.1)
65
- mime-types-data (~> 3.2015)
66
- mime-types-data (3.2016.0521)
67
- mini_portile2 (2.3.0)
68
- minitest (5.10.3)
69
- nokogiri (1.8.1)
70
- mini_portile2 (~> 2.3.0)
71
- parallel (1.12.0)
72
- parser (2.4.0.0)
73
- ast (~> 2.2)
74
- powerpack (0.1.1)
75
- pry (0.11.1)
76
- coderay (~> 1.1.0)
77
- method_source (~> 0.9.0)
78
- rack (1.6.8)
79
- rack-test (0.6.3)
80
- rack (>= 1.0)
81
- rails (4.2.10)
82
- actionmailer (= 4.2.10)
83
- actionpack (= 4.2.10)
84
- actionview (= 4.2.10)
85
- activejob (= 4.2.10)
86
- activemodel (= 4.2.10)
87
- activerecord (= 4.2.10)
88
- activesupport (= 4.2.10)
89
- bundler (>= 1.3.0, < 2.0)
90
- railties (= 4.2.10)
91
- sprockets-rails
92
- rails-deprecated_sanitizer (1.0.3)
93
- activesupport (>= 4.2.0.alpha)
94
- rails-dom-testing (1.0.8)
95
- activesupport (>= 4.2.0.beta, < 5.0)
96
- nokogiri (~> 1.6)
97
- rails-deprecated_sanitizer (>= 1.0.1)
98
- rails-html-sanitizer (1.0.3)
99
- loofah (~> 2.0)
100
- railties (4.2.10)
101
- actionpack (= 4.2.10)
102
- activesupport (= 4.2.10)
103
- rake (>= 0.8.7)
104
- thor (>= 0.18.1, < 2.0)
105
- rainbow (2.2.2)
106
- rake
107
- rake (12.1.0)
108
- rspec (3.6.0)
109
- rspec-core (~> 3.6.0)
110
- rspec-expectations (~> 3.6.0)
111
- rspec-mocks (~> 3.6.0)
112
- rspec-core (3.6.0)
113
- rspec-support (~> 3.6.0)
114
- rspec-expectations (3.6.0)
115
- diff-lcs (>= 1.2.0, < 2.0)
116
- rspec-support (~> 3.6.0)
117
- rspec-mocks (3.6.0)
118
- diff-lcs (>= 1.2.0, < 2.0)
119
- rspec-support (~> 3.6.0)
120
- rspec-support (3.6.0)
121
- rubocop (0.50.0)
122
- parallel (~> 1.10)
123
- parser (>= 2.3.3.1, < 3.0)
124
- powerpack (~> 0.1)
125
- rainbow (>= 2.2.2, < 3.0)
126
- ruby-progressbar (~> 1.7)
127
- unicode-display_width (~> 1.0, >= 1.0.1)
128
- ruby-progressbar (1.9.0)
129
- simplecov (0.15.1)
130
- docile (~> 1.1.0)
131
- json (>= 1.8, < 3)
132
- simplecov-html (~> 0.10.0)
133
- simplecov-html (0.10.2)
134
- sprockets (3.7.1)
135
- concurrent-ruby (~> 1.0)
136
- rack (> 1, < 3)
137
- sprockets-rails (3.2.1)
138
- actionpack (>= 4.0)
139
- activesupport (>= 4.0)
140
- sprockets (>= 3.0.0)
141
- thor (0.20.0)
142
- thread_safe (0.3.6)
143
- tzinfo (1.2.3)
144
- thread_safe (~> 0.1)
145
- unicode-display_width (1.3.0)
146
-
147
- PLATFORMS
148
- ruby
149
-
150
- DEPENDENCIES
151
- awesome_print (~> 1.8)
152
- bundler (~> 1.15)
153
- outrigger!
154
- pry (~> 0)
155
- rails (~> 4.2.6)
156
- rake (~> 12.0)
157
- rspec (~> 3.6.0)
158
- rubocop (~> 0.50.0)
159
- simplecov (~> 0)
160
-
161
- BUNDLED WITH
162
- 1.15.3