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 +4 -4
- data/.rubocop_todo.yml +2 -2
- data/VERSION +1 -1
- data/app/models/maestrano/connector/rails/concerns/connec_helper.rb +2 -2
- data/app/models/maestrano/connector/rails/concerns/entity.rb +1 -0
- data/lib/generators/connector/install_generator.rb +0 -1
- data/lib/generators/connector/templates/home.js +0 -1
- data/maestrano-connector-rails.gemspec +3 -3
- data/release_notes.md +5 -0
- data/spec/models/connec_helper_spec.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 07ffd861760785ab2d5e54e574a0d5382d643496
|
4
|
+
data.tar.gz: 4184a45eb2939e6506d780963161d242546c0ebd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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-
|
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:
|
48
|
+
Max: 264
|
49
49
|
|
50
50
|
# Offense count: 2
|
51
51
|
# Configuration parameters: CountKeywordArgs.
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.3.
|
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
|
@@ -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.
|
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.
|
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-
|
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
@@ -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: '
|
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.
|
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-
|
11
|
+
date: 2016-07-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|