eventbrite-api-v3 0.0.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (53) hide show
  1. checksums.yaml +7 -0
  2. data/.document +5 -0
  3. data/.rspec +2 -0
  4. data/.ruby-version +1 -0
  5. data/.travis.yml +9 -0
  6. data/Gemfile +15 -0
  7. data/Gemfile.lock +96 -0
  8. data/LICENSE +22 -0
  9. data/README.md +187 -0
  10. data/Rakefile +51 -0
  11. data/VERSION +1 -0
  12. data/eventbrite-api-v3.gemspec +97 -0
  13. data/lib/eventbrite-api.rb +21 -0
  14. data/lib/eventbrite/api/client.rb +64 -0
  15. data/lib/eventbrite/api/helper.rb +27 -0
  16. data/lib/eventbrite/api/model/attendee.rb +11 -0
  17. data/lib/eventbrite/api/model/base.rb +84 -0
  18. data/lib/eventbrite/api/model/category.rb +11 -0
  19. data/lib/eventbrite/api/model/event.rb +23 -0
  20. data/lib/eventbrite/api/model/event_ticket_class.rb +11 -0
  21. data/lib/eventbrite/api/model/format.rb +11 -0
  22. data/lib/eventbrite/api/model/order.rb +11 -0
  23. data/lib/eventbrite/api/model/organizer.rb +11 -0
  24. data/lib/eventbrite/api/model/owned_event.rb +11 -0
  25. data/lib/eventbrite/api/model/owned_event_attendee.rb +11 -0
  26. data/lib/eventbrite/api/model/owned_event_order.rb +11 -0
  27. data/lib/eventbrite/api/model/user.rb +11 -0
  28. data/lib/eventbrite/api/model/user_contact.rb +11 -0
  29. data/lib/eventbrite/api/model/user_contact_list.rb +11 -0
  30. data/lib/eventbrite/api/model/user_order.rb +11 -0
  31. data/lib/eventbrite/api/model/user_organizer.rb +11 -0
  32. data/lib/eventbrite/api/model/user_venue.rb +11 -0
  33. data/lib/eventbrite/api/model/venue.rb +11 -0
  34. data/spec/eventbrite/api/client_spec.rb +46 -0
  35. data/spec/eventbrite/api/model/base_spec.rb +11 -0
  36. data/spec/eventbrite/api/model/event_spec.rb +50 -0
  37. data/spec/eventbrite/api/model/owned_event_attendee_spec.rb +32 -0
  38. data/spec/eventbrite/api/model/owned_event_order_spec.rb +19 -0
  39. data/spec/eventbrite/api/model/owned_event_spec.rb +19 -0
  40. data/spec/fixtures/events/13270934723/publish.json +129 -0
  41. data/spec/fixtures/events/13270934723/unpublish.json +129 -0
  42. data/spec/fixtures/events_page1.json +2405 -0
  43. data/spec/fixtures/events_page2.json +2096 -0
  44. data/spec/fixtures/events_page3.json +1996 -0
  45. data/spec/fixtures/owned_event_attendees/page1.json +3119 -0
  46. data/spec/fixtures/owned_event_attendees/page2.json +3074 -0
  47. data/spec/fixtures/owned_event_attendees/page3.json +2789 -0
  48. data/spec/fixtures/users/133925426255/owned_event_attendees.json +11 -0
  49. data/spec/fixtures/users/133925426255/owned_event_orders.json +327 -0
  50. data/spec/fixtures/users/133925426255/owned_events.json +181 -0
  51. data/spec/fixtures/users/me.json +13 -0
  52. data/spec/spec_helper.rb +98 -0
  53. metadata +139 -0
