rails_tipjar 1.0.0 → 1.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 +4 -4
- data/README.md +6 -5
- data/app/helpers/tipjar_helper.rb +2 -2
- data/lib/rails_tipjar/configuration.rb +2 -2
- data/lib/rails_tipjar/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2acacf788da12d40f7f2b20ae9042e0adf416bb17475c20cd309a737120143fa
|
4
|
+
data.tar.gz: ed97fb19a2935a38bc26c29c86be548c1d33a08c33081dfc336e88af83957a36
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 604ce459a6e71e0b16aef786e0c146b01c3fe4805dbf3fbf880e8df105168520b8fe967dbc8dd195a6efd16622cf0be56c9edee722073e9fb88873b293f5563c
|
7
|
+
data.tar.gz: 9adf68a419979b2d4e5e8a96d3ec92a0cf4135e074cf4c03c6d17879d056cbd08861d12b5e1561a5436c7af5d4f7d668279b3976684f65fb6e4fa5f117a67b20
|
data/README.md
CHANGED
@@ -73,7 +73,7 @@ No configuration file needed! Simply use the helper in your views with all optio
|
|
73
73
|
Add directly to any view:
|
74
74
|
|
75
75
|
```erb
|
76
|
-
<!-- Basic usage with default
|
76
|
+
<!-- Basic usage with default jar icon -->
|
77
77
|
<%= tip_jar payment_link: 'https://your.payment.link' %>
|
78
78
|
|
79
79
|
<!-- With all customization options -->
|
@@ -145,8 +145,8 @@ All configuration is done directly in the view helper:
|
|
145
145
|
|--------|-------------|---------|--------|
|
146
146
|
| `payment_link` | Single payment URL for simple mode | - | URL string |
|
147
147
|
| `payment_links` | Hash of payment URLs for modal mode | - | Hash with keys like `:small`, `:medium`, `:large` |
|
148
|
-
| `message` / `button_text` | Text shown on button (on hover) | `"
|
149
|
-
| `icon` | Button icon | `:
|
148
|
+
| `message` / `button_text` | Text shown on button (on hover) | `"Tip Jar"` | String |
|
149
|
+
| `icon` | Button icon | `:jar` | `:coffee`, `:heart`, `:star`, `:dollar`, `:jar`, or custom SVG |
|
150
150
|
| `position` | Button position on screen | `:bottom_right` | `:bottom_right`, `:bottom_left`, `:top_right`, `:top_left` |
|
151
151
|
| `color` | Button background color | `"#3b82f6"` | Hex color string |
|
152
152
|
| `text_color` | Button text color | `"#ffffff"` | Hex color string |
|
@@ -268,16 +268,17 @@ gem 'rails_tipjar', path: '../path/to/rails_tipjar'
|
|
268
268
|
## Icon Options
|
269
269
|
|
270
270
|
The gem includes 5 built-in icons:
|
271
|
-
- `:
|
271
|
+
- `:jar` - Tip jar with animated coin (default)
|
272
|
+
- `:coffee` - Coffee cup
|
272
273
|
- `:heart` - Heart shape
|
273
274
|
- `:star` - Star
|
274
275
|
- `:dollar` - Dollar sign in circle
|
275
|
-
- `:jar` - Tip jar with animated coin
|
276
276
|
|
277
277
|
You can also provide a custom SVG string for complete customization.
|
278
278
|
|
279
279
|
## Version History
|
280
280
|
|
281
|
+
- **v1.0.1** - Changed default button text to "Tip Jar" and default icon to jar
|
281
282
|
- **v1.0.0** - Stable release with all configuration in view helper options (no initializer needed!)
|
282
283
|
- **v0.3.0** - Made payment provider agnostic (works with any payment link service)
|
283
284
|
- **v0.2.2** - Added color customization and pulse animation control
|
@@ -6,8 +6,8 @@ module TipjarHelper
|
|
6
6
|
use_modal = options[:use_modal] || false
|
7
7
|
|
8
8
|
# Button configuration
|
9
|
-
message = options[:message] || options[:button_text] || "
|
10
|
-
icon = options[:icon] || :
|
9
|
+
message = options[:message] || options[:button_text] || "Tip Jar"
|
10
|
+
icon = options[:icon] || :jar
|
11
11
|
position = options[:position] || :bottom_right
|
12
12
|
color = options[:color] || "#3b82f6"
|
13
13
|
text_color = options[:text_color] || "#ffffff"
|
@@ -13,9 +13,9 @@ module RailsTipjar
|
|
13
13
|
# Legacy modal mode
|
14
14
|
@payment_links = {}
|
15
15
|
@position = :bottom_right
|
16
|
-
@icon = :
|
16
|
+
@icon = :jar
|
17
17
|
@theme = :light
|
18
|
-
@button_text = "
|
18
|
+
@button_text = "Tip Jar"
|
19
19
|
@modal_title = "Support my work"
|
20
20
|
@modal_description = "Your support helps me continue creating and maintaining this project."
|
21
21
|
@custom_amounts = [
|
data/lib/rails_tipjar/version.rb
CHANGED