turbo_power 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 2100e6501a16f8b18459a8cb2072e8d9c8f0fda27363a9185275886b4f9e102c
4
+ data.tar.gz: 3bd04cb90cc78d23a481240217403f0aea950fca60e83fb800093a68938468bc
5
+ SHA512:
6
+ metadata.gz: b05a8b3f4423f0cf19acc08983bdc4e9cd99586b462a971f5e889b9adbe452a3d79f4b2feba087a569f3a8533156bb62484eadddd7b0798ed2fcee6cba2b8b07
7
+ data.tar.gz: 4998190fa7ef683921c6460a291ff16800bb452578f98bade23844b2500ae26ae8418d3f97da095a99523ca0d1ce722939b8247812a30a3592856f026778cb32
data/CHANGELOG.md ADDED
@@ -0,0 +1,5 @@
1
+ ## [Unreleased]
2
+
3
+ ## [0.1.0] - 2022-08-24
4
+
5
+ - Initial release
@@ -0,0 +1,84 @@
1
+ # Contributor Covenant Code of Conduct
2
+
3
+ ## Our Pledge
4
+
5
+ We as members, contributors, and leaders pledge to make participation in our community a harassment-free experience for everyone, regardless of age, body size, visible or invisible disability, ethnicity, sex characteristics, gender identity and expression, level of experience, education, socio-economic status, nationality, personal appearance, race, religion, or sexual identity and orientation.
6
+
7
+ We pledge to act and interact in ways that contribute to an open, welcoming, diverse, inclusive, and healthy community.
8
+
9
+ ## Our Standards
10
+
11
+ Examples of behavior that contributes to a positive environment for our community include:
12
+
13
+ * Demonstrating empathy and kindness toward other people
14
+ * Being respectful of differing opinions, viewpoints, and experiences
15
+ * Giving and gracefully accepting constructive feedback
16
+ * Accepting responsibility and apologizing to those affected by our mistakes, and learning from the experience
17
+ * Focusing on what is best not just for us as individuals, but for the overall community
18
+
19
+ Examples of unacceptable behavior include:
20
+
21
+ * The use of sexualized language or imagery, and sexual attention or
22
+ advances of any kind
23
+ * Trolling, insulting or derogatory comments, and personal or political attacks
24
+ * Public or private harassment
25
+ * Publishing others' private information, such as a physical or email
26
+ address, without their explicit permission
27
+ * Other conduct which could reasonably be considered inappropriate in a
28
+ professional setting
29
+
30
+ ## Enforcement Responsibilities
31
+
32
+ Community leaders are responsible for clarifying and enforcing our standards of acceptable behavior and will take appropriate and fair corrective action in response to any behavior that they deem inappropriate, threatening, offensive, or harmful.
33
+
34
+ Community leaders have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, and will communicate reasons for moderation decisions when appropriate.
35
+
36
+ ## Scope
37
+
38
+ This Code of Conduct applies within all community spaces, and also applies when an individual is officially representing the community in public spaces. Examples of representing our community include using an official e-mail address, posting via an official social media account, or acting as an appointed representative at an online or offline event.
39
+
40
+ ## Enforcement
41
+
42
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be reported to the community leaders responsible for enforcement at marco.roth@intergga.ch. All complaints will be reviewed and investigated promptly and fairly.
43
+
44
+ All community leaders are obligated to respect the privacy and security of the reporter of any incident.
45
+
46
+ ## Enforcement Guidelines
47
+
48
+ Community leaders will follow these Community Impact Guidelines in determining the consequences for any action they deem in violation of this Code of Conduct:
49
+
50
+ ### 1. Correction
51
+
52
+ **Community Impact**: Use of inappropriate language or other behavior deemed unprofessional or unwelcome in the community.
53
+
54
+ **Consequence**: A private, written warning from community leaders, providing clarity around the nature of the violation and an explanation of why the behavior was inappropriate. A public apology may be requested.
55
+
56
+ ### 2. Warning
57
+
58
+ **Community Impact**: A violation through a single incident or series of actions.
59
+
60
+ **Consequence**: A warning with consequences for continued behavior. No interaction with the people involved, including unsolicited interaction with those enforcing the Code of Conduct, for a specified period of time. This includes avoiding interactions in community spaces as well as external channels like social media. Violating these terms may lead to a temporary or permanent ban.
61
+
62
+ ### 3. Temporary Ban
63
+
64
+ **Community Impact**: A serious violation of community standards, including sustained inappropriate behavior.
65
+
66
+ **Consequence**: A temporary ban from any sort of interaction or public communication with the community for a specified period of time. No public or private interaction with the people involved, including unsolicited interaction with those enforcing the Code of Conduct, is allowed during this period. Violating these terms may lead to a permanent ban.
67
+
68
+ ### 4. Permanent Ban
69
+
70
+ **Community Impact**: Demonstrating a pattern of violation of community standards, including sustained inappropriate behavior, harassment of an individual, or aggression toward or disparagement of classes of individuals.
71
+
72
+ **Consequence**: A permanent ban from any sort of public interaction within the community.
73
+
74
+ ## Attribution
75
+
76
+ This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 2.0,
77
+ available at https://www.contributor-covenant.org/version/2/0/code_of_conduct.html.
78
+
79
+ Community Impact Guidelines were inspired by [Mozilla's code of conduct enforcement ladder](https://github.com/mozilla/diversity).
80
+
81
+ [homepage]: https://www.contributor-covenant.org
82
+
83
+ For answers to common questions about this code of conduct, see the FAQ at
84
+ https://www.contributor-covenant.org/faq. Translations are available at https://www.contributor-covenant.org/translations.
data/Gemfile ADDED
@@ -0,0 +1,13 @@
1
+ # frozen_string_literal: true
2
+
3
+ source "https://rubygems.org"
4
+
5
+ gemspec
6
+
7
+ gem "rake", "~> 13.0"
8
+
9
+ gem "minitest", "~> 5.0"
10
+
11
+ gem "rubocop", "~> 1.21"
12
+
13
+ gem "turbo-rails", github: "marcoroth/turbo-rails", branch: "custom-action-helpers"
data/Gemfile.lock ADDED
@@ -0,0 +1,111 @@
1
+ GIT
2
+ remote: https://github.com/marcoroth/turbo-rails.git
3
+ revision: ba0c355b74441778f35b58608e2baafc6c0b3c46
4
+ branch: custom-action-helpers
5
+ specs:
6
+ turbo-rails (1.1.1)
7
+ actionpack (>= 6.0.0)
8
+ activejob (>= 6.0.0)
9
+ railties (>= 6.0.0)
10
+
11
+ PATH
12
+ remote: .
13
+ specs:
14
+ turbo_power (0.1.0)
15
+ turbo-rails
16
+
17
+ GEM
18
+ remote: https://rubygems.org/
19
+ specs:
20
+ actionpack (7.0.3.1)
21
+ actionview (= 7.0.3.1)
22
+ activesupport (= 7.0.3.1)
23
+ rack (~> 2.0, >= 2.2.0)
24
+ rack-test (>= 0.6.3)
25
+ rails-dom-testing (~> 2.0)
26
+ rails-html-sanitizer (~> 1.0, >= 1.2.0)
27
+ actionview (7.0.3.1)
28
+ activesupport (= 7.0.3.1)
29
+ builder (~> 3.1)
30
+ erubi (~> 1.4)
31
+ rails-dom-testing (~> 2.0)
32
+ rails-html-sanitizer (~> 1.1, >= 1.2.0)
33
+ activejob (7.0.3.1)
34
+ activesupport (= 7.0.3.1)
35
+ globalid (>= 0.3.6)
36
+ activesupport (7.0.3.1)
37
+ concurrent-ruby (~> 1.0, >= 1.0.2)
38
+ i18n (>= 1.6, < 2)
39
+ minitest (>= 5.1)
40
+ tzinfo (~> 2.0)
41
+ ast (2.4.2)
42
+ builder (3.2.4)
43
+ concurrent-ruby (1.1.10)
44
+ crass (1.0.6)
45
+ erubi (1.11.0)
46
+ globalid (1.0.0)
47
+ activesupport (>= 5.0)
48
+ i18n (1.12.0)
49
+ concurrent-ruby (~> 1.0)
50
+ json (2.6.2)
51
+ loofah (2.18.0)
52
+ crass (~> 1.0.2)
53
+ nokogiri (>= 1.5.9)
54
+ method_source (1.0.0)
55
+ minitest (5.16.3)
56
+ nokogiri (1.13.8-x86_64-darwin)
57
+ racc (~> 1.4)
58
+ parallel (1.22.1)
59
+ parser (3.1.2.1)
60
+ ast (~> 2.4.1)
61
+ racc (1.6.0)
62
+ rack (2.2.4)
63
+ rack-test (2.0.2)
64
+ rack (>= 1.3)
65
+ rails-dom-testing (2.0.3)
66
+ activesupport (>= 4.2.0)
67
+ nokogiri (>= 1.6)
68
+ rails-html-sanitizer (1.4.3)
69
+ loofah (~> 2.3)
70
+ railties (7.0.3.1)
71
+ actionpack (= 7.0.3.1)
72
+ activesupport (= 7.0.3.1)
73
+ method_source
74
+ rake (>= 12.2)
75
+ thor (~> 1.0)
76
+ zeitwerk (~> 2.5)
77
+ rainbow (3.1.1)
78
+ rake (13.0.6)
79
+ regexp_parser (2.5.0)
80
+ rexml (3.2.5)
81
+ rubocop (1.35.1)
82
+ json (~> 2.3)
83
+ parallel (~> 1.10)
84
+ parser (>= 3.1.2.1)
85
+ rainbow (>= 2.2.2, < 4.0)
86
+ regexp_parser (>= 1.8, < 3.0)
87
+ rexml (>= 3.2.5, < 4.0)
88
+ rubocop-ast (>= 1.20.1, < 2.0)
89
+ ruby-progressbar (~> 1.7)
90
+ unicode-display_width (>= 1.4.0, < 3.0)
91
+ rubocop-ast (1.21.0)
92
+ parser (>= 3.1.1.0)
93
+ ruby-progressbar (1.11.0)
94
+ thor (1.2.1)
95
+ tzinfo (2.0.5)
96
+ concurrent-ruby (~> 1.0)
97
+ unicode-display_width (2.2.0)
98
+ zeitwerk (2.6.0)
99
+
100
+ PLATFORMS
101
+ x86_64-darwin-19
102
+
103
+ DEPENDENCIES
104
+ minitest (~> 5.0)
105
+ rake (~> 13.0)
106
+ rubocop (~> 1.21)
107
+ turbo-rails!
108
+ turbo_power!
109
+
110
+ BUNDLED WITH
111
+ 2.3.19
data/LICENSE.txt ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2022 Marco Roth
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,35 @@
1
+ # TurboPower
2
+
3
+ Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/turbo_power`. To experiment with that code, run `bin/console` for an interactive prompt.
4
+
5
+ ## Installation
6
+
7
+ Install the gem and add to the application's Gemfile by executing:
8
+
9
+ $ bundle add turbo_power
10
+
11
+ If bundler is not being used to manage dependencies, install the gem by executing:
12
+
13
+ $ gem install turbo_power
14
+
15
+ ## Usage
16
+
17
+ TODO: Write usage instructions here
18
+
19
+ ## Development
20
+
21
+ After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake test` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
22
+
23
+ To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and the created tag, and push the `.gem` file to [rubygems.org](https://rubygems.org).
24
+
25
+ ## Contributing
26
+
27
+ Bug reports and pull requests are welcome on GitHub at https://github.com/marcoroth/turbo_power. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [code of conduct](https://github.com/marcoroth/turbo_power/blob/master/CODE_OF_CONDUCT.md).
28
+
29
+ ## License
30
+
31
+ The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
32
+
33
+ ## Code of Conduct
34
+
35
+ Everyone interacting in the TurboPower project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/marcoroth/turbo_power/blob/master/CODE_OF_CONDUCT.md).
data/Rakefile ADDED
@@ -0,0 +1,16 @@
1
+ # frozen_string_literal: true
2
+
3
+ require "bundler/gem_tasks"
4
+ require "rake/testtask"
5
+
6
+ Rake::TestTask.new(:test) do |t|
7
+ t.libs << "test"
8
+ t.libs << "lib"
9
+ t.test_files = FileList["test/**/test_*.rb"]
10
+ end
11
+
12
+ require "rubocop/rake_task"
13
+
14
+ RuboCop::RakeTask.new
15
+
16
+ task default: %i[test rubocop]
@@ -0,0 +1,11 @@
1
+ require "turbo-rails"
2
+
3
+ module TurboPower
4
+ module Streams
5
+ module ActionHelper
6
+ include TurboPower::StreamHelper
7
+ end
8
+ end
9
+ end
10
+
11
+ Turbo::Streams::TagBuilder.prepend(TurboPower::StreamHelper)
data/bin/console ADDED
@@ -0,0 +1,8 @@
1
+ #!/usr/bin/env ruby
2
+ # frozen_string_literal: true
3
+
4
+ require "bundler/setup"
5
+ require "turbo_power"
6
+
7
+ require "irb"
8
+ IRB.start(__FILE__)
data/bin/setup ADDED
@@ -0,0 +1,6 @@
1
+ #!/usr/bin/env bash
2
+ set -euo pipefail
3
+ IFS=$'\n\t'
4
+ set -vx
5
+
6
+ bundle install
@@ -0,0 +1,6 @@
1
+ require "rails/engine"
2
+
3
+ module TurboPower
4
+ class Engine < Rails::Engine
5
+ end
6
+ end
@@ -0,0 +1,188 @@
1
+ require "turbo-rails"
2
+
3
+ module TurboPower
4
+ module StreamHelper
5
+
6
+ # DOM Mutations
7
+
8
+ def graft(target, parent, **attributes)
9
+ action_all :graft, targets: target, attributes: attributes.merge(parent: parent)
10
+ end
11
+
12
+ def inner_html(target, html = nil, **attributes, &block)
13
+ action_all :inner_html, targets: target, content: html, attributes: attributes, &block
14
+ end
15
+
16
+ def insert_adjacent_html(target, html = nil, position: 'beforeend', **attributes, &block)
17
+ action_all :insert_adjacent_html, targets: target, content: html, attributes: attributes.merge(position: position), &block
18
+ end
19
+
20
+ def insert_adjacent_text(target, text, position: 'beforebegin', **attributes)
21
+ action_all :insert_adjacent_text, targets: target, content: "", attributes: attributes.merge(text: text, position: position)
22
+ end
23
+
24
+ def morph(target, html = nil, **attribtues, &block)
25
+ action_all :morph, targets: target, content: html, attributes: attributes, &block
26
+ end
27
+
28
+ def outer_html(target, html = nil, **attributes, &block)
29
+ action_all :outer_html, targets: target, content: html, attributes: attributes, &block
30
+ end
31
+
32
+ def text_content(target, text, **attributes)
33
+ action_all :text_content, targets: target, attributes: attributes.merge(text: text)
34
+ end
35
+
36
+
37
+ # Element Attribute/Property Mutations
38
+
39
+
40
+ def add_css_class(target, classes, **attributes)
41
+ action_all :add_css_class, targets: target, attributes: attributes.merge(classes: classes)
42
+ end
43
+
44
+ def remove_attribute(target, attribute, **attributes)
45
+ action_all :remove_attribute, targets: target, attributes: attributes.merge(attribute: attribute)
46
+ end
47
+
48
+ def remove_css_class(target, classes, **attributes)
49
+ action_all :remove_css_class, targets: target, attributes: attributes.merge(classes: classes)
50
+ end
51
+
52
+ def set_attribute(target, attribute, value, **attributes)
53
+ action_all :set_attribute, targets: target, attributes: attributes.merge(attribute: attribute, value: value)
54
+ end
55
+
56
+ def set_dataset_attribute(target, attribute, value, **attributes)
57
+ action_all :set_dataset_attribute, targets: target, attributes: attributes.merge(attribute: attribute, value: value)
58
+ end
59
+
60
+ def set_property(target, property, value, **attributes)
61
+ action_all :set_property, targets: target, attributes: attributes.merge(property: property, value: value)
62
+ end
63
+
64
+ def set_style(target, name, value, **attributes)
65
+ action_all :set_style, targets: target, attributes: attributes.merge(name: name, value: value)
66
+ end
67
+
68
+ def set_styles(target, styles, **attributes)
69
+ action_all :set_styles, targets: target, attributes: attributes.merge(styles: styles)
70
+ end
71
+
72
+ def set_value(target, value, **attributes)
73
+ action_all :set_value, targets: target, attribtues: attributes.merge(value: value)
74
+ end
75
+
76
+
77
+ # DOM Events
78
+
79
+ def dispatch_event(target, name, detail: {}, **attributes)
80
+ action_all :dispatch_event, targets: target, attributes: attributes.merge(detail: detail)
81
+ end
82
+
83
+ def set_meta(name, content)
84
+ action :set_meta, attributes: attributes.merge(name: name, content: content)
85
+ end
86
+
87
+
88
+ # LocalStorage / SessionStorage
89
+
90
+ def clear_storage(type, **attributes)
91
+ action :clear_storage, attributes: attributes.merge(type: type)
92
+ end
93
+
94
+ def clear_local_storage(**attributes)
95
+ clear_storage("local", **attributes)
96
+ end
97
+
98
+ def clear_session_storage(**attributes)
99
+ clear_storage("session", **attributes)
100
+ end
101
+
102
+
103
+ def remove_storage_item(key, type, **attributes)
104
+ action :remove_storage_item, attributes: attributes.merge(key: key, type: type)
105
+ end
106
+
107
+ def remove_local_storage_item(key, **attributes)
108
+ remove_storage_item(key, "local", **attributes)
109
+ end
110
+
111
+ def remove_session_storage_item(key, **attributes)
112
+ remove_storage_item(key, "session", **attributes)
113
+ end
114
+
115
+
116
+ def set_storage_item(key, value, type, **attributes)
117
+ action :set_storage_item, attributes: attributes.merge(key: key, type: type, value: value)
118
+ end
119
+
120
+ def set_local_storage_item(key, value, **attributes)
121
+ set_storage_item(key, value, "local", **attributes)
122
+ end
123
+
124
+ def set_session_storage_item(key, value, **attributes)
125
+ set_storage_item(key, value, "session", **attributes)
126
+ end
127
+
128
+
129
+ # Browser Manipulations
130
+
131
+ def redirect_to(url, action_name = nil, **attributes)
132
+ action :redirect_to, attributes: attributes.merge(url: url, action: action_name)
133
+ end
134
+
135
+ def reload(**attributes)
136
+ action :relaod, attributes: attributes
137
+ end
138
+
139
+ def scroll_into_view(target, inline = "nearest")
140
+ action_all :relaod, targets: target, attributes: attributes.merge(inline: inline)
141
+ end
142
+
143
+ def set_cookie(cookie, **attributes)
144
+ action :set_cookie, attributes: attributes.merge(cookie: cookie)
145
+ end
146
+
147
+ def set_cookie_item(key, value, **attributes)
148
+ action :set_cookie, attributes: attributes.merge(key: key, value: value)
149
+ end
150
+
151
+ def set_focus(target, **attributes)
152
+ action_all :set_focus, targets: target, attributes: attributes
153
+ end
154
+
155
+
156
+ # Browser History
157
+
158
+ def history_go(delta, **attributes)
159
+ action :history_go, attributes: attributes.merge(delta: delta)
160
+ end
161
+
162
+ def push_state(url, title = nil, state = nil, **attributes)
163
+ action :push_state, attributes: attributes.merge(url: url, title: title, state: state)
164
+ end
165
+
166
+ def replace_state(url, title = nil, state = nil, **attributes)
167
+ action :replace_state, attributes: attributes.merge(url: url, title: title, state: state)
168
+ end
169
+
170
+
171
+ # Notifications
172
+
173
+ def console_log(message, level: :log)
174
+ action :console_log, attributes: { message: message, level: level }
175
+ end
176
+
177
+ def console_table(data, columns, **attributes)
178
+ action :console_table, attributes: attributes.merge(data: data, columns: columns)
179
+ end
180
+
181
+ def notification(title, options, **attributes)
182
+ action :notification, attributes: attributes.merge(title: title, options: options)
183
+ end
184
+
185
+ end
186
+ end
187
+
188
+ Turbo::Streams::TagBuilder.prepend(TurboPower::StreamHelper)
@@ -0,0 +1,5 @@
1
+ # frozen_string_literal: true
2
+
3
+ module TurboPower
4
+ VERSION = "0.1.0"
5
+ end
@@ -0,0 +1,7 @@
1
+ # frozen_string_literal: true
2
+
3
+ require_relative "turbo_power/version"
4
+ require_relative "turbo_power/stream_helper"
5
+
6
+ module TurboPower
7
+ end
@@ -0,0 +1,6 @@
1
+ # frozen_string_literal: true
2
+
3
+ $LOAD_PATH.unshift File.expand_path("../lib", __dir__)
4
+ require "turbo_power"
5
+
6
+ require "minitest/autorun"
@@ -0,0 +1,9 @@
1
+ # frozen_string_literal: true
2
+
3
+ require "test_helper"
4
+
5
+ class TestTurboPower < Minitest::Test
6
+ def test_that_it_has_a_version_number
7
+ refute_nil ::TurboPower::VERSION
8
+ end
9
+ end
@@ -0,0 +1,32 @@
1
+ # frozen_string_literal: true
2
+
3
+ require_relative "lib/turbo_power/version"
4
+
5
+ Gem::Specification.new do |spec|
6
+ spec.name = "turbo_power"
7
+ spec.version = TurboPower::VERSION
8
+ spec.authors = ["Marco Roth"]
9
+ spec.email = ["marco.roth@hey.com"]
10
+
11
+ spec.summary = "Powerpack for Turbo"
12
+ spec.description = spec.summary
13
+ spec.homepage = "https://github.com/marcoroth/turbo_power-rails"
14
+ spec.license = "MIT"
15
+ spec.required_ruby_version = ">= 2.7.0"
16
+
17
+ spec.metadata["homepage_uri"] = spec.homepage
18
+ spec.metadata["source_code_uri"] = "https://github.com/marcoroth/turbo_power-rails"
19
+ spec.metadata["changelog_uri"] = "https://github.com/marcoroth/turbo_power-rails/blob/main/CHANGELOG.md"
20
+
21
+ spec.files = Dir[
22
+ "lib/**/*.{rb,rake}",
23
+ "app/**/*.rb",
24
+ "config/**/*.rb",
25
+ "bin/*",
26
+ "[A-Z]*"
27
+ ]
28
+
29
+ spec.test_files = Dir["test/**/*.rb"]
30
+
31
+ spec.add_dependency "turbo-rails"
32
+ end
metadata ADDED
@@ -0,0 +1,79 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: turbo_power
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - Marco Roth
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2022-08-26 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: turbo-rails
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: '0'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ">="
25
+ - !ruby/object:Gem::Version
26
+ version: '0'
27
+ description: Powerpack for Turbo
28
+ email:
29
+ - marco.roth@hey.com
30
+ executables: []
31
+ extensions: []
32
+ extra_rdoc_files: []
33
+ files:
34
+ - CHANGELOG.md
35
+ - CODE_OF_CONDUCT.md
36
+ - Gemfile
37
+ - Gemfile.lock
38
+ - LICENSE.txt
39
+ - README.md
40
+ - Rakefile
41
+ - app/helpers/turbo_power/streams/action_helper.rb
42
+ - bin/console
43
+ - bin/setup
44
+ - lib/turbo_power.rb
45
+ - lib/turbo_power/engine.rb
46
+ - lib/turbo_power/stream_helper.rb
47
+ - lib/turbo_power/version.rb
48
+ - test/test_helper.rb
49
+ - test/test_turbo_power.rb
50
+ - turbo_power.gemspec
51
+ homepage: https://github.com/marcoroth/turbo_power-rails
52
+ licenses:
53
+ - MIT
54
+ metadata:
55
+ homepage_uri: https://github.com/marcoroth/turbo_power-rails
56
+ source_code_uri: https://github.com/marcoroth/turbo_power-rails
57
+ changelog_uri: https://github.com/marcoroth/turbo_power-rails/blob/main/CHANGELOG.md
58
+ post_install_message:
59
+ rdoc_options: []
60
+ require_paths:
61
+ - lib
62
+ required_ruby_version: !ruby/object:Gem::Requirement
63
+ requirements:
64
+ - - ">="
65
+ - !ruby/object:Gem::Version
66
+ version: 2.7.0
67
+ required_rubygems_version: !ruby/object:Gem::Requirement
68
+ requirements:
69
+ - - ">="
70
+ - !ruby/object:Gem::Version
71
+ version: '0'
72
+ requirements: []
73
+ rubygems_version: 3.3.3
74
+ signing_key:
75
+ specification_version: 4
76
+ summary: Powerpack for Turbo
77
+ test_files:
78
+ - test/test_helper.rb
79
+ - test/test_turbo_power.rb