stash-rewards 0.0.1.alpha5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: e3c3d4c0f632fe0de1d13c538f4bc05c152038a7f614ca3180b14eb6d6fffb1f
4
+ data.tar.gz: 6121444ae5111d9a2c507d04471c546f168b6205a3d980cb4c73e5000cb22d03
5
+ SHA512:
6
+ metadata.gz: 4e4ac6bf50683d072fd112f12942e16580b24d7d498d7e45c65928d2a78228339bbb31ed6eb21eb6a2fe43e26f52dba2a70ace6abde67c0b2c86b6a3c6238d75
7
+ data.tar.gz: 0a45ae5b8fd4de4d99c0d00ac10ac43c691e10100387fc0bd678a70196caf11a153ba7438d4351c2255aa77798867ba9fffc895e1a79547fbaca22e71fa892b9
data/.gitignore ADDED
@@ -0,0 +1,9 @@
1
+ /.bundle/
2
+ /.yardoc
3
+ /_yardoc/
4
+ /coverage/
5
+ /doc/
6
+ /pkg/
7
+ /spec/reports/
8
+ /tmp/
9
+ *.gem
data/.travis.yml ADDED
@@ -0,0 +1,6 @@
1
+ ---
2
+ language: ruby
3
+ cache: bundler
4
+ rvm:
5
+ - 2.7.5
6
+ before_install: gem install bundler -v 2.1.4
@@ -0,0 +1,74 @@
1
+ # Contributor Covenant Code of Conduct
2
+
3
+ ## Our Pledge
4
+
5
+ In the interest of fostering an open and welcoming environment, we as
6
+ contributors and maintainers pledge to making participation in our project and
7
+ our community a harassment-free experience for everyone, regardless of age, body
8
+ size, disability, ethnicity, gender identity and expression, level of experience,
9
+ nationality, personal appearance, race, religion, or sexual identity and
10
+ orientation.
11
+
12
+ ## Our Standards
13
+
14
+ Examples of behavior that contributes to creating a positive environment
15
+ include:
16
+
17
+ * Using welcoming and inclusive language
18
+ * Being respectful of differing viewpoints and experiences
19
+ * Gracefully accepting constructive criticism
20
+ * Focusing on what is best for the community
21
+ * Showing empathy towards other community members
22
+
23
+ Examples of unacceptable behavior by participants include:
24
+
25
+ * The use of sexualized language or imagery and unwelcome sexual attention or
26
+ advances
27
+ * Trolling, insulting/derogatory comments, and personal or political attacks
28
+ * Public or private harassment
29
+ * Publishing others' private information, such as a physical or electronic
30
+ address, without explicit permission
31
+ * Other conduct which could reasonably be considered inappropriate in a
32
+ professional setting
33
+
34
+ ## Our Responsibilities
35
+
36
+ Project maintainers are responsible for clarifying the standards of acceptable
37
+ behavior and are expected to take appropriate and fair corrective action in
38
+ response to any instances of unacceptable behavior.
39
+
40
+ Project maintainers have the right and responsibility to remove, edit, or
41
+ reject comments, commits, code, wiki edits, issues, and other contributions
42
+ that are not aligned to this Code of Conduct, or to ban temporarily or
43
+ permanently any contributor for other behaviors that they deem inappropriate,
44
+ threatening, offensive, or harmful.
45
+
46
+ ## Scope
47
+
48
+ This Code of Conduct applies both within project spaces and in public spaces
49
+ when an individual is representing the project or its community. Examples of
50
+ representing a project or community include using an official project e-mail
51
+ address, posting via an official social media account, or acting as an appointed
52
+ representative at an online or offline event. Representation of a project may be
53
+ further defined and clarified by project maintainers.
54
+
55
+ ## Enforcement
56
+
57
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be
58
+ reported by contacting the project team at rui.p.baltazar@gmail.com. All
59
+ complaints will be reviewed and investigated and will result in a response that
60
+ is deemed necessary and appropriate to the circumstances. The project team is
61
+ obligated to maintain confidentiality with regard to the reporter of an incident.
62
+ Further details of specific enforcement policies may be posted separately.
63
+
64
+ Project maintainers who do not follow or enforce the Code of Conduct in good
65
+ faith may face temporary or permanent repercussions as determined by other
66
+ members of the project's leadership.
67
+
68
+ ## Attribution
69
+
70
+ This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
71
+ available at [https://contributor-covenant.org/version/1/4][version]
72
+
73
+ [homepage]: https://contributor-covenant.org
74
+ [version]: https://contributor-covenant.org/version/1/4/
data/Gemfile ADDED
@@ -0,0 +1,6 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Specify your gem's dependencies in stash-rewards.gemspec
4
+ gemspec
5
+
6
+ gem 'rake', '~> 12.0'
data/Gemfile.lock ADDED
@@ -0,0 +1,78 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ stash-rewards (0.0.1.alpha5)
5
+ faraday (~> 1)
6
+ faraday_curl (~> 0)
7
+
8
+ GEM
9
+ remote: https://rubygems.org/
10
+ specs:
11
+ addressable (2.8.0)
12
+ public_suffix (>= 2.0.2, < 5.0)
13
+ crack (0.4.5)
14
+ rexml
15
+ diff-lcs (1.5.0)
16
+ faraday (1.10.0)
17
+ faraday-em_http (~> 1.0)
18
+ faraday-em_synchrony (~> 1.0)
19
+ faraday-excon (~> 1.1)
20
+ faraday-httpclient (~> 1.0)
21
+ faraday-multipart (~> 1.0)
22
+ faraday-net_http (~> 1.0)
23
+ faraday-net_http_persistent (~> 1.0)
24
+ faraday-patron (~> 1.0)
25
+ faraday-rack (~> 1.0)
26
+ faraday-retry (~> 1.0)
27
+ ruby2_keywords (>= 0.0.4)
28
+ faraday-em_http (1.0.0)
29
+ faraday-em_synchrony (1.0.0)
30
+ faraday-excon (1.1.0)
31
+ faraday-httpclient (1.0.1)
32
+ faraday-multipart (1.0.4)
33
+ multipart-post (~> 2)
34
+ faraday-net_http (1.0.1)
35
+ faraday-net_http_persistent (1.2.0)
36
+ faraday-patron (1.0.0)
37
+ faraday-rack (1.0.0)
38
+ faraday-retry (1.0.3)
39
+ faraday_curl (0.0.2)
40
+ faraday (>= 0.9.0)
41
+ hashdiff (1.0.1)
42
+ multipart-post (2.2.3)
43
+ public_suffix (4.0.7)
44
+ rake (12.3.3)
45
+ rexml (3.2.5)
46
+ rspec (3.11.0)
47
+ rspec-core (~> 3.11.0)
48
+ rspec-expectations (~> 3.11.0)
49
+ rspec-mocks (~> 3.11.0)
50
+ rspec-core (3.11.0)
51
+ rspec-support (~> 3.11.0)
52
+ rspec-expectations (3.11.0)
53
+ diff-lcs (>= 1.2.0, < 2.0)
54
+ rspec-support (~> 3.11.0)
55
+ rspec-file_fixtures (0.1.6)
56
+ rspec (~> 3.0)
57
+ rspec-mocks (3.11.1)
58
+ diff-lcs (>= 1.2.0, < 2.0)
59
+ rspec-support (~> 3.11.0)
60
+ rspec-support (3.11.0)
61
+ ruby2_keywords (0.0.5)
62
+ webmock (3.14.0)
63
+ addressable (>= 2.8.0)
64
+ crack (>= 0.3.2)
65
+ hashdiff (>= 0.4.0, < 2.0.0)
66
+
67
+ PLATFORMS
68
+ x86_64-darwin-20
69
+
70
+ DEPENDENCIES
71
+ rake (~> 12.0)
72
+ rspec (~> 3)
73
+ rspec-file_fixtures (~> 0)
74
+ stash-rewards!
75
+ webmock (~> 3)
76
+
77
+ BUNDLED WITH
78
+ 2.3.16
data/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2022 Perx Technologies
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 all
13
+ 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 THE
21
+ SOFTWARE.
data/LICENSE.txt ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2022 Rui Baltazar
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.
data/README.md ADDED
@@ -0,0 +1,64 @@
1
+ # Stash::Rewards
2
+
3
+ Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/stash/rewards`. To experiment with that code, run `bin/console` for an interactive prompt.
4
+
5
+ TODO: Delete this and the text above, and describe your gem
6
+
7
+ ## Installation
8
+
9
+ Add this line to your application's Gemfile:
10
+
11
+ ```ruby
12
+ gem 'stash-rewards'
13
+ ```
14
+
15
+ And then execute:
16
+
17
+ $ bundle install
18
+
19
+ Or install it yourself as:
20
+
21
+ $ gem install stash-rewards --pre
22
+
23
+ ## Usage
24
+
25
+ ```ruby
26
+ require 'stash/rewards'
27
+
28
+ config = Stash::Rewards::Config.new(api_key: '', authorization: '', api_domain: '')
29
+
30
+ campaign_id = ''
31
+ user_identifier = ''
32
+ reward_id = ''
33
+
34
+ rwds_api = Stash::Rewards::GetRewards.new(config)
35
+ rwds_api.call(campaign_id: campaign_id, page_no: 0, page_size: 10)
36
+
37
+ create_user_api = Stash::Rewards::CreateUser.new(config)
38
+ create_user_api.call(user_identifier: user_identifier)
39
+
40
+ enrol_user_api = Stash::Rewards::EnrolUserInCampaign.new(config)
41
+ enrol_user_api.call(campaign_id: campaign_id, user_identifier: user_identifier)
42
+
43
+ issue_voucher = Stash::Rewards::IssueVoucher.new(config)
44
+ issue_voucher.call(campaign_id: campaign_id, user_identifier: user_identifier, reward_id: reward_id)
45
+ ```
46
+
47
+ ## Development
48
+
49
+ After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake test` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
50
+
51
+ 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).
52
+
53
+ ## Contributing
54
+
55
+ Bug reports and pull requests are welcome on GitHub at https://github.com/rpbaltazar/stash-rewards. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [code of conduct](https://github.com/rpbaltazar/stash-rewards/blob/master/CODE_OF_CONDUCT.md).
56
+
57
+
58
+ ## License
59
+
60
+ The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
61
+
62
+ ## Code of Conduct
63
+
64
+ Everyone interacting in the Stash::Rewards project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/rpbaltazar/stash-rewards/blob/master/CODE_OF_CONDUCT.md).
data/Rakefile ADDED
@@ -0,0 +1,10 @@
1
+ require "bundler/gem_tasks"
2
+ require "rake/testtask"
3
+
4
+ Rake::TestTask.new(:test) do |t|
5
+ t.libs << "test"
6
+ t.libs << "lib"
7
+ t.test_files = FileList["test/**/*_test.rb"]
8
+ end
9
+
10
+ task :default => :test
data/bin/console ADDED
@@ -0,0 +1,14 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require "bundler/setup"
4
+ require "stash/rewards"
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
+ # (If you use this, don't forget to add pry to your Gemfile!)
10
+ # require "pry"
11
+ # Pry.start
12
+
13
+ require "irb"
14
+ IRB.start(__FILE__)
data/bin/setup ADDED
@@ -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,37 @@
1
+ # frozen_string_literal: true
2
+
3
+ require_relative '../rewards'
4
+
5
+ require 'faraday'
6
+ require 'faraday_curl'
7
+ require 'logger'
8
+ require 'json'
9
+
10
+ module Stash
11
+ module Rewards
12
+ class ApiWrapper
13
+ def initialize(config, url_encoded = true)
14
+ @config = config
15
+ @url_encoded = url_encoded
16
+ end
17
+
18
+ private
19
+
20
+ def headers
21
+ {
22
+ 'x-api-key' => @config.api_key,
23
+ 'Authorization' => @config.authorization,
24
+ 'Content-Type' => 'application/json'
25
+ }
26
+ end
27
+
28
+ def api_wrapper
29
+ logger = Logger.new(STDOUT)
30
+ @api_wrapper ||= Faraday.new(url: @config.api_domain, headers: headers) do |f|
31
+ f.request :url_encoded if @url_encoded
32
+ f.request :curl, logger, :warn
33
+ end
34
+ end
35
+ end
36
+ end
37
+ end
@@ -0,0 +1,15 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Stash
4
+ module Rewards
5
+ class Config
6
+ attr_reader :api_key, :authorization, :api_domain
7
+
8
+ def initialize(options = {})
9
+ @api_key = options[:api_key]
10
+ @authorization = options[:authorization]
11
+ @api_domain = options[:api_domain]
12
+ end
13
+ end
14
+ end
15
+ end
@@ -0,0 +1,36 @@
1
+ # frozen_string_literal: true
2
+
3
+ require_relative 'api_wrapper'
4
+
5
+ module Stash
6
+ module Rewards
7
+ class CreateUser < ApiWrapper
8
+ def call(user_identifier:)
9
+ response = api_wrapper.post('users') do |req|
10
+ req.body = user_payload(user_identifier)
11
+ end
12
+ parsed_response = JSON.parse(response.body)
13
+
14
+ raise Stash::Rewards::Error, parsed_response['message'] unless response.success?
15
+
16
+ parsed_response
17
+ rescue Faraday::Error => e
18
+ raise Stash::Rewards::Error, e.message
19
+ end
20
+
21
+ private
22
+
23
+ def user_payload(user_identifier)
24
+ [
25
+ {
26
+ refId: user_identifier,
27
+ firstName: user_identifier,
28
+ lastName: user_identifier,
29
+ status: 'ACTIVE',
30
+ email: "#{user_identifier}@mailinator.com"
31
+ }
32
+ ].to_json
33
+ end
34
+ end
35
+ end
36
+ end
@@ -0,0 +1,28 @@
1
+ # frozen_string_literal: true
2
+
3
+ require_relative 'api_wrapper'
4
+
5
+ module Stash
6
+ module Rewards
7
+ class EnrolUserInCampaign < ApiWrapper
8
+ def call(campaign_id:, user_identifier:)
9
+ response = api_wrapper.post("campaigns/#{campaign_id}/users") do |req|
10
+ req.body = user_payload(user_identifier)
11
+ end
12
+ parsed_response = JSON.parse(response.body)
13
+
14
+ raise Stash::Rewards::Error, parsed_response['message'] unless response.success?
15
+
16
+ parsed_response
17
+ rescue Faraday::Error => e
18
+ raise Stash::Rewards::Error, e.message
19
+ end
20
+
21
+ private
22
+
23
+ def user_payload(user_identifier)
24
+ [{ refId: user_identifier }].to_json
25
+ end
26
+ end
27
+ end
28
+ end
@@ -0,0 +1,31 @@
1
+ # frozen_string_literal: true
2
+
3
+ require_relative 'api_wrapper'
4
+
5
+ module Stash
6
+ module Rewards
7
+ class GetRewards < ApiWrapper
8
+ def call(campaign_id:, page_no: 0, page_size: 500)
9
+ response = api_wrapper.get("campaigns/#{campaign_id}/rewards") do |req|
10
+ req.params = query_params(page_no, page_size)
11
+ end
12
+ parsed_response = JSON.parse(response.body)
13
+
14
+ raise Stash::Rewards::Error, parsed_response['message'] unless response.success?
15
+
16
+ parsed_response
17
+ rescue Faraday::Error => e
18
+ raise Stash::Rewards::Error, e.message
19
+ end
20
+
21
+ private
22
+
23
+ def query_params(page_no, page_size)
24
+ {
25
+ page: page_no,
26
+ size: page_size
27
+ }
28
+ end
29
+ end
30
+ end
31
+ end
@@ -0,0 +1,36 @@
1
+ # frozen_string_literal: true
2
+
3
+ require_relative 'api_wrapper'
4
+
5
+ module Stash
6
+ module Rewards
7
+ class IssueVoucher < ApiWrapper
8
+ def call(campaign_id:, user_identifier:, reward_id:)
9
+ response = api_wrapper.post("campaigns/#{campaign_id}/users/refId_#{user_identifier}/rewards/order") do |req|
10
+ req.body = order_payload(reward_id)
11
+ end
12
+ parsed_response = JSON.parse(response.body)
13
+ raise Stash::Rewards::Error, parsed_response['message'] unless response.success?
14
+
15
+ parsed_response
16
+ rescue Faraday::Error => e
17
+ raise Stash::Rewards::Error, e.message
18
+ end
19
+
20
+ private
21
+
22
+ def order_payload(reward_id)
23
+ {
24
+ "userInformation": {},
25
+ "products": [
26
+ {
27
+ "rewardId": reward_id,
28
+ "price": 0,
29
+ "quantity": 0
30
+ }
31
+ ]
32
+ }.to_json
33
+ end
34
+ end
35
+ end
36
+ end
@@ -0,0 +1,7 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Stash
4
+ module Rewards
5
+ VERSION = '0.0.1.alpha5'
6
+ end
7
+ end
@@ -0,0 +1,14 @@
1
+ require_relative 'rewards/version'
2
+ require_relative 'rewards/api_wrapper'
3
+ require_relative 'rewards/config'
4
+ require_relative 'rewards/create_user'
5
+ require_relative 'rewards/enrol_user_in_campaign'
6
+ require_relative 'rewards/get_rewards'
7
+ require_relative 'rewards/issue_voucher'
8
+
9
+ module Stash
10
+ module Rewards
11
+ class Error < StandardError; end
12
+ # Your code goes here...
13
+ end
14
+ end
@@ -0,0 +1,34 @@
1
+ require_relative 'lib/stash/rewards/version'
2
+
3
+ Gem::Specification.new do |spec|
4
+ spec.name = 'stash-rewards'
5
+ spec.version = Stash::Rewards::VERSION
6
+ spec.authors = ['Rui Baltazar']
7
+ spec.email = ['rui.p.baltazar@gmail.com']
8
+
9
+ spec.summary = 'Gem with API wrapper for Stash Rewards'
10
+ spec.description = 'Helper Library to make api calls to stash rewards'
11
+ spec.homepage = 'https://github.com/PerxTech/stash-rewards'
12
+ spec.license = 'MIT'
13
+ spec.required_ruby_version = Gem::Requirement.new('>= 2.3.0')
14
+
15
+ spec.metadata['homepage_uri'] = spec.homepage
16
+ spec.metadata['source_code_uri'] = 'https://github.com/PerxTech/stash-rewards'
17
+ spec.metadata['changelog_uri'] = 'https://github.com/PerxTech/stash-rewards/blob/main/README.md'
18
+
19
+ # Specify which files should be added to the gem when it is released.
20
+ # The `git ls-files -z` loads the files in the RubyGem that have been added into git.
21
+ spec.files = Dir.chdir(File.expand_path(__dir__)) do
22
+ `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
23
+ end
24
+ spec.bindir = 'exe'
25
+ spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
26
+ spec.require_paths = ['lib']
27
+
28
+ spec.add_runtime_dependency 'faraday', '~> 1'
29
+ spec.add_runtime_dependency 'faraday_curl', '~> 0'
30
+
31
+ spec.add_development_dependency 'rspec', '~> 3'
32
+ spec.add_development_dependency 'rspec-file_fixtures', '~> 0'
33
+ spec.add_development_dependency 'webmock', '~> 3'
34
+ end
metadata ADDED
@@ -0,0 +1,136 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: stash-rewards
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1.alpha5
5
+ platform: ruby
6
+ authors:
7
+ - Rui Baltazar
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2022-06-23 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: faraday
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '1'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '1'
27
+ - !ruby/object:Gem::Dependency
28
+ name: faraday_curl
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: rspec
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '3'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '3'
55
+ - !ruby/object:Gem::Dependency
56
+ name: rspec-file_fixtures
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - "~>"
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - "~>"
67
+ - !ruby/object:Gem::Version
68
+ version: '0'
69
+ - !ruby/object:Gem::Dependency
70
+ name: webmock
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - "~>"
74
+ - !ruby/object:Gem::Version
75
+ version: '3'
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - "~>"
81
+ - !ruby/object:Gem::Version
82
+ version: '3'
83
+ description: Helper Library to make api calls to stash rewards
84
+ email:
85
+ - rui.p.baltazar@gmail.com
86
+ executables: []
87
+ extensions: []
88
+ extra_rdoc_files: []
89
+ files:
90
+ - ".gitignore"
91
+ - ".travis.yml"
92
+ - CODE_OF_CONDUCT.md
93
+ - Gemfile
94
+ - Gemfile.lock
95
+ - LICENSE
96
+ - LICENSE.txt
97
+ - README.md
98
+ - Rakefile
99
+ - bin/console
100
+ - bin/setup
101
+ - lib/stash/rewards.rb
102
+ - lib/stash/rewards/api_wrapper.rb
103
+ - lib/stash/rewards/config.rb
104
+ - lib/stash/rewards/create_user.rb
105
+ - lib/stash/rewards/enrol_user_in_campaign.rb
106
+ - lib/stash/rewards/get_rewards.rb
107
+ - lib/stash/rewards/issue_voucher.rb
108
+ - lib/stash/rewards/version.rb
109
+ - stash-rewards.gemspec
110
+ homepage: https://github.com/PerxTech/stash-rewards
111
+ licenses:
112
+ - MIT
113
+ metadata:
114
+ homepage_uri: https://github.com/PerxTech/stash-rewards
115
+ source_code_uri: https://github.com/PerxTech/stash-rewards
116
+ changelog_uri: https://github.com/PerxTech/stash-rewards/blob/main/README.md
117
+ post_install_message:
118
+ rdoc_options: []
119
+ require_paths:
120
+ - lib
121
+ required_ruby_version: !ruby/object:Gem::Requirement
122
+ requirements:
123
+ - - ">="
124
+ - !ruby/object:Gem::Version
125
+ version: 2.3.0
126
+ required_rubygems_version: !ruby/object:Gem::Requirement
127
+ requirements:
128
+ - - ">"
129
+ - !ruby/object:Gem::Version
130
+ version: 1.3.1
131
+ requirements: []
132
+ rubygems_version: 3.1.6
133
+ signing_key:
134
+ specification_version: 4
135
+ summary: Gem with API wrapper for Stash Rewards
136
+ test_files: []