tourcms 0.1.0 → 0.1.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.
@@ -1,4 +1,4 @@
1
- Copyright (c) 2011 Alex Kremer
1
+ Copyright (c) 2011 Flextrip
2
2
 
3
3
  Permission is hereby granted, free of charge, to any person obtaining
4
4
  a copy of this software and associated documentation files (the
data/README.md CHANGED
@@ -31,7 +31,7 @@ Your Marketplace ID and Private Key can be found in the TourCMS Partner Portal.
31
31
  => ""<?xml version="1.0" encoding="utf-8" ?><response><request>GET /p/channels/list.xml</request>
32
32
  <error>OK</error><channel>(...)</channel></response>"
33
33
 
34
- ### Working with your connecting in Obj mode
34
+ ### Working with your connection in Obj mode
35
35
 
36
36
  # Instantiate the connection
37
37
  conn = TourCMS::Connection.new("12345", "mydeepsecret", "obj")
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.0
1
+ 0.1.1
@@ -61,7 +61,7 @@ module TourCMS
61
61
  end
62
62
 
63
63
  def show_tour(tour, channel)
64
- return_result(request("/c/tour/show", channel, {"id" => tour}))
64
+ return_result(request("/c/tour/show.xml", channel, {"id" => tour}))
65
65
  end
66
66
 
67
67
  def show_tour_departures(tour, channel)
@@ -1,7 +1,7 @@
1
1
  class Hash
2
2
  def stringify_keys
3
3
  inject({}) do |options, (key, value)|
4
- options[key.to_s] = value
4
+ options[key.to_s] = value.to_s
5
5
  options
6
6
  end
7
7
  end
@@ -0,0 +1,71 @@
1
+ # Generated by jeweler
2
+ # DO NOT EDIT THIS FILE DIRECTLY
3
+ # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
4
+ # -*- encoding: utf-8 -*-
5
+
6
+ Gem::Specification.new do |s|
7
+ s.name = %q{tourcms}
8
+ s.version = "0.1.1"
9
+
10
+ s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
+ s.authors = ["Alex Kremer"]
12
+ s.date = %q{2011-03-26}
13
+ s.description = %q{A simple Ruby wrapper for interacting with the TourCMS API}
14
+ s.email = %q{alex@flextrip.com}
15
+ s.extra_rdoc_files = [
16
+ "LICENSE.txt",
17
+ "README.md"
18
+ ]
19
+ s.files = [
20
+ "Gemfile",
21
+ "Gemfile.lock",
22
+ "LICENSE.txt",
23
+ "README.md",
24
+ "Rakefile",
25
+ "VERSION",
26
+ "lib/tour_cms/connection.rb",
27
+ "lib/tour_cms/hash.rb",
28
+ "lib/tourcms.rb",
29
+ "test/helper.rb",
30
+ "test/test_tourcms.rb",
31
+ "tourcms.gemspec"
32
+ ]
33
+ s.homepage = %q{http://github.com/flextrip/tourcms}
34
+ s.licenses = ["MIT"]
35
+ s.require_paths = ["lib"]
36
+ s.rubygems_version = %q{1.3.7}
37
+ s.summary = %q{A Ruby Library for the TourCMS API}
38
+ s.test_files = [
39
+ "test/helper.rb",
40
+ "test/test_tourcms.rb"
41
+ ]
42
+
43
+ if s.respond_to? :specification_version then
44
+ current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
45
+ s.specification_version = 3
46
+
47
+ if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
48
+ s.add_runtime_dependency(%q<xml-object>, [">= 0"])
49
+ s.add_development_dependency(%q<shoulda>, [">= 0"])
50
+ s.add_development_dependency(%q<bundler>, ["~> 1.0.0"])
51
+ s.add_development_dependency(%q<jeweler>, ["~> 1.5.2"])
52
+ s.add_development_dependency(%q<rcov>, [">= 0"])
53
+ s.add_runtime_dependency(%q<xml-object>, [">= 0"])
54
+ else
55
+ s.add_dependency(%q<xml-object>, [">= 0"])
56
+ s.add_dependency(%q<shoulda>, [">= 0"])
57
+ s.add_dependency(%q<bundler>, ["~> 1.0.0"])
58
+ s.add_dependency(%q<jeweler>, ["~> 1.5.2"])
59
+ s.add_dependency(%q<rcov>, [">= 0"])
60
+ s.add_dependency(%q<xml-object>, [">= 0"])
61
+ end
62
+ else
63
+ s.add_dependency(%q<xml-object>, [">= 0"])
64
+ s.add_dependency(%q<shoulda>, [">= 0"])
65
+ s.add_dependency(%q<bundler>, ["~> 1.0.0"])
66
+ s.add_dependency(%q<jeweler>, ["~> 1.5.2"])
67
+ s.add_dependency(%q<rcov>, [">= 0"])
68
+ s.add_dependency(%q<xml-object>, [">= 0"])
69
+ end
70
+ end
71
+
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tourcms
3
3
  version: !ruby/object:Gem::Version
4
- hash: 27
4
+ hash: 25
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 0
10
- version: 0.1.0
9
+ - 1
10
+ version: 0.1.1
11
11
  platform: ruby
12
12
  authors:
13
13
  - Alex Kremer
@@ -127,6 +127,7 @@ files:
127
127
  - lib/tourcms.rb
128
128
  - test/helper.rb
129
129
  - test/test_tourcms.rb
130
+ - tourcms.gemspec
130
131
  has_rdoc: true
131
132
  homepage: http://github.com/flextrip/tourcms
132
133
  licenses: