tour_cms_api 1.0.0 → 1.0.1
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/Rakefile +2 -2
- data/lib/tour_cms/connection.rb +1 -1
- data/tour_cms.gemspec +2 -2
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 551915e0e0a4dbaa2284cdd46952a7416df7feb6b8397c6cc9848241a63ed8b3
|
|
4
|
+
data.tar.gz: e5ab9492bb6a90952b20638f731afe9f5fb8f87c7774bed9d0d8e0bf305bbc7d
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 2c91169babdb098c3cd77618da6d8e13ad89fc49c22529740d6b987a357e5a16c1888f89e67ee7bb066bb3fdc224e7e1cf0c9ff0ed7786dbf2f1f05d9fac46c7
|
|
7
|
+
data.tar.gz: b314b88af7c0534db8b5c56cc142c6162fc886647b245e655830947bc1a86d775d127942f4d58ea1d1bcb2b2bc4d76b156c24d363d884646ba841306dd75c380
|
data/Rakefile
CHANGED
|
@@ -12,7 +12,7 @@ require 'rake'
|
|
|
12
12
|
require 'jeweler'
|
|
13
13
|
Jeweler::Tasks.new do |gem|
|
|
14
14
|
# gem is a Gem::Specification... see http://docs.rubygems.org/read/chapter/20 for more options
|
|
15
|
-
gem.name = "
|
|
15
|
+
gem.name = "tour_cms_api"
|
|
16
16
|
gem.homepage = "https://github.com/luispimenta/tour_cms"
|
|
17
17
|
gem.license = "MIT"
|
|
18
18
|
gem.summary = %Q{A Ruby Library for the TourCMS API}
|
|
@@ -43,7 +43,7 @@ Rake::RDocTask.new do |rdoc|
|
|
|
43
43
|
version = File.exist?('VERSION') ? File.read('VERSION') : ""
|
|
44
44
|
|
|
45
45
|
rdoc.rdoc_dir = 'rdoc'
|
|
46
|
-
rdoc.title = "
|
|
46
|
+
rdoc.title = "tour_cms_api #{version}"
|
|
47
47
|
rdoc.rdoc_files.include('README*')
|
|
48
48
|
rdoc.rdoc_files.include('lib/**/*.rb')
|
|
49
49
|
end
|
data/lib/tour_cms/connection.rb
CHANGED
|
@@ -90,7 +90,7 @@ module TourCMS
|
|
|
90
90
|
headers = {"Content-type" => "text/xml", "charset" => "utf-8", "Date" => req_time.strftime("%a, %d %b %Y %H:%M:%S GMT"),
|
|
91
91
|
"Authorization" => "TourCMS #{channel}:#{@marketp_id}:#{signature}" }
|
|
92
92
|
|
|
93
|
-
response = open(url, headers).read
|
|
93
|
+
response = URI.open(url, headers).read
|
|
94
94
|
@result_type == "raw" ? response : Hash.from_xml(response)["response"]
|
|
95
95
|
end
|
|
96
96
|
end
|
data/tour_cms.gemspec
CHANGED
|
@@ -5,11 +5,11 @@
|
|
|
5
5
|
|
|
6
6
|
Gem::Specification.new do |s|
|
|
7
7
|
s.name = "tour_cms_api"
|
|
8
|
-
s.version = "1.0.
|
|
8
|
+
s.version = "1.0.1"
|
|
9
9
|
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
|
11
11
|
s.authors = ["Luis Pimenta"]
|
|
12
|
-
s.date = %q{2022-
|
|
12
|
+
s.date = %q{2022-05-01}
|
|
13
13
|
s.description = %q{A simple Ruby wrapper for interacting with the TourCMS API}
|
|
14
14
|
s.email = %q{email@luispimenta.me}
|
|
15
15
|
s.extra_rdoc_files = [
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: tour_cms_api
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.0.
|
|
4
|
+
version: 1.0.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Luis Pimenta
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2022-
|
|
11
|
+
date: 2022-05-01 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: activesupport
|