greip 1.1.0 → 1.1.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e1ec5ceaf593304d20fc41136e802b5d78739472f6665f4d301cb0d567dbf7fd
4
- data.tar.gz: bd73b3a8823cedb775717f4c656859b8cf7b0a597a92519a93d6b1f208a8a373
3
+ metadata.gz: 4bbddd021eaf8e658594c1f357074319d34322d82c25b4e9492b8f2ec9a51f15
4
+ data.tar.gz: a3ca4eee13821dbc872069fb0b39ccc2ff2d32c041a2abe2c56e22262ec8eb21
5
5
  SHA512:
6
- metadata.gz: c0a164218da50d6ff9a720d34f228fa800a59fa71dbb8b49a3cdd22163ee53cbad1794e4be9c84bbfd8634b6bcaca0b4038da2f5ce0f8d75df000c7b446c81d8
7
- data.tar.gz: a5e880d21797bac6afa31bfaba59a31fc07c212fda8a82903e4a08633a1d48d5d93b9202080da09f9c450bdc7ab9e9dde986f6143c5f89dac4a33f7d74723e9c
6
+ metadata.gz: 8ca0eb6afe3fd0a4d78c8fed60dad90c833d1f255169c778ad5d9851a0910c9389ed20a2fdcd710c40720013a0be691ef91251cd0f34f5f3370b1f528b800dc5
7
+ data.tar.gz: 22b2b21d15bd94da949bb22bff9c2ef8192e1f7e0d155456c33bd7c10c7af932e6381fa668b546c787af2c329d85c426d3ee100372997505b9cc2587905b6705
data/CODE_OF_CONDUCT.md CHANGED
@@ -10,21 +10,21 @@ We pledge to act and interact in ways that contribute to an open, welcoming, div
10
10
 
11
11
  Examples of behavior that contributes to a positive environment for our community include:
12
12
 
13
- * Demonstrating empathy and kindness toward other people
14
- * Being respectful of differing opinions, viewpoints, and experiences
15
- * Giving and gracefully accepting constructive feedback
16
- * Accepting responsibility and apologizing to those affected by our mistakes, and learning from the experience
17
- * Focusing on what is best not just for us as individuals, but for the overall community
13
+ - Demonstrating empathy and kindness toward other people
14
+ - Being respectful of differing opinions, viewpoints, and experiences
15
+ - Giving and gracefully accepting constructive feedback
16
+ - Accepting responsibility and apologizing to those affected by our mistakes, and learning from the experience
17
+ - Focusing on what is best not just for us as individuals, but for the overall community
18
18
 
19
19
  Examples of unacceptable behavior include:
20
20
 
21
- * The use of sexualized language or imagery, and sexual attention or
21
+ - The use of sexualized language or imagery, and sexual attention or
22
22
  advances of any kind
23
- * Trolling, insulting or derogatory comments, and personal or political attacks
24
- * Public or private harassment
25
- * Publishing others' private information, such as a physical or email
23
+ - Trolling, insulting or derogatory comments, and personal or political attacks
24
+ - Public or private harassment
25
+ - Publishing others' private information, such as a physical or email
26
26
  address, without their explicit permission
27
- * Other conduct which could reasonably be considered inappropriate in a
27
+ - Other conduct which could reasonably be considered inappropriate in a
28
28
  professional setting
29
29
 
30
30
  ## Enforcement Responsibilities
@@ -39,7 +39,7 @@ This Code of Conduct applies within all community spaces, and also applies when
39
39
 
40
40
  ## Enforcement
41
41
 
42
- Instances of abusive, harassing, or otherwise unacceptable behavior may be reported to the community leaders responsible for enforcement at info@gredev.io. All complaints will be reviewed and investigated promptly and fairly.
42
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be reported to the community leaders responsible for enforcement at info@greip.io. All complaints will be reviewed and investigated promptly and fairly.
43
43
 
44
44
  All community leaders are obligated to respect the privacy and security of the reporter of any incident.
45
45
 
@@ -67,7 +67,7 @@ Community leaders will follow these Community Impact Guidelines in determining t
67
67
 
68
68
  ### 4. Permanent Ban
69
69
 
70
- **Community Impact**: Demonstrating a pattern of violation of community standards, including sustained inappropriate behavior, harassment of an individual, or aggression toward or disparagement of classes of individuals.
70
+ **Community Impact**: Demonstrating a pattern of violation of community standards, including sustained inappropriate behavior, harassment of an individual, or aggression toward or disparagement of classes of individuals.
71
71
 
72
72
  **Consequence**: A permanent ban from any sort of public interaction within the community.
