tb_redirects 0.9.0 → 1.0.beta1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (34) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +2 -2
  3. data/Rakefile +1 -5
  4. data/app/controllers/admin/tb_redirects_controller.rb +11 -14
  5. data/app/controllers/concerns/tb_redirects/handle_redirects.rb +3 -4
  6. data/app/helpers/admin/tb_redirects_helper.rb +2 -4
  7. data/app/jobs/tb_redirects/detect_redirect_loop_job.rb +5 -5
  8. data/app/models/concerns/tb_redirects/has_redirects.rb +1 -2
  9. data/app/models/tb_redirect.rb +12 -14
  10. data/lib/tb_redirects/engine.rb +5 -5
  11. data/lib/tb_redirects/version.rb +1 -1
  12. data/lib/tb_redirects.rb +1 -1
  13. data/spec/concerns/tb_redirects/has_redirects_spec.rb +6 -8
  14. data/spec/controllers/admin/tb_redirects_controller_spec.rb +13 -15
  15. data/spec/controllers/application_controller_spec.rb +3 -5
  16. data/spec/dummy/bin/setup +8 -8
  17. data/spec/dummy/config/application.rb +3 -7
  18. data/spec/dummy/config/environments/production.rb +1 -1
  19. data/spec/dummy/config/environments/test.rb +2 -2
  20. data/spec/dummy/db/migrate/20160211160615_create_spud_users.tb_core.rb +9 -10
  21. data/spec/dummy/db/migrate/20160211160616_add_time_zone_to_spud_user.tb_core.rb +0 -1
  22. data/spec/dummy/db/migrate/20160211160617_add_scope_to_spud_admin_permissions.tb_core.rb +0 -1
  23. data/spec/dummy/db/migrate/20160211160620_create_spud_permissions.tb_core.rb +3 -3
  24. data/spec/dummy/db/migrate/20160211160621_create_spud_role_permissions.tb_core.rb +2 -2
  25. data/spec/dummy/db/migrate/20160211160623_add_requires_password_change_to_spud_users.tb_core.rb +1 -1
  26. data/spec/dummy/db/migrate/20160212211331_create_tb_redirects.tb_redirects.rb +3 -3
  27. data/spec/dummy/db/schema.rb +64 -66
  28. data/spec/factories/tb_redirects.rb +2 -2
  29. data/spec/helpers/admin/tb_redirects_helper_spec.rb +0 -2
  30. data/spec/jobs/tb_redirects/detect_redirect_loop_job_spec.rb +25 -27
  31. data/spec/models/tb_redirect_spec.rb +24 -27
  32. data/spec/rails_helper.rb +9 -3
  33. data/spec/spec_helper.rb +47 -49
  34. metadata +57 -29
metadata CHANGED
@@ -1,43 +1,43 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tb_redirects
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.0
4
+ version: 1.0.beta1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Greg Woods
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-03-10 00:00:00.000000000 Z
11
+ date: 2016-10-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tb_core
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - "~>"
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: 1.3.7
19
+ version: 1.4.beta2
20
20
  type: :runtime
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: 1.3.7
26
+ version: 1.4.beta2
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rails
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - "~>"
31
+ - - ">="
32
32
  - !ruby/object:Gem::Version
33
- version: 4.2.5
33
+ version: 5.0.0.1
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - "~>"
38
+ - - ">="
39
39
  - !ruby/object:Gem::Version
40
- version: 4.2.5
40
+ version: 5.0.0.1
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: mysql2
43
43
  requirement: !ruby/object:Gem::Requirement
@@ -56,58 +56,86 @@ dependencies:
56
56
  name: rspec-rails
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - "~>"
59
+ - - ">="
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - ">="
67
+ - !ruby/object:Gem::Version
68
+ version: '0'
69
+ - !ruby/object:Gem::Dependency
70
+ name: rails-controller-testing
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - ">="
60
74
  - !ruby/object:Gem::Version
61
- version: 3.4.2
75
+ version: '0'
62
76
  type: :development
63
77
  prerelease: false
64
78
  version_requirements: !ruby/object:Gem::Requirement
65
79
  requirements:
66
- - - "~>"
80
+ - - ">="
67
81
  - !ruby/object:Gem::Version
68
- version: 3.4.2
82
+ version: '0'
69
83
  - !ruby/object:Gem::Dependency
70
84
  name: factory_girl_rails
71
85
  requirement: !ruby/object:Gem::Requirement
72
86
  requirements:
73
- - - "~>"
87
+ - - ">="
74
88
  - !ruby/object:Gem::Version
75
- version: 4.6.0
89
+ version: '0'
76
90
  type: :development
77
91
  prerelease: false
78
92
  version_requirements: !ruby/object:Gem::Requirement
79
93
  requirements:
80
- - - "~>"
94
+ - - ">="
81
95
  - !ruby/object:Gem::Version
82
- version: 4.6.0
96
+ version: '0'
83
97
  - !ruby/object:Gem::Dependency
84
98
  name: database_cleaner
85
99
  requirement: !ruby/object:Gem::Requirement
86
100
  requirements:
87
- - - "~>"
101
+ - - ">="
88
102
  - !ruby/object:Gem::Version
89
- version: 1.5.1
103
+ version: '0'
90
104
  type: :development
91
105
  prerelease: false
92
106
  version_requirements: !ruby/object:Gem::Requirement
93
107
  requirements:
94
- - - "~>"
108
+ - - ">="
95
109
  - !ruby/object:Gem::Version
96
- version: 1.5.1
110
+ version: '0'
97
111
  - !ruby/object:Gem::Dependency
98
112
  name: simplecov
99
113
  requirement: !ruby/object:Gem::Requirement
100
114
  requirements:
101
- - - "~>"
115
+ - - ">="
116
+ - !ruby/object:Gem::Version
117
+ version: '0'
118
+ type: :development
119
+ prerelease: false
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ requirements:
122
+ - - ">="
123
+ - !ruby/object:Gem::Version
124
+ version: '0'
125
+ - !ruby/object:Gem::Dependency
126
+ name: rubocop
127
+ requirement: !ruby/object:Gem::Requirement
128
+ requirements:
129
+ - - ">="
102
130
  - !ruby/object:Gem::Version
103
- version: 0.11.2
131
+ version: '0'
104
132
  type: :development
105
133
  prerelease: false
106
134
  version_requirements: !ruby/object:Gem::Requirement
107
135
  requirements:
108
- - - "~>"
136
+ - - ">="
109
137
  - !ruby/object:Gem::Version
110
- version: 0.11.2
138
+ version: '0'
111
139
  description: TbRedirects provides a tool for creating and managing 301 redirects for
112
140
  your website
113
141
  email:
@@ -219,12 +247,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
219
247
  version: '0'
220
248
  required_rubygems_version: !ruby/object:Gem::Requirement
221
249
  requirements:
222
- - - ">="
250
+ - - ">"
223
251
  - !ruby/object:Gem::Version
224
- version: '0'
252
+ version: 1.3.1
225
253
  requirements: []
226
254
  rubyforge_project:
227
- rubygems_version: 2.4.5.1
255
+ rubygems_version: 2.5.1
228
256
  signing_key:
229
257
  specification_version: 4
230
258
  summary: Simple redirect management for Twice Baked