postini 0.0.1

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 (43) hide show
  1. data/History.txt +8 -0
  2. data/License.txt +29 -0
  3. data/Manifest.txt +42 -0
  4. data/PostInstall.txt +7 -0
  5. data/README.txt +62 -0
  6. data/Rakefile +4 -0
  7. data/config/hoe.rb +76 -0
  8. data/config/requirements.rb +15 -0
  9. data/lib/postini/api/automatedbatch/AutomatedBatch.rb +1244 -0
  10. data/lib/postini/api/automatedbatch/AutomatedBatchDriver.rb +216 -0
  11. data/lib/postini/api/automatedbatch/AutomatedBatchMappingRegistry.rb +1883 -0
  12. data/lib/postini/api/automatedbatch/AutomatedBatchServiceClient.rb +523 -0
  13. data/lib/postini/api/endpointresolver/EndpointResolver.rb +121 -0
  14. data/lib/postini/api/endpointresolver/EndpointResolverDriver.rb +51 -0
  15. data/lib/postini/api/endpointresolver/EndpointResolverMappingRegistry.rb +268 -0
  16. data/lib/postini/api/endpointresolver/EndpointResolverServiceClient.rb +38 -0
  17. data/lib/postini/api.rb +8 -0
  18. data/lib/postini/domain.rb +65 -0
  19. data/lib/postini/user.rb +125 -0
  20. data/lib/postini/version.rb +9 -0
  21. data/lib/postini.rb +100 -0
  22. data/script/console +10 -0
  23. data/script/destroy +14 -0
  24. data/script/generate +14 -0
  25. data/script/txt2html +82 -0
  26. data/setup.rb +1585 -0
  27. data/spec/domain_spec.rb +36 -0
  28. data/spec/postini_spec.rb +30 -0
  29. data/spec/spec.opts +1 -0
  30. data/spec/spec_helper.rb +10 -0
  31. data/spec/user_spec.rb +12 -0
  32. data/tasks/deployment.rake +34 -0
  33. data/tasks/environment.rake +7 -0
  34. data/tasks/rspec.rake +21 -0
  35. data/tasks/website.rake +17 -0
  36. data/vendor/automatedbatch.wsdl +1721 -0
  37. data/vendor/endpointresolver.wsdl +214 -0
  38. data/website/index.html +88 -0
  39. data/website/index.txt +60 -0
  40. data/website/javascripts/rounded_corners_lite.inc.js +285 -0
  41. data/website/stylesheets/screen.css +138 -0
  42. data/website/template.html.erb +55 -0
  43. metadata +117 -0
