eventbrite-api-v3 0.0.5 → 0.0.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (50) hide show
  1. checksums.yaml +5 -5
  2. data/.ruby-version +1 -1
  3. data/Gemfile +0 -0
  4. data/Gemfile.lock +44 -44
  5. data/LICENSE +0 -0
  6. data/README.md +0 -0
  7. data/Rakefile +0 -0
  8. data/VERSION +1 -1
  9. data/eventbrite-api-v3.gemspec +4 -3
  10. data/lib/eventbrite-api.rb +1 -0
  11. data/lib/eventbrite/api/client.rb +1 -0
  12. data/lib/eventbrite/api/helper.rb +0 -0
  13. data/lib/eventbrite/api/model/base.rb +0 -0
  14. data/lib/eventbrite/api/model/category.rb +0 -0
  15. data/lib/eventbrite/api/model/event.rb +0 -0
  16. data/lib/eventbrite/api/model/event_ticket_class.rb +0 -0
  17. data/lib/eventbrite/api/model/format.rb +0 -0
  18. data/lib/eventbrite/api/model/order.rb +0 -0
  19. data/lib/eventbrite/api/model/organizer.rb +0 -0
  20. data/lib/eventbrite/api/model/owned_event.rb +0 -0
  21. data/lib/eventbrite/api/model/owned_event_attendee.rb +0 -0
  22. data/lib/eventbrite/api/model/owned_event_order.rb +0 -0
  23. data/lib/eventbrite/api/model/structured_content.rb +21 -0
  24. data/lib/eventbrite/api/model/user.rb +0 -0
  25. data/lib/eventbrite/api/model/user_contact.rb +0 -0
  26. data/lib/eventbrite/api/model/user_contact_list.rb +0 -0
  27. data/lib/eventbrite/api/model/user_order.rb +0 -0
  28. data/lib/eventbrite/api/model/user_organizer.rb +0 -0
  29. data/lib/eventbrite/api/model/user_venue.rb +0 -0
  30. data/lib/eventbrite/api/model/venue.rb +0 -0
  31. data/spec/eventbrite/api/client_spec.rb +0 -0
  32. data/spec/eventbrite/api/model/base_spec.rb +0 -0
  33. data/spec/eventbrite/api/model/event_spec.rb +0 -0
  34. data/spec/eventbrite/api/model/owned_event_attendee_spec.rb +0 -0
  35. data/spec/eventbrite/api/model/owned_event_order_spec.rb +0 -0
  36. data/spec/eventbrite/api/model/owned_event_spec.rb +0 -0
  37. data/spec/fixtures/events/13270934723/publish.json +0 -0
  38. data/spec/fixtures/events/13270934723/unpublish.json +0 -0
  39. data/spec/fixtures/events_page1.json +0 -0
  40. data/spec/fixtures/events_page2.json +0 -0
  41. data/spec/fixtures/events_page3.json +0 -0
  42. data/spec/fixtures/owned_event_attendees/page1.json +0 -0
  43. data/spec/fixtures/owned_event_attendees/page2.json +0 -0
  44. data/spec/fixtures/owned_event_attendees/page3.json +0 -0
  45. data/spec/fixtures/users/133925426255/owned_event_attendees.json +0 -0
  46. data/spec/fixtures/users/133925426255/owned_event_orders.json +0 -0
  47. data/spec/fixtures/users/133925426255/owned_events.json +0 -0
  48. data/spec/fixtures/users/me.json +0 -0
  49. data/spec/spec_helper.rb +0 -0
  50. metadata +4 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 41f131f5a2f38bf3fc0c0df803691c958315f8dd
4
- data.tar.gz: 929bf21bf58f0756aa5b271f7c37462b24b0d241
2
+ SHA256:
3
+ metadata.gz: 0eb98f6a794eb0a9fd3582692c45396a4f359573f178fada0f08f12107ae459c
4
+ data.tar.gz: 1ba51269fe36c6f01d9413757f550b9f010e79c3a4c6b8cdd5baec0dc56541ed
5
5
  SHA512:
