mbsy 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- data/.document +5 -0
- data/.gitignore +49 -0
- data/.rspec +2 -0
- data/Gemfile +3 -0
- data/Gemfile.lock +55 -0
- data/LICENSE.txt +20 -0
- data/README.md +72 -0
- data/Rakefile +4 -0
- data/lib/mbsy/resources/.DS_Store +0 -0
- data/lib/mbsy/resources/ambassador.rb +19 -0
- data/lib/mbsy/resources/balance.rb +16 -0
- data/lib/mbsy/resources/base.rb +24 -0
- data/lib/mbsy/resources/company.rb +13 -0
- data/lib/mbsy/resources/event.rb +11 -0
- data/lib/mbsy/resources/shortcode.rb +10 -0
- data/lib/mbsy/resources/social.rb +10 -0
- data/lib/mbsy.rb +21 -0
- data/mbsy.gemspec +27 -0
- data/spec/ambassador_spec.rb +43 -0
- data/spec/base_spec.rb +10 -0
- data/spec/factories.rb +0 -0
- data/spec/mbsy_spec.rb +16 -0
- data/spec/spec_helper.rb +30 -0
- metadata +227 -0
data/.document
ADDED
data/.gitignore
ADDED
@@ -0,0 +1,49 @@
|
|
1
|
+
# rcov generated
|
2
|
+
coverage
|
3
|
+
coverage.data
|
4
|
+
|
5
|
+
# rdoc generated
|
6
|
+
rdoc
|
7
|
+
|
8
|
+
# yard generated
|
9
|
+
doc
|
10
|
+
.yardoc
|
11
|
+
|
12
|
+
# bundler
|
13
|
+
.bundle
|
14
|
+
|
15
|
+
# jeweler generated
|
16
|
+
pkg
|
17
|
+
|
18
|
+
# Have editor/IDE/OS specific files you need to ignore? Consider using a global gitignore:
|
19
|
+
#
|
20
|
+
# * Create a file at ~/.gitignore
|
21
|
+
# * Include files you want ignored
|
22
|
+
# * Run: git config --global core.excludesfile ~/.gitignore
|
23
|
+
#
|
24
|
+
# After doing this, these files will be ignored in all your git projects,
|
25
|
+
# saving you from having to 'pollute' every project you touch with them
|
26
|
+
#
|
27
|
+
# Not sure what to needs to be ignored for particular editors/OSes? Here's some ideas to get you started. (Remember, remove the leading # of the line)
|
28
|
+
#
|
29
|
+
# For MacOS:
|
30
|
+
#
|
31
|
+
#.DS_Store
|
32
|
+
|
33
|
+
# For TextMate
|
34
|
+
#*.tmproj
|
35
|
+
#tmtags
|
36
|
+
|
37
|
+
# For emacs:
|
38
|
+
#*~
|
39
|
+
#\#*
|
40
|
+
#.\#*
|
41
|
+
|
42
|
+
# For vim:
|
43
|
+
#*.swp
|
44
|
+
|
45
|
+
# For redcar:
|
46
|
+
#.redcar
|
47
|
+
|
48
|
+
# For rubinius:
|
49
|
+
#*.rbc
|
data/.rspec
ADDED
data/Gemfile
ADDED
data/Gemfile.lock
ADDED
@@ -0,0 +1,55 @@
|
|
1
|
+
PATH
|
2
|
+
remote: .
|
3
|
+
specs:
|
4
|
+
mbsy (1.0.0)
|
5
|
+
|
6
|
+
GEM
|
7
|
+
remote: http://rubygems.org/
|
8
|
+
specs:
|
9
|
+
activesupport (3.2.6)
|
10
|
+
i18n (~> 0.6)
|
11
|
+
multi_json (~> 1.0)
|
12
|
+
diff-lcs (1.1.3)
|
13
|
+
factory_girl (2.1.2)
|
14
|
+
activesupport
|
15
|
+
faker (1.0.1)
|
16
|
+
i18n (~> 0.4)
|
17
|
+
fakeweb (1.3.0)
|
18
|
+
httparty (0.8.3)
|
19
|
+
multi_json (~> 1.0)
|
20
|
+
multi_xml
|
21
|
+
i18n (0.6.0)
|
22
|
+
json (1.7.3)
|
23
|
+
multi_json (1.3.6)
|
24
|
+
multi_xml (0.5.1)
|
25
|
+
rake (0.9.2.2)
|
26
|
+
rb-fsevent (0.4.3.1)
|
27
|
+
rspec (2.7.0)
|
28
|
+
rspec-core (~> 2.7.0)
|
29
|
+
rspec-expectations (~> 2.7.0)
|
30
|
+
rspec-mocks (~> 2.7.0)
|
31
|
+
rspec-core (2.7.1)
|
32
|
+
rspec-expectations (2.7.0)
|
33
|
+
diff-lcs (~> 1.1.2)
|
34
|
+
rspec-mocks (2.7.0)
|
35
|
+
shoulda (3.0.1)
|
36
|
+
shoulda-context (~> 1.0.0)
|
37
|
+
shoulda-matchers (~> 1.0.0)
|
38
|
+
shoulda-context (1.0.0)
|
39
|
+
shoulda-matchers (1.0.0)
|
40
|
+
|
41
|
+
PLATFORMS
|
42
|
+
ruby
|
43
|
+
|
44
|
+
DEPENDENCIES
|
45
|
+
bundler (~> 1.1.1)
|
46
|
+
factory_girl (~> 2.1.0)
|
47
|
+
faker (~> 1.0.1)
|
48
|
+
fakeweb (~> 1.3.0)
|
49
|
+
httparty (~> 0.8.3)
|
50
|
+
json
|
51
|
+
mbsy!
|
52
|
+
rake (~> 0.9.2)
|
53
|
+
rb-fsevent (~> 0.4.2)
|
54
|
+
rspec (~> 2.7.0)
|
55
|
+
shoulda
|
data/LICENSE.txt
ADDED
@@ -0,0 +1,20 @@
|
|
1
|
+
Copyright (c) 2012 Tom Mullen
|
2
|
+
|
3
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
4
|
+
a copy of this software and associated documentation files (the
|
5
|
+
"Software"), to deal in the Software without restriction, including
|
6
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
7
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
8
|
+
permit persons to whom the Software is furnished to do so, subject to
|
9
|
+
the following conditions:
|
10
|
+
|
11
|
+
The above copyright notice and this permission notice shall be
|
12
|
+
included in all copies or substantial portions of the Software.
|
13
|
+
|
14
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
15
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
16
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
17
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
18
|
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
19
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
20
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,72 @@
|
|
1
|
+
# mbsy
|
2
|
+
|
3
|
+
Ambassador API wrapper for Ruby.
|
4
|
+
|
5
|
+
This is a lightweight Ruby wrapper for the [Ambassador](http://getambassador.com) API.
|
6
|
+
|
7
|
+
### Installation
|
8
|
+
|
9
|
+
This library can be installed as a gem. It is hosted on [Rubygems](http://rubygems.org).
|
10
|
+
|
11
|
+
You can install this library as a gem using the following command:
|
12
|
+
|
13
|
+
$ gem install mbsy
|
14
|
+
|
15
|
+
### Usage
|
16
|
+
|
17
|
+
Simply require this library before you use it:
|
18
|
+
|
19
|
+
```ruby
|
20
|
+
require 'mbsy'
|
21
|
+
```
|
22
|
+
|
23
|
+
If you're using Rails 3.x, you could include this gem in your Gemfile.
|
24
|
+
|
25
|
+
```ruby
|
26
|
+
gem 'mbsy'
|
27
|
+
```
|
28
|
+
|
29
|
+
Install the gem using the following command:
|
30
|
+
$ bundle install
|
31
|
+
|
32
|
+
If you're using Rails 2 you could include this gem in your configuration, i.e. in `environment.rb`
|
33
|
+
|
34
|
+
```ruby
|
35
|
+
config.gem 'mbsy'
|
36
|
+
```
|
37
|
+
### Initialise
|
38
|
+
|
39
|
+
Make sure you include your api credentials in an initialiser.
|
40
|
+
|
41
|
+
```ruby
|
42
|
+
Mbsy.configure do |c|
|
43
|
+
c.api_key 'MY_API_KEY'
|
44
|
+
c.user_name 'MY_USER_NAME'
|
45
|
+
end
|
46
|
+
```
|
47
|
+
|
48
|
+
The mbsy gem will give you access to classes such as:
|
49
|
+
|
50
|
+
* `Mbsy::Company`
|
51
|
+
* `Mbsy::Ambassador`
|
52
|
+
* `Mbsy::Shortcode`
|
53
|
+
|
54
|
+
### Contributing to mbsy
|
55
|
+
|
56
|
+
* Check out the latest master to make sure the feature hasn't been implemented or the bug hasn't been fixed yet.
|
57
|
+
* Check out the issue tracker to make sure someone already hasn't requested it and/or contributed it.
|
58
|
+
* Fork the project.
|
59
|
+
* Start a feature/bugfix branch.
|
60
|
+
* Commit and push until you are happy with your contribution.
|
61
|
+
* Make sure to add tests for it. This is important so I don't break it in a future version unintentionally.
|
62
|
+
* Please try not to mess with the Rakefile, version, or history. If you want to have your own version, or is otherwise necessary, that is fine, but please isolate to its own commit so I can cherry-pick around it.
|
63
|
+
|
64
|
+
### To Do
|
65
|
+
|
66
|
+
Finish of test suite.
|
67
|
+
|
68
|
+
### Copyright
|
69
|
+
|
70
|
+
Copyright (c) 2012 Tom Mullen. See LICENSE.txt for
|
71
|
+
further details.
|
72
|
+
|
data/Rakefile
ADDED
Binary file
|
@@ -0,0 +1,19 @@
|
|
1
|
+
module Mbsy
|
2
|
+
class Ambassador < Base
|
3
|
+
|
4
|
+
def self.find(params={})
|
5
|
+
raise ArgumentError, "You must include :email" unless params[:email]
|
6
|
+
call('get', params)
|
7
|
+
end
|
8
|
+
|
9
|
+
def self.all(params={})
|
10
|
+
call('all', params)
|
11
|
+
end
|
12
|
+
|
13
|
+
def self.stats(params={})
|
14
|
+
raise ArgumentError, "You must include :email" unless params[:email]
|
15
|
+
call('stats', params)
|
16
|
+
end
|
17
|
+
|
18
|
+
end
|
19
|
+
end
|
@@ -0,0 +1,16 @@
|
|
1
|
+
module Mbsy
|
2
|
+
class Balance < Base
|
3
|
+
|
4
|
+
def self.update(mode, params={})
|
5
|
+
raise ArgumentError, "You must include :email" unless params[:email]
|
6
|
+
raise ArgumentError, "You must include :amount" unless params[:amount]
|
7
|
+
case mode
|
8
|
+
when :add
|
9
|
+
call('add', params)
|
10
|
+
when :deduct
|
11
|
+
call('deduct', params)
|
12
|
+
end
|
13
|
+
end
|
14
|
+
|
15
|
+
end
|
16
|
+
end
|
@@ -0,0 +1,24 @@
|
|
1
|
+
module Mbsy
|
2
|
+
class Base
|
3
|
+
include HTTParty
|
4
|
+
format :json
|
5
|
+
default_timeout 30
|
6
|
+
default_params :output => 'json'
|
7
|
+
|
8
|
+
def self.element_name
|
9
|
+
name.split(/::/).last.underscore
|
10
|
+
end
|
11
|
+
|
12
|
+
def self.call(method, params = {})
|
13
|
+
api_url = Mbsy.site_uri + self.element_name + '/' + method
|
14
|
+
|
15
|
+
response = JSON.parse(self.get(api_url, :query => params).body)['response']
|
16
|
+
|
17
|
+
if response["code"] != '200'
|
18
|
+
raise "Error from Ambassador API: #{response["errors"]["error"]} (code #{response["code"]})"
|
19
|
+
end
|
20
|
+
|
21
|
+
response['data']
|
22
|
+
end
|
23
|
+
end
|
24
|
+
end
|
@@ -0,0 +1,11 @@
|
|
1
|
+
module Mbsy
|
2
|
+
class Event < Base
|
3
|
+
|
4
|
+
def self.create(params={})
|
5
|
+
raise ArgumentError, "You must include :campaign_uid" unless params[:campaign_uid]
|
6
|
+
raise ArgumentError, "You must include :email" unless params[:email]
|
7
|
+
call('record', params)
|
8
|
+
end
|
9
|
+
|
10
|
+
end
|
11
|
+
end
|
data/lib/mbsy.rb
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
require 'httparty'
|
2
|
+
require 'json'
|
3
|
+
require 'mbsy/resources/base'
|
4
|
+
require 'mbsy/resources/ambassador'
|
5
|
+
require 'mbsy/resources/balance'
|
6
|
+
require 'mbsy/resources/company'
|
7
|
+
require 'mbsy/resources/event'
|
8
|
+
require 'mbsy/resources/shortcode'
|
9
|
+
require 'mbsy/resources/social'
|
10
|
+
|
11
|
+
module Mbsy
|
12
|
+
class << self
|
13
|
+
attr_accessor :api_key, :user_name
|
14
|
+
def configure
|
15
|
+
yield self
|
16
|
+
def self.site_uri
|
17
|
+
"https://getambassador.com/api/v2/#{user_name}/#{api_key}/json/"
|
18
|
+
end
|
19
|
+
end
|
20
|
+
end
|
21
|
+
end
|
data/mbsy.gemspec
ADDED
@@ -0,0 +1,27 @@
|
|
1
|
+
Gem::Specification.new do |s|
|
2
|
+
s.name = 'mbsy'
|
3
|
+
s.version = '1.0.0'
|
4
|
+
s.date = '2012-06-10'
|
5
|
+
s.summary = 'A Ruby wrapper for Ambassador API'
|
6
|
+
s.description = ''
|
7
|
+
s.author = 'Tom Mullen'
|
8
|
+
s.email = 'tom@zappdrewards.com'
|
9
|
+
s.homepage = 'http://github.com/temullen/mbsy'
|
10
|
+
|
11
|
+
s.files = `git ls-files`.split("\n")
|
12
|
+
s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
|
13
|
+
s.require_paths = ["lib"]
|
14
|
+
|
15
|
+
s.required_ruby_version = ">= 1.9.2"
|
16
|
+
|
17
|
+
s.add_development_dependency('rake', '~> 0.9.2')
|
18
|
+
s.add_development_dependency('rspec', '~> 2.7.0')
|
19
|
+
s.add_development_dependency('factory_girl', '~> 2.1.0')
|
20
|
+
s.add_development_dependency('fakeweb', '~> 1.3.0')
|
21
|
+
s.add_development_dependency('faker', '~> 1.0.1')
|
22
|
+
s.add_development_dependency('rb-fsevent', '~> 0.4.2')
|
23
|
+
s.add_development_dependency("shoulda", ">= 0")
|
24
|
+
s.add_development_dependency("bundler", "~> 1.1.1")
|
25
|
+
s.add_development_dependency('httparty', '~> 0.8.3')
|
26
|
+
s.add_development_dependency('json', '~> 1.7.3')
|
27
|
+
end
|
@@ -0,0 +1,43 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
require 'ruby-debug'
|
3
|
+
|
4
|
+
describe Mbsy::Ambassador do
|
5
|
+
|
6
|
+
let(:resource_prefix) { "#{fake_domain}/ambassadors" }
|
7
|
+
let(:existing_ambassador) { Mbsy::Ambassador.find(email: 'ambassador@mbsy.co', first_name: 'sigma') }
|
8
|
+
|
9
|
+
context 'find existing ambassador' do
|
10
|
+
before do
|
11
|
+
FakeWeb.register_uri(:get, "#{resource_prefix}/get/", :query => existing_ambassador.attributes)
|
12
|
+
end
|
13
|
+
|
14
|
+
it 'is an instance of Mbsy::Ambassador' do
|
15
|
+
debugger
|
16
|
+
ambassador = Mbsy::Ambassador.find(email: 'ambassador@mbsy.co')
|
17
|
+
ambassador.should be_instance_of(Mbsy::Ambassador)
|
18
|
+
end
|
19
|
+
|
20
|
+
it 'finds the correct ambassdor by email' do
|
21
|
+
ambassador = Mbsy::Ambassador.find(email: 'ambassador@mbsy.co')
|
22
|
+
ambassador.email.should eq(existing_ambassador.email)
|
23
|
+
end
|
24
|
+
|
25
|
+
it 'creates the ambassador if you cannot find one' do
|
26
|
+
ambassador = Mbsy::Ambassador.find(email: 'ambassador@mbsy.co', first_name: 'tester')
|
27
|
+
ambassador.first_name.should eq('tester')
|
28
|
+
end
|
29
|
+
end
|
30
|
+
|
31
|
+
it 'returns a list of all ambassadors' do
|
32
|
+
FakeWeb.register_uri(:get, "#{resource_prefix}/all/", :query => existing_ambassador.attributes)
|
33
|
+
ambassadors = Mbsy::Ambassador.all
|
34
|
+
ambassadors.should include(existing_ambassador)
|
35
|
+
end
|
36
|
+
|
37
|
+
it 'returns a list of all ambassadors' do
|
38
|
+
FakeWeb.register_uri(:get, "#{resource_prefix}/stats/", :query => existing_ambassador.attributes)
|
39
|
+
ambassador = Mbsy::Ambassador.find(email: 'ambassador@mbsy.co')
|
40
|
+
ambassador.email.should eq(existing_ambassador.email)
|
41
|
+
end
|
42
|
+
|
43
|
+
end
|
data/spec/base_spec.rb
ADDED
data/spec/factories.rb
ADDED
File without changes
|
data/spec/mbsy_spec.rb
ADDED
@@ -0,0 +1,16 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
describe Mbsy do
|
4
|
+
context 'configuration setup' do
|
5
|
+
|
6
|
+
it "builds the url correctly" do
|
7
|
+
expect {
|
8
|
+
Mbsy.configure do |c|
|
9
|
+
c.api_key = "API-123"
|
10
|
+
c.user_name = "tester"
|
11
|
+
end
|
12
|
+
}.to change { Mbsy.site_uri.to_s }.to("https://getambassador.com/api/v2/tester/API-123/json/")
|
13
|
+
end
|
14
|
+
|
15
|
+
end
|
16
|
+
end
|
data/spec/spec_helper.rb
ADDED
@@ -0,0 +1,30 @@
|
|
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
|
+
# Require this file using `require "spec_helper.rb"` to ensure that it is only
|
4
|
+
# loaded once.
|
5
|
+
#
|
6
|
+
# See http://rubydoc.info/gems/rspec-core/RSpec/Core/Configuration
|
7
|
+
|
8
|
+
require 'mbsy'
|
9
|
+
require 'rspec'
|
10
|
+
require 'fakeweb'
|
11
|
+
require 'factory_girl'
|
12
|
+
require 'faker'
|
13
|
+
require 'factories'
|
14
|
+
|
15
|
+
FakeWeb.allow_net_connect = false
|
16
|
+
|
17
|
+
Mbsy.configure do |c|
|
18
|
+
c.api_key = 'test'
|
19
|
+
c.user_name = 'test'
|
20
|
+
end
|
21
|
+
|
22
|
+
RSpec.configure do |config|
|
23
|
+
config.treat_symbols_as_metadata_keys_with_true_values = true
|
24
|
+
config.run_all_when_everything_filtered = true
|
25
|
+
config.filter_run :focus
|
26
|
+
end
|
27
|
+
|
28
|
+
def fake_domain
|
29
|
+
"https://#{Mbsy.site_uri}/"
|
30
|
+
end
|
metadata
ADDED
@@ -0,0 +1,227 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: mbsy
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 1.0.0
|
5
|
+
prerelease:
|
6
|
+
platform: ruby
|
7
|
+
authors:
|
8
|
+
- Tom Mullen
|
9
|
+
autorequire:
|
10
|
+
bindir: bin
|
11
|
+
cert_chain: []
|
12
|
+
date: 2012-06-10 00:00:00.000000000 Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
15
|
+
name: rake
|
16
|
+
requirement: !ruby/object:Gem::Requirement
|
17
|
+
none: false
|
18
|
+
requirements:
|
19
|
+
- - ~>
|
20
|
+
- !ruby/object:Gem::Version
|
21
|
+
version: 0.9.2
|
22
|
+
type: :development
|
23
|
+
prerelease: false
|
24
|
+
version_requirements: !ruby/object:Gem::Requirement
|
25
|
+
none: false
|
26
|
+
requirements:
|
27
|
+
- - ~>
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: 0.9.2
|
30
|
+
- !ruby/object:Gem::Dependency
|
31
|
+
name: rspec
|
32
|
+
requirement: !ruby/object:Gem::Requirement
|
33
|
+
none: false
|
34
|
+
requirements:
|
35
|
+
- - ~>
|
36
|
+
- !ruby/object:Gem::Version
|
37
|
+
version: 2.7.0
|
38
|
+
type: :development
|
39
|
+
prerelease: false
|
40
|
+
version_requirements: !ruby/object:Gem::Requirement
|
41
|
+
none: false
|
42
|
+
requirements:
|
43
|
+
- - ~>
|
44
|
+
- !ruby/object:Gem::Version
|
45
|
+
version: 2.7.0
|
46
|
+
- !ruby/object:Gem::Dependency
|
47
|
+
name: factory_girl
|
48
|
+
requirement: !ruby/object:Gem::Requirement
|
49
|
+
none: false
|
50
|
+
requirements:
|
51
|
+
- - ~>
|
52
|
+
- !ruby/object:Gem::Version
|
53
|
+
version: 2.1.0
|
54
|
+
type: :development
|
55
|
+
prerelease: false
|
56
|
+
version_requirements: !ruby/object:Gem::Requirement
|
57
|
+
none: false
|
58
|
+
requirements:
|
59
|
+
- - ~>
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: 2.1.0
|
62
|
+
- !ruby/object:Gem::Dependency
|
63
|
+
name: fakeweb
|
64
|
+
requirement: !ruby/object:Gem::Requirement
|
65
|
+
none: false
|
66
|
+
requirements:
|
67
|
+
- - ~>
|
68
|
+
- !ruby/object:Gem::Version
|
69
|
+
version: 1.3.0
|
70
|
+
type: :development
|
71
|
+
prerelease: false
|
72
|
+
version_requirements: !ruby/object:Gem::Requirement
|
73
|
+
none: false
|
74
|
+
requirements:
|
75
|
+
- - ~>
|
76
|
+
- !ruby/object:Gem::Version
|
77
|
+
version: 1.3.0
|
78
|
+
- !ruby/object:Gem::Dependency
|
79
|
+
name: faker
|
80
|
+
requirement: !ruby/object:Gem::Requirement
|
81
|
+
none: false
|
82
|
+
requirements:
|
83
|
+
- - ~>
|
84
|
+
- !ruby/object:Gem::Version
|
85
|
+
version: 1.0.1
|
86
|
+
type: :development
|
87
|
+
prerelease: false
|
88
|
+
version_requirements: !ruby/object:Gem::Requirement
|
89
|
+
none: false
|
90
|
+
requirements:
|
91
|
+
- - ~>
|
92
|
+
- !ruby/object:Gem::Version
|
93
|
+
version: 1.0.1
|
94
|
+
- !ruby/object:Gem::Dependency
|
95
|
+
name: rb-fsevent
|
96
|
+
requirement: !ruby/object:Gem::Requirement
|
97
|
+
none: false
|
98
|
+
requirements:
|
99
|
+
- - ~>
|
100
|
+
- !ruby/object:Gem::Version
|
101
|
+
version: 0.4.2
|
102
|
+
type: :development
|
103
|
+
prerelease: false
|
104
|
+
version_requirements: !ruby/object:Gem::Requirement
|
105
|
+
none: false
|
106
|
+
requirements:
|
107
|
+
- - ~>
|
108
|
+
- !ruby/object:Gem::Version
|
109
|
+
version: 0.4.2
|
110
|
+
- !ruby/object:Gem::Dependency
|
111
|
+
name: shoulda
|
112
|
+
requirement: !ruby/object:Gem::Requirement
|
113
|
+
none: false
|
114
|
+
requirements:
|
115
|
+
- - ! '>='
|
116
|
+
- !ruby/object:Gem::Version
|
117
|
+
version: '0'
|
118
|
+
type: :development
|
119
|
+
prerelease: false
|
120
|
+
version_requirements: !ruby/object:Gem::Requirement
|
121
|
+
none: false
|
122
|
+
requirements:
|
123
|
+
- - ! '>='
|
124
|
+
- !ruby/object:Gem::Version
|
125
|
+
version: '0'
|
126
|
+
- !ruby/object:Gem::Dependency
|
127
|
+
name: bundler
|
128
|
+
requirement: !ruby/object:Gem::Requirement
|
129
|
+
none: false
|
130
|
+
requirements:
|
131
|
+
- - ~>
|
132
|
+
- !ruby/object:Gem::Version
|
133
|
+
version: 1.1.1
|
134
|
+
type: :development
|
135
|
+
prerelease: false
|
136
|
+
version_requirements: !ruby/object:Gem::Requirement
|
137
|
+
none: false
|
138
|
+
requirements:
|
139
|
+
- - ~>
|
140
|
+
- !ruby/object:Gem::Version
|
141
|
+
version: 1.1.1
|
142
|
+
- !ruby/object:Gem::Dependency
|
143
|
+
name: httparty
|
144
|
+
requirement: !ruby/object:Gem::Requirement
|
145
|
+
none: false
|
146
|
+
requirements:
|
147
|
+
- - ~>
|
148
|
+
- !ruby/object:Gem::Version
|
149
|
+
version: 0.8.3
|
150
|
+
type: :development
|
151
|
+
prerelease: false
|
152
|
+
version_requirements: !ruby/object:Gem::Requirement
|
153
|
+
none: false
|
154
|
+
requirements:
|
155
|
+
- - ~>
|
156
|
+
- !ruby/object:Gem::Version
|
157
|
+
version: 0.8.3
|
158
|
+
- !ruby/object:Gem::Dependency
|
159
|
+
name: json
|
160
|
+
requirement: !ruby/object:Gem::Requirement
|
161
|
+
none: false
|
162
|
+
requirements:
|
163
|
+
- - ~>
|
164
|
+
- !ruby/object:Gem::Version
|
165
|
+
version: 1.7.3
|
166
|
+
type: :development
|
167
|
+
prerelease: false
|
168
|
+
version_requirements: !ruby/object:Gem::Requirement
|
169
|
+
none: false
|
170
|
+
requirements:
|
171
|
+
- - ~>
|
172
|
+
- !ruby/object:Gem::Version
|
173
|
+
version: 1.7.3
|
174
|
+
description: ''
|
175
|
+
email: tom@zappdrewards.com
|
176
|
+
executables: []
|
177
|
+
extensions: []
|
178
|
+
extra_rdoc_files: []
|
179
|
+
files:
|
180
|
+
- .document
|
181
|
+
- .gitignore
|
182
|
+
- .rspec
|
183
|
+
- Gemfile
|
184
|
+
- Gemfile.lock
|
185
|
+
- LICENSE.txt
|
186
|
+
- README.md
|
187
|
+
- Rakefile
|
188
|
+
- lib/mbsy.rb
|
189
|
+
- lib/mbsy/resources/.DS_Store
|
190
|
+
- lib/mbsy/resources/ambassador.rb
|
191
|
+
- lib/mbsy/resources/balance.rb
|
192
|
+
- lib/mbsy/resources/base.rb
|
193
|
+
- lib/mbsy/resources/company.rb
|
194
|
+
- lib/mbsy/resources/event.rb
|
195
|
+
- lib/mbsy/resources/shortcode.rb
|
196
|
+
- lib/mbsy/resources/social.rb
|
197
|
+
- mbsy.gemspec
|
198
|
+
- spec/ambassador_spec.rb
|
199
|
+
- spec/base_spec.rb
|
200
|
+
- spec/factories.rb
|
201
|
+
- spec/mbsy_spec.rb
|
202
|
+
- spec/spec_helper.rb
|
203
|
+
homepage: http://github.com/temullen/mbsy
|
204
|
+
licenses: []
|
205
|
+
post_install_message:
|
206
|
+
rdoc_options: []
|
207
|
+
require_paths:
|
208
|
+
- lib
|
209
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
210
|
+
none: false
|
211
|
+
requirements:
|
212
|
+
- - ! '>='
|
213
|
+
- !ruby/object:Gem::Version
|
214
|
+
version: 1.9.2
|
215
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
216
|
+
none: false
|
217
|
+
requirements:
|
218
|
+
- - ! '>='
|
219
|
+
- !ruby/object:Gem::Version
|
220
|
+
version: '0'
|
221
|
+
requirements: []
|
222
|
+
rubyforge_project:
|
223
|
+
rubygems_version: 1.8.23
|
224
|
+
signing_key:
|
225
|
+
specification_version: 3
|
226
|
+
summary: A Ruby wrapper for Ambassador API
|
227
|
+
test_files: []
|