data/History.txt ADDED
@@ -0,0 +1,8 @@
1
+ == 0.0.1 Work in progress
2
+
3
+ * Initial release
4
+ * Support for the Postini Endpoint Resolver API
5
+ * wsdl2ruby for the Automated Batch Service API
6
+ * (Very) Rough support for adding/removing users
7
+ * Support for adding/removing aliases
8
+ * RDoc's to help get around
data/License.txt ADDED
@@ -0,0 +1,29 @@
1
+ = LICENSE
2
+
3
+ Copyright (c) 2008 Clear Planet Information Solutions (Pty) Ltd & ISP in a Box CC
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining
6
+ a copy of this software and associated documentation files (the
7
+ 'Software'), to deal in the Software without restriction, including
8
+ without limitation the rights to use, copy, modify, merge, publish,
9
+ distribute, sublicense, and/or sell copies of the Software, and to
10
+ permit persons to whom the Software is furnished to do so, subject to
11
+ the following conditions:
12
+
13
+ The above copyright notice and this permission notice shall be
14
+ included in all copies or substantial portions of the Software.
15
+
16
+ THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
17
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
19
+ IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
20
+ CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
21
+ TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
22
+ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
23
+
24
+ = TRADEMARKS
25
+
26
+ Postini, the Postini Logo, Perimeter Manager, Security Manager, Network Edition,
27
+ AirPostini, and Postini Message Platform are either registered trademarks or
28
+ trademarks of Postini Inc. Postini is a registered trademark of Postini, Inc.
29
+ All other trademarks are the property of their respective holders.
data/Manifest.txt ADDED
@@ -0,0 +1,42 @@
1
+ History.txt
2
+ License.txt
3
+ Manifest.txt
4
+ PostInstall.txt
5
+ README.txt
6
+ Rakefile
7
+ config/hoe.rb
8
+ config/requirements.rb
9
+ lib/postini.rb
10
+ lib/postini/version.rb
11
+ lib/postini/api.rb
12
+ lib/postini/api/automatedbatch/AutomatedBatch.rb
13
+ lib/postini/api/automatedbatch/AutomatedBatchDriver.rb
14
+ lib/postini/api/automatedbatch/AutomatedBatchMappingRegistry.rb
15
+ lib/postini/api/automatedbatch/AutomatedBatchServiceClient.rb
16
+ lib/postini/api/endpointresolver/EndpointResolver.rb
17
+ lib/postini/api/endpointresolver/EndpointResolverDriver.rb
18
+ lib/postini/api/endpointresolver/EndpointResolverMappingRegistry.rb
19
+ lib/postini/api/endpointresolver/EndpointResolverServiceClient.rb
20
+ lib/postini/domain.rb
21
+ lib/postini/user.rb
22
+ script/console
23
+ script/destroy
24
+ script/generate
25
+ script/txt2html
26
+ setup.rb
27
+ spec/postini_spec.rb
28
+ spec/spec.opts
29
+ spec/spec_helper.rb
30
+ spec/domain_spec.rb
31
+ spec/user_spec.rb
32
+ tasks/deployment.rake
33
+ tasks/environment.rake
34
+ tasks/rspec.rake
35
+ tasks/website.rake
36
+ website/index.html
37
+ website/index.txt
38
+ website/javascripts/rounded_corners_lite.inc.js
39
+ website/stylesheets/screen.css
40
+ website/template.html.erb
41
+ vendor/automatedbatch.wsdl
42
+ vendor/endpointresolver.wsdl
data/PostInstall.txt ADDED
@@ -0,0 +1,7 @@
1
+
2
+ For more information on postini4r, see http://postini4r.rubyforge.org
3
+
4
+ NOTE: Change this information in PostInstall.txt
5
+ You can also delete it if you don't want it.
6
+
7
+
data/README.txt ADDED
@@ -0,0 +1,62 @@
1
+ = postini Gem
2
+
3
+ * http://postini4r.rubyforge.org/
4
+
5
+ == DESCRIPTION:
6
+
7
+ A Ruby wrapper library to make the Postini SOAP API more palatable.
8
+
9
+ Postini is the world leader in email message scanning, filtering and archiving.
10
+ This library provides users of Postini with a convenient Ruby library that
11
+ exposes the Postini SOAP API (Early Access Program) through more familiar
12
+ Rubyisms.
13
+
14
+ == FEATURES/PROBLEMS:
15
+
16
+ * FIX (list of features or problems)
17
+
18
+ == SYNOPSIS:
19
+
20
+ FIX
21
+
22
+ == REQUIREMENTS:
23
+
24
+ * Approved access to the Postini Early Access Program (contact your Postini
25
+ provider)
26
+ * soap4r
27
+
28
+ == INSTALL:
29
+
30
+ * sudo gem install postini
31
+
32
+ == TRADEMARKS:
33
+
34
+ Postini, the Postini Logo, Perimeter Manager, Security Manager, Network Edition,
35
+ AirPostini, and Postini Message Platform are either registered trademarks or
36
+ trademarks of Postini Inc. Postini is a registered trademark of Postini, Inc.
37
+ All other trademarks are the property of their respective holders.
38
+
39
+ == LICENSE:
40
+
41
+ (The MIT License)
42
+
43
+ Copyright (c) 2008 Clear Planet Information Solutions (Pty) Ltd & ISP in a Box CC
44
+
45
+ Permission is hereby granted, free of charge, to any person obtaining
46
+ a copy of this software and associated documentation files (the
47
+ 'Software'), to deal in the Software without restriction, including
48
+ without limitation the rights to use, copy, modify, merge, publish,
49
+ distribute, sublicense, and/or sell copies of the Software, and to
50
+ permit persons to whom the Software is furnished to do so, subject to
51
+ the following conditions:
52
+
53
+ The above copyright notice and this permission notice shall be
54
+ included in all copies or substantial portions of the Software.
55
+
56
+ THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
57
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
58
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
59
+ IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
60
+ CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
61
+ TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
62
+ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/Rakefile ADDED
@@ -0,0 +1,4 @@
1
+ require 'config/requirements'
2
+ require 'config/hoe' # setup Hoe + all gem configuration
3
+
4
+ Dir['tasks/**/*.rake'].each { |rake| load rake }
data/config/hoe.rb ADDED
@@ -0,0 +1,76 @@
1
+ require 'postini/version'
2
+
3
+ AUTHOR = 'Kenneth Kalmer' # can also be an array of Authors
4
+ EMAIL = "kenneth.kalmer@gmail.com"
5
+ DESCRIPTION = "Ruby wrapper around the Postini SOAP API (Early Access Program)"
6
+ GEM_NAME = 'postini' # what ppl will type to install your gem
7
+ RUBYFORGE_PROJECT = 'postini4r' # The unix name for your project
8
+ HOMEPATH = "http://#{RUBYFORGE_PROJECT}.rubyforge.org"
9
+ DOWNLOAD_PATH = "http://rubyforge.org/projects/#{RUBYFORGE_PROJECT}"
10
+ EXTRA_DEPENDENCIES = [
11
+ # ['activesupport', '>= 1.3.1']
12
+ ['soap4r', '=1.5.8']
13
+ ] # An array of rubygem dependencies [name, version]
14
+
15
+ @config_file = "~/.rubyforge/user-config.yml"
16
+ @config = nil
17
+ RUBYFORGE_USERNAME = "kennethkalmer"
18
+ def rubyforge_username
19
+ unless @config
20
+ begin
21
+ @config = YAML.load(File.read(File.expand_path(@config_file)))
22
+ rescue
23
+ puts <<-EOS
24
+ ERROR: No rubyforge config file found: #{@config_file}
25
+ Run 'rubyforge setup' to prepare your env for access to Rubyforge
26
+ - See http://newgem.rubyforge.org/rubyforge.html for more details
27
+ EOS
28
+ exit
29
+ end
30
+ end
31
+ RUBYFORGE_USERNAME.replace @config["username"]
32
+ end
33
+
34
+
35
+ REV = nil
36
+ # UNCOMMENT IF REQUIRED:
37
+ # REV = YAML.load(`svn info`)['Revision']
38
+ VERS = Postini::VERSION::STRING + (REV ? ".#{REV}" : "")
39
+ RDOC_OPTS = ['--quiet', '--title', 'postini documentation',
40
+ "--opname", "index.html",
41
+ "--line-numbers",
42
+ "--main", "README",
43
+ "--inline-source",
44
+ "--exclude", "*.wsdl"
45
+ ]
46
+
47
+ class Hoe
48
+ def extra_deps
49
+ @extra_deps.reject! { |x| Array(x).first == 'hoe' }
50
+ @extra_deps
51
+ end
52
+ end
53
+
54
+ # Generate all the Rake tasks
55
+ # Run 'rake -T' to see list of generated tasks (from gem root directory)
56
+ $hoe = Hoe.new(GEM_NAME, VERS) do |p|
57
+ p.developer(AUTHOR, EMAIL)
58
+ p.description = DESCRIPTION
59
+ p.summary = DESCRIPTION
60
+ p.url = HOMEPATH
61
+ p.rubyforge_name = RUBYFORGE_PROJECT if RUBYFORGE_PROJECT
62
+ p.test_globs = ["test/**/test_*.rb"]
63
+ p.clean_globs |= ['**/.*.sw?', '*.gem', '.config', '**/.DS_Store'] #An array of file patterns to delete on clean.
64
+
65
+ # == Optional
66
+ p.changes = p.paragraphs_of("History.txt", 0..1).join("\n\n")
67
+ #p.extra_deps = EXTRA_DEPENDENCIES
68
+
69
+ #p.spec_extras = {} # A hash of extra values to set in the gemspec.
70
+ end
71
+
72
+ CHANGES = $hoe.paragraphs_of('History.txt', 0..1).join("\\n\\n")
73
+ PATH = (RUBYFORGE_PROJECT == GEM_NAME) ? RUBYFORGE_PROJECT : "#{RUBYFORGE_PROJECT}/#{GEM_NAME}"
74
+ $hoe.remote_rdoc_dir = File.join(PATH.gsub(/^#{RUBYFORGE_PROJECT}\/?/,''), 'rdoc')
75
+ $hoe.rsync_args = '-av --delete --ignore-errors'
76
+ $hoe.spec.post_install_message = File.open(File.dirname(__FILE__) + "/../PostInstall.txt").read rescue ""
@@ -0,0 +1,15 @@
1
+ require 'fileutils'
2
+ include FileUtils
3
+
4
+ require 'rubygems'
5
+ %w[rake hoe newgem rubigen].each do |req_gem|
6
+ begin
7
+ require req_gem
8
+ rescue LoadError
9
+ puts "This Rakefile requires the '#{req_gem}' RubyGem."
10
+ puts "Installation: gem install #{req_gem} -y"
11
+ exit
12
+ end
13
+ end
14
+
15
+ $:.unshift(File.join(File.dirname(__FILE__), %w[.. lib]))