samson_custommessage 0.0.1 → 0.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 18cbedb211897dc222fbca5bd2341f3d7b2d8ed5
4
- data.tar.gz: 76e016be052ec9d6f4b2c9266a252429b56e4691
3
+ metadata.gz: 0e23d5e4638a5096014f7801fc98b86f20cbf8ce
4
+ data.tar.gz: ea79152fc1dd6afee41ed4b4b11079ac50355448
5
5
  SHA512:
6
- metadata.gz: 914006b1a68b8eaf7dc6a1d5ae8cb352b8bb72ce79beed43f779bda67a45c0c169820ce0d257843eefb111db935d6fe00013bf88ed3658ec3534e09f36419194
7
- data.tar.gz: 9a2ab93edffb5261c2f25025466b64fbba6d6eec35437727fc28fc87fc9eebd54db4effe3756a604ff71f54ccbd0b334f3cf3052e6426e972a5e5c348db87037
6
+ metadata.gz: 5e4162511254348979880cdfa25beaa9250639e9f109a90b6fdb09d4b5c9c9658c02cb5b8a172976b1f2279520bae984078f8e090736fb9fb14317dd3ead5731
7
+ data.tar.gz: dcaec3a65b0661228e1d6740bb99746970583e73c958cd92f615a66294ffac937897015606d744dc71d4b107457852dfd5fa0913decb2026b41ba10ee5c73d65
@@ -0,0 +1,3 @@
1
+ Deploy.class_eval do
2
+
3
+ end
@@ -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,5 @@
1
+ class AddMessageToDeploys < ActiveRecord::Migration
2
+ def change
3
+ add_column :deploys, :message, :string
4
+ end
5
+ end
@@ -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.1
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: {}