product_tours 0.1.0

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.
Files changed (66) hide show
  1. checksums.yaml +7 -0
  2. data/CHANGELOG.md +41 -0
  3. data/MIT-LICENSE +19 -0
  4. data/README.md +209 -0
  5. data/Rakefile +11 -0
  6. data/app/controllers/product_tours/application_controller.rb +68 -0
  7. data/app/controllers/product_tours/media_controller.rb +14 -0
  8. data/app/controllers/product_tours/posts_controller.rb +230 -0
  9. data/app/controllers/product_tours/tours_controller.rb +69 -0
  10. data/app/controllers/product_tours/widgets_controller.rb +28 -0
  11. data/app/helpers/product_tours/posts_helper.rb +19 -0
  12. data/app/helpers/product_tours/widget_helper.rb +14 -0
  13. data/app/models/product_tours/application_record.rb +7 -0
  14. data/app/models/product_tours/post.rb +128 -0
  15. data/app/views/layouts/product_tours/application.html.erb +20 -0
  16. data/app/views/product_tours/posts/_form.html.erb +177 -0
  17. data/app/views/product_tours/posts/_post_panel.html.erb +111 -0
  18. data/app/views/product_tours/posts/edit.html.erb +5 -0
  19. data/app/views/product_tours/posts/index.html.erb +92 -0
  20. data/app/views/product_tours/posts/new.html.erb +5 -0
  21. data/app/views/product_tours/posts/show.html.erb +5 -0
  22. data/config/locales/product_tours.ar.yml +11 -0
  23. data/config/locales/product_tours.bg.yml +11 -0
  24. data/config/locales/product_tours.bn.yml +11 -0
  25. data/config/locales/product_tours.de.yml +11 -0
  26. data/config/locales/product_tours.el.yml +11 -0
  27. data/config/locales/product_tours.en.yml +11 -0
  28. data/config/locales/product_tours.es.yml +11 -0
  29. data/config/locales/product_tours.fr.yml +11 -0
  30. data/config/locales/product_tours.hi.yml +11 -0
  31. data/config/locales/product_tours.hr.yml +11 -0
  32. data/config/locales/product_tours.id.yml +11 -0
  33. data/config/locales/product_tours.it.yml +11 -0
  34. data/config/locales/product_tours.ja.yml +11 -0
  35. data/config/locales/product_tours.ko.yml +11 -0
  36. data/config/locales/product_tours.lb.yml +11 -0
  37. data/config/locales/product_tours.nl.yml +11 -0
  38. data/config/locales/product_tours.pl.yml +11 -0
  39. data/config/locales/product_tours.pt.yml +11 -0
  40. data/config/locales/product_tours.ro.yml +11 -0
  41. data/config/locales/product_tours.ru.yml +11 -0
  42. data/config/locales/product_tours.th.yml +11 -0
  43. data/config/locales/product_tours.tr.yml +11 -0
  44. data/config/locales/product_tours.uk.yml +11 -0
  45. data/config/locales/product_tours.ur.yml +11 -0
  46. data/config/locales/product_tours.vi.yml +11 -0
  47. data/config/locales/product_tours.zh-CN.yml +11 -0
  48. data/config/routes.rb +23 -0
  49. data/lib/generators/product_tours/install/install_generator.rb +44 -0
  50. data/lib/generators/product_tours/install/templates/create_product_tours_posts.rb.tt +29 -0
  51. data/lib/generators/product_tours/install/templates/initializer.rb +21 -0
  52. data/lib/product_tours/configuration.rb +18 -0
  53. data/lib/product_tours/content_security_policy.rb +24 -0
  54. data/lib/product_tours/dashboard.css +196 -0
  55. data/lib/product_tours/dashboard.js +229 -0
  56. data/lib/product_tours/engine.rb +28 -0
  57. data/lib/product_tours/errors.rb +14 -0
  58. data/lib/product_tours/seeds.rb +147 -0
  59. data/lib/product_tours/version.rb +5 -0
  60. data/lib/product_tours/video_metadata.rb +60 -0
  61. data/lib/product_tours/video_resolver.rb +129 -0
  62. data/lib/product_tours/widget.js +359 -0
  63. data/lib/product_tours/widget.rb +59 -0
  64. data/lib/product_tours.rb +35 -0
  65. data/lib/tasks/product_tours_tasks.rake +12 -0
  66. metadata +131 -0
