revirow 0.1.2 → 0.1.3

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: bd73add511621443ceb644deb1be3b596cc07155463ec3cf6297d84cd75987d3
4
- data.tar.gz: e6bf48453fef9a69c620017dd02374ccb33a50925d64607ebf7f7f89234f73ea
3
+ metadata.gz: b11db5a0914298ea819aacb7a1547f115656865cd55ef7333d640d1fe9b4aab2
4
+ data.tar.gz: 11a9af71ae8d13098638409f407e0469cc5db5fc61655e8e5bad8c62f761a177
5
5
  SHA512:
6
- metadata.gz: 85dc10cf13967dd10b1cdd5fdd85cef88ef85737be4dbcfe02ac95e30a2ef5ae0995fd7d390ff0aa639b71bde7e7051aa4c4ca0d9f9a1df6c98b6aa06ec4fbc7
7
- data.tar.gz: ebad674beccf8d8c3a4fbbd9e00563e54fa69a4869b634a823d1ead960789f448d5d7373a54112a57044cd6185abcff3c85481fb75ab0a10a2b6e898568966a8
6
+ metadata.gz: 4efde37c03482f9e883882b3679179699bc94021b911dd74626d394bb0c258cb3d0a3ef8a5dbdbc053c882b1a02172f0a3335e96939aaa31233fb75e171b007b
7
+ data.tar.gz: 0b82b836b84ab396263711614dd5c3f0f92f51167037c818ca97b5d2cca22ec3735329de2b0a01c14301910952192c4c1c84c715c1838a98b6ff6fa4bf0e8316
@@ -0,0 +1,26 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Revirow
4
+ module Generators
5
+ class InstallGenerator < Rails::Generators::Base
6
+ source_root File.expand_path("templates", __dir__)
7
+
8
+ desc "Creates a Revirow initializer file"
9
+
10
+ def copy_initializer
11
+ template "initializer.rb", "config/initializers/revirow.rb"
12
+ end
13
+
14
+ def show_readme
15
+ say ""
16
+ say "Revirow installed!", :green
17
+ say ""
18
+ say "Next steps:"
19
+ say " 1. Add REVIROW_APP_ID and REVIROW_KEY to your environment"
20
+ say " 2. Update config/initializers/revirow.rb with your customer data"
21
+ say " 3. Add <%= revirow_widget %> to your layout"
22
+ say ""
23
+ end
24
+ end
25
+ end
26
+ end
@@ -0,0 +1,16 @@
1
+ # frozen_string_literal: true
2
+
3
+ Revirow.config do |config|
4
+ # Define your customer context for the widget.
5
+ # This is called on each request to get the current customer data for JWT.
6
+ # config.customer = Proc.new {
7
+ # {
8
+ # email: Current.user&.email_address,
9
+ # id: Current.user&.id
10
+ # }
11
+ # }
12
+
13
+ # Optional: Override if not using environment variables
14
+ # config.app_id = "your_app_id"
15
+ # config.secret = "your_secret"
16
+ end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Revirow
4
- VERSION = "0.1.2"
4
+ VERSION = "0.1.3"
5
5
  end
data/revirow-0.1.2.gem ADDED
Binary file
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: revirow
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Revirow
@@ -33,6 +33,8 @@ files:
33
33
  - LICENSE.txt
34
34
  - README.md
35
35
  - Rakefile
36
+ - lib/generators/revirow/install_generator.rb
37
+ - lib/generators/revirow/templates/initializer.rb
36
38
  - lib/revirow.rb
37
39
  - lib/revirow/client.rb
38
40
  - lib/revirow/configuration.rb
@@ -44,6 +46,7 @@ files:
44
46
  - lib/revirow/widget.rb
45
47
  - revirow-0.1.0.gem
46
48
  - revirow-0.1.1.gem
49
+ - revirow-0.1.2.gem
47
50
  - sig/revirow.rbs
48
51
  homepage: https://revirow.com
49
52
  licenses: