vertigo 0.0.1.a
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +24 -0
- data/.rvmrc +1 -0
- data/Gemfile +4 -0
- data/Gemfile.lock +16 -0
- data/README.md +42 -0
- data/Rakefile +1 -0
- data/dev-setup.sh +23 -0
- data/lib/vertigo.rb +5 -0
- data/lib/vertigo/version.rb +3 -0
- data/vertigo.gemspec +22 -0
- metadata +95 -0
data/.gitignore
ADDED
data/.rvmrc
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
rvm 1.8.7@vertigo --create
|
data/Gemfile
ADDED
data/Gemfile.lock
ADDED
data/README.md
ADDED
@@ -0,0 +1,42 @@
|
|
1
|
+
Vertigo
|
2
|
+
=======
|
3
|
+
|
4
|
+
A simple Ruby wrapper around the VerticalResponse API ("VRAPI").
|
5
|
+
|
6
|
+
Vertigo makes working with the VerticalResponse SOAP API much more Ruby-like. It manages your session_id, as well as letting you write methods as launch_email_campaign rather than launchEmailCampaign, and use symbols as keys rather than strings.
|
7
|
+
|
8
|
+
Author: Benjamin Oakes <hello@benjaminoakes.com>, @benjaminoakes
|
9
|
+
|
10
|
+
Installation
|
11
|
+
------------
|
12
|
+
|
13
|
+
Simply add Vertigo to your Gemfile:
|
14
|
+
|
15
|
+
gem 'vertigo'
|
16
|
+
|
17
|
+
If you are unlucky enough not to be using Bundler:
|
18
|
+
|
19
|
+
gem install vertigo
|
20
|
+
|
21
|
+
Usage
|
22
|
+
-----
|
23
|
+
|
24
|
+
Basic usage example:
|
25
|
+
|
26
|
+
require 'vertigo'
|
27
|
+
|
28
|
+
session_duration_minutes = 4
|
29
|
+
client = Vertigo::Client.new('username', 'password', session_duration_minutes)
|
30
|
+
|
31
|
+
# Launch a campaign whose ID you already know:
|
32
|
+
client.launch_email_campaign(:campaign_id => campaign_id)
|
33
|
+
|
34
|
+
Contributing
|
35
|
+
------------
|
36
|
+
|
37
|
+
To set up your development environment, run `bash dev-setup.sh`.
|
38
|
+
|
39
|
+
Thanks
|
40
|
+
------
|
41
|
+
|
42
|
+
* Forrest Chang (@fkchang2000) for the name
|
data/Rakefile
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
require 'bundler/gem_tasks'
|
data/dev-setup.sh
ADDED
@@ -0,0 +1,23 @@
|
|
1
|
+
#!/usr/bin/env bash
|
2
|
+
# Development environment setup script for Vertigo.
|
3
|
+
#
|
4
|
+
# Author: Benjamin Oakes <hello@benjaminoakes.com>
|
5
|
+
set -o errexit
|
6
|
+
|
7
|
+
if [ "Darwin" != `uname` ]; then
|
8
|
+
echo "This script assumes you're running Mac OS X 10.6, but you seem to be running something else."
|
9
|
+
echo "Please install git, git-flow <https://github.com/nvie/gitflow>, rvm, and rubygems"
|
10
|
+
exit -1
|
11
|
+
else
|
12
|
+
if [ `which brew` == '' ]; then
|
13
|
+
echo "Please install homebrew <http://mxcl.github.com/homebrew/>"
|
14
|
+
exit -1
|
15
|
+
else
|
16
|
+
brew install git-flow
|
17
|
+
fi
|
18
|
+
fi
|
19
|
+
|
20
|
+
# Use git flow, please (https://github.com/nvie/gitflow, http://codesherpas.com/screencasts/on_the_path_gitflow.mov)
|
21
|
+
yes "" | git flow init # use the defaults
|
22
|
+
gem install bundler --version "~> 1.0"
|
23
|
+
bundle install
|
data/lib/vertigo.rb
ADDED
data/vertigo.gemspec
ADDED
@@ -0,0 +1,22 @@
|
|
1
|
+
# -*- encoding: utf-8 -*-
|
2
|
+
$:.push File.expand_path("../lib", __FILE__)
|
3
|
+
require "vertigo/version"
|
4
|
+
|
5
|
+
Gem::Specification.new do |s|
|
6
|
+
s.name = "vertigo"
|
7
|
+
s.version = Vertigo::VERSION
|
8
|
+
s.authors = ["Benjamin Oakes"]
|
9
|
+
s.email = ["boakes@hedgeye.com"]
|
10
|
+
s.homepage = ""
|
11
|
+
s.summary = %q{A simple Ruby wrapper around the VerticalResponse API ("VRAPI").}
|
12
|
+
s.description = %q{Vertigo makes working with VerticalResponse's SOAP API much more Ruby-like. It manages your session_id, as well as letting you write methods as launch_email_campaign rather than launchEmailCampaign, and use symbols as keys rather than strings.}
|
13
|
+
|
14
|
+
s.rubyforge_project = "vertigo"
|
15
|
+
|
16
|
+
s.add_development_dependency('rake', '~> 0.8.7')
|
17
|
+
|
18
|
+
s.files = `git ls-files`.split("\n")
|
19
|
+
s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
|
20
|
+
s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
|
21
|
+
s.require_paths = ["lib"]
|
22
|
+
end
|
metadata
ADDED
@@ -0,0 +1,95 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: vertigo
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
hash: 46
|
5
|
+
prerelease: 6
|
6
|
+
segments:
|
7
|
+
- 0
|
8
|
+
- 0
|
9
|
+
- 1
|
10
|
+
- a
|
11
|
+
version: 0.0.1.a
|
12
|
+
platform: ruby
|
13
|
+
authors:
|
14
|
+
- Benjamin Oakes
|
15
|
+
autorequire:
|
16
|
+
bindir: bin
|
17
|
+
cert_chain: []
|
18
|
+
|
19
|
+
date: 2011-08-15 00:00:00 -04:00
|
20
|
+
default_executable:
|
21
|
+
dependencies:
|
22
|
+
- !ruby/object:Gem::Dependency
|
23
|
+
name: rake
|
24
|
+
prerelease: false
|
25
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
26
|
+
none: false
|
27
|
+
requirements:
|
28
|
+
- - ~>
|
29
|
+
- !ruby/object:Gem::Version
|
30
|
+
hash: 49
|
31
|
+
segments:
|
32
|
+
- 0
|
33
|
+
- 8
|
34
|
+
- 7
|
35
|
+
version: 0.8.7
|
36
|
+
type: :development
|
37
|
+
version_requirements: *id001
|
38
|
+
description: Vertigo makes working with VerticalResponse's SOAP API much more Ruby-like. It manages your session_id, as well as letting you write methods as launch_email_campaign rather than launchEmailCampaign, and use symbols as keys rather than strings.
|
39
|
+
email:
|
40
|
+
- boakes@hedgeye.com
|
41
|
+
executables: []
|
42
|
+
|
43
|
+
extensions: []
|
44
|
+
|
45
|
+
extra_rdoc_files: []
|
46
|
+
|
47
|
+
files:
|
48
|
+
- .gitignore
|
49
|
+
- .rvmrc
|
50
|
+
- Gemfile
|
51
|
+
- Gemfile.lock
|
52
|
+
- README.md
|
53
|
+
- Rakefile
|
54
|
+
- dev-setup.sh
|
55
|
+
- lib/vertigo.rb
|
56
|
+
- lib/vertigo/version.rb
|
57
|
+
- vertigo.gemspec
|
58
|
+
has_rdoc: true
|
59
|
+
homepage: ""
|
60
|
+
licenses: []
|
61
|
+
|
62
|
+
post_install_message:
|
63
|
+
rdoc_options: []
|
64
|
+
|
65
|
+
require_paths:
|
66
|
+
- lib
|
67
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
68
|
+
none: false
|
69
|
+
requirements:
|
70
|
+
- - ">="
|
71
|
+
- !ruby/object:Gem::Version
|
72
|
+
hash: 3
|
73
|
+
segments:
|
74
|
+
- 0
|
75
|
+
version: "0"
|
76
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
77
|
+
none: false
|
78
|
+
requirements:
|
79
|
+
- - ">"
|
80
|
+
- !ruby/object:Gem::Version
|
81
|
+
hash: 25
|
82
|
+
segments:
|
83
|
+
- 1
|
84
|
+
- 3
|
85
|
+
- 1
|
86
|
+
version: 1.3.1
|
87
|
+
requirements: []
|
88
|
+
|
89
|
+
rubyforge_project: vertigo
|
90
|
+
rubygems_version: 1.6.2
|
91
|
+
signing_key:
|
92
|
+
specification_version: 3
|
93
|
+
summary: A simple Ruby wrapper around the VerticalResponse API ("VRAPI").
|
94
|
+
test_files: []
|
95
|
+
|