redmine_mautic 0.2.1 → 0.2.2

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: 3852f03c34594e8549aeb4d71e886b845c22aca60d0d9fa79adb6d0d02eaface
4
- data.tar.gz: aefa6c39bd0ca90036058a42dcf97d90cf73634dfcc5d543fcb6b2d55e552e8b
3
+ metadata.gz: f03aa6aef359c64217d96e938311793fc734fe048e83d0d0669daecda1867295
4
+ data.tar.gz: 7472f5ccea813c12b67e75a894be33bc896b0179c318b4a2bfd10bfc55cc26f6
5
5
  SHA512:
6
- metadata.gz: c687a3f34c6e288e4c8832f7be4845b5ab0c94a5e694fe7f05144304c12410cfca3bb6d890093df6e7a4f234b40a446ed65b803cb5f4d1233dcaaa7d02916c13
7
- data.tar.gz: 7a955cf33285beeb0f75314a375fef00612810fbd5382e6dccec0a1a2ccaefa0910c1733fa70e244f9374cd0ce0db3b072bd6c8c300871311c6c1fe55ac42762
6
+ metadata.gz: 99715fcda967dd979068989469a2107fcb9c86ae1abe990e9b8cb11fde47fcd6cbb66daf043236347047cf638621acc77f091653fc4c758635b8ecd7a090c69b
7
+ data.tar.gz: 9e4c5f13bcf397594535a14502ae5ce1cfe4143716e40acc65195af4cccc59ca9c79564bc6b42e71d90491f510e14edf675e980b9e8a90e085e1e97fc5bdab3c
@@ -13,7 +13,7 @@
13
13
  <% unless form.object.new_record? %>
14
14
  <p class="field">
15
15
  <label>Callback url</label>
16
- <%= Setting.protocol %>://<%= Setting.host_name %>/mautic/connections/<%= (form.object.id || Mautic::Connection.last.id.next) %>/oauth2
16
+ <%= @mautic_connection.send :callback_url, controller %>
17
17
  <em class="info">Now generate pair of tokens with this callback url</em>
18
18
  </p>
19
19
  <p class="field settings">
@@ -23,9 +23,9 @@
23
23
  <%= link_to l(:button_edit), edit_redmine_mautic_path(mautic_connection), class: 'icon icon-edit' %>
24
24
  <%= link_to l(:button_delete), redmine_mautic_path(mautic_connection), method: :delete, data: { confirm: l(:text_are_you_sure), rmeote: true }, class: 'icon icon-del' %>
25
25
  <% if mautic_connection.refresh_token.blank? %>
26
- <%= link_to('Authorize', mautic.authorize_connection_path(mautic_connection), class: 'icon icon-server-authentication', target: '_blank') %>
26
+ <%= link_to('Authorize', authorize_redmine_mautic_path(mautic_connection), class: 'icon icon-server-authentication', target: '_blank') %>
27
27
  <% else %>
28
- <%= link_to('re-Authorize', mautic.authorize_connection_path(mautic_connection), class: 'icon icon-reload', target: '_blank') %>
28
+ <%= link_to('re-Authorize', authorize_redmine_mautic_path(mautic_connection), class: 'icon icon-reload', target: '_blank') %>
29
29
  <% end %>
30
30
  </td>
31
31
  </tr>
@@ -15,8 +15,12 @@ Rails.application.routes.draw do
15
15
  # end
16
16
 
17
17
  rys_feature 'redmine_mautic' do
18
- mount Mautic::Engine => '/mautic'
19
- resources :redmine_mautic
18
+ resources :redmine_mautic do
19
+ member do
20
+ get :authorize
21
+ get :oauth2
22
+ end
23
+ end
20
24
  end
21
25
 
22
26
  # get '/redmine_mautic', to: 'redmine_mautic#index'
data/gems.rb CHANGED
@@ -1,5 +1,4 @@
1
1
  source 'https://rubygems.org'
2
- source 'https://gems.easysoftware.com'
3
2
 
4
3
  # Possible directories for dummy application
5
4
  possible_app_dirs = [
@@ -19,11 +18,11 @@ possible_app_dirs.each do |dir|
19
18
  %w[Gemfile gems.rb].each do |gems_rb|
20
19
  gems_rb = File.expand_path(File.join(dir, gems_rb))
21
20
 
22
- next unless File.exist?(gems_rb)
23
-
24
- eval_gemfile(gems_rb)
25
- gems_rb_found = true
26
- break
21
+ if File.exist?(gems_rb)
22
+ eval_gemfile(gems_rb)
23
+ gems_rb_found = true
24
+ break
25
+ end
27
26
  end
28
27
  end
29
28
 
@@ -42,7 +41,8 @@ end
42
41
  # Dummy application may already include this gem
43
42
  # You cannot specify the same gem twice
44
43
  current_gem_spec = Bundler.load_gemspec(gemspec_file)
45
- @dependencies.delete_if {|d| d.name == current_gem_spec.name }
44
+ @dependencies.delete_if { |d| d.name == current_gem_spec.name }
46
45
 
47
46
  # Load current gem and its dependencies
48
- gemspec
47
+ gemspec
48
+ gem "rys", github: "easysoftware/rys", branch: "devel"
@@ -1,3 +1,3 @@
1
1
  module RedmineMautic
2
- VERSION = "0.2.1"
2
+ VERSION = "0.2.2"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: redmine_mautic
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Lukáš Pokorný
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-03-14 00:00:00.000000000 Z
11
+ date: 2020-07-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: redmine_extensions
@@ -30,14 +30,20 @@ dependencies:
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: '2.0'
33
+ version: '2.3'
34
+ - - ">="
35
+ - !ruby/object:Gem::Version
36
+ version: 2.3.9
34
37
  type: :runtime
35
38
  prerelease: false
36
39
  version_requirements: !ruby/object:Gem::Requirement
37
40
  requirements:
38
41
  - - "~>"
39
42
  - !ruby/object:Gem::Version
40
- version: '2.0'
43
+ version: '2.3'
44
+ - - ">="
45
+ - !ruby/object:Gem::Version
46
+ version: 2.3.9
41
47
  description: https://github.com/luk4s/mautic-rails
42
48
  email:
43
49
  - luk4s.pokorny@gmail.com
@@ -83,11 +89,11 @@ files:
83
89
  - spec/requests/redmine_mautic_spec.rb
84
90
  - spec/spec_helper.rb
85
91
  - spec/support/support.rb
86
- - test/dummy
87
92
  homepage: https://github.com/luk4s
88
93
  licenses:
89
94
  - GPL-2.0-or-later
90
- metadata: {}
95
+ metadata:
96
+ allowed_push_host: https://rubygems.org
91
97
  post_install_message:
92
98
  rdoc_options: []
93
99
  require_paths:
@@ -103,12 +109,11 @@ required_rubygems_version: !ruby/object:Gem::Requirement
103
109
  - !ruby/object:Gem::Version
104
110
  version: '0'
105
111
  requirements: []
106
- rubygems_version: 3.0.2
112
+ rubygems_version: 3.0.6
107
113
  signing_key:
108
114
  specification_version: 4
109
115
  summary: Integration mautic rails gem with Redmine
110
116
  test_files:
111
- - test/dummy
112
117
  - spec/spec_helper.rb
113
118
  - spec/features/feature_spec.rb
114
119
  - spec/models/model_spec.rb
data/test/dummy DELETED
@@ -1 +0,0 @@
1
- test/Users/lukas/_projects/easy/dummy