radiant-ecom_engine-extension 0.4.0 → 0.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.ruby-version +1 -0
- data/CHANGELOG.md +7 -0
- data/lib/request_proxy.rb +1 -1
- data/lib/tags/script_tags.rb +1 -0
- data/radiant-ecom_engine-extension.gemspec +1 -1
- metadata +4 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: ce9a1bdcd23dbfc200d40324c464e3bd217c9354
|
|
4
|
+
data.tar.gz: 56bfa97b412c5a15749334d17a6feffc479408bf
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 5596fffd863b23bced8734eef7f0663e2599a099ee2b047fe6e1bc2b0ba877e6549733d783d536e87af6fcc75f796757ddfea38719c314192daaebf5ac10ea66
|
|
7
|
+
data.tar.gz: a560df966a45220997538e88d7277910b1661ef20b600831d284d71be41f3e2eefd80ad0d182c815ce751676172e8631c2712c2d50c7eda2b4dfcc6a203973b5
|
data/.ruby-version
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
2.4.0
|
data/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,13 @@
|
|
|
4
4
|
+This changelog adheres to [Keep a
|
|
5
5
|
CHANGELOG](http://keepachangelog.com/).
|
|
6
6
|
|
|
7
|
+
## 0.5.0
|
|
8
|
+
|
|
9
|
+
### Fixed
|
|
10
|
+
- [TT-3116] Fix case where scheme (http/https) not in ecom engine host
|
|
11
|
+
- [ROT-44] Manually serialise the payload parameters so we get a format that
|
|
12
|
+
is compatible with rails (when using nested arrays)
|
|
13
|
+
|
|
7
14
|
## 0.4.0
|
|
8
15
|
|
|
9
16
|
### Added
|
data/lib/request_proxy.rb
CHANGED
|
@@ -21,7 +21,7 @@ class RequestProxy
|
|
|
21
21
|
cookies: @cookies,
|
|
22
22
|
headers: headers_for_booking_app,
|
|
23
23
|
}
|
|
24
|
-
options[:payload] = @data unless http_get?
|
|
24
|
+
options[:payload] = Rack::Utils.build_nested_query(@data) unless http_get?
|
|
25
25
|
|
|
26
26
|
RestClient::Request.execute(options) do |response, _request, _result, &_block|
|
|
27
27
|
WrappedResponse.new(response)
|
data/lib/tags/script_tags.rb
CHANGED
|
@@ -12,6 +12,7 @@ module ScriptTags
|
|
|
12
12
|
tag 'ee_bundle_tag' do |tag|
|
|
13
13
|
bundle_url = PageMountCalculator.new(@request).ecom_engine_url + "/app_cells?name=header/#{tag.attr['name']}"
|
|
14
14
|
uri = URI.parse(bundle_url)
|
|
15
|
+
fail ArgumentError, "web site host must contain http/https" unless %w(https http).include?(uri.scheme)
|
|
15
16
|
http = Net::HTTP.new(uri.host, uri.port)
|
|
16
17
|
http.use_ssl = uri.scheme == 'https'
|
|
17
18
|
response = http.get uri.request_uri
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Gem::Specification.new do |spec|
|
|
2
2
|
spec.name = "radiant-ecom_engine-extension"
|
|
3
|
-
spec.version = '0.
|
|
3
|
+
spec.version = '0.5.0'
|
|
4
4
|
spec.authors = ["Michael Noack"]
|
|
5
5
|
spec.email = ["support@travellink.com.au"]
|
|
6
6
|
spec.description = %q{Integrate ecom engine with radiant}
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: radiant-ecom_engine-extension
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.5.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Michael Noack
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2017-
|
|
11
|
+
date: 2017-09-12 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: radius
|
|
@@ -74,6 +74,7 @@ extensions: []
|
|
|
74
74
|
extra_rdoc_files: []
|
|
75
75
|
files:
|
|
76
76
|
- ".gitignore"
|
|
77
|
+
- ".ruby-version"
|
|
77
78
|
- CHANGELOG.md
|
|
78
79
|
- Rakefile
|
|
79
80
|
- app/controllers/page_mount_controller.rb
|
|
@@ -105,7 +106,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
105
106
|
version: '0'
|
|
106
107
|
requirements: []
|
|
107
108
|
rubyforge_project:
|
|
108
|
-
rubygems_version: 2.
|
|
109
|
+
rubygems_version: 2.6.8
|
|
109
110
|
signing_key:
|
|
110
111
|
specification_version: 4
|
|
111
112
|
summary: Integrate ecom engine with radiant
|