@@ -0,0 +1,13 @@
1
+ {
2
+ "emails":[
3
+ {
4
+ "email":"it@maestrano.com",
5
+ "verified":false,
6
+ "primary":true
7
+ }
8
+ ],
9
+ "id":"133925426255",
10
+ "name":"Bruno Chauvet",
11
+ "first_name":"Bruno",
12
+ "last_name":"Chauvet"
13
+ }
@@ -0,0 +1,98 @@
1
+ # This file was generated by the `rspec --init` command. Conventionally, all
2
+ # specs live under a `spec` directory, which RSpec adds to the `$LOAD_PATH`.
3
+ # The generated `.rspec` file contains `--require spec_helper` which will cause this
4
+ # file to always be loaded, without a need to explicitly require it in any files.
5
+ #
6
+ # Given that it is always loaded, you are encouraged to keep this file as
7
+ # light-weight as possible. Requiring heavyweight dependencies from this file
8
+ # will add to the boot time of your test suite on EVERY test run, even for an
9
+ # individual file that may not need all of that loaded. Instead, consider making
10
+ # a separate helper file that requires the additional dependencies and performs
11
+ # the additional setup, and require it from the spec files that actually need it.
12
+ #
13
+ # The `.rspec` file also contains a few flags that are not defaults but that
14
+ # users commonly want.
15
+ #
16
+ # See http://rubydoc.info/gems/rspec-core/RSpec/Core/Configuration
17
+
18
+ require 'simplecov'
19
+ SimpleCov.start
20
+
21
+ require_relative '../lib/eventbrite-api.rb'
22
+ require 'webmock/rspec'
23
+ require 'timecop'
24
+ require 'json'
25
+
26
+ RSpec.configure do |config|
27
+ # rspec-expectations config goes here. You can use an alternate
28
+ # assertion/expectation library such as wrong or the stdlib/minitest
29
+ # assertions if you prefer.
30
+ config.expect_with :rspec do |expectations|
31
+ # This option will default to `true` in RSpec 4. It makes the `description`
32
+ # and `failure_message` of custom matchers include text for helper methods
33
+ # defined using `chain`, e.g.:
34
+ # be_bigger_than(2).and_smaller_than(4).description
35
+ # # => "be bigger than 2 and smaller than 4"
36
+ # ...rather than:
37
+ # # => "be bigger than 2"
38
+ expectations.include_chain_clauses_in_custom_matcher_descriptions = true
39
+ end
40
+
41
+ # rspec-mocks config goes here. You can use an alternate test double
42
+ # library (such as bogus or mocha) by changing the `mock_with` option here.
43
+ config.mock_with :rspec do |mocks|
44
+ # Prevents you from mocking or stubbing a method that does not exist on
45
+ # a real object. This is generally recommended, and will default to
46
+ # `true` in RSpec 4.
47
+ mocks.verify_partial_doubles = true
48
+ end
49
+
50
+ # The settings below are suggested to provide a good initial experience
51
+ # with RSpec, but feel free to customize to your heart's content.
52
+ =begin
53
+ # These two settings work together to allow you to limit a spec run
54
+ # to individual examples or groups you care about by tagging them with
55
+ # `:focus` metadata. When nothing is tagged with `:focus`, all examples
56
+ # get run.
57
+ config.filter_run :focus
58
+ config.run_all_when_everything_filtered = true
59
+
60
+ # Limits the available syntax to the non-monkey patched syntax that is recommended.
61
+ # For more details, see:
62
+ # - http://myronmars.to/n/dev-blog/2012/06/rspecs-new-expectation-syntax
63
+ # - http://teaisaweso.me/blog/2013/05/27/rspecs-new-message-expectation-syntax/
64
+ # - http://myronmars.to/n/dev-blog/2014/05/notable-changes-in-rspec-3#new__config_option_to_disable_rspeccore_monkey_patching
65
+ config.disable_monkey_patching!
66
+
67
+ # This setting enables warnings. It's recommended, but in some cases may
68
+ # be too noisy due to issues in dependencies.
69
+ config.warnings = true
70
+
71
+ # Many RSpec users commonly either run the entire suite or an individual
72
+ # file, and it's useful to allow more verbose output when running an
73
+ # individual spec file.
74
+ if config.files_to_run.one?
75
+ # Use the documentation formatter for detailed output,
76
+ # unless a formatter has already been configured
77
+ # (e.g. via a command-line flag).
78
+ config.default_formatter = 'doc'
79
+ end
80
+
81
+ # Print the 10 slowest examples and example groups at the
82
+ # end of the spec run, to help surface which specs are running
83
+ # particularly slow.
84
+ config.profile_examples = 10
85
+
86
+ # Run specs in random order to surface order dependencies. If you find an
87
+ # order dependency and want to debug it, you can fix the order by providing
88
+ # the seed, which is printed after each run.
89
+ # --seed 1234
90
+ config.order = :random
91
+
92
+ # Seed global randomization in this process using the `--seed` CLI option.
93
+ # Setting this allows you to use `--seed` to deterministically reproduce
94
+ # test failures related to randomization by passing the same `--seed` value
95
+ # as the one that triggered the failure.
96
+ Kernel.srand config.seed
97
+ =end
98
+ end
metadata ADDED
@@ -0,0 +1,139 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: eventbrite-api-v3
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.5
5
+ platform: ruby
6
+ authors:
7
+ - BV Satyaram
8
+ - BrunoChauvet
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+ date: 2018-09-17 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: oauth2
16
+ requirement: !ruby/object:Gem::Requirement
17
+ requirements:
18
+ - - ">="
19
+ - !ruby/object:Gem::Version
20
+ version: '0'
21
+ type: :runtime
22
+ prerelease: false
23
+ version_requirements: !ruby/object:Gem::Requirement
24
+ requirements:
25
+ - - ">="
26
+ - !ruby/object:Gem::Version
27
+ version: '0'
28
+ - !ruby/object:Gem::Dependency
29
+ name: deep_merge
30
+ requirement: !ruby/object:Gem::Requirement
31
+ requirements:
32
+ - - ">="
33
+ - !ruby/object:Gem::Version
34
+ version: '0'
35
+ type: :runtime
36
+ prerelease: false
37
+ version_requirements: !ruby/object:Gem::Requirement
38
+ requirements:
39
+ - - ">="
40
+ - !ruby/object:Gem::Version
41
+ version: '0'
42
+ - !ruby/object:Gem::Dependency
43
+ name: jeweler
44
+ requirement: !ruby/object:Gem::Requirement
45
+ requirements:
46
+ - - ">="
47
+ - !ruby/object:Gem::Version
48
+ version: '0'
49
+ type: :development
50
+ prerelease: false
51
+ version_requirements: !ruby/object:Gem::Requirement
52
+ requirements:
53
+ - - ">="
54
+ - !ruby/object:Gem::Version
55
+ version: '0'
56
+ description: Integrate with Eventbrite API
57
+ email: bvsatyaram@gmail.com
58
+ executables: []
59
+ extensions: []
60
+ extra_rdoc_files:
61
+ - LICENSE
62
+ - README.md
63
+ files:
64
+ - ".document"
65
+ - ".rspec"
66
+ - ".ruby-version"
67
+ - ".travis.yml"
68
+ - Gemfile
69
+ - Gemfile.lock
70
+ - LICENSE
71
+ - README.md
72
+ - Rakefile
73
+ - VERSION
74
+ - eventbrite-api-v3.gemspec
75
+ - lib/eventbrite-api.rb
76
+ - lib/eventbrite/api/client.rb
77
+ - lib/eventbrite/api/helper.rb
78
+ - lib/eventbrite/api/model/attendee.rb
79
+ - lib/eventbrite/api/model/base.rb
80
+ - lib/eventbrite/api/model/category.rb
81
+ - lib/eventbrite/api/model/event.rb
82
+ - lib/eventbrite/api/model/event_ticket_class.rb
83
+ - lib/eventbrite/api/model/format.rb
84
+ - lib/eventbrite/api/model/order.rb
85
+ - lib/eventbrite/api/model/organizer.rb
86
+ - lib/eventbrite/api/model/owned_event.rb
87
+ - lib/eventbrite/api/model/owned_event_attendee.rb
88
+ - lib/eventbrite/api/model/owned_event_order.rb
89
+ - lib/eventbrite/api/model/user.rb
90
+ - lib/eventbrite/api/model/user_contact.rb
91
+ - lib/eventbrite/api/model/user_contact_list.rb
92
+ - lib/eventbrite/api/model/user_order.rb
93
+ - lib/eventbrite/api/model/user_organizer.rb
94
+ - lib/eventbrite/api/model/user_venue.rb
95
+ - lib/eventbrite/api/model/venue.rb
96
+ - spec/eventbrite/api/client_spec.rb
97
+ - spec/eventbrite/api/model/base_spec.rb
98
+ - spec/eventbrite/api/model/event_spec.rb
99
+ - spec/eventbrite/api/model/owned_event_attendee_spec.rb
100
+ - spec/eventbrite/api/model/owned_event_order_spec.rb
101
+ - spec/eventbrite/api/model/owned_event_spec.rb
102
+ - spec/fixtures/events/13270934723/publish.json
103
+ - spec/fixtures/events/13270934723/unpublish.json
104
+ - spec/fixtures/events_page1.json
105
+ - spec/fixtures/events_page2.json
106
+ - spec/fixtures/events_page3.json
107
+ - spec/fixtures/owned_event_attendees/page1.json
108
+ - spec/fixtures/owned_event_attendees/page2.json
109
+ - spec/fixtures/owned_event_attendees/page3.json
110
+ - spec/fixtures/users/133925426255/owned_event_attendees.json
111
+ - spec/fixtures/users/133925426255/owned_event_orders.json
112
+ - spec/fixtures/users/133925426255/owned_events.json
113
+ - spec/fixtures/users/me.json
114
+ - spec/spec_helper.rb
115
+ homepage: https://github.com/bvsatyaram/eventbrite-api
116
+ licenses:
117
+ - MIT
118
+ metadata: {}
119
+ post_install_message:
120
+ rdoc_options: []
121
+ require_paths:
122
+ - lib
123
+ required_ruby_version: !ruby/object:Gem::Requirement
124
+ requirements:
125
+ - - ">="
126
+ - !ruby/object:Gem::Version
127
+ version: '0'
128
+ required_rubygems_version: !ruby/object:Gem::Requirement
129
+ requirements:
130
+ - - ">="
131
+ - !ruby/object:Gem::Version
132
+ version: '0'
133
+ requirements: []
134
+ rubyforge_project:
135
+ rubygems_version: 2.6.12
136
+ signing_key:
137
+ specification_version: 4
138
+ summary: Integrate with Eventbrite API
139
+ test_files: []