maestrano-connector-rails 1.3.2 → 1.3.3

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: cfff81420a6741ea4266fed785dce4f76c29c690
4
- data.tar.gz: fdd3b60473284591c2eb525cc18c262e9d04d20b
3
+ metadata.gz: 07ffd861760785ab2d5e54e574a0d5382d643496
4
+ data.tar.gz: 4184a45eb2939e6506d780963161d242546c0ebd
5
5
  SHA512:
6
- metadata.gz: 7caeee0e3b32d1fb42b2003a2bcfbf8fc9b326f9839d0c4b538eca420f6b582ba38f106c6a6d1cd7328abed02642337443251de698024440d3334d936f1c15e1
7
- data.tar.gz: 5ecc8fe7963ef79db58d4def70cca3bb709f9f585500d76b0179a410e1ddcc1a542792ffef94e87c6843b9633a1f70c5a6236bbccbd77308b86d813d47309510
6
+ metadata.gz: 4512861d9e65c9771e54657c432fde4f5d18c424a81e3d277e559f175db0f28655a7cdf0fa3361f85392b7e6a822359d45b66e487def78eb01c68ff1452cd0ec
7
+ data.tar.gz: 2827d2a7e1a3352850f9d536d24c12484528cbe60656dc1cff61dd7bcc4f54a7bb8aadce3e33124e792f3937324644eee2d532f3dfb223c0981514c26ced1314
data/.rubocop_todo.yml CHANGED
@@ -1,6 +1,6 @@
1
1
  # This configuration was generated by
2
2
  # `rubocop --auto-gen-config`
3
- # on 2016-07-26 05:22:22 +0100 using RuboCop version 0.42.0.
3
+ # on 2016-07-29 13:29:13 +0100 using RuboCop version 0.42.0.
4
4
  # The point is for the user to remove these configuration records
5
5
  # one by one as the offenses are removed from the code base.
6
6
  # Note that changes in the inspected code, or installation of new
@@ -45,7 +45,7 @@ Metrics/MethodLength:
45
45
  # Offense count: 2
46
46
  # Configuration parameters: CountComments.
47
47
  Metrics/ModuleLength:
48
- Max: 263
48
+ Max: 264
49
49
 
50
50
  # Offense count: 2
51
51
  # Configuration parameters: CountKeywordArgs.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.3.2
1
+ 1.3.3
@@ -21,9 +21,9 @@ module Maestrano::Connector::Rails::Concerns::ConnecHelper
21
21
  # Can use Gem::Version for version comparison
22
22
  def connec_version(organization)
23
23
  @@connec_version = Rails.cache.fetch("connec_version_#{organization.tenant}", namespace: 'maestrano', expires_in: 1.day) do
24
- response = get_client(organization).class.get("#{Maestrano[organization.tenant].param('connec.host')}/version")
24
+ response = get_client(organization).class.get("#{Maestrano[organization.tenant].param('connec.host')}/version", headers: {'Accept' => 'application/json'})
25
25
  response = JSON.parse(response.body)
26
- @@connec_version = response['ci_branch']
26
+ @@connec_version = response['ci_branch'].delete('v')
27
27
  end
28
28
  @@connec_version
29
29
  end
@@ -315,6 +315,7 @@ module Maestrano::Connector::Rails::Concerns::Entity
315
315
  rescue => e
316
316
  # Store External error
317
317
  Maestrano::Connector::Rails::ConnectorLogger.log('error', @organization, "Error while pushing to #{Maestrano::Connector::Rails::External.external_name}: #{e}")
318
+ Maestrano::Connector::Rails::ConnectorLogger.log('debug', @organization, "Error while pushing backtrace: #{e.backtrace.join("\n\t")}")
318
319
  idmap.update(message: e.message.truncate(255))
319
320
  end
320
321
  nil
@@ -10,7 +10,6 @@ module Connector
10
10
  def include_helpers
11
11
  sentinel = 'class ApplicationController < ActionController::Base'
12
12
  code_lines = [
13
- "helper Maestrano::Connector::Rails::Engine.helpers",
14
13
  "include Maestrano::Connector::Rails::SessionHelper"
15
14
  ]
16
15
 
@@ -10,7 +10,6 @@ function historicalDataDisplay()
10
10
  }
11
11
  }
12
12
 
13
-
14
13
  $(function () {
15
14
  $('[data-toggle="tooltip"]').tooltip()
16
15
  })
@@ -2,16 +2,16 @@
2
2
  # DO NOT EDIT THIS FILE DIRECTLY
3
3
  # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
4
4
  # -*- encoding: utf-8 -*-
5
- # stub: maestrano-connector-rails 1.3.2 ruby lib
5
+ # stub: maestrano-connector-rails 1.3.3 ruby lib
6
6
 
7
7
  Gem::Specification.new do |s|
8
8
  s.name = "maestrano-connector-rails"
9
- s.version = "1.3.2"
9
+ s.version = "1.3.3"
10
10
 
11
11
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
12
12
  s.require_paths = ["lib"]
13
13
  s.authors = ["Pierre Berard"]
14
- s.date = "2016-07-27"
14
+ s.date = "2016-07-29"
15
15
  s.description = "Maestrano is the next generation marketplace for SME applications. See https://maestrano.com for details."
16
16
  s.email = "pierre.berard@maestrano.com"
17
17
  s.executables = ["rails"]
data/release_notes.md CHANGED
@@ -1,3 +1,8 @@
1
+ ## 1.3.2
2
+
3
+ ### Features
4
+ * Improve display of entity names on the home page. You'll need to change your home view and controller as well as add some things in the layout and javascript files
5
+
1
6
  ## 1.3.1
2
7
 
3
8
  ### Fixes
@@ -19,7 +19,7 @@ describe Maestrano::Connector::Rails::ConnecHelper do
19
19
  let!(:organization) { create(:organization, tenant: 'default') }
20
20
  let!(:organization2) { create(:organization, tenant: 'default2') }
21
21
  before {
22
- allow(Maestrano::Connec::Client).to receive(:get).and_return(ActionDispatch::Response.new(200, {}, {ci_build_number: '111', ci_branch: '1.1', ci_commit: '111'}.to_json, {}), ActionDispatch::Response.new(200, {}, {ci_build_number: '112', ci_branch: '1.2', ci_commit: '112'}.to_json, {}))
22
+ allow(Maestrano::Connec::Client).to receive(:get).and_return(ActionDispatch::Response.new(200, {}, {ci_build_number: '111', ci_branch: 'v1.1', ci_commit: '111'}.to_json, {}), ActionDispatch::Response.new(200, {}, {ci_build_number: '112', ci_branch: 'v1.2', ci_commit: '112'}.to_json, {}))
23
23
  }
24
24
 
25
25
  it 'returns the connec_version' do
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: maestrano-connector-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.2
4
+ version: 1.3.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Pierre Berard
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-07-27 00:00:00.000000000 Z
11
+ date: 2016-07-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails