maestrano-connector-rails 2.3.0 → 2.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/controllers/maestrano/synchronizations_controller.rb +1 -2
- data/app/controllers/version_controller.rb +1 -1
- data/app/models/maestrano/connector/rails/concerns/organization.rb +1 -1
- data/lib/generators/connector/templates/home_index.haml +2 -2
- data/lib/maestrano/connector/rails/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bfd22362e09c5e15198f2930ccf7d5e0b3341170b769a4efa2c625bb367d9dc4
|
4
|
+
data.tar.gz: f05895b4dbc9777176257d2e421f948da00c6267ab637d89d8e83472c00547da
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cec844572c51c895cce3e9a1621f79fc14105bc9ae1f55df2ad28e981b26425767bb74015aa657da4104425108a116ed48a24155fabcd00dbfcd65893d6ad107
|
7
|
+
data.tar.gz: dd8814f5f5d28112e4d44be1d0eb3d99a1969c8f9b05f13abcd3433c3fcf8f9b8c9b26bfc310e883dac97ff648590608f0162a99b2b3cebdde7539b1ed577566
|
@@ -71,13 +71,12 @@ class Maestrano::SynchronizationsController < Maestrano::Rails::WebHookControlle
|
|
71
71
|
end
|
72
72
|
|
73
73
|
def organization_status(organization)
|
74
|
-
last_sync = organization.synchronizations.last
|
75
74
|
if Maestrano::Connector::Rails::SynchronizationJob.find_running_job(organization.id)
|
76
75
|
'RUNNING'
|
77
76
|
elsif Maestrano::Connector::Rails::SynchronizationJob.find_job(organization.id)
|
78
77
|
'ENQUEUED'
|
79
78
|
else
|
80
|
-
|
79
|
+
organization.synchronizations.last&.status || 'DISABLED'
|
81
80
|
end
|
82
81
|
end
|
83
82
|
end
|
@@ -5,7 +5,7 @@ class VersionController < ApplicationController
|
|
5
5
|
commit = ENV['GIT_COMMIT_ID']
|
6
6
|
|
7
7
|
respond_to do |format|
|
8
|
-
format.html { render text: "framework_version=#{framework_version}\nci_branch=#{branch}\nci_commit=#{commit}\nenv=#{Rails}\
|
8
|
+
format.html { render text: "framework_version=#{framework_version}\nci_branch=#{branch}\nci_commit=#{commit}\nenv=#{Rails.env}\nruby_version=#{RUBY_VERSION}\nruby_engine=#{RUBY_ENGINE}\n" }
|
9
9
|
format.json { render json: {framework_version: framework_version, ci_branch: branch, ci_commit: commit, env: Rails.env, ruby_version: RUBY_VERSION, ruby_engine: RUBY_ENGINE} }
|
10
10
|
end
|
11
11
|
end
|
@@ -62,7 +62,7 @@ module Maestrano::Connector::Rails::Concerns::Organization
|
|
62
62
|
entity_push_to_connec = clazz && clazz < Maestrano::Connector::Rails::Entity ? clazz.can_write_connec? : true
|
63
63
|
entity_push_to_external = clazz && clazz < Maestrano::Connector::Rails::Entity ? clazz.can_write_external? : true
|
64
64
|
|
65
|
-
synchronized_entities[entity.to_sym] = {can_push_to_connec:
|
65
|
+
synchronized_entities[entity.to_sym] = {can_push_to_connec: entity_push_to_connec, can_push_to_external: entity_push_to_external}
|
66
66
|
end
|
67
67
|
end
|
68
68
|
|
@@ -64,9 +64,9 @@
|
|
64
64
|
- current_organization.displayable_synchronized_entities.each do |k, v|
|
65
65
|
.row.sync-entity
|
66
66
|
.col-md-1.link-step-action
|
67
|
-
#{check_box("#{k}", "to_connec", {checked: (v[:can_push_to_connec] || v[:can_push_to_external])
|
67
|
+
#{check_box("#{k}", "to_connec", {checked: (v[:can_push_to_connec] || v[:can_push_to_external])})}
|
68
68
|
.col-md-1.link-step-action
|
69
|
-
#{check_box("#{k}", "to_external", {checked: v[:can_push_to_external]
|
69
|
+
#{check_box("#{k}", "to_external", {checked: v[:can_push_to_external], disabled: !v[:can_push_to_external]})}
|
70
70
|
%label.col-md-7{:for => "#{k}", style: 'padding-top: 5px;'}
|
71
71
|
.col-md-6
|
72
72
|
#{v[:external_name]}
|