givepulse 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: fe721dd37c3ca346dd249b72a769c24d446a59f2
4
+ data.tar.gz: 37cd624c01067b1775cf61c52e1aeb949e3e7cfb
5
+ SHA512:
6
+ metadata.gz: 2d32120692ea04b40aeb6de149e9e42e4206c135d52b56e1473cfadf19c18a8145bfe6feed28ab7828c47bc29a733fd04a4dc04ccf7fbb9bfd661bdf383b3af8
7
+ data.tar.gz: 39b044550e70ce56fe8b94b481f3cdadd5cf99a0ade9c239e8524bb1f5401caad36f13f6f92bf0a68570bd8970d14787f430a6d661767aa1c700bb36f515bc75
@@ -0,0 +1,14 @@
1
+ /.bundle/
2
+ /.yardoc
3
+ /Gemfile.lock
4
+ /_yardoc/
5
+ /coverage/
6
+ /doc/
7
+ /pkg/
8
+ /spec/reports/
9
+ /tmp/
10
+
11
+ .env
12
+
13
+ # rspec failure tracking
14
+ .rspec_status
data/.rspec ADDED
@@ -0,0 +1,2 @@
1
+ --format documentation
2
+ --color
@@ -0,0 +1,14 @@
1
+ Layout/IndentationWidth:
2
+ Width: 4
3
+
4
+ Metrics/MethodLength:
5
+ Enabled: false
6
+
7
+ Metrics/LineLength:
8
+ Enabled: false
9
+
10
+ Metrics/BlockLength:
11
+ Enabled: false
12
+
13
+ Style/Documentation:
14
+ Enabled: false
@@ -0,0 +1,5 @@
1
+ sudo: false
2
+ language: ruby
3
+ rvm:
4
+ - 2.4.0
5
+ before_install: gem install bundler -v 1.15.4
data/Gemfile ADDED
@@ -0,0 +1,6 @@
1
+ source 'https://rubygems.org'
2
+
3
+ git_source(:github) { |repo_name| "https://github.com/#{repo_name}" }
4
+
5
+ # Specify your gem's dependencies in givepulse-rb.gemspec
6
+ gemspec
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2017 Archer Malmo
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
@@ -0,0 +1,103 @@
1
+ # Givepulse
2
+
3
+ This gem is a wrapper library around Givepulse's API providing a simple set of Ruby classes around interacting with your Givepulse data.
4
+
5
+ ## Installation
6
+
7
+ Add this line to your application's Gemfile:
8
+
9
+ ```ruby
10
+ gem 'givepulse'
11
+ ```
12
+
13
+ And then execute:
14
+
15
+ $ bundle
16
+
17
+ Or install it yourself as:
18
+
19
+ $ gem install givepulse
20
+
21
+ ## Usage
22
+
23
+ ### Initializing an API client
24
+
25
+ First thing you must do when using this API is initialize a client and pass in your API authentication information and then call `:authorize` on your client object.
26
+
27
+ ```ruby
28
+ require 'givepulse'
29
+
30
+ @client = Givepulse::Client.new(
31
+ consumer_key: 'sample_consumer_key',
32
+ consumer_secret: 'sample_consumer_secret',
33
+ user_email: 'sample@user.com',
34
+ user_password: 'sample_password'
35
+ )
36
+ @client.authorize
37
+ ```
38
+
39
+ ### Accessing data from API endpoints
40
+
41
+ Once you have initialized a client object, you can begin grabbing data from the API to use in your application. Not all REST endpoints are supported on every API resource, refer to the Givepulse API documentation to see what is available.
42
+
43
+ Using the client object follows an API like this
44
+
45
+ ```ruby
46
+ affiliations = @client.affiliations.get
47
+
48
+ new_affiliation = @client.affiliations.create({
49
+ 'group1_id' => '12345',
50
+ 'group2_id' => '12346',
51
+ 'notify' => 'yes'
52
+ })
53
+
54
+ updated_affiliation = @client.affiliations.update(12345, {
55
+ 'approve' => 'yes'
56
+ })
57
+
58
+ deleted_affiliation = @client.affiliations.delete(12345)
59
+ ```
60
+
61
+ ### Filtering API responses
62
+
63
+ You can add filter and search data to GET requests by passing in Ruby objects to `:get` calls following the parameters documented in the Givepulse API documentation.
64
+
65
+ ```ruby
66
+ admin_users = @client.users.get({
67
+ 'role' => 'admin'
68
+ })
69
+ ```
70
+
71
+ ### Using responses
72
+
73
+ All responses are returned as plain Ruby objects parsed from the JSON responses given by the API. So, you can use the returned data just like any other Ruby object.
74
+
75
+ ```ruby
76
+ users = @client.users.get
77
+
78
+ first_user_email = users[:results][0][:email]
79
+ ```
80
+
81
+ ### Re-authorization
82
+
83
+ Authorization tokens for the API expire after two hours. The client object will automatically keep track of the time passed since authorization for you. To check if your token has expired, you can use the `:authorized?` method and call `:authorize` automatically if your token is expired to refresh it.
84
+
85
+ ```ruby
86
+ unless @client.authorized?
87
+ @client.authorize
88
+ end
89
+ ```
90
+
91
+ ## Development
92
+
93
+ After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
94
+
95
+ To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
96
+
97
+ ## Contributing
98
+
99
+ Bug reports and pull requests are welcome on GitHub at https://github.com/archermalmo/givepulse.
100
+
101
+ ## License
102
+
103
+ The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
@@ -0,0 +1,6 @@
1
+ require 'bundler/gem_tasks'
2
+ require 'rspec/core/rake_task'
3
+
4
+ RSpec::Core::RakeTask.new(:spec)
5
+
6
+ task default: :spec
@@ -0,0 +1,21 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require 'bundler/setup'
4
+ require 'givepulse'
5
+
6
+ # You can add fixtures and/or initialization code here to make experimenting
7
+ # with your gem easier. You can also use a different console, if you like.
8
+
9
+ require 'dotenv/load'
10
+ credentials = {
11
+ consumer_key: ENV['CONSUMER_KEY'],
12
+ consumer_secret: ENV['CONSUMER_SECRET'],
13
+ user_email: ENV['USER_EMAIL'],
14
+ user_password: ENV['USER_PASSWORD']
15
+ }
16
+
17
+ @givepulse_client = Givepulse::Client.new(credentials)
18
+
19
+ # (If you use this, don't forget to add pry to your Gemfile!)
20
+ require 'pry'
21
+ Pry.start
@@ -0,0 +1,8 @@
1
+ #!/usr/bin/env bash
2
+ set -euo pipefail
3
+ IFS=$'\n\t'
4
+ set -vx
5
+
6
+ bundle install
7
+
8
+ # Do any other automated setup that you need to do here
@@ -0,0 +1,31 @@
1
+ lib = File.expand_path('../lib', __FILE__)
2
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
3
+ require 'givepulse/version'
4
+
5
+ Gem::Specification.new do |spec|
6
+ spec.name = 'givepulse'
7
+ spec.version = Givepulse::VERSION
8
+ spec.authors = ['Archer Malmo']
9
+ spec.email = ['support@archermalmo.com']
10
+
11
+ spec.summary = "A wrapper gem around Givepulse's API"
12
+ spec.description = "A wrapper gem around Givepulse's API"
13
+ spec.homepage = 'https://github.com/archermalmo/givepulse'
14
+ spec.license = 'MIT'
15
+
16
+ spec.files = `git ls-files -z`.split("\x0").reject do |f|
17
+ f.match(%r{^(test|spec|features)/})
18
+ end
19
+ spec.bindir = 'exe'
20
+ spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
21
+ spec.require_paths = ['lib']
22
+
23
+ spec.add_development_dependency 'bundler', '~> 1.15'
24
+ spec.add_development_dependency 'dotenv', '~> 2.2'
25
+ spec.add_development_dependency 'pry', '~> 0.11'
26
+ spec.add_development_dependency 'rake', '~> 10.0'
27
+ spec.add_development_dependency 'rspec', '~> 3.0'
28
+ spec.add_development_dependency 'rubocop', '~> 0.51'
29
+ spec.add_development_dependency 'timecop', '~> 0.9'
30
+ spec.add_development_dependency 'webmock', '~> 3.1'
31
+ end
@@ -0,0 +1,16 @@
1
+ require 'givepulse/version'
2
+ require 'givepulse/client'
3
+ require 'givepulse/connection'
4
+ require 'givepulse/resource'
5
+
6
+ require 'givepulse/resources/users'
7
+ require 'givepulse/resources/impacts'
8
+ require 'givepulse/resources/affiliations'
9
+ require 'givepulse/resources/education'
10
+ require 'givepulse/resources/events'
11
+ require 'givepulse/resources/impacts'
12
+ require 'givepulse/resources/groups'
13
+ require 'givepulse/resources/registrations'
14
+ require 'givepulse/resources/memberships'
15
+
16
+ require 'givepulse/exceptions/unsupported_method'
@@ -0,0 +1,82 @@
1
+ require 'cgi'
2
+ require 'base64'
3
+ require 'givepulse/connection'
4
+ require 'givepulse/resource_map'
5
+ require 'pry'
6
+
7
+ module Givepulse
8
+ # Class that will call any methods for retrieving data from the Givepulse API
9
+ class Client
10
+ attr_writer :consumer_key
11
+ attr_writer :consumer_secret
12
+ attr_writer :user_email
13
+ attr_writer :user_password
14
+
15
+ attr_reader :connection
16
+
17
+ def initialize(credentials = nil)
18
+ # Initialize connection object
19
+ @connection = Givepulse::Connection.new
20
+
21
+ return if credentials.nil?
22
+ @consumer_key ||= credentials[:consumer_key]
23
+ @consumer_secret ||= credentials[:consumer_secret]
24
+ @user_email ||= credentials[:user_email]
25
+ @user_password ||= credentials[:user_password]
26
+ @authorization_expiration ||= nil
27
+ end
28
+
29
+ def credentials(credentials)
30
+ @consumer_key ||= credentials[:consumer_key]
31
+ @consumer_secret ||= credentials[:consumer_secret]
32
+ @user_email ||= credentials[:user_email]
33
+ @user_password ||= credentials[:user_password]
34
+ end
35
+
36
+ def authorize!
37
+ return false unless @consumer_key && @consumer_secret && @user_email && @user_password
38
+ custom_headers = {
39
+ 'Authorization' => "Basic #{generate_header_string}"
40
+ }
41
+ @connection.with_headers(custom_headers) do |connection|
42
+ response = connection.post('/auth', nil)
43
+ return false if response['error']
44
+ @connection.authorization_token = response['token']
45
+ @authorization_expiration = Time.new + (60 * 60 * 2)
46
+ end
47
+ true
48
+ end
49
+
50
+ def authorized?
51
+ return false unless @authorization_expiration
52
+ # Reset the authorization token if it's expired
53
+ @connection.authorization_token = nil if Time.now > @authorization_expiration
54
+ Time.now < @authorization_expiration
55
+ end
56
+
57
+ def method_missing(method_name, *args, &block)
58
+ resource_class = Givepulse::ResourceMap.get_resource_class(method_name)
59
+ if resource_class
60
+ resource_class.new(self)
61
+ else
62
+ super
63
+ end
64
+ end
65
+
66
+ def respond_to_missing?(method_name, include_private = false)
67
+ Givepulse::ResourceMap.get_resource_class(method_name) || super
68
+ end
69
+
70
+ private
71
+
72
+ def generate_header_string
73
+ escaped_values = [
74
+ CGI.escape(@consumer_key),
75
+ CGI.escape(@consumer_secret),
76
+ CGI.escape(@user_email),
77
+ CGI.escape(@user_password)
78
+ ]
79
+ Base64.strict_encode64(escaped_values.join(':'))
80
+ end
81
+ end
82
+ end
@@ -0,0 +1,69 @@
1
+ require 'net/http'
2
+ require 'uri'
3
+ require 'cgi'
4
+ require 'json'
5
+
6
+ module Givepulse
7
+ class Connection
8
+ API_ROOT = URI('https://api2.givepulse.com').freeze
9
+
10
+ attr_writer :authorization_token
11
+
12
+ def initialize
13
+ @client = Net::HTTP.new(API_ROOT.host, API_ROOT.port)
14
+ @client.use_ssl = true
15
+ @custom_headers = nil
16
+ end
17
+
18
+ def get(path, options = nil)
19
+ query_string = options_to_query(options)
20
+ full_path = "#{path}?#{query_string}"
21
+ response = @client.get(full_path, generate_headers(@custom_headers))
22
+ JSON.parse(response.body)
23
+ end
24
+
25
+ def post(path, data, options = nil)
26
+ query_string = options_to_query(options)
27
+ full_path = "#{path}?#{query_string}"
28
+ response = @client.post(full_path, data, generate_headers(@custom_headers))
29
+ JSON.parse(response.body)
30
+ end
31
+
32
+ def put(path, data, options = nil)
33
+ query_string = options_to_query(options)
34
+ full_path = "#{path}?#{query_string}"
35
+ response = @client.put(full_path, data, generate_headers(@custom_headers))
36
+ JSON.parse(response.body)
37
+ end
38
+
39
+ def delete(path, options = nil)
40
+ query_string = options_to_query(options)
41
+ full_path = "#{path}?#{query_string}"
42
+ response = @client.delete(full_path, generate_headers(@custom_headers))
43
+ JSON.parse(response.body)
44
+ end
45
+
46
+ def with_headers(headers)
47
+ @custom_headers = headers
48
+ yield(self)
49
+ @custom_headers = nil
50
+ end
51
+
52
+ private
53
+
54
+ def generate_headers(custom_headers = nil)
55
+ headers = custom_headers.nil? ? {} : custom_headers.clone
56
+ headers['Authorization'] = "Bearer #{@authorization_token}" if @authorization_token
57
+ headers
58
+ end
59
+
60
+ def options_to_query(options)
61
+ return if options.nil?
62
+ query_parameters = []
63
+ options.each do |key, value|
64
+ query_parameters.push("#{CGI.escape(key.to_s)}=#{CGI.escape(value.to_s)}")
65
+ end
66
+ query_parameters.join('&')
67
+ end
68
+ end
69
+ end
@@ -0,0 +1,7 @@
1
+ module Givepulse
2
+ class UnsupportedMethod < StandardError
3
+ def initialize(resource_class)
4
+ super("This method is not supported on #{resource_class}")
5
+ end
6
+ end
7
+ end
@@ -0,0 +1,33 @@
1
+ module Givepulse
2
+ class Resource
3
+ attr_reader :client
4
+
5
+ attr_accessor :path
6
+
7
+ def initialize(client, path, supported_methods)
8
+ @client ||= client
9
+ @path ||= path
10
+ @supported_methods ||= supported_methods.clone
11
+ end
12
+
13
+ def get(options = nil)
14
+ raise Givepulse::UnsupportedMethod, self.class unless @supported_methods.include?(__method__)
15
+ @client.connection.get(@path, options)
16
+ end
17
+
18
+ def create(data)
19
+ raise Givepulse::UnsupportedMethod, self.class unless @supported_methods.include?(__method__)
20
+ @client.connection.post(@path, data)
21
+ end
22
+
23
+ def update(id, data)
24
+ raise Givepulse::UnsupportedMethod, self.class unless @supported_methods.include?(__method__)
25
+ @client.connection.put("#{@path}/#{id}", data)
26
+ end
27
+
28
+ def delete(id)
29
+ raise Givepulse::UnsupportedMethod, self.class unless @supported_methods.include?(__method__)
30
+ @client.connection.delete("#{@path}/#{id}")
31
+ end
32
+ end
33
+ end
@@ -0,0 +1,15 @@
1
+ module Givepulse
2
+ class ResourceMap
3
+ def self.get_resource_class(resource)
4
+ resource_classes = Givepulse::Resources.constants.select do |c|
5
+ Givepulse::Resources.const_get(c).is_a? Class
6
+ end
7
+ map = {}
8
+ resource_classes.each do |resource_class|
9
+ map[resource_class.to_s.downcase.to_sym] = Givepulse::Resources.const_get(resource_class)
10
+ end
11
+ return unless map.key?(resource)
12
+ map[resource]
13
+ end
14
+ end
15
+ end
@@ -0,0 +1,11 @@
1
+ module Givepulse
2
+ module Resources
3
+ class Affiliations < Givepulse::Resource
4
+ SUPPORTED_METHODS = %i[get create update delete].freeze
5
+
6
+ def initialize(client)
7
+ super(client, '/affiliations', SUPPORTED_METHODS)
8
+ end
9
+ end
10
+ end
11
+ end
@@ -0,0 +1,11 @@
1
+ module Givepulse
2
+ module Resources
3
+ class Education < Givepulse::Resource
4
+ SUPPORTED_METHODS = %i[get create update delete].freeze
5
+
6
+ def initialize(client)
7
+ super(client, '/educations', SUPPORTED_METHODS)
8
+ end
9
+ end
10
+ end
11
+ end
@@ -0,0 +1,11 @@
1
+ module Givepulse
2
+ module Resources
3
+ class Events < Givepulse::Resource
4
+ SUPPORTED_METHODS = %i[get].freeze
5
+
6
+ def initialize(client)
7
+ super(client, '/events', SUPPORTED_METHODS)
8
+ end
9
+ end
10
+ end
11
+ end
@@ -0,0 +1,11 @@
1
+ module Givepulse
2
+ module Resources
3
+ class Groups < Givepulse::Resource
4
+ SUPPORTED_METHODS = %i[get create update].freeze
5
+
6
+ def initialize(client)
7
+ super(client, '/groups', SUPPORTED_METHODS)
8
+ end
9
+ end
10
+ end
11
+ end
@@ -0,0 +1,11 @@
1
+ module Givepulse
2
+ module Resources
3
+ class Impacts < Givepulse::Resource
4
+ SUPPORTED_METHODS = %i[get].freeze
5
+
6
+ def initialize(client)
7
+ super(client, '/impacts', SUPPORTED_METHODS)
8
+ end
9
+ end
10
+ end
11
+ end
@@ -0,0 +1,11 @@
1
+ module Givepulse
2
+ module Resources
3
+ class Memberships < Givepulse::Resource
4
+ SUPPORTED_METHODS = %i[get create].freeze
5
+
6
+ def initialize(client)
7
+ super(client, '/memberships', SUPPORTED_METHODS)
8
+ end
9
+ end
10
+ end
11
+ end
@@ -0,0 +1,11 @@
1
+ module Givepulse
2
+ module Resources
3
+ class Registrations < Givepulse::Resource
4
+ SUPPORTED_METHODS = %i[get].freeze
5
+
6
+ def initialize(client)
7
+ super(client, '/registrations', SUPPORTED_METHODS)
8
+ end
9
+ end
10
+ end
11
+ end
@@ -0,0 +1,11 @@
1
+ module Givepulse
2
+ module Resources
3
+ class Users < Givepulse::Resource
4
+ SUPPORTED_METHODS = %i[get create update].freeze
5
+
6
+ def initialize(client)
7
+ super(client, '/users', SUPPORTED_METHODS)
8
+ end
9
+ end
10
+ end
11
+ end
@@ -0,0 +1,3 @@
1
+ module Givepulse
2
+ VERSION = '0.1.0'.freeze
3
+ end
metadata ADDED
@@ -0,0 +1,182 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: givepulse
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - Archer Malmo
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2018-03-06 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: bundler
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '1.15'
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '1.15'
27
+ - !ruby/object:Gem::Dependency
28
+ name: dotenv
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '2.2'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '2.2'
41
+ - !ruby/object:Gem::Dependency
42
+ name: pry
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '0.11'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '0.11'
55
+ - !ruby/object:Gem::Dependency
56
+ name: rake
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - "~>"
60
+ - !ruby/object:Gem::Version
61
+ version: '10.0'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - "~>"
67
+ - !ruby/object:Gem::Version
68
+ version: '10.0'
69
+ - !ruby/object:Gem::Dependency
70
+ name: rspec
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - "~>"
74
+ - !ruby/object:Gem::Version
75
+ version: '3.0'
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - "~>"
81
+ - !ruby/object:Gem::Version
82
+ version: '3.0'
83
+ - !ruby/object:Gem::Dependency
84
+ name: rubocop
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - "~>"
88
+ - !ruby/object:Gem::Version
89
+ version: '0.51'
90
+ type: :development
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - "~>"
95
+ - !ruby/object:Gem::Version
96
+ version: '0.51'
97
+ - !ruby/object:Gem::Dependency
98
+ name: timecop
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - "~>"
102
+ - !ruby/object:Gem::Version
103
+ version: '0.9'
104
+ type: :development
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - "~>"
109
+ - !ruby/object:Gem::Version
110
+ version: '0.9'
111
+ - !ruby/object:Gem::Dependency
112
+ name: webmock
113
+ requirement: !ruby/object:Gem::Requirement
114
+ requirements:
115
+ - - "~>"
116
+ - !ruby/object:Gem::Version
117
+ version: '3.1'
118
+ type: :development
119
+ prerelease: false
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ requirements:
122
+ - - "~>"
123
+ - !ruby/object:Gem::Version
124
+ version: '3.1'
125
+ description: A wrapper gem around Givepulse's API
126
+ email:
127
+ - support@archermalmo.com
128
+ executables: []
129
+ extensions: []
130
+ extra_rdoc_files: []
131
+ files:
132
+ - ".gitignore"
133
+ - ".rspec"
134
+ - ".rubocop.yml"
135
+ - ".travis.yml"
136
+ - Gemfile
137
+ - LICENSE.md
138
+ - README.md
139
+ - Rakefile
140
+ - bin/console
141
+ - bin/setup
142
+ - givepulse.gemspec
143
+ - lib/givepulse.rb
144
+ - lib/givepulse/client.rb
145
+ - lib/givepulse/connection.rb
146
+ - lib/givepulse/exceptions/unsupported_method.rb
147
+ - lib/givepulse/resource.rb
148
+ - lib/givepulse/resource_map.rb
149
+ - lib/givepulse/resources/affiliations.rb
150
+ - lib/givepulse/resources/education.rb
151
+ - lib/givepulse/resources/events.rb
152
+ - lib/givepulse/resources/groups.rb
153
+ - lib/givepulse/resources/impacts.rb
154
+ - lib/givepulse/resources/memberships.rb
155
+ - lib/givepulse/resources/registrations.rb
156
+ - lib/givepulse/resources/users.rb
157
+ - lib/givepulse/version.rb
158
+ homepage: https://github.com/archermalmo/givepulse
159
+ licenses:
160
+ - MIT
161
+ metadata: {}
162
+ post_install_message:
163
+ rdoc_options: []
164
+ require_paths:
165
+ - lib
166
+ required_ruby_version: !ruby/object:Gem::Requirement
167
+ requirements:
168
+ - - ">="
169
+ - !ruby/object:Gem::Version
170
+ version: '0'
171
+ required_rubygems_version: !ruby/object:Gem::Requirement
172
+ requirements:
173
+ - - ">="
174
+ - !ruby/object:Gem::Version
175
+ version: '0'
176
+ requirements: []
177
+ rubyforge_project:
178
+ rubygems_version: 2.6.14
179
+ signing_key:
180
+ specification_version: 4
181
+ summary: A wrapper gem around Givepulse's API
182
+ test_files: []