metadata ADDED
@@ -0,0 +1,131 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: product_tours
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - Yaroslav Shmarov
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2026-08-03 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: rails
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: '7.1'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ">="
25
+ - !ruby/object:Gem::Version
26
+ version: '7.1'
27
+ description: |
28
+ A mountable Rails engine for publishing in-app product tutorials, linking
29
+ them into lightweight walkthroughs, and opening them from host-owned buttons
30
+ or links. Content, videos, and admin UI stay in your Rails application;
31
+ lifecycle activity is exposed through ActiveSupport::Notifications for the
32
+ analytics system you already use.
33
+ email:
34
+ - yaroslav.shmarov@clickfunnels.com
35
+ executables: []
36
+ extensions: []
37
+ extra_rdoc_files: []
38
+ files:
39
+ - CHANGELOG.md
40
+ - MIT-LICENSE
41
+ - README.md
42
+ - Rakefile
43
+ - app/controllers/product_tours/application_controller.rb
44
+ - app/controllers/product_tours/media_controller.rb
45
+ - app/controllers/product_tours/posts_controller.rb
46
+ - app/controllers/product_tours/tours_controller.rb
47
+ - app/controllers/product_tours/widgets_controller.rb
48
+ - app/helpers/product_tours/posts_helper.rb
49
+ - app/helpers/product_tours/widget_helper.rb
50
+ - app/models/product_tours/application_record.rb
51
+ - app/models/product_tours/post.rb
52
+ - app/views/layouts/product_tours/application.html.erb
53
+ - app/views/product_tours/posts/_form.html.erb
54
+ - app/views/product_tours/posts/_post_panel.html.erb
55
+ - app/views/product_tours/posts/edit.html.erb
56
+ - app/views/product_tours/posts/index.html.erb
57
+ - app/views/product_tours/posts/new.html.erb
58
+ - app/views/product_tours/posts/show.html.erb
59
+ - config/locales/product_tours.ar.yml
60
+ - config/locales/product_tours.bg.yml
61
+ - config/locales/product_tours.bn.yml
62
+ - config/locales/product_tours.de.yml
63
+ - config/locales/product_tours.el.yml
64
+ - config/locales/product_tours.en.yml
65
+ - config/locales/product_tours.es.yml
66
+ - config/locales/product_tours.fr.yml
67
+ - config/locales/product_tours.hi.yml
68
+ - config/locales/product_tours.hr.yml
69
+ - config/locales/product_tours.id.yml
70
+ - config/locales/product_tours.it.yml
71
+ - config/locales/product_tours.ja.yml
72
+ - config/locales/product_tours.ko.yml
73
+ - config/locales/product_tours.lb.yml
74
+ - config/locales/product_tours.nl.yml
75
+ - config/locales/product_tours.pl.yml
76
+ - config/locales/product_tours.pt.yml
77
+ - config/locales/product_tours.ro.yml
78
+ - config/locales/product_tours.ru.yml
79
+ - config/locales/product_tours.th.yml
80
+ - config/locales/product_tours.tr.yml
81
+ - config/locales/product_tours.uk.yml
82
+ - config/locales/product_tours.ur.yml
83
+ - config/locales/product_tours.vi.yml
84
+ - config/locales/product_tours.zh-CN.yml
85
+ - config/routes.rb
86
+ - lib/generators/product_tours/install/install_generator.rb
87
+ - lib/generators/product_tours/install/templates/create_product_tours_posts.rb.tt
88
+ - lib/generators/product_tours/install/templates/initializer.rb
89
+ - lib/product_tours.rb
90
+ - lib/product_tours/configuration.rb
91
+ - lib/product_tours/content_security_policy.rb
92
+ - lib/product_tours/dashboard.css
93
+ - lib/product_tours/dashboard.js
94
+ - lib/product_tours/engine.rb
95
+ - lib/product_tours/errors.rb
96
+ - lib/product_tours/seeds.rb
97
+ - lib/product_tours/version.rb
98
+ - lib/product_tours/video_metadata.rb
99
+ - lib/product_tours/video_resolver.rb
100
+ - lib/product_tours/widget.js
101
+ - lib/product_tours/widget.rb
102
+ - lib/tasks/product_tours_tasks.rake
103
+ homepage: https://github.com/yshmarov/product_tours
104
+ licenses:
105
+ - MIT
106
+ metadata:
107
+ homepage_uri: https://github.com/yshmarov/product_tours
108
+ source_code_uri: https://github.com/yshmarov/product_tours/tree/main
109
+ changelog_uri: https://github.com/yshmarov/product_tours/blob/main/CHANGELOG.md
110
+ bug_tracker_uri: https://github.com/yshmarov/product_tours/issues
111
+ rubygems_mfa_required: 'true'
112
+ post_install_message:
113
+ rdoc_options: []
114
+ require_paths:
115
+ - lib
116
+ required_ruby_version: !ruby/object:Gem::Requirement
117
+ requirements:
118
+ - - ">="
119
+ - !ruby/object:Gem::Version
120
+ version: '3.2'
121
+ required_rubygems_version: !ruby/object:Gem::Requirement
122
+ requirements:
123
+ - - ">="
124
+ - !ruby/object:Gem::Version
125
+ version: '0'
126
+ requirements: []
127
+ rubygems_version: 3.5.21
128
+ signing_key:
129
+ specification_version: 4
130
+ summary: Self-hosted product tours and video tutorials for Rails apps.
131
+ test_files: []