73
73
 
data/README.md CHANGED
@@ -49,7 +49,7 @@ Here's how you use the methods:
49
49
  require 'greip'
50
50
 
51
51
  access_token = 'your-api-key-goes-here'
52
- handler = greip.create(access_token)
52
+ handler = Greip.create(access_token)
53
53
  data = handler.lookup({ ip: "1.1.1.1", params: ["security", "timezone", "currency"], lang: "EN", mode: "live" })
54
54
 
55
55
  puts data
@@ -62,7 +62,7 @@ puts data
62
62
  require 'greip'
63
63
 
64
64
  access_token = 'your-api-key-goes-here'
65
- handler = greip.create(access_token)
65
+ handler = Greip.create(access_token)
66
66
 
67
67
  data = handler.bulk_lookup({ ips: ["1.1.1.1", "2.2.2.2"], params: ["security", "timezone", "currency"], lang: "EN", mode: "live" })
68
68
 
@@ -75,7 +75,7 @@ puts data
75
75
  require 'greip'
76
76
 
77
77
  access_token = 'your-api-key-goes-here'
78
- handler = greip.create(access_token)
78
+ handler = Greip.create(access_token)
79
79
 
80
80
  data = handler.asn({ asn: "AS01", mode: "live" })
81
81
 
@@ -88,7 +88,7 @@ puts data
88
88
  require 'greip'
89
89
 
90
90
  access_token = 'your-api-key-goes-here'
91
- handler = greip.create(access_token)
91
+ handler = Greip.create(access_token)
92
92
 
93
93
  data = handler.profanity({ text: "This is just a normal text", lang: "EN", mode: "live" })
94
94
 
@@ -101,7 +101,7 @@ puts data
101
101
  require 'greip'
102
102
 
103
103
  access_token = 'your-api-key-goes-here'
104
- handler = greip.create(access_token)
104
+ handler = Greip.create(access_token)
105
105
 
106
106
  data = handler.country({ countryCode: "PS", params: ["timezone", "currency"], lang: "EN", mode: "live" })
107
107
 
@@ -114,7 +114,7 @@ puts data
114
114
  require 'greip'
115
115
 
116
116
  access_token = 'your-api-key-goes-here'
117
- handler = greip.create(access_token)
117
+ handler = Greip.create(access_token)
118
118
 
119
119
  data = handler.email_validation({ email: "name@domain.com", mode: "live" })
120
120
 
@@ -127,7 +127,7 @@ puts data
127
127
  require 'greip'
128
128
 
129
129
  access_token = 'your-api-key-goes-here'
130
- handler = greip.create(access_token)
130
+ handler = Greip.create(access_token)
131
131
 
132
132
  data = handler.phone_validation({ phone: "1234567890", countryCode: "TR", mode: "live" })
133
133
 
@@ -140,7 +140,7 @@ puts data
140
140
  require 'greip'
141
141
 
142
142
  access_token = 'your-api-key-goes-here'
143
- handler = greip.create(access_token)
143
+ handler = Greip.create(access_token)
144
144
 
145
145
  payload = {
146
146
  action: "purchase",
@@ -215,7 +215,7 @@ puts data
215
215
  require 'greip'
216
216
 
217
217
  access_token = 'your-api-key-goes-here'
218
- handler = greip.create(access_token)
218
+ handler = Greip.create(access_token)
219
219
 
220
220
  data = handler.iban_validation({ iban: "BY86AKBB10100000002966000000" })
221
221
 
data/lib/greip/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Greip
4
- VERSION = "1.1.0"
4
+ VERSION = "1.1.1"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: greip
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Greip Team
@@ -109,11 +109,11 @@ files:
109
109
  - lib/greip.rb
110
110
  - lib/greip/constants.rb
111
111
  - lib/greip/error_messages.rb
112
- - lib/greip/variables.rb
113
112
  - lib/greip/version.rb
114
113
  - sig/greip.rbs
115
114
  homepage: https://greip.io/
116
- licenses: []
115
+ licenses:
116
+ - Apache-2.0
117
117
  metadata:
118
118
  homepage_uri: https://greip.io/
119
119
  source_code_uri: https://github.com/Greipio/ruby
@@ -1,9 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- # Greip module variables
4
- module Greip
5
- BASE_URL = "https://gregeoip.com"
6
-
7
- AVAILABLE_LANGUAGES = %w[EN AR DE FR ES JA ZH RU].freeze
8
- AVAILABLE_GEOIP_PARAMS = %w[location security timezone currency device].freeze
9
- end