lucid_intercom 0.7.0 → 0.7.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: 40151e3c0b77b0c04c814fdfa8a03a5c742e41d59f91decbad56707340ca2982
4
- data.tar.gz: ead12913bf87b9b27fcdc77740c82bcbc1172f8fce9db7ef9e814983c5f63137
3
+ metadata.gz: 35d8670f0d2893e7a12ea625f14b0eb9d4cee566dc5462beb02fe4ac6b3802c6
4
+ data.tar.gz: 1d95bf4ed8fdd9d19ea30716c3f7671241d940b52b2fe2d8ff8bd73264d77c16
5
5
  SHA512:
6
- metadata.gz: edf6696d6613c69a1dead35474beddf87e21650d47a595356d081c70b81e8503117e8704281c5a226d8ce18e1628b26c29f56dd8b90404dd69b4331a069eba89
7
- data.tar.gz: 4d5a29e39c4888affa6b7cc8d49881af4463732ad2735315d3344ce6882786fbe30da517d9295ab486e82e87e60f5deaa9e80dcdf96a4b41926f54e6ea7d1aff
6
+ metadata.gz: 25e21e7b0b4587b28ac8f698949e18f77dc09d9832785d27db98ea8d5930363a24a233ea15acbde72fceb1ee4123c41db6881691f47c7574086e913bc4d6b946
7
+ data.tar.gz: 50df35c058be977a23e70a06d94eebfa32c7d4efd150b5a0eddc20b5c360edd15e5f7277f449f794e8dfd8597566fabe3915c55bb1e184023b1ee755464494a2
data/README.md CHANGED
@@ -37,11 +37,17 @@ See the source code for documentation of arguments.
37
37
 
38
38
  When a user installs/uninstalls the app, or changes their plan:
39
39
 
40
- event = LucidIntercom::InstalledEvent.new(shopify_data, new_plan)
41
- event = LucidIntercom::UninstalledEvent.new(shopify_data)
42
- event = LucidIntercom::ChangedPlanEvent.new(shopify_data, new_plan)
40
+ notify = LucidIntercom::NotifyInstalled.new
43
41
 
44
- LucidIntercom::SendEvent.new.(event)
42
+ notify.(shopify_data, new_plan)
43
+
44
+ notify = LucidIntercom::NotifyUninstalled.new
45
+
46
+ notify.(shopify_data)
47
+
48
+ notify = LucidIntercom::NotifyChangedPlan.new
49
+
50
+ notify.(shopify_data, new_plan)
45
51
 
46
52
  Note that the `shopify_data` hash for uninstalled events cannot be
47
53
  read from the API (as the access token is invalid at this stage).
@@ -63,4 +69,8 @@ For partner-friendly app installs, use ‘partner’.
63
69
  ### Custom events
64
70
 
65
71
  To define a custom event, subclass `LucidIntercom::Event`. See the
66
- source code for documentation.
72
+ source code for documentation, and existing subclasses:
73
+
74
+ * `LucidIntercom::NotifyChangedPlan`
75
+ * `LucidIntercom::NotifyInstalled`
76
+ * `LucidIntercom::NotifyUninstalled`
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module LucidIntercom
4
- VERSION = '0.7.0'
4
+ VERSION = '0.7.1'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lucid_intercom
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.0
4
+ version: 0.7.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kelsey Judson