perks 0.0.1

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: 117b5fcfcd95bde9fda927ac5a0272f7a92b74e43b1d4293a021bcf2673a2733
4
+ data.tar.gz: e930049832a2779b2dfe7b6b16765eb5cf2d73b56349ed8cc0a4b3cd71e95f0a
5
+ SHA512:
6
+ metadata.gz: 25beca2783cd3575d64ddbf203418c6178ead16aa17452f06a6deefcb04b500e94e36e5856418990c04cfb39e951ad34605fc0ac5426253cdfdff9bcea139b3f
7
+ data.tar.gz: 95789a9aff553ff62016f8fe4441394eff984bf89fdf9da7a297112a0999b7c911289b4bad2be997f029058fc407f083d097f74f7a45a84427986d1d80e7dc55
data/.gitignore ADDED
@@ -0,0 +1,8 @@
1
+ /.bundle/
2
+ /.yardoc
3
+ /_yardoc/
4
+ /coverage/
5
+ /doc/
6
+ /pkg/
7
+ /spec/reports/
8
+ /tmp/
data/Gemfile ADDED
@@ -0,0 +1,13 @@
1
+ # frozen_string_literal: true
2
+
3
+ source "https://rubygems.org"
4
+
5
+ # Specify your gem's dependencies in perks.gemspec
6
+ gemspec
7
+
8
+ gem "irb"
9
+ gem "rake", "~> 13.0"
10
+
11
+ group :development, :test do
12
+ gem "rspec"
13
+ end
data/README.md ADDED
@@ -0,0 +1,35 @@
1
+ # Perks
2
+
3
+ TODO: Delete this and the text below, and describe your gem
4
+
5
+ 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/perks`. To experiment with that code, run `bin/console` for an interactive prompt.
6
+
7
+ ## Installation
8
+
9
+ TODO: Replace `UPDATE_WITH_YOUR_GEM_NAME_IMMEDIATELY_AFTER_RELEASE_TO_RUBYGEMS_ORG` with your gem name right after releasing it to RubyGems.org. Please do not do it earlier due to security reasons. Alternatively, replace this section with instructions to install your gem from git if you don't plan to release to RubyGems.org.
10
+
11
+ Install the gem and add to the application's Gemfile by executing:
12
+
13
+ ```bash
14
+ bundle add UPDATE_WITH_YOUR_GEM_NAME_IMMEDIATELY_AFTER_RELEASE_TO_RUBYGEMS_ORG
15
+ ```
16
+
17
+ If bundler is not being used to manage dependencies, install the gem by executing:
18
+
19
+ ```bash
20
+ gem install UPDATE_WITH_YOUR_GEM_NAME_IMMEDIATELY_AFTER_RELEASE_TO_RUBYGEMS_ORG
21
+ ```
22
+
23
+ ## Usage
24
+
25
+ TODO: Write usage instructions here
26
+
27
+ ## Development
28
+
29
+ After checking out the repo, run `bin/setup` to install dependencies. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
30
+
31
+ 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 the created tag, and push the `.gem` file to [rubygems.org](https://rubygems.org).
32
+
33
+ ## Contributing
34
+
35
+ Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/perks.
data/Rakefile ADDED
@@ -0,0 +1,4 @@
1
+ # frozen_string_literal: true
2
+
3
+ require "bundler/gem_tasks"
4
+ task default: %i[]
data/bin/console ADDED
@@ -0,0 +1,11 @@
1
+ #!/usr/bin/env ruby
2
+ # frozen_string_literal: true
3
+
4
+ require "bundler/setup"
5
+ require "perks"
6
+
7
+ # You can add fixtures and/or initialization code here to make experimenting
8
+ # with your gem easier. You can also use a different console, if you like.
9
+
10
+ require "irb"
11
+ 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,5 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Perks
4
+ VERSION = "0.0.1"
5
+ end
data/lib/perks.rb ADDED
@@ -0,0 +1,5 @@
1
+ require "perks/version"
2
+
3
+ module Perks
4
+ class Error < StandardError; end
5
+ end
data/perks.gemspec ADDED
@@ -0,0 +1,25 @@
1
+ require_relative "lib/perks/version"
2
+
3
+ Gem::Specification.new do |spec|
4
+ spec.name = "perks"
5
+ spec.version = Perks::VERSION
6
+ spec.authors = ["Madalitso Simbeye"]
7
+ spec.email = ["madalitsosimbeye173@gmail.com"]
8
+
9
+ spec.summary = "A flexible promotion, coupon, and incentive engine for Ruby apps"
10
+ spec.description = "Perks provides coupons, discounts, and rule-based promotions for Ruby and Rails applications."
11
+ spec.homepage = "https://github.com/melospot/perks"
12
+ spec.license = "MIT"
13
+
14
+ spec.required_ruby_version = ">= 3.0.0"
15
+
16
+ spec.files = Dir.chdir(__dir__) do
17
+ `git ls-files -z`.split("\x0").reject do |f|
18
+ f.match(%r{\A(?:spec|test|features)/})
19
+ end
20
+ end
21
+
22
+ spec.bindir = "exe"
23
+ spec.executables = spec.files.grep(%r{\Aexe/}) { |f| File.basename(f) }
24
+ spec.require_paths = ["lib"]
25
+ end
data/sig/perks.rbs ADDED
@@ -0,0 +1,4 @@
1
+ module Perks
2
+ VERSION: String
3
+ # See the writing guide of rbs: https://github.com/ruby/rbs#guides
4
+ end
metadata ADDED
@@ -0,0 +1,51 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: perks
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ platform: ruby
6
+ authors:
7
+ - Madalitso Simbeye
8
+ bindir: exe
9
+ cert_chain: []
10
+ date: 1980-01-02 00:00:00.000000000 Z
11
+ dependencies: []
12
+ description: Perks provides coupons, discounts, and rule-based promotions for Ruby
13
+ and Rails applications.
14
+ email:
15
+ - madalitsosimbeye173@gmail.com
16
+ executables: []
17
+ extensions: []
18
+ extra_rdoc_files: []
19
+ files:
20
+ - ".gitignore"
21
+ - Gemfile
22
+ - README.md
23
+ - Rakefile
24
+ - bin/console
25
+ - bin/setup
26
+ - lib/perks.rb
27
+ - lib/perks/version.rb
28
+ - perks.gemspec
29
+ - sig/perks.rbs
30
+ homepage: https://github.com/melospot/perks
31
+ licenses:
32
+ - MIT
33
+ metadata: {}
34
+ rdoc_options: []
35
+ require_paths:
36
+ - lib
37
+ required_ruby_version: !ruby/object:Gem::Requirement
38
+ requirements:
39
+ - - ">="
40
+ - !ruby/object:Gem::Version
41
+ version: 3.0.0
42
+ required_rubygems_version: !ruby/object:Gem::Requirement
43
+ requirements:
44
+ - - ">="
45
+ - !ruby/object:Gem::Version
46
+ version: '0'
47
+ requirements: []
48
+ rubygems_version: 3.6.9
49
+ specification_version: 4
50
+ summary: A flexible promotion, coupon, and incentive engine for Ruby apps
51
+ test_files: []