sermonaudio 0.1.0

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.
Files changed (39) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +6 -0
  3. data/.rubocop.yml +15 -0
  4. data/.travis.yml +11 -0
  5. data/Gemfile +24 -0
  6. data/Gemfile.lock +127 -0
  7. data/README.md +258 -0
  8. data/Rakefile +13 -0
  9. data/lib/sermonaudio/actions.rb +99 -0
  10. data/lib/sermonaudio/client.rb +13 -0
  11. data/lib/sermonaudio/configuration.rb +37 -0
  12. data/lib/sermonaudio/version.rb +5 -0
  13. data/lib/sermonaudio.rb +13 -0
  14. data/sermonaudio.gemspec +22 -0
  15. data/spec/actions_spec.rb +236 -0
  16. data/spec/cassettes/SermonAudio_Actions/_favorite_broadcasters/should_return_the_correct_result.yml +508 -0
  17. data/spec/cassettes/SermonAudio_Actions/_favorite_sermons/should_return_the_correct_result.yml +509 -0
  18. data/spec/cassettes/SermonAudio_Actions/_favorite_speakers/should_return_the_correct_result.yml +508 -0
  19. data/spec/cassettes/SermonAudio_Actions/_get_event_types/should_return_a_larger_set_of_results.yml +521 -0
  20. data/spec/cassettes/SermonAudio_Actions/_get_event_types/should_return_a_single_result.yml +508 -0
  21. data/spec/cassettes/SermonAudio_Actions/_get_event_types/should_return_the_correct_results.yml +513 -0
  22. data/spec/cassettes/SermonAudio_Actions/_get_languages/should_return_the_correct_results.yml +506 -0
  23. data/spec/cassettes/SermonAudio_Actions/_get_newest_series_by_member_id/should_return_the_correct_results.yml +508 -0
  24. data/spec/cassettes/SermonAudio_Actions/_get_series_by_member_id/should_return_the_correct_results.yml +508 -0
  25. data/spec/cassettes/SermonAudio_Actions/_get_sermon_info/should_return_the_correct_result.yml +513 -0
  26. data/spec/cassettes/SermonAudio_Actions/_get_speakers_by_keyword/should_return_a_larger_set_of_results.yml +521 -0
  27. data/spec/cassettes/SermonAudio_Actions/_get_speakers_by_keyword/should_return_a_single_result.yml +508 -0
  28. data/spec/cassettes/SermonAudio_Actions/_get_speakers_by_member_id/should_return_the_correct_results.yml +508 -0
  29. data/spec/cassettes/SermonAudio_Actions/_newest_sermons_by_member_id/should_return_the_correct_results.yml +598 -0
  30. data/spec/cassettes/SermonAudio_Actions/_newest_sermons_by_speaker/should_return_the_correct_results.yml +599 -0
  31. data/spec/cassettes/SermonAudio_Actions/_sermon_list/should_return_a_list_of_sermons_for_the_specified_church.yml +1189 -0
  32. data/spec/cassettes/SermonAudio_Sermon/_find_newest_/success/should_find_newest_sermons_by_SpeakerName.yml +599 -0
  33. data/spec/client_spec.rb +15 -0
  34. data/spec/configuration_spec.rb +43 -0
  35. data/spec/fixtures/submit_sermon.xml +8 -0
  36. data/spec/fixtures/update_sermon.xml +6 -0
  37. data/spec/fixtures/wsdl.xml +740 -0
  38. data/spec/spec_helper.rb +46 -0
  39. metadata +134 -0
