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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7f5dec9fdb53e29e9d8cd8a8265faad3fbb11d2aa01e29ace84f630400379f2c
4
- data.tar.gz: ce6ac3c9a93e85d5839da4dd757490ae4b0dab9026ad46acd4dfff7643db3b66
3
+ metadata.gz: 2acacf788da12d40f7f2b20ae9042e0adf416bb17475c20cd309a737120143fa
4
+ data.tar.gz: ed97fb19a2935a38bc26c29c86be548c1d33a08c33081dfc336e88af83957a36
5
5
  SHA512:
6
- metadata.gz: b4c4ea41cd2857f19736af2e337558f5a250bdcc426998888c5b7f6e17eb449fffd0b7ae640b315b9b3c10f20942acec33676f57e46227020c2aaff4539e4ed3
7
- data.tar.gz: 015757b7e6d7991c95d7f5a0c91391e06713bdd1bd5bef600e06d5fccdf3ddc922c45300e684bc1052c7a8e5bd0e45e2a1f72c78508c30e52b2e22e81d3b5650
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 coffee icon -->
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) | `"Buy me a coffee"` | String |
149
- | `icon` | Button icon | `:coffee` | `:coffee`, `:heart`, `:star`, `:dollar`, `:jar`, or custom SVG |
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
- - `:coffee` - Coffee cup (default)
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] || "Buy me a coffee"
10
- icon = options[:icon] || :coffee
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 = :coffee
16
+ @icon = :jar
17
17
  @theme = :light
18
- @button_text = "Buy me a coffee"
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 = [
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module RailsTipjar
4
- VERSION = "1.0.0"
4
+ VERSION = "1.0.1"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails_tipjar
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Justin Paulson