plug 0.1.15 → 0.1.16
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -0
- data/app/controllers/plug/site_notices_controller.rb +1 -1
- data/app/models/plug/concerns/themeable.rb +16 -0
- data/app/models/plug/resources/site_notice.rb +2 -0
- data/app/models/plug/site_notice.rb +1 -0
- data/app/views/plug/site_notices/_form.html.haml +3 -0
- data/db/migrate/20180424015828_add_theme_to_plug_site_notice.rb +5 -0
- data/lib/plug/configuration.rb +2 -1
- data/lib/plug/version.rb +1 -1
- metadata +5 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4b0a9e497318907102cd0f8f45aa3c898a449637
|
4
|
+
data.tar.gz: b7d5901be42c8e4fe4f314eb7c93da2619de94ae
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 089488dc310a82f487f8b779b9e6c5e158831e589f03e57b39fc60e8ac088f7a756245026b0a2d2e94f58d5a3d8dfd05aad136da9ef0d93c7c3736ed4718f3c5
|
7
|
+
data.tar.gz: 86f1a3d14503f2f528670d8f217d2a727066bc5d64a0d8a523e424a90d421970ecc039ca96be03820568bfb36f8d422e4dbc67b14eafdea55c9ecd24741c9321
|
data/README.md
CHANGED
@@ -89,6 +89,7 @@ Add buttons to the config block to perform rake tasks from the plug dashboard
|
|
89
89
|
→ rails g model MyModel name:string slug:string:index
|
90
90
|
→ rails db:migrate
|
91
91
|
→ rails db:migrate RAILS_ENV=test
|
92
|
+
→ rake plug:install:migrations # Run this on the app to copy the new migrations
|
92
93
|
```
|
93
94
|
|
94
95
|
### Running the tests
|
@@ -62,7 +62,7 @@ module Plug
|
|
62
62
|
if Rails.version.to_i < 5
|
63
63
|
ActiveSupport::HashWithIndifferentAccess.new(params[:site_notice])
|
64
64
|
else
|
65
|
-
params.require(:site_notice).permit(:name, :notice, :state)
|
65
|
+
params.require(:site_notice).permit(:name, :notice, :state, :theme)
|
66
66
|
end
|
67
67
|
end
|
68
68
|
end
|
@@ -15,6 +15,9 @@
|
|
15
15
|
.field
|
16
16
|
= f.label :state
|
17
17
|
= f.select :state, ['enabled', 'disabled']
|
18
|
+
.field
|
19
|
+
= f.label :theme
|
20
|
+
= f.select :theme, Plug.themes.map { |theme| [theme[:name], "#{theme[:style].to_a.map { |s| s.join(':') }.join(';')}"] }
|
18
21
|
.actions.clearfix
|
19
22
|
.float-left
|
20
23
|
= link_to 'Back', site_notices_path, class: 'button'
|
data/lib/plug/configuration.rb
CHANGED
data/lib/plug/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: plug
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.16
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ben
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2018-04-
|
12
|
+
date: 2018-04-30 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rails
|
@@ -233,6 +233,7 @@ files:
|
|
233
233
|
- app/mailers/plug/application_mailer.rb
|
234
234
|
- app/models/plug/application_record.rb
|
235
235
|
- app/models/plug/concerns/model_helpers.rb
|
236
|
+
- app/models/plug/concerns/themeable.rb
|
236
237
|
- app/models/plug/feature.rb
|
237
238
|
- app/models/plug/resources/site_notice.rb
|
238
239
|
- app/models/plug/site_notice.rb
|
@@ -252,6 +253,7 @@ files:
|
|
252
253
|
- db/migrate/20171207020316_create_plug_features.rb
|
253
254
|
- db/migrate/20180128202026_add_notice_to_plug_features.rb
|
254
255
|
- db/migrate/20180403024712_create_plug_site_notices.rb
|
256
|
+
- db/migrate/20180424015828_add_theme_to_plug_site_notice.rb
|
255
257
|
- lib/generators/plug/install_generator.rb
|
256
258
|
- lib/generators/plug/templates/plug.rb
|
257
259
|
- lib/plug.rb
|
@@ -280,7 +282,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
280
282
|
version: '0'
|
281
283
|
requirements: []
|
282
284
|
rubyforge_project:
|
283
|
-
rubygems_version: 2.
|
285
|
+
rubygems_version: 2.5.1
|
284
286
|
signing_key:
|
285
287
|
specification_version: 4
|
286
288
|
summary: Rails engine that can plug/unplug features
|