samson_custommessage 0.0.1 → 0.0.2
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0e23d5e4638a5096014f7801fc98b86f20cbf8ce
|
4
|
+
data.tar.gz: ea79152fc1dd6afee41ed4b4b11079ac50355448
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5e4162511254348979880cdfa25beaa9250639e9f109a90b6fdb09d4b5c9c9658c02cb5b8a172976b1f2279520bae984078f8e090736fb9fb14317dd3ead5731
|
7
|
+
data.tar.gz: dcaec3a65b0661228e1d6740bb99746970583e73c958cd92f615a66294ffac937897015606d744dc71d4b107457852dfd5fa0913decb2026b41ba10ee5c73d65
|
@@ -0,0 +1,6 @@
|
|
1
|
+
<div class="form-group" style="clear: both">
|
2
|
+
<%= form.label :message, "Describe this deploy", class: "col-lg-2 control-label" %>
|
3
|
+
<div class="col-lg-4">
|
4
|
+
<%= form.text_area :message, size: "60x3", class: "form-control", autofocus: true, placeholder: "" %>
|
5
|
+
</div>
|
6
|
+
</div>
|
@@ -0,0 +1,16 @@
|
|
1
|
+
module SamsonCustommessage
|
2
|
+
class Engine < Rails::Engine
|
3
|
+
end
|
4
|
+
end
|
5
|
+
Samson::Hooks.view :deploy_form, "samson_custommessage/fields"
|
6
|
+
|
7
|
+
Samson::Hooks.callback :deploy_permitted_params do
|
8
|
+
[:message]
|
9
|
+
end
|
10
|
+
|
11
|
+
#save_extra_message = -> (deploy, attributes) do
|
12
|
+
# deploy.update!({message: attributes["message"]}) if attributes && attributes["message"]
|
13
|
+
#end
|
14
|
+
|
15
|
+
#Samson::Hooks.callback :after_deploy_create, &save_extra_message
|
16
|
+
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: samson_custommessage
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Vinh
|
@@ -15,7 +15,11 @@ email: vinh@listia.com
|
|
15
15
|
executables: []
|
16
16
|
extensions: []
|
17
17
|
extra_rdoc_files: []
|
18
|
-
files:
|
18
|
+
files:
|
19
|
+
- app/decorators/deploy_decorator.rb
|
20
|
+
- app/views/samson_custommessage/_fields.html.erb
|
21
|
+
- db/migrate/20150615041100_add_message_to_deploys.rb
|
22
|
+
- lib/samson_custommessage/samson_plugin.rb
|
19
23
|
homepage:
|
20
24
|
licenses: []
|
21
25
|
metadata: {}
|