waeasyapi 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: 0e57c8499a4f0ae6209d9a03c4c4a0a65f86ccebced82b2ad8e39f9025aa47df
4
+ data.tar.gz: a6b199af7e6063a95294e55606b6a6415129fd7633730c5cf56c313fec916401
5
+ SHA512:
6
+ metadata.gz: 41da82c898049ce51b751d5b06b5f8d5f12a01f41820ffa7b3598e160607c1d014af7596221a22cc64824420b79c23f2ca5f6261ec6472fa845d75a0a6f254ef
7
+ data.tar.gz: 29d9c475dc985996255fc23412e7ab6ea68f4bef5a2000be1514dbe259046e0b9495f128a2634f01226fd1111993471011ae604b786e7c70004da62ed6506556
data/.editorconfig ADDED
@@ -0,0 +1,12 @@
1
+ ; This file is for unifying the coding style for different editors and IDEs.
2
+ ; More information at http://EditorConfig.org
3
+
4
+ root = true
5
+ ; Use 2 spaces for indentation in all files
6
+ [*]
7
+ end_of_line = lf
8
+ charset = utf-8
9
+ trim_trailing_whitespace = true
10
+ indent_style = space
11
+ indent_size = 2
12
+ insert_final_newline = true
data/.gitignore ADDED
@@ -0,0 +1,56 @@
1
+ *.gem
2
+ *.rbc
3
+ /.config
4
+ /coverage/
5
+ /InstalledFiles
6
+ /pkg/
7
+ /spec/reports/
8
+ /spec/examples.txt
9
+ /test/tmp/
10
+ /test/version_tmp/
11
+ /tmp/
12
+
13
+ # Used by dotenv library to load environment variables.
14
+ # .env
15
+
16
+ # Ignore Byebug command history file.
17
+ .byebug_history
18
+
19
+ ## Specific to RubyMotion:
20
+ .dat*
21
+ .repl_history
22
+ build/
23
+ *.bridgesupport
24
+ build-iPhoneOS/
25
+ build-iPhoneSimulator/
26
+
27
+ ## Specific to RubyMotion (use of CocoaPods):
28
+ #
29
+ # We recommend against adding the Pods directory to your .gitignore. However
30
+ # you should judge for yourself, the pros and cons are mentioned at:
31
+ # https://guides.cocoapods.org/using/using-cocoapods.html#should-i-check-the-pods-directory-into-source-control
32
+ #
33
+ # vendor/Pods/
34
+
35
+ ## Documentation cache and generated files:
36
+ /.yardoc/
37
+ /_yardoc/
38
+ /doc/
39
+ /rdoc/
40
+
41
+ ## Environment normalization:
42
+ /.bundle/
43
+ /vendor/bundle
44
+ /lib/bundler/man/
45
+
46
+ # for a library or gem, you might want to ignore these files since the code is
47
+ # intended to run in multiple environments; otherwise, check them in:
48
+ # Gemfile.lock
49
+ # .ruby-version
50
+ # .ruby-gemset
51
+
52
+ # unless supporting rvm < 1.11.0 or doing something fancy, ignore this:
53
+ .rvmrc
54
+
55
+ # Used by RuboCop. Remote config files pulled in from inherit_from directive.
56
+ # .rubocop-https?--*
data/.rubocop.yml ADDED
@@ -0,0 +1,22 @@
1
+ Metrics/AbcSize:
2
+ Max: 18
3
+
4
+ # Configuration parameters: AllowURI, URISchemes.
5
+ Metrics/LineLength:
6
+ Max: 110
7
+ AllowURI: true
8
+
9
+ Style/SymbolArray:
10
+ MinSize: 3
11
+
12
+ Metrics/MethodLength:
13
+ Max: 15
14
+
15
+ Naming/UncommunicativeMethodParamName:
16
+ MinNameLength: 1
17
+ AllowNamesEndingInNumbers: false
18
+
19
+ # Near-duplicate of a file from an external package, want to keep changes minimal
20
+ AllCops:
21
+ Exclude:
22
+ - 'lib/extensions/httparty/hash_conversions.rb'
data/.simplecov ADDED
@@ -0,0 +1,4 @@
1
+ SimpleCov.start do
2
+ add_filter "test"
3
+ command_name "Minitest"
4
+ end
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Specify your gem's dependencies in razorpay-ruby.gemspec
4
+ gemspec
data/Gemfile.lock ADDED
@@ -0,0 +1,11 @@
1
+ GEM
2
+ remote: https://rubygems.org/
3
+ specs:
4
+
5
+ PLATFORMS
6
+ ruby
7
+
8
+ DEPENDENCIES
9
+
10
+ BUNDLED WITH
11
+ 1.17.2
data/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2022 WA Easy API
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/README.md ADDED
@@ -0,0 +1,53 @@
1
+ # WA Easy API Ruby Bindings
2
+
3
+ [![License](http://img.shields.io/:license-mit-blue.svg)](http://doge.mit-license.org)
4
+
5
+ This is the base ruby gem for interacting with the WA Easy API. This is primarily meant for users who wish to perform interactions with the WA Easy API programatically.
6
+
7
+ ## Installation
8
+
9
+ Add this line to your application's Gemfile:
10
+
11
+ ```rb
12
+ gem 'waeasyapi'
13
+ ```
14
+
15
+ And then execute:
16
+
17
+ $ bundle
18
+
19
+ Or install it yourself as:
20
+
21
+ $ gem install waeasyapi
22
+
23
+ ## Requirements
24
+
25
+ Ruby 2.6.8 or later
26
+ ## Usage
27
+
28
+ Remember to `require 'waeasyapi'` before anything else.
29
+
30
+ Next, you need to setup your key and secret using the following:
31
+
32
+ ```rb
33
+ WAEasyAPI.setup('key_id', 'key_secret')
34
+ ```
35
+
36
+ You can set customer headers for your requests using the following:
37
+ ```rb
38
+ WAEasyAPI.headers = {"CUSTOM_APP_HEADER" => "CUSTOM_VALUE"}
39
+ ```
40
+
41
+ You can find your API keys at <https://app.waeasyapi.com/>.
42
+
43
+ If you are using rails, the right place to do this might be `config/initializers/waeasyapi.rb`.
44
+
45
+
46
+ ## Contributing
47
+
48
+ 1. Fork it ( https://github.com/waeasyapi/waeasyapi-ruby/fork )
49
+ 2. Create your feature branch (`git checkout -b my-new-feature`)
50
+ 3. Run `rake` and `rubocop` after making your changes to make sure you didn't break anything
51
+ 4. Commit your changes (`git commit -am 'Add some feature'`)
52
+ 5. Push to the branch (`git push origin my-new-feature`)
53
+ 6. Create a new Pull Request
data/Rakefile ADDED
@@ -0,0 +1,14 @@
1
+ require 'rake/testtask'
2
+
3
+ # Don't try to run rubocop in 1.9.3
4
+ require 'rubocop/rake_task' if RUBY_VERSION >= '2.1.0'
5
+
6
+
7
+ desc 'Run tests'
8
+ task default: [:test]
9
+
10
+ desc 'Run rubocop'
11
+ task :rubocop do
12
+ RuboCop::RakeTask.new
13
+ end
14
+