6
- metadata.gz: ae86d0d18298baa76332736e34a1b5be69e11375ac7e5c651e2e4f094a0f526f4b235b808c3eaee3891d0ef16f2aae1a98e2ef180e44b45f7a3d69751e3ca45c
7
- data.tar.gz: 9c628f9daea212fd81c55fe8e410bdf302622c7360ef9d3a5ad6a8cd2f3e807a7ada1be0ba5a64ad4d79ec5abb30ba8a38c244a08a8eeea2323bb77d09e9bab8
6
+ metadata.gz: d7c01e6b82136b15efd9c41f07c74b9d15222d058c88d17e5c0e4525b02c7b36e8d770bf39d65ee09d967762122686f24797d43c2f19ffdb450fd44ea2e32b84
7
+ data.tar.gz: f298cf997545528f3f7b957bcec49bd3b1a45f22e93b7932875728913718d152c6accb419544d8d2dcf58fdafbe0d2ba58ae9ba9fd0a34278f25e499545bf89e
data/.ruby-version CHANGED
@@ -1 +1 @@
1
- ruby-2.3.3@eventbrite-api-v3
1
+ ruby-2.5.3@eventbrite-api-v3
data/Gemfile CHANGED
File without changes
data/Gemfile.lock CHANGED
@@ -2,17 +2,18 @@ GEM
2
2
  remote: http://rubygems.org/
3
3
  specs:
4
4
  addressable (2.4.0)
5
- builder (3.2.3)
5
+ builder (3.2.4)
6
6
  crack (0.4.3)
7
7
  safe_yaml (~> 1.0.0)
8
- deep_merge (1.1.1)
8
+ deep_merge (1.2.1)
9
9
  descendants_tracker (0.0.4)
10
10
  thread_safe (~> 0.3, >= 0.3.1)
11
11
  diff-lcs (1.3)
12
- docile (1.1.5)
12
+ docile (1.3.2)
13
13
  faraday (0.9.2)
14
14
  multipart-post (>= 1.2, < 3)
15
- git (1.3.0)
15
+ git (1.7.0)
16
+ rchardet (~> 1.8)
16
17
  github_api (0.16.0)
17
18
  addressable (~> 2.4.0)
18
19
  descendants_tracker (~> 0.0.4)
@@ -20,65 +21,64 @@ GEM
20
21
  hashie (>= 3.4)
21
22
  mime-types (>= 1.16, < 3.0)
22
23
  oauth2 (~> 1.0)
23
- hashdiff (0.3.5)
24
- hashie (3.5.6)
25
- highline (1.7.8)
26
- jeweler (2.3.7)
24
+ hashdiff (1.0.1)
25
+ hashie (4.1.0)
26
+ highline (2.0.3)
27
+ jeweler (2.3.9)
27
28
  builder
28
- bundler (>= 1)
29
+ bundler
29
30
  git (>= 1.2.5)
30
31
  github_api (~> 0.16.0)
31
32
  highline (>= 1.6.15)
32
33
  nokogiri (>= 1.5.10)
33
- psych (~> 2.2)
34
+ psych
34
35
  rake
35
36
  rdoc
36
37
  semver2
37
- json (2.1.0)
38
- jwt (1.5.6)
38
+ jwt (2.2.1)
39
39
  mime-types (2.99.3)
40
- mini_portile2 (2.2.0)
41
- multi_json (1.12.1)
40
+ mini_portile2 (2.4.0)
41
+ multi_json (1.14.1)
42
42
  multi_xml (0.6.0)
