catpop 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.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: ac4a2b937c6ad0748ffda79d74217e968445cc989ec72ec467a730a0fd070418
4
+ data.tar.gz: b322365b7050e4887c14a4e015f3eeb431f50652f3dc078da8c7b9fc24338733
5
+ SHA512:
6
+ metadata.gz: 27535272ad025999b112de84cbb2a6af7bcf01c3e3091eec25407eaf0bdd6b4bba2471c069ef392f2c6d462a273fd9b1ba46b26327645cc6025c46a58168f197
7
+ data.tar.gz: '08548073d87ad4bdfe908b02c72757564d973d60b85463c35b6195bd2cffaa70d53433705e9e8943653b1406481d2a8f01c951fafb4cae4bef3a3901c383f6dd'
@@ -0,0 +1,7 @@
1
+ module Catpop
2
+ module PopupHelper
3
+ def catpop_script_tag
4
+ javascript_include_tag 'catpop.js'
5
+ end
6
+ end
7
+ end
@@ -0,0 +1,17 @@
1
+ require "catpop"
2
+ require "rails"
3
+
4
+ module Catpop
5
+ class Railtie < Rails::Railtie
6
+ initializer "catpop.view_helpers" do
7
+ ActiveSupport.on_load(:action_view) do
8
+ include Catpop::PopupHelper
9
+ end
10
+ end
11
+
12
+ initializer "catpop.assets" do |app|
13
+ app.config.assets.paths << File.expand_path('../assets/javascripts', __dir__)
14
+ app.config.assets.precompile += %w(catpop.js)
15
+ end
16
+ end
17
+ end
@@ -0,0 +1,5 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Catpop
4
+ VERSION = "0.1.0"
5
+ end
data/lib/catpop.rb ADDED
@@ -0,0 +1,7 @@
1
+ # frozen_string_literal: true
2
+ require "catpop/version"
3
+ require "catpop/railtie"
4
+ require "catpop/popup_helper"
5
+
6
+ module Catpop
7
+ end
metadata ADDED
@@ -0,0 +1,53 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: catpop
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - tmasuyama1114
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2024-10-04 00:00:00.000000000 Z
12
+ dependencies: []
13
+ description: Catpop is a gem that provides a random cat emoji popup for Rails applications.
14
+ The emoji appears at a random position on the screen and disappears after a few
15
+ seconds.
16
+ email:
17
+ - tmasuyama1114@gmail.com
18
+ executables: []
19
+ extensions: []
20
+ extra_rdoc_files: []
21
+ files:
22
+ - lib/catpop.rb
23
+ - lib/catpop/popup_helper.rb
24
+ - lib/catpop/railtie.rb
25
+ - lib/catpop/version.rb
26
+ homepage: https://github.com/tmasuyama1114/catpop
27
+ licenses:
28
+ - MIT
29
+ metadata:
30
+ allowed_push_host: https://rubygems.org
31
+ homepage_uri: https://github.com/tmasuyama1114/catpop
32
+ source_code_uri: https://github.com/tmasuyama1114/catpop
33
+ changelog_uri: https://github.com/tmasuyama1114/catpop/blob/main/CHANGELOG.md
34
+ post_install_message:
35
+ rdoc_options: []
36
+ require_paths:
37
+ - lib
38
+ required_ruby_version: !ruby/object:Gem::Requirement
39
+ requirements:
40
+ - - ">="
41
+ - !ruby/object:Gem::Version
42
+ version: 2.7.8
43
+ required_rubygems_version: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ">="
46
+ - !ruby/object:Gem::Version
47
+ version: '0'
48
+ requirements: []
49
+ rubygems_version: 3.3.7
50
+ signing_key:
51
+ specification_version: 4
52
+ summary: A gem that displays a random cat emoji popup on the page at a fixed position.
53
+ test_files: []