oas 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,29 @@
1
+ require 'oas'
2
+ require 'rspec'
3
+ require "webmock/rspec"
4
+
5
+ # Requires supporting files with custom matchers and macros, etc,
6
+ # in ./support/ and its subdirectories.
7
+ Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each {|f| require f}
8
+
9
+ RSpec.configure do |config|
10
+ config.include WebMock::API
11
+ config.before(:each) { stub_wsdl }
12
+ config.after(:each) { Oas.reset }
13
+ end
14
+
15
+ def fixture_path
16
+ File.expand_path("../fixtures", __FILE__)
17
+ end
18
+
19
+ def fixture(file)
20
+ File.new(fixture_path + '/' + file)
21
+ end
22
+
23
+ def stub_wsdl(status = 200)
24
+ stub_request(:get, Oas.endpoint).to_return(:status => status, :body => fixture("wsdl.xml"))
25
+ end
26
+
27
+ def stub_api_call(body = nil, status = 200)
28
+ stub_request(:post, "https://oas.realmedianetwork.net:443/oasapi/OaxApi").to_return(:status => status, :body => body, :headers => {:content_type => "text/xml;charset=utf-8"})
29
+ end
metadata ADDED
@@ -0,0 +1,149 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: oas
3
+ version: !ruby/object:Gem::Version
4
+ prerelease:
5
+ version: 0.1.0
6
+ platform: ruby
7
+ authors:
8
+ - Damian Caruso
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+
13
+ date: 2011-05-12 00:00:00 -03:00
14
+ default_executable:
15
+ dependencies:
16
+ - !ruby/object:Gem::Dependency
17
+ name: httpclient
18
+ prerelease: false
19
+ requirement: &id001 !ruby/object:Gem::Requirement
20
+ none: false
21
+ requirements:
22
+ - - ~>
23
+ - !ruby/object:Gem::Version
24
+ version: 2.2.0.2
25
+ type: :runtime
26
+ version_requirements: *id001
27
+ - !ruby/object:Gem::Dependency
28
+ name: nokogiri
29
+ prerelease: false
30
+ requirement: &id002 !ruby/object:Gem::Requirement
31
+ none: false
32
+ requirements:
33
+ - - ~>
34
+ - !ruby/object:Gem::Version
35
+ version: 1.4.4
36
+ type: :runtime
37
+ version_requirements: *id002
38
+ - !ruby/object:Gem::Dependency
39
+ name: savon
40
+ prerelease: false
41
+ requirement: &id003 !ruby/object:Gem::Requirement
42
+ none: false
43
+ requirements:
44
+ - - ~>
45
+ - !ruby/object:Gem::Version
46
+ version: 0.9.2
47
+ type: :runtime
48
+ version_requirements: *id003
49
+ - !ruby/object:Gem::Dependency
50
+ name: rspec
51
+ prerelease: false
52
+ requirement: &id004 !ruby/object:Gem::Requirement
53
+ none: false
54
+ requirements:
55
+ - - ~>
56
+ - !ruby/object:Gem::Version
57
+ version: 2.5.0
58
+ type: :development
59
+ version_requirements: *id004
60
+ - !ruby/object:Gem::Dependency
61
+ name: webmock
62
+ prerelease: false
63
+ requirement: &id005 !ruby/object:Gem::Requirement
64
+ none: false
65
+ requirements:
66
+ - - ~>
67
+ - !ruby/object:Gem::Version
68
+ version: 1.6.2
69
+ type: :development
70
+ version_requirements: *id005
71
+ description: Ruby wrapper for the OAS 7.4 API
72
+ email:
73
+ - damian.caruso@gmail.com
74
+ executables: []
75
+
76
+ extensions: []
77
+
78
+ extra_rdoc_files: []
79
+
80
+ files:
81
+ - .gitignore
82
+ - .rspec
83
+ - Gemfile
84
+ - LICENSE
85
+ - README.markdown
86
+ - Rakefile
87
+ - lib/oas.rb
88
+ - lib/oas/api.rb
89
+ - lib/oas/client.rb
90
+ - lib/oas/client/campaign.rb
91
+ - lib/oas/client/creative.rb
92
+ - lib/oas/client/database.rb
93
+ - lib/oas/client/notification.rb
94
+ - lib/oas/client/utils.rb
95
+ - lib/oas/configuration.rb
96
+ - lib/oas/core_ext/hash.rb
97
+ - lib/oas/core_ext/object.rb
98
+ - lib/oas/error.rb
99
+ - lib/oas/version.rb
100
+ - oas.gemspec
101
+ - spec/fixtures/read_advertiser.xml
102
+ - spec/fixtures/read_agency.xml
103
+ - spec/fixtures/read_campaign.xml
104
+ - spec/fixtures/read_campaign_group.xml
105
+ - spec/fixtures/read_creative.xml
106
+ - spec/fixtures/read_keyname.xml
107
+ - spec/fixtures/read_keyword.xml
108
+ - spec/fixtures/read_notification.xml
109
+ - spec/fixtures/read_page.xml
110
+ - spec/fixtures/read_section.xml
111
+ - spec/fixtures/read_site.xml
112
+ - spec/fixtures/read_site_group.xml
113
+ - spec/fixtures/wsdl.xml
114
+ - spec/oas/client/campaign_spec.rb
115
+ - spec/oas/client/creative_spec.rb
116
+ - spec/oas/client/database_spec.rb
117
+ - spec/oas/client/notification_spec.rb
118
+ - spec/oas_spec.rb
119
+ - spec/spec_helper.rb
120
+ has_rdoc: true
121
+ homepage: http://github.com/realmedia/ruby-oas
122
+ licenses: []
123
+
124
+ post_install_message:
125
+ rdoc_options: []
126
+
127
+ require_paths:
128
+ - lib
129
+ required_ruby_version: !ruby/object:Gem::Requirement
130
+ none: false
131
+ requirements:
132
+ - - ">="
133
+ - !ruby/object:Gem::Version
134
+ version: "0"
135
+ required_rubygems_version: !ruby/object:Gem::Requirement
136
+ none: false
137
+ requirements:
138
+ - - ">="
139
+ - !ruby/object:Gem::Version
140
+ version: "0"
141
+ requirements: []
142
+
143
+ rubyforge_project: oas
144
+ rubygems_version: 1.6.2
145
+ signing_key:
146
+ specification_version: 3
147
+ summary: Ruby wrapper for the OAS 7.4 API
148
+ test_files: []
149
+