43
- multipart-post (2.0.0)
44
- nokogiri (1.8.0)
45
- mini_portile2 (~> 2.2.0)
46
- oauth2 (1.4.0)
47
- faraday (>= 0.8, < 0.13)
48
- jwt (~> 1.0)
43
+ multipart-post (2.1.1)
44
+ nokogiri (1.10.9)
45
+ mini_portile2 (~> 2.4.0)
46
+ oauth2 (1.4.4)
47
+ faraday (>= 0.8, < 2.0)
48
+ jwt (>= 1.0, < 3.0)
49
49
  multi_json (~> 1.3)
50
50
  multi_xml (~> 0.5)
51
51
  rack (>= 1.2, < 3)
52
- psych (2.2.4)
53
- rack (2.0.3)
54
- rake (12.0.0)
55
- rdoc (5.1.0)
56
- rspec (3.6.0)
57
- rspec-core (~> 3.6.0)
58
- rspec-expectations (~> 3.6.0)
59
- rspec-mocks (~> 3.6.0)
60
- rspec-core (3.6.0)
61
- rspec-support (~> 3.6.0)
62
- rspec-expectations (3.6.0)
52
+ psych (3.1.0)
53
+ rack (2.2.2)
54
+ rake (13.0.1)
55
+ rchardet (1.8.0)
56
+ rdoc (6.2.1)
57
+ rspec (3.9.0)
58
+ rspec-core (~> 3.9.0)
59
+ rspec-expectations (~> 3.9.0)
60
+ rspec-mocks (~> 3.9.0)
61
+ rspec-core (3.9.1)
62
+ rspec-support (~> 3.9.1)
63
+ rspec-expectations (3.9.1)
63
64
  diff-lcs (>= 1.2.0, < 2.0)
64
- rspec-support (~> 3.6.0)
65
- rspec-mocks (3.6.0)
65
+ rspec-support (~> 3.9.0)
66
+ rspec-mocks (3.9.1)
66
67
  diff-lcs (>= 1.2.0, < 2.0)
67
- rspec-support (~> 3.6.0)
68
- rspec-support (3.6.0)
69
- safe_yaml (1.0.4)
68
+ rspec-support (~> 3.9.0)
69
+ rspec-support (3.9.2)
70
+ safe_yaml (1.0.5)
70
71
  semver2 (3.4.2)
71
- simplecov (0.14.1)
72
- docile (~> 1.1.0)
73
- json (>= 1.8, < 3)
74
- simplecov-html (~> 0.10.0)
75
- simplecov-html (0.10.1)
72
+ simplecov (0.18.5)
73
+ docile (~> 1.1)
74
+ simplecov-html (~> 0.11)
75
+ simplecov-html (0.12.2)
76
76
  thread_safe (0.3.6)
77
77
  timecop (0.9.1)
78
- webmock (3.0.1)
78
+ webmock (3.8.3)
79
79
  addressable (>= 2.3.6)
80
80
  crack (>= 0.3.2)
81
- hashdiff
81
+ hashdiff (>= 0.4.0, < 2.0.0)
82
82
 
83
83
  PLATFORMS
84
84
  ruby
@@ -93,4 +93,4 @@ DEPENDENCIES
93
93
  webmock
94
94
 
95
95
  BUNDLED WITH
96
- 1.15.1
96
+ 1.16.6
data/LICENSE CHANGED
File without changes
data/README.md CHANGED
File without changes
data/Rakefile CHANGED
File without changes
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.5
1
+ 0.0.6
@@ -6,12 +6,12 @@
6
6
 
7
7
  Gem::Specification.new do |s|
8
8
  s.name = "eventbrite-api-v3".freeze
9
- s.version = "0.0.5"
9
+ s.version = "0.0.6"
10
10
 
11
11
  s.required_rubygems_version = Gem::Requirement.new(">= 0".freeze) if s.respond_to? :required_rubygems_version=
12
12
  s.require_paths = ["lib".freeze]
13
13
  s.authors = ["BV Satyaram".freeze, "BrunoChauvet".freeze]
