maestrano-connector-rails 0.4.2 → 0.4.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: 43df5981576854c5a7433146a874a38b6826a030
4
- data.tar.gz: 865f0399ab96db0323b281f18ab80f7f38359e5d
3
+ metadata.gz: 173bdf0c540c2e0218f01962ca98defe2e678bb9
4
+ data.tar.gz: f4e34051fbecb1035281eea03895e8b98ad4f418
5
5
  SHA512:
6
- metadata.gz: b9e01ee3b43e36ad310f5babf1819b9a215be1d325afbb378092213cdad72802cac6ae5cf77b4546189b4649a5b4635bf3af1a37c21ba19fa04552c9940b2eac
7
- data.tar.gz: 77fbe67ebc5496d2f1b8e74ea9237b53fa3b880121fbc73b0a9b4265235c83833e79bdb418c77f4eb0ffdd3a0545af3decdd8cb470f2ad4ae708128cd580a901
6
+ metadata.gz: 031e61b8d07199ad89fbc7cae4b5bb245f9c1873d04964bb1c2a698aa5f1ef016faa4e72c61c9939e6b25bacf283949d785ad1c4b31bee2c90b1239cc8162a25
7
+ data.tar.gz: 1dbcaf2614a24187b2a9ab91629a32f6da76876107b934fce5e31f977b6ac15aaac3877564a35721c24a21b5b1c3370a641cd4ef814da4afc90e237a23754452
data/Gemfile.lock CHANGED
@@ -44,7 +44,7 @@ GEM
44
44
  autoprefixer-rails (>= 5.2.1)
45
45
  sass (>= 3.3.4)
46
46
  builder (3.2.2)
47
- concurrent-ruby (1.0.1)
47
+ concurrent-ruby (1.0.2)
48
48
  connection_pool (2.2.0)
49
49
  descendants_tracker (0.0.4)
50
50
  thread_safe (~> 0.3, >= 0.3.1)
@@ -81,7 +81,7 @@ GEM
81
81
  railties (>= 4.0.1)
82
82
  hash_mapper (0.2.1)
83
83
  activesupport (~> 4)
84
- hashie (3.4.3)
84
+ hashie (3.4.4)
85
85
  highline (1.7.8)
86
86
  html2haml (2.0.0)
87
87
  erubis (~> 2.7.0)
@@ -129,7 +129,7 @@ GEM
129
129
  mime-types (1.25.1)
130
130
  mini_portile2 (2.0.0)
131
131
  minitest (5.8.4)
132
- multi_json (1.11.2)
132
+ multi_json (1.12.0)
133
133
  multi_xml (0.5.5)
134
134
  multipart-post (2.0.0)
135
135
  netrc (0.11.0)
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.4.2
1
+ 0.4.3
@@ -26,7 +26,7 @@ class HomeController < ApplicationController
26
26
 
27
27
  def synchronize
28
28
  if is_admin
29
- Maestrano::Connector::Rails::SynchronizationJob.perform_later(current_organization, params['opts'] || {})
29
+ Maestrano::Connector::Rails::SynchronizationJob.perform_later(current_organization, (params['opts'] || {}).merge(forced: true))
30
30
  flash[:info] = 'Synchronization requested'
31
31
  end
32
32
 
@@ -85,10 +85,10 @@ describe HomeController, :type => :controller do
85
85
  it { expect(subject).to redirect_to back_path }
86
86
 
87
87
  context 'with opts' do
88
- subject { post :synchronize, opts: 'opts' }
88
+ subject { post :synchronize, opts: {'opts' => 'some_opts'} }
89
89
 
90
90
  it 'calls perform_later with opts' do
91
- expect(Maestrano::Connector::Rails::SynchronizationJob).to receive(:perform_later).with(organization, 'opts')
91
+ expect(Maestrano::Connector::Rails::SynchronizationJob).to receive(:perform_later).with(organization, {'opts' => 'some_opts', forced: true})
92
92
  subject
93
93
  end
94
94
  end
@@ -97,7 +97,7 @@ describe HomeController, :type => :controller do
97
97
  subject { post :synchronize}
98
98
 
99
99
  it 'calls perform_later with empty opts hash' do
100
- expect(Maestrano::Connector::Rails::SynchronizationJob).to receive(:perform_later).with(organization, {})
100
+ expect(Maestrano::Connector::Rails::SynchronizationJob).to receive(:perform_later).with(organization, {forced: true})
101
101
  subject
102
102
  end
103
103
  end
@@ -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 0.4.2 ruby lib
5
+ # stub: maestrano-connector-rails 0.4.3 ruby lib
6
6
 
7
7
  Gem::Specification.new do |s|
8
8
  s.name = "maestrano-connector-rails"
9
- s.version = "0.4.2"
9
+ s.version = "0.4.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-04-29"
14
+ s.date = "2016-05-04"
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"]
@@ -95,9 +95,7 @@ Gem::Specification.new do |s|
95
95
  "lib/maestrano/connector/rails.rb",
96
96
  "maestrano-connector-rails.gemspec",
97
97
  "maestrano.png",
98
- "pkg/maestrano-connector-rails-0.0.1.gem",
99
- "pkg/maestrano-connector-rails-0.2.16.gem",
100
- "pkg/maestrano-connector-rails-0.2.4.gem",
98
+ "realse_notes.md",
101
99
  "spec/controllers/connec_controller_spec.rb",
102
100
  "spec/controllers/group_users_controller_spec.rb",
103
101
  "spec/controllers/groups_controller_spec.rb",
data/realse_notes.md ADDED
@@ -0,0 +1,10 @@
1
+ ## 0.4.2
2
+ /!\ This release contains a new migration that you'll need to fetch and run
3
+
4
+ ### Features
5
+ * Add call to before and after_sync methods during synchronization workflows
6
+ * Add logic for record flagged as inactive in the external application
7
+
8
+ ### Fixes
9
+ * Fix recovery mode: recovery mode was previously on as soon as the organization had three failed synchronizations, even if a synchronization had succeed afterward. Moreover, recovery mode doesn't prevent manual synchronization anymore.
10
+ * Fix a typo in saml controller that prevented deletion of a session param.
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: 0.4.2
4
+ version: 0.4.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-04-29 00:00:00.000000000 Z
11
+ date: 2016-05-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: maestrano-rails
@@ -305,9 +305,7 @@ files:
305
305
  - lib/maestrano/connector/rails.rb
306
306
  - maestrano-connector-rails.gemspec
307
307
  - maestrano.png
308
- - pkg/maestrano-connector-rails-0.0.1.gem
309
- - pkg/maestrano-connector-rails-0.2.16.gem
310
- - pkg/maestrano-connector-rails-0.2.4.gem
308
+ - realse_notes.md
311
309
  - spec/controllers/connec_controller_spec.rb
312
310
  - spec/controllers/group_users_controller_spec.rb
313
311
  - spec/controllers/groups_controller_spec.rb