refer 0.5.1 → 0.5.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/lib/refer/version.rb +1 -1
- data/lib/refer.rb +1 -0
- metadata +3 -3
- /data/{app/controllers/concerns → lib}/refer/controller.rb +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fe5b190436ed75e3b12069591ee8f8342cee2fdfbfe70e2babeb46b5d0fdac06
|
4
|
+
data.tar.gz: fcee40d122046e1d10bb971c13dd8bf545d2e451420b9491b2bd491df177244b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bfd83cbe5bd79a76bb35b04aa1e2a6b6a142014eb1a8d1dd345d2235202a425efb41a82aff46b05d6dec906f63cc9f1220338714144909869a0563046e62ea2e
|
7
|
+
data.tar.gz: 2fbbf930f66c5e68b629eb8d5153e10e00766acc1e9ada8ba09d201a0127fb447f2c95bc228062fc5d422c67ed76e9d62f34a7c20a18d3c7c6da1c538e08fa4c
|
data/README.md
CHANGED
@@ -48,7 +48,7 @@ user.referral_codes.create(code: "chris")
|
|
48
48
|
To customize the referral code generator:
|
49
49
|
|
50
50
|
```ruby
|
51
|
-
Refer.code_generator = ->(referrer) { [id, SecureRandom.alphanumeric(8)].join("-") }
|
51
|
+
Refer.code_generator = ->(referrer) { [referrer.id, SecureRandom.alphanumeric(8)].join("-") }
|
52
52
|
#=> generates codes like "1-7frb5fUw"
|
53
53
|
```
|
54
54
|
|
data/lib/refer/version.rb
CHANGED
data/lib/refer.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: refer
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Chris Oliver
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-09-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -34,7 +34,6 @@ files:
|
|
34
34
|
- MIT-LICENSE
|
35
35
|
- README.md
|
36
36
|
- Rakefile
|
37
|
-
- app/controllers/concerns/refer/controller.rb
|
38
37
|
- app/models/refer/application_record.rb
|
39
38
|
- app/models/refer/referral.rb
|
40
39
|
- app/models/refer/referral_code.rb
|
@@ -48,6 +47,7 @@ files:
|
|
48
47
|
- lib/generators/refer/model/USAGE
|
49
48
|
- lib/generators/refer/model/model_generator.rb
|
50
49
|
- lib/refer.rb
|
50
|
+
- lib/refer/controller.rb
|
51
51
|
- lib/refer/engine.rb
|
52
52
|
- lib/refer/has_referrals.rb
|
53
53
|
- lib/refer/model.rb
|
File without changes
|