plug 0.1.19 → 0.1.24

Sign up to get free protection for your applications and to get access to all the features.
Files changed (45) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +31 -9
  3. data/Rakefile +3 -1
  4. data/app/assets/javascripts/plug/application.js +5 -0
  5. data/app/assets/javascripts/plug/trix-core.js +12 -0
  6. data/app/assets/stylesheets/plug/application.scss +2 -0
  7. data/app/assets/stylesheets/plug/blocks/_state.scss +4 -2
  8. data/app/assets/stylesheets/plug/milligram.scss +632 -599
  9. data/app/assets/stylesheets/plug/trix-overrides.scss +8 -0
  10. data/app/assets/stylesheets/plug/trix.scss +374 -0
  11. data/app/controllers/plug/api/api_controller.rb +2 -0
  12. data/app/controllers/plug/api/features_controller.rb +21 -0
  13. data/app/controllers/plug/api/site_notices_controller.rb +2 -0
  14. data/app/controllers/plug/application_controller.rb +5 -3
  15. data/app/controllers/plug/features_controller.rb +13 -19
  16. data/app/controllers/plug/site_notices_controller.rb +13 -19
  17. data/app/helpers/plug/application_helper.rb +2 -0
  18. data/app/mailers/plug/application_mailer.rb +2 -0
  19. data/app/models/plug/application_record.rb +2 -0
  20. data/app/models/plug/concerns/model_helpers.rb +6 -5
  21. data/app/models/plug/feature.rb +2 -0
  22. data/app/models/plug/resources/feature.rb +15 -0
  23. data/app/models/plug/resources/site_notice.rb +2 -2
  24. data/app/models/plug/site_notice.rb +2 -1
  25. data/app/services/plug/task_execution_service.rb +2 -0
  26. data/app/views/plug/features/index.html.haml +6 -6
  27. data/app/views/plug/shared/_head.html.haml +1 -1
  28. data/app/views/plug/shared/_nav.html.haml +1 -1
  29. data/app/views/plug/site_notices/_form.html.haml +3 -2
  30. data/app/views/plug/site_notices/index.html.haml +7 -7
  31. data/config/routes.rb +4 -0
  32. data/db/migrate/20171207020316_create_plug_features.rb +1 -1
  33. data/db/migrate/20180128202026_add_notice_to_plug_features.rb +1 -1
  34. data/db/migrate/20180403024712_create_plug_site_notices.rb +1 -1
  35. data/db/migrate/20180424015828_add_theme_to_plug_site_notice.rb +2 -0
  36. data/lib/generators/plug/install_generator.rb +3 -1
  37. data/lib/generators/plug/templates/plug.rb +1 -0
  38. data/lib/plug.rb +15 -13
  39. data/lib/plug/configuration.rb +11 -9
  40. data/lib/plug/constraint.rb +4 -2
  41. data/lib/plug/engine.rb +4 -0
  42. data/lib/plug/version.rb +3 -1
  43. data/lib/tasks/plug_tasks.rake +1 -0
  44. metadata +32 -29
  45. data/app/models/plug/concerns/themeable.rb +0 -16
data/lib/plug/version.rb CHANGED
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Plug
2
- VERSION = '0.1.19'
4
+ VERSION = '0.1.24'
3
5
  end
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  # desc "Explaining what the task does"
2
3
  # task :plug do
3
4
  # # Task goes here
metadata CHANGED
@@ -1,18 +1,18 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: plug
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.19
4
+ version: 0.1.24
5
5
  platform: ruby
6
6
  authors:
7
- - Ben
8
7
  - Boost
8
+ - DNZ
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2020-06-04 00:00:00.000000000 Z
12
+ date: 2021-07-20 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
- name: rails
15
+ name: aasm
16
16
  requirement: !ruby/object:Gem::Requirement
17
17
  requirements:
18
18
  - - ">="
@@ -26,7 +26,7 @@ dependencies:
26
26
  - !ruby/object:Gem::Version
27
27
  version: '0'
28
28
  - !ruby/object:Gem::Dependency
