approveapi 1.0.0

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.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: d1af9ec75aea812ef800fae52fff6426892ffb2ba67c9e722c2b5dfd81ff10a1
4
+ data.tar.gz: 6c52e54ce9b923d58d8db8a9e2ace7abe83a7298358825cd3637146c02201dcd
5
+ SHA512:
6
+ metadata.gz: eb828e48ebc0d0cc9e382c5dd4c9f53c7103ac7f86461b3b0c0a9d42573be3bd644ed60026e9ddcbd78f00764eb19da7c348dba0d53a1ea8de42583ee383224e
7
+ data.tar.gz: 59213fc1268cb839f0411c47f47c7c88a4eebf429a15ff712f1c0b9c60d07611961a650bcaac02ecb1c640615930e5b2d6edd1b95d77cf5407acd049e6056372
data/Gemfile ADDED
@@ -0,0 +1,3 @@
1
+ source 'https://rubygems.org'
2
+
3
+ gemspec
data/Gemfile.lock ADDED
@@ -0,0 +1,27 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ approveapi (1.0.0)
5
+ approveapi_swagger (~> 1.0, >= 1.0.0)
6
+
7
+ GEM
8
+ remote: https://rubygems.org/
9
+ specs:
10
+ approveapi_swagger (1.0.0)
11
+ json (~> 2.1, >= 2.1.0)
12
+ typhoeus (~> 1.0, >= 1.0.1)
13
+ ethon (0.12.0)
14
+ ffi (>= 1.3.0)
15
+ ffi (1.10.0)
16
+ json (2.1.0)
17
+ typhoeus (1.3.1)
18
+ ethon (>= 0.9.0)
19
+
20
+ PLATFORMS
21
+ ruby
22
+
23
+ DEPENDENCIES
24
+ approveapi!
25
+
26
+ BUNDLED WITH
27
+ 2.0.1
data/Rakefile ADDED
@@ -0,0 +1,10 @@
1
+ require "bundler/gem_tasks"
2
+
3
+ begin
4
+ require 'rspec/core/rake_task'
5
+
6
+ RSpec::Core::RakeTask.new(:spec)
7
+ task default: :spec
8
+ rescue LoadError
9
+ # no rspec available
10
+ end
@@ -0,0 +1,33 @@
1
+ # -*- encoding: utf-8 -*-
2
+
3
+ =begin
4
+ #ApproveAPI
5
+
6
+ #The simple API to request a user's approval on anything via email + sms.
7
+
8
+ Contact: hello@approveapi.com
9
+
10
+ =end
11
+
12
+ $:.push File.expand_path("../lib", __FILE__)
13
+ require "approveapi/version"
14
+
15
+ Gem::Specification.new do |s|
16
+ s.name = "approveapi"
17
+ s.version = ApproveAPI::VERSION
18
+ s.platform = Gem::Platform::RUBY
19
+ s.authors = ["ApproveAPI"]
20
+ s.email = ["hello@approveapi.com"]
21
+ s.homepage = "https://approveapi.com"
22
+ s.summary = "OpenAPI generated client, used internally by the official ruby client 'approveapi' gem."
23
+ s.description = "The simple API to request a user's approval on anything via email + sms."
24
+ s.license = "Unlicense"
25
+ s.required_ruby_version = ">= 1.9"
26
+
27
+ s.add_runtime_dependency 'approveapi_swagger', '~> 1.0', '>= 1.0.0'
28
+
29
+ s.files = `find *`.split("\n").uniq.sort.select { |f| !f.empty? }
30
+ s.test_files = []
31
+ s.executables = []
32
+ s.require_paths = ["lib"]
33
+ end
@@ -0,0 +1,3 @@
1
+ module ApproveAPI
2
+ VERSION = '1.0.0'
3
+ end
data/lib/approveapi.rb ADDED
@@ -0,0 +1,45 @@
1
+ =begin
2
+ #ApproveAPI
3
+
4
+ #The simple API to request a user's approval on anything via email + sms.
5
+
6
+ Contact: hello@approveapi.com
7
+
8
+ =end
9
+
10
+ # Common files
11
+ require 'approveapi_swagger/api_client'
12
+ require 'approveapi_swagger/api_error'
13
+ require 'approveapi_swagger/version'
14
+ require 'approveapi_swagger/configuration'
15
+
16
+ # Models
17
+
18
+ # APIs
19
+ require 'approveapi_swagger/api/approve_api'
20
+
21
+ module ApproveAPI
22
+ include 'approveapi_swagger/models/answer_metadata'
23
+ include 'approveapi_swagger/models/create_prompt_request'
24
+ include 'approveapi_swagger/models/error'
25
+ include 'approveapi_swagger/models/prompt'
26
+ include 'approveapi_swagger/models/prompt_answer'
27
+ include 'approveapi_swagger/models/prompt_metadata'
28
+ include 'approveapi_swagger/models/prompt_status'
29
+
30
+ class << self
31
+ # Customize default settings for the SDK using block.
32
+ # ApproveAPISwagger.configure do |config|
33
+ # config.username = "xxx"
34
+ # config.password = "xxx"
35
+ # end
36
+ # If no block given, return the default Configuration object.
37
+ def configure
38
+ if block_given?
39
+ yield(Configuration.default)
40
+ else
41
+ Configuration.default
42
+ end
43
+ end
44
+ end
45
+ end
metadata ADDED
@@ -0,0 +1,70 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: approveapi
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.0.0
5
+ platform: ruby
6
+ authors:
7
+ - ApproveAPI
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2019-02-11 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: approveapi_swagger
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: 1.0.0
20
+ - - "~>"
21
+ - !ruby/object:Gem::Version
22
+ version: '1.0'
23
+ type: :runtime
24
+ prerelease: false
25
+ version_requirements: !ruby/object:Gem::Requirement
26
+ requirements:
27
+ - - ">="
28
+ - !ruby/object:Gem::Version
29
+ version: 1.0.0
30
+ - - "~>"
31
+ - !ruby/object:Gem::Version
32
+ version: '1.0'
33
+ description: The simple API to request a user's approval on anything via email + sms.
34
+ email:
35
+ - hello@approveapi.com
36
+ executables: []
37
+ extensions: []
38
+ extra_rdoc_files: []
39
+ files:
40
+ - Gemfile
41
+ - Gemfile.lock
42
+ - Rakefile
43
+ - approveapi.gemspec
44
+ - lib/approveapi.rb
45
+ - lib/approveapi/version.rb
46
+ homepage: https://approveapi.com
47
+ licenses:
48
+ - Unlicense
49
+ metadata: {}
50
+ post_install_message:
51
+ rdoc_options: []
52
+ require_paths:
53
+ - lib
54
+ required_ruby_version: !ruby/object:Gem::Requirement
55
+ requirements:
56
+ - - ">="
57
+ - !ruby/object:Gem::Version
58
+ version: '1.9'
59
+ required_rubygems_version: !ruby/object:Gem::Requirement
60
+ requirements:
61
+ - - ">="
62
+ - !ruby/object:Gem::Version
63
+ version: '0'
64
+ requirements: []
65
+ rubygems_version: 3.0.2
66
+ signing_key:
67
+ specification_version: 4
68
+ summary: OpenAPI generated client, used internally by the official ruby client &#39;approveapi&#39;
69
+ gem.
70
+ test_files: []