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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: fe9997e4a9fafbf461eb15e54a2dc5d0fd39eeb76452cb33949145b3bc7a8f88
4
- data.tar.gz: 771eae938809e8aeb51b0d9250ebf560b565b02b1b5c28e6de5d173e810c1a2b
3
+ metadata.gz: bfd22362e09c5e15198f2930ccf7d5e0b3341170b769a4efa2c625bb367d9dc4
4
+ data.tar.gz: f05895b4dbc9777176257d2e421f948da00c6267ab637d89d8e83472c00547da
5
5
  SHA512:
6
- metadata.gz: c587dc91ddbf6f32455fcd0e2000dc91d5f5591a3490af4421ae964650705f7c1d78a4d74ed29a1d5f8be1d2e4a86c1fdea870493fcfb8ffadbdf4579d15bced
7
- data.tar.gz: 87e3b05e86736f355859921020f5d4bf18140cf914d6896953614a5e83fb90b2ca5dc586d9f58ef55cfe395949ed0724ae40cf6da5575c93f0243cdd1ef62e08
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
- last_sync&.status || 'DISABLED'
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}\nnv, ruby_version=#{RUBY_VERSION}\nruby_engine=#{RUBY_ENGINE}\n" }
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: !pull_disabled && entity_push_to_connec, can_push_to_external: !push_disabled && entity_push_to_external}
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]) && !current_organization.pull_disabled, onclick: "return !#{k}_to_external.checked;", disabled: current_organization.pull_disabled || !v[:can_push_to_connec]})}
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] && !current_organization.push_disabled, onchange: "#{k}_to_connec.checked = #{!current_organization.pull_disabled};", disabled: current_organization.push_disabled || !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]}
@@ -1,7 +1,7 @@
1
1
  module Maestrano
2
2
  module Connector
3
3
  module Rails
4
- VERSION = '2.3.0'.freeze
4
+ VERSION = '2.3.1'.freeze
5
5
  end
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: maestrano-connector-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.3.0
4
+ version: 2.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Maestrano