29
- name: sass-rails
29
+ name: activeresource
30
30
  requirement: !ruby/object:Gem::Requirement
31
31
  requirements:
32
32
  - - ">="
@@ -40,7 +40,7 @@ dependencies:
40
40
  - !ruby/object:Gem::Version
41
41
  version: '0'
42
42
  - !ruby/object:Gem::Dependency
43
- name: jquery-rails
43
+ name: haml-rails
44
44
  requirement: !ruby/object:Gem::Requirement
45
45
  requirements:
46
46
  - - ">="
@@ -54,7 +54,7 @@ dependencies:
54
54
  - !ruby/object:Gem::Version
55
55
  version: '0'
56
56
  - !ruby/object:Gem::Dependency
57
- name: haml-rails
57
+ name: jquery-rails
58
58
  requirement: !ruby/object:Gem::Requirement
59
59
  requirements:
60
60
  - - ">="
@@ -68,21 +68,21 @@ dependencies:
68
68
  - !ruby/object:Gem::Version
69
69
  version: '0'
70
70
  - !ruby/object:Gem::Dependency
71
- name: aasm
71
+ name: rails
72
72
  requirement: !ruby/object:Gem::Requirement
73
73
  requirements:
74
74
  - - ">="
75
75
  - !ruby/object:Gem::Version
76
- version: '0'
76
+ version: '5.2'
77
77
  type: :runtime
78
78
  prerelease: false
79
79
  version_requirements: !ruby/object:Gem::Requirement
80
80
  requirements:
81
81
  - - ">="
82
82
  - !ruby/object:Gem::Version
83
- version: '0'
83
+ version: '5.2'
84
84
  - !ruby/object:Gem::Dependency
85
- name: activeresource
85
+ name: sass-rails
86
86
  requirement: !ruby/object:Gem::Requirement
87
87
  requirements:
88
88
  - - ">="
@@ -96,7 +96,7 @@ dependencies:
96
96
  - !ruby/object:Gem::Version
97
97
  version: '0'
98
98
  - !ruby/object:Gem::Dependency
99
- name: sqlite3
99
+ name: capybara
100
100
  requirement: !ruby/object:Gem::Requirement
101
101
  requirements:
102
102
  - - ">="
@@ -110,35 +110,35 @@ dependencies:
110
110
  - !ruby/object:Gem::Version
111
111
  version: '0'
112
112
  - !ruby/object:Gem::Dependency
113
- name: rspec-rails
113
+ name: factory_bot_rails
114
114
  requirement: !ruby/object:Gem::Requirement
115
115
  requirements:
116
- - - "~>"
116
+ - - ">="
117
117
  - !ruby/object:Gem::Version
118
- version: 3.7.1
118
+ version: '0'
119
119
  type: :development
120
120
  prerelease: false
121
121
  version_requirements: !ruby/object:Gem::Requirement
122
122
  requirements:
123
- - - "~>"
123
+ - - ">="
124
124
  - !ruby/object:Gem::Version
125
- version: 3.7.1
125
+ version: '0'
126
126
  - !ruby/object:Gem::Dependency
127
127
  name: rails-controller-testing
128
128
  requirement: !ruby/object:Gem::Requirement
129
129
  requirements:
130
- - - "~>"
130
+ - - ">="
131
131
  - !ruby/object:Gem::Version
132
- version: 1.0.2
132
+ version: '0'
133
133
  type: :development
134
134
  prerelease: false
135
135
  version_requirements: !ruby/object:Gem::Requirement
136
136
  requirements:
137
- - - "~>"
137
+ - - ">="
138
138
  - !ruby/object:Gem::Version
139
- version: 1.0.2
139
+ version: '0'
140
140
  - !ruby/object:Gem::Dependency
141
- name: factory_bot_rails
141
+ name: rspec-rails
142
142
  requirement: !ruby/object:Gem::Requirement
143
143
  requirements:
144
144
  - - ">="
@@ -152,7 +152,7 @@ dependencies:
152
152
  - !ruby/object:Gem::Version
153
153
  version: '0'
