capitan 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.
data/capitan.gemspec CHANGED
@@ -4,7 +4,7 @@ require "capitan"
4
4
 
5
5
  Gem::Specification.new do |s|
6
6
  s.name = "capitan"
7
- s.version = '1.0.0'
7
+ s.version = '1.0.1'
8
8
  s.platform = Gem::Platform::RUBY
9
9
  s.authors = ["Eric Sipple"]
10
10
  s.email = ["sipple@trustarts.org"]
data/lib/capitan.rb CHANGED
@@ -1,4 +1,18 @@
1
1
  module Capitan
2
+ require 'capitan/object_initializer'
3
+ require 'capitan/exceptions/connection_error'
4
+ require 'capitan/show_methods'
5
+ require 'capitan/connection'
6
+ require 'capitan/exhibition'
7
+ require 'capitan/non_ticketed_event'
8
+ require 'capitan/performance'
9
+ require 'capitan/production'
10
+ require 'capitan/shows'
11
+ require 'capitan/venue'
12
+ require 'capitan/calendar/calendar_show'
13
+ require 'capitan/calendar/day'
14
+ require 'capitan/calendar/monthly'
15
+ require 'capitan/calendar/week'
2
16
 
3
17
 
4
18
  end
@@ -1,20 +1,23 @@
1
- class Capitan::Exceptions::ConnectionError < StandardError
1
+ module Exceptions
2
+ class ConnectionError < StandardError
2
3
 
3
- def initialize(error)
4
- message = error.message
5
- message = socket_error_message if error.class == SocketError
6
- message = unauthorized_message if error.class == RestClient::Unauthorized
7
- super(message)
8
- end
4
+ def initialize(error)
5
+ message = error.message
6
+ message = socket_error_message if error.class == SocketError
7
+ message = unauthorized_message if error.class == RestClient::Unauthorized
8
+ super(message)
9
+ end
9
10
 
10
- private
11
+ private
11
12
 
12
- def socket_error_message
13
- "Unable to connect to CAPI. Be sure that you have the correct base_url set in config.yml."
14
- end
13
+ def socket_error_message
14
+ "Unable to connect to CAPI. Be sure that you have the correct base_url set in config.yml."
15
+ end
16
+
17
+ def unauthorized_message
18
+ "Invalid API key. Make sure a valid key is set for api_key in config.yml."
19
+ end
15
20
 
16
- def unauthorized_message
17
- "Invalid API key. Make sure a valid key is set for api_key in config.yml."
18
21
  end
19
22
 
20
23
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: capitan
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2014-12-08 00:00:00.000000000 Z
12
+ date: 2014-12-10 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rest-client