14
- s.date = "2018-09-17"
14
+ s.date = "2020-04-28"
15
15
  s.description = "Integrate with Eventbrite API".freeze
16
16
  s.email = "bvsatyaram@gmail.com".freeze
17
17
  s.extra_rdoc_files = [
@@ -44,6 +44,7 @@ Gem::Specification.new do |s|
44
44
  "lib/eventbrite/api/model/owned_event.rb",
45
45
  "lib/eventbrite/api/model/owned_event_attendee.rb",
46
46
  "lib/eventbrite/api/model/owned_event_order.rb",
47
+ "lib/eventbrite/api/model/structured_content.rb",
47
48
  "lib/eventbrite/api/model/user.rb",
48
49
  "lib/eventbrite/api/model/user_contact.rb",
49
50
  "lib/eventbrite/api/model/user_contact_list.rb",
@@ -73,7 +74,7 @@ Gem::Specification.new do |s|
73
74
  ]
74
75
  s.homepage = "https://github.com/bvsatyaram/eventbrite-api".freeze
75
76
  s.licenses = ["MIT".freeze]
76
- s.rubygems_version = "2.6.12".freeze
77
+ s.rubygems_version = "3.0.6".freeze
77
78
  s.summary = "Integrate with Eventbrite API".freeze
78
79
 
79
80
  if s.respond_to? :specification_version then
@@ -18,4 +18,5 @@ require 'eventbrite/api/model/user_organizer.rb'
18
18
  require 'eventbrite/api/model/owned_event.rb'
19
19
  require 'eventbrite/api/model/owned_event_attendee.rb'
20
20
  require 'eventbrite/api/model/owned_event_order.rb'
21
+ require 'eventbrite/api/model/structured_content.rb'
21
22
  require 'deep_merge/rails_compat'
@@ -26,6 +26,7 @@ module Eventbrite
26
26
  model :OwnedEvent
27
27
  model :OwnedEventAttendee
28
28
  model :OwnedEventOrder
29
+ model :StructuredContent
29
30
 
30
31
  @redirect_uri = options[:redirect_uri]
31
32
  @consumer = options[:consumer]
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
@@ -0,0 +1,21 @@
1
+ module Eventbrite
2
+ module Api
3
+ module Model
4
+ class StructuredContent < Base
5
+ def model_route
6
+ 'events/:event_id/structured_content'
7
+ end
8
+
9
+ def create(object, opts={})
10
+ @client.connection.post(url(opts, '1/'), {:headers => @client.headers, :body => object.to_json})
11
+ end
12
+
13
+ def update(page_version, object, opts={})
14
+ page_version = page_version.to_s
15
+ page_version << '/' unless page_version.match? /\/$/
16
+ @client.connection.post(url(opts, page_version), {:headers => @client.headers, :body => object.to_json})
17
+ end
18
+ end
19
+ end
20
+ end
21
+ end
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
data/spec/spec_helper.rb CHANGED
File without changes
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: eventbrite-api-v3
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - BV Satyaram
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2018-09-17 00:00:00.000000000 Z
12
+ date: 2020-04-28 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: oauth2
@@ -86,6 +86,7 @@ files:
86
86
  - lib/eventbrite/api/model/owned_event.rb
87
87
  - lib/eventbrite/api/model/owned_event_attendee.rb
88
88
  - lib/eventbrite/api/model/owned_event_order.rb
89
+ - lib/eventbrite/api/model/structured_content.rb
89
90
  - lib/eventbrite/api/model/user.rb
90
91
  - lib/eventbrite/api/model/user_contact.rb
91
92
  - lib/eventbrite/api/model/user_contact_list.rb
@@ -132,7 +133,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
132
133
  version: '0'
133
134
  requirements: []
134
135
  rubyforge_project:
135
- rubygems_version: 2.6.12
136
+ rubygems_version: 2.7.8
136
137
  signing_key:
137
138
  specification_version: 4
138
139
  summary: Integrate with Eventbrite API