154
154
  - !ruby/object:Gem::Dependency
155
- name: capybara
155
+ name: selenium-webdriver
156
156
  requirement: !ruby/object:Gem::Requirement
157
157
  requirements:
158
158
  - - ">="
@@ -166,7 +166,7 @@ dependencies:
166
166
  - !ruby/object:Gem::Version
167
167
  version: '0'
168
168
  - !ruby/object:Gem::Dependency
169
- name: selenium-webdriver
169
+ name: shoulda-matchers
170
170
  requirement: !ruby/object:Gem::Requirement
171
171
  requirements:
172
172
  - - ">="
@@ -180,7 +180,7 @@ dependencies:
180
180
  - !ruby/object:Gem::Version
181
181
  version: '0'
182
182
  - !ruby/object:Gem::Dependency
183
- name: shoulda-matchers
183
+ name: sqlite3
184
184
  requirement: !ruby/object:Gem::Requirement
185
185
  requirements:
186
186
  - - ">="
@@ -193,9 +193,8 @@ dependencies:
193
193
  - - ">="
194
194
  - !ruby/object:Gem::Version
195
195
  version: '0'
196
- description: Rails engine that can plug/unplug features with notice (WIP)
196
+ description: Rails engine that can plug/unplug features with notice
197
197
  email:
198
- - benedict@boost.co.nz
199
198
  - info@boost.co.nz
200
199
  executables: []
201
200
  extensions: []
@@ -208,6 +207,7 @@ files:
208
207
  - app/assets/images/favicon.png
209
208
  - app/assets/javascripts/plug/application.js
210
209
  - app/assets/javascripts/plug/features.js
210
+ - app/assets/javascripts/plug/trix-core.js
211
211
  - app/assets/stylesheets/plug/_settings.scss
212
212
  - app/assets/stylesheets/plug/application.scss
213
213
  - app/assets/stylesheets/plug/blocks/_alert.scss
@@ -222,9 +222,12 @@ files:
222
222
  - app/assets/stylesheets/plug/normalize.scss
223
223
  - app/assets/stylesheets/plug/partials/_main.scss
224
224
  - app/assets/stylesheets/plug/partials/_utils.scss
225
+ - app/assets/stylesheets/plug/trix-overrides.scss
226
+ - app/assets/stylesheets/plug/trix.scss
225
227
  - app/assets/stylesheets/plug/variables/_colors.scss
226
228
  - app/assets/stylesheets/plug/variables/_typography.scss
227
229
  - app/controllers/plug/api/api_controller.rb
230
+ - app/controllers/plug/api/features_controller.rb
228
231
  - app/controllers/plug/api/site_notices_controller.rb
229
232
  - app/controllers/plug/application_controller.rb
230
233
  - app/controllers/plug/features_controller.rb
@@ -233,8 +236,8 @@ files:
233
236
  - app/mailers/plug/application_mailer.rb
234
237
  - app/models/plug/application_record.rb
235
238
  - app/models/plug/concerns/model_helpers.rb
236
- - app/models/plug/concerns/themeable.rb
237
239
  - app/models/plug/feature.rb
240
+ - app/models/plug/resources/feature.rb
238
241
  - app/models/plug/resources/site_notice.rb
239
242
  - app/models/plug/site_notice.rb
240
243
  - app/services/plug/task_execution_service.rb
@@ -263,7 +266,7 @@ files:
263
266
  - lib/plug/engine.rb
264
267
  - lib/plug/version.rb
265
268
  - lib/tasks/plug_tasks.rake
266
- homepage: https://github.com/hapiben/plug
269
+ homepage: https://github.com/digitalnz/plug
267
270
  licenses:
268
271
  - MIT
269
272
  metadata: {}
@@ -1,16 +0,0 @@
1
- require 'active_support/concern'
2
-
3
- module Plug
4
- module Concerns
5
- module Themeable
6
- extend ActiveSupport::Concern
7
-
8
- included do
9
-
10
- def icon
11
- theme.split(';').last.split(':').last
12
- end
13
- end
14
- end
15
- end
16
- end