eventbright 0.2.2 → 0.2.3
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/eventbright.gemspec +3 -2
- data/init.rb.example +8 -0
- data/lib/eventbright.rb +1 -0
- data/lib/eventbright/api_object.rb +4 -4
- metadata +4 -3
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.2.
|
1
|
+
0.2.3
|
data/eventbright.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{eventbright}
|
8
|
-
s.version = "0.2.
|
8
|
+
s.version = "0.2.3"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["David Haslem"]
|
12
|
-
s.date = %q{2010-
|
12
|
+
s.date = %q{2010-09-01}
|
13
13
|
s.description = %q{A simple, unoffical gem that integrates with the EventBrite events service. (http://www.eventbrite.com)}
|
14
14
|
s.email = %q{therabidbanana@gmail.com}
|
15
15
|
s.extra_rdoc_files = [
|
@@ -24,6 +24,7 @@ Gem::Specification.new do |s|
|
|
24
24
|
"Rakefile",
|
25
25
|
"VERSION",
|
26
26
|
"eventbright.gemspec",
|
27
|
+
"init.rb.example",
|
27
28
|
"lib/eventbright.rb",
|
28
29
|
"lib/eventbright/api_object.rb",
|
29
30
|
"lib/eventbright/api_object_class_methods.rb",
|
data/init.rb.example
ADDED
@@ -0,0 +1,8 @@
|
|
1
|
+
require 'eventbright'
|
2
|
+
|
3
|
+
@eventbrite_api_key = "your api key here" #request an api key here: http://www.eventbrite.com/api/key
|
4
|
+
@eventbrite_user_key = "your user key here" #find your user key here: http://www.eventbrite.com/userkeyapi
|
5
|
+
|
6
|
+
EventBright.setup(@eventbrite_api_key)
|
7
|
+
@eventbrite_user = EventBright::User.new(@eventbrite_user_key)
|
8
|
+
|
data/lib/eventbright.rb
CHANGED
@@ -2,4 +2,5 @@ libdir = File.dirname(__FILE__)
|
|
2
2
|
$LOAD_PATH.unshift(libdir) unless $LOAD_PATH.include?(libdir)
|
3
3
|
require File.join(libdir, 'eventbright', 'main.rb')
|
4
4
|
Dir.glob(File.join(libdir, 'eventbright', '*.rb')).each {|f| require f }
|
5
|
+
require File.join(libdir, 'eventbright', 'api_objects', 'event.rb')
|
5
6
|
Dir.glob(File.join(libdir, 'eventbright', 'api_objects', '*.rb')).each {|f| require f }
|
@@ -94,9 +94,9 @@ module EventBright
|
|
94
94
|
# These are added to the updatable_hash, if appropriate
|
95
95
|
# These are called by prep_api_hash
|
96
96
|
def api_hash; {:user => owner}; end
|
97
|
-
def update_hash; {};
|
98
|
-
def get_hash; {};
|
99
|
-
def new_hash; {};
|
97
|
+
def update_hash; {:id => id}; end
|
98
|
+
def get_hash; {:id => id}; end
|
99
|
+
def new_hash; {}; end
|
100
100
|
|
101
101
|
def nested_hash; {:user => owner, :id => id}; end
|
102
102
|
|
@@ -178,4 +178,4 @@ module EventBright
|
|
178
178
|
end
|
179
179
|
|
180
180
|
end
|
181
|
-
end
|
181
|
+
end
|
metadata
CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 0
|
7
7
|
- 2
|
8
|
-
-
|
9
|
-
version: 0.2.
|
8
|
+
- 3
|
9
|
+
version: 0.2.3
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- David Haslem
|
@@ -14,7 +14,7 @@ autorequire:
|
|
14
14
|
bindir: bin
|
15
15
|
cert_chain: []
|
16
16
|
|
17
|
-
date: 2010-
|
17
|
+
date: 2010-09-01 00:00:00 -04:00
|
18
18
|
default_executable:
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|
@@ -76,6 +76,7 @@ files:
|
|
76
76
|
- Rakefile
|
77
77
|
- VERSION
|
78
78
|
- eventbright.gemspec
|
79
|
+
- init.rb.example
|
79
80
|
- lib/eventbright.rb
|
80
81
|
- lib/eventbright/api_object.rb
|
81
82
|
- lib/eventbright/api_object_class_methods.rb
|