eventbrite-api 0.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (45) 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 +12 -0
  6. data/Gemfile +14 -0
  7. data/Gemfile.lock +86 -0
  8. data/LICENSE +22 -0
  9. data/README.md +2 -0
  10. data/Rakefile +51 -0
  11. data/VERSION +1 -0
  12. data/eventbrite-api.gemspec +86 -0
  13. data/lib/eventbrite-api.rb +15 -0
  14. data/lib/eventbrite/api/client.rb +59 -0
  15. data/lib/eventbrite/api/helper.rb +27 -0
  16. data/lib/eventbrite/api/model/base.rb +85 -0
  17. data/lib/eventbrite/api/model/event.rb +23 -0
  18. data/lib/eventbrite/api/model/event_ticket_class.rb +11 -0
  19. data/lib/eventbrite/api/model/order.rb +11 -0
  20. data/lib/eventbrite/api/model/organizer.rb +11 -0
  21. data/lib/eventbrite/api/model/owned_event.rb +11 -0
  22. data/lib/eventbrite/api/model/owned_event_attendee.rb +11 -0
  23. data/lib/eventbrite/api/model/owned_event_order.rb +11 -0
  24. data/lib/eventbrite/api/model/user.rb +11 -0
  25. data/lib/eventbrite/api/model/user_order.rb +11 -0
  26. data/lib/eventbrite/api/model/user_organizer.rb +11 -0
  27. data/lib/eventbrite/api/model/user_venue.rb +11 -0
  28. data/lib/eventbrite/api/model/venue.rb +11 -0
  29. data/spec/eventbrite/api/client_spec.rb +46 -0
  30. data/spec/eventbrite/api/model/base_spec.rb +11 -0
  31. data/spec/eventbrite/api/model/event_spec.rb +50 -0
  32. data/spec/eventbrite/api/model/owned_event_attendee_spec.rb +19 -0
  33. data/spec/eventbrite/api/model/owned_event_order_spec.rb +19 -0
  34. data/spec/eventbrite/api/model/owned_event_spec.rb +19 -0
  35. data/spec/fixtures/events/13270934723/publish.json +129 -0
  36. data/spec/fixtures/events/13270934723/unpublish.json +129 -0
  37. data/spec/fixtures/events_page1.json +2405 -0
  38. data/spec/fixtures/events_page2.json +2096 -0
  39. data/spec/fixtures/events_page3.json +1996 -0
  40. data/spec/fixtures/users/133925426255/owned_event_attendees.json +11 -0
  41. data/spec/fixtures/users/133925426255/owned_event_orders.json +327 -0
  42. data/spec/fixtures/users/133925426255/owned_events.json +181 -0
  43. data/spec/fixtures/users/me.json +13 -0
  44. data/spec/spec_helper.rb +98 -0
  45. metadata +116 -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,116 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: eventbrite-api
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.0
5
+ platform: ruby
6
+ authors:
7
+ - BrunoChauvet
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2015-02-24 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: oauth2
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: '0'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ">="
25
+ - !ruby/object:Gem::Version
26
+ version: '0'
27
+ - !ruby/object:Gem::Dependency
28
+ name: jeweler
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ">="
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
41
+ description: Integrate with Eventbrite API
42
+ email: it@maestrano.com
43
+ executables: []
44
+ extensions: []
45
+ extra_rdoc_files:
46
+ - LICENSE
47
+ - README.md
48
+ files:
49
+ - ".document"
50
+ - ".rspec"
51
+ - ".ruby-version"
52
+ - ".travis.yml"
53
+ - Gemfile
54
+ - Gemfile.lock
55
+ - LICENSE
56
+ - README.md
57
+ - Rakefile
58
+ - VERSION
59
+ - eventbrite-api.gemspec
60
+ - lib/eventbrite-api.rb
61
+ - lib/eventbrite/api/client.rb
62
+ - lib/eventbrite/api/helper.rb
63
+ - lib/eventbrite/api/model/base.rb
64
+ - lib/eventbrite/api/model/event.rb
65
+ - lib/eventbrite/api/model/event_ticket_class.rb
66
+ - lib/eventbrite/api/model/order.rb
67
+ - lib/eventbrite/api/model/organizer.rb
68
+ - lib/eventbrite/api/model/owned_event.rb
69
+ - lib/eventbrite/api/model/owned_event_attendee.rb
70
+ - lib/eventbrite/api/model/owned_event_order.rb
71
+ - lib/eventbrite/api/model/user.rb
72
+ - lib/eventbrite/api/model/user_order.rb
73
+ - lib/eventbrite/api/model/user_organizer.rb
74
+ - lib/eventbrite/api/model/user_venue.rb
75
+ - lib/eventbrite/api/model/venue.rb
76
+ - spec/eventbrite/api/client_spec.rb
77
+ - spec/eventbrite/api/model/base_spec.rb
78
+ - spec/eventbrite/api/model/event_spec.rb
79
+ - spec/eventbrite/api/model/owned_event_attendee_spec.rb
80
+ - spec/eventbrite/api/model/owned_event_order_spec.rb
81
+ - spec/eventbrite/api/model/owned_event_spec.rb
82
+ - spec/fixtures/events/13270934723/publish.json
83
+ - spec/fixtures/events/13270934723/unpublish.json
84
+ - spec/fixtures/events_page1.json
85
+ - spec/fixtures/events_page2.json
86
+ - spec/fixtures/events_page3.json
87
+ - spec/fixtures/users/133925426255/owned_event_attendees.json
88
+ - spec/fixtures/users/133925426255/owned_event_orders.json
89
+ - spec/fixtures/users/133925426255/owned_events.json
90
+ - spec/fixtures/users/me.json
91
+ - spec/spec_helper.rb
92
+ homepage: http://github.com/BrunoChauvet/eventbrite-api
93
+ licenses:
94
+ - MIT
95
+ metadata: {}
96
+ post_install_message:
97
+ rdoc_options: []
98
+ require_paths:
99
+ - lib
100
+ required_ruby_version: !ruby/object:Gem::Requirement
101
+ requirements:
102
+ - - ">="
103
+ - !ruby/object:Gem::Version
104
+ version: '0'
105
+ required_rubygems_version: !ruby/object:Gem::Requirement
106
+ requirements:
107
+ - - ">="
108
+ - !ruby/object:Gem::Version
109
+ version: '0'
110
+ requirements: []
111
+ rubyforge_project:
112
+ rubygems_version: 2.4.5
113
+ signing_key:
114
+ specification_version: 4
115
+ summary: Integrate with Eventbrite API
116
+ test_files: []