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 +4 -4
- data/app/views/redmine_mautic/_form.html.erb +1 -1
- data/app/views/redmine_mautic/index.html.erb +2 -2
- data/config/routes.rb +6 -2
- data/gems.rb +8 -8
- data/lib/redmine_mautic/version.rb +1 -1
- metadata +13 -8
- data/test/dummy +0 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f03aa6aef359c64217d96e938311793fc734fe048e83d0d0669daecda1867295
|
4
|
+
data.tar.gz: 7472f5ccea813c12b67e75a894be33bc896b0179c318b4a2bfd10bfc55cc26f6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
<%=
|
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',
|
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',
|
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>
|
data/config/routes.rb
CHANGED
@@ -15,8 +15,12 @@ Rails.application.routes.draw do
|
|
15
15
|
# end
|
16
16
|
|
17
17
|
rys_feature 'redmine_mautic' do
|
18
|
-
|
19
|
-
|
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
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
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"
|
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.
|
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:
|
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.
|
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.
|
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.
|
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
|