@@ -0,0 +1,46 @@
1
+ require 'bundler/setup'
2
+
3
+ require 'simplecov'
4
+ require 'coveralls'
5
+
6
+ SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter[
7
+ SimpleCov::Formatter::HTMLFormatter,
8
+ Coveralls::SimpleCov::Formatter
9
+ ]
10
+ SimpleCov.start
11
+
12
+ require 'pry' unless ENV["TRAVIS"]
13
+ require 'vcr'
14
+
15
+ require 'sermonaudio'
16
+
17
+ def env(environment = {}, &blk)
18
+ old = ->(key) { "__old_#{key}" }
19
+ environment.each_pair do |key, value|
20
+ ENV[old.(key)] = ENV[key] if ENV[key]
21
+ ENV[key] = value
22
+ end
23
+ yield
24
+ ensure
25
+ environment.each_pair do |key, value|
26
+ if ENV[old.(key)]
27
+ ENV.delete key
28
+ ENV[key] = ENV[old.(key)]
29
+ ENV.delete old.(key)
30
+ else
31
+ ENV.delete key
32
+ end
33
+ end
34
+ end
35
+
36
+ VCR.configure do |c|
37
+ c.cassette_library_dir = 'spec/cassettes'
38
+ c.hook_into :webmock # or :fakeweb
39
+ c.configure_rspec_metadata!
40
+ c.filter_sensitive_data('<SA_PASSWORD>') { ENV["SERMONAUDIO_PASSWORD"] }
41
+ end
42
+
43
+ RSpec.configure do |config|
44
+ # some (optional) config here
45
+ config.mock_framework = :rspec
46
+ end
metadata ADDED
@@ -0,0 +1,134 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: sermonaudio
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - Matt Bridges
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2014-07-29 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: savon
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '2.0'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '2.0'
27
+ - !ruby/object:Gem::Dependency
28
+ name: nokogiri
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - '='
32
+ - !ruby/object:Gem::Version
33
+ version: 1.6.2.1
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - '='
39
+ - !ruby/object:Gem::Version
40
+ version: 1.6.2.1
41
+ description: sermonaudio uses the Savon gem to interface with SermonAudio as easily
42
+ as possible.
43
+ email:
44
+ - mbridges.91@gmail.com
45
+ executables: []
46
+ extensions: []
47
+ extra_rdoc_files: []
48
+ files:
49
+ - ".gitignore"
50
+ - ".rubocop.yml"
51
+ - ".travis.yml"
52
+ - Gemfile
53
+ - Gemfile.lock
54
+ - README.md
55
+ - Rakefile
56
+ - lib/sermonaudio.rb
57
+ - lib/sermonaudio/actions.rb
58
+ - lib/sermonaudio/client.rb
59
+ - lib/sermonaudio/configuration.rb
60
+ - lib/sermonaudio/version.rb
61
+ - sermonaudio.gemspec
62
+ - spec/actions_spec.rb
63
+ - spec/cassettes/SermonAudio_Actions/_favorite_broadcasters/should_return_the_correct_result.yml
64
+ - spec/cassettes/SermonAudio_Actions/_favorite_sermons/should_return_the_correct_result.yml
65
+ - spec/cassettes/SermonAudio_Actions/_favorite_speakers/should_return_the_correct_result.yml
66
+ - spec/cassettes/SermonAudio_Actions/_get_event_types/should_return_a_larger_set_of_results.yml
67
+ - spec/cassettes/SermonAudio_Actions/_get_event_types/should_return_a_single_result.yml
68
+ - spec/cassettes/SermonAudio_Actions/_get_event_types/should_return_the_correct_results.yml
69
+ - spec/cassettes/SermonAudio_Actions/_get_languages/should_return_the_correct_results.yml
70
+ - spec/cassettes/SermonAudio_Actions/_get_newest_series_by_member_id/should_return_the_correct_results.yml
71
+ - spec/cassettes/SermonAudio_Actions/_get_series_by_member_id/should_return_the_correct_results.yml
72
+ - spec/cassettes/SermonAudio_Actions/_get_sermon_info/should_return_the_correct_result.yml
73
+ - spec/cassettes/SermonAudio_Actions/_get_speakers_by_keyword/should_return_a_larger_set_of_results.yml
74
+ - spec/cassettes/SermonAudio_Actions/_get_speakers_by_keyword/should_return_a_single_result.yml
75
+ - spec/cassettes/SermonAudio_Actions/_get_speakers_by_member_id/should_return_the_correct_results.yml
76
+ - spec/cassettes/SermonAudio_Actions/_newest_sermons_by_member_id/should_return_the_correct_results.yml
77
+ - spec/cassettes/SermonAudio_Actions/_newest_sermons_by_speaker/should_return_the_correct_results.yml
78
+ - spec/cassettes/SermonAudio_Actions/_sermon_list/should_return_a_list_of_sermons_for_the_specified_church.yml
79
+ - spec/cassettes/SermonAudio_Sermon/_find_newest_/success/should_find_newest_sermons_by_SpeakerName.yml
80
+ - spec/client_spec.rb
81
+ - spec/configuration_spec.rb
82
+ - spec/fixtures/submit_sermon.xml
83
+ - spec/fixtures/update_sermon.xml
84
+ - spec/fixtures/wsdl.xml
85
+ - spec/spec_helper.rb
86
+ homepage: https://github.com/mattdbridges/sermonaudio
87
+ licenses: []
88
+ metadata: {}
89
+ post_install_message:
90
+ rdoc_options: []
91
+ require_paths:
92
+ - lib
93
+ required_ruby_version: !ruby/object:Gem::Requirement
94
+ requirements:
95
+ - - ">="
96
+ - !ruby/object:Gem::Version
97
+ version: '0'
98
+ required_rubygems_version: !ruby/object:Gem::Requirement
99
+ requirements:
100
+ - - ">="
101
+ - !ruby/object:Gem::Version
102
+ version: '0'
103
+ requirements: []
104
+ rubyforge_project: sermonaudio
105
+ rubygems_version: 2.2.2
106
+ signing_key:
107
+ specification_version: 4
108
+ summary: SermonAudio API interface for Ruby.
109
+ test_files:
110
+ - spec/actions_spec.rb
111
+ - spec/cassettes/SermonAudio_Actions/_favorite_broadcasters/should_return_the_correct_result.yml
112
+ - spec/cassettes/SermonAudio_Actions/_favorite_sermons/should_return_the_correct_result.yml
113
+ - spec/cassettes/SermonAudio_Actions/_favorite_speakers/should_return_the_correct_result.yml
114
+ - spec/cassettes/SermonAudio_Actions/_get_event_types/should_return_a_larger_set_of_results.yml
115
+ - spec/cassettes/SermonAudio_Actions/_get_event_types/should_return_a_single_result.yml
116
+ - spec/cassettes/SermonAudio_Actions/_get_event_types/should_return_the_correct_results.yml
117
+ - spec/cassettes/SermonAudio_Actions/_get_languages/should_return_the_correct_results.yml
118
+ - spec/cassettes/SermonAudio_Actions/_get_newest_series_by_member_id/should_return_the_correct_results.yml
119
+ - spec/cassettes/SermonAudio_Actions/_get_series_by_member_id/should_return_the_correct_results.yml
120
+ - spec/cassettes/SermonAudio_Actions/_get_sermon_info/should_return_the_correct_result.yml
121
+ - spec/cassettes/SermonAudio_Actions/_get_speakers_by_keyword/should_return_a_larger_set_of_results.yml
122
+ - spec/cassettes/SermonAudio_Actions/_get_speakers_by_keyword/should_return_a_single_result.yml
123
+ - spec/cassettes/SermonAudio_Actions/_get_speakers_by_member_id/should_return_the_correct_results.yml
124
+ - spec/cassettes/SermonAudio_Actions/_newest_sermons_by_member_id/should_return_the_correct_results.yml
125
+ - spec/cassettes/SermonAudio_Actions/_newest_sermons_by_speaker/should_return_the_correct_results.yml
126
+ - spec/cassettes/SermonAudio_Actions/_sermon_list/should_return_a_list_of_sermons_for_the_specified_church.yml
127
+ - spec/cassettes/SermonAudio_Sermon/_find_newest_/success/should_find_newest_sermons_by_SpeakerName.yml
128
+ - spec/client_spec.rb
129
+ - spec/configuration_spec.rb
130
+ - spec/fixtures/submit_sermon.xml
131
+ - spec/fixtures/update_sermon.xml
132
+ - spec/fixtures/wsdl.xml
133
+ - spec/spec_helper.rb
134
+ has_rdoc: