Skip to content

Commit 179842d

Browse files
committed
rails plugin new custom_elements-rails
0 parents  commit 179842d

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

56 files changed

+929
-0
lines changed

.gitignore

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
/.bundle/
2+
/doc/
3+
/log/*.log
4+
/pkg/
5+
/tmp/
6+
/test/dummy/db/*.sqlite3
7+
/test/dummy/db/*.sqlite3-*
8+
/test/dummy/log/*.log
9+
/test/dummy/storage/
10+
/test/dummy/tmp/

Gemfile

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
source "https://rubygems.org"
2+
git_source(:github) { |repo| "https://github.com/#{repo}.git" }
3+
4+
# Specify your gem's dependencies in custom_elements-rails.gemspec.
5+
gemspec
6+
7+
gem "puma"
8+
9+
gem "sqlite3"
10+
11+
# Start debugger with binding.b [https://github.com/ruby/debug]
12+
# gem "debug", ">= 1.0.0"

MIT-LICENSE

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
Copyright Niklas Haeusele
2+
3+
Permission is hereby granted, free of charge, to any person obtaining
4+
a copy of this software and associated documentation files (the
5+
"Software"), to deal in the Software without restriction, including
6+
without limitation the rights to use, copy, modify, merge, publish,
7+
distribute, sublicense, and/or sell copies of the Software, and to
8+
permit persons to whom the Software is furnished to do so, subject to
9+
the following conditions:
10+
11+
The above copyright notice and this permission notice shall be
12+
included in all copies or substantial portions of the Software.
13+
14+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
18+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
19+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

README.md

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# CustomElements::Rails
2+
Short description and motivation.
3+
4+
## Usage
5+
How to use my plugin.
6+
7+
## Installation
8+
Add this line to your application's Gemfile:
9+
10+
```ruby
11+
gem "custom_elements-rails"
12+
```
13+
14+
And then execute:
15+
```bash
16+
$ bundle
17+
```
18+
19+
Or install it yourself as:
20+
```bash
21+
$ gem install custom_elements-rails
22+
```
23+
24+
## Contributing
25+
Contribution directions go here.
26+
27+
## License
28+
The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).

Rakefile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
require "bundler/setup"
2+
3+
require "bundler/gem_tasks"

bin/test

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#!/usr/bin/env ruby
2+
$: << File.expand_path("../test", __dir__)
3+
4+
require "bundler/setup"
5+
require "rails/plugin/test"

custom_elements-rails.gemspec

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
require_relative "lib/custom_elements/rails/version"
2+
3+
Gem::Specification.new do |spec|
4+
spec.name = "custom_elements-rails"
5+
spec.version = CustomElements::Rails::VERSION
6+
spec.authors = ["Niklas Haeusele"]
7+
spec.email = ["[email protected]"]
8+
spec.homepage = "TODO"
9+
spec.summary = "TODO: Summary of CustomElements::Rails."
10+
spec.description = "TODO: Description of CustomElements::Rails."
11+
spec.license = "MIT"
12+
13+
# Prevent pushing this gem to RubyGems.org. To allow pushes either set the "allowed_push_host"
14+
# to allow pushing to a single host or delete this section to allow pushing to any host.
15+
spec.metadata["allowed_push_host"] = "TODO: Set to 'http://mygemserver.com'"
16+
17+
spec.metadata["homepage_uri"] = spec.homepage
18+
spec.metadata["source_code_uri"] = "TODO: Put your gem's public repo URL here."
19+
spec.metadata["changelog_uri"] = "TODO: Put your gem's CHANGELOG.md URL here."
20+
21+
spec.files = Dir.chdir(File.expand_path(__dir__)) do
22+
Dir["{app,config,db,lib}/**/*", "MIT-LICENSE", "Rakefile", "README.md"]
23+
end
24+
25+
spec.add_dependency "rails", ">= 7.1.3.2"
26+
end

lib/custom_elements/rails.rb

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
require "custom_elements/rails/version"
2+
require "custom_elements/rails/railtie"
3+
4+
module CustomElements
5+
module Rails
6+
# Your code goes here...
7+
end
8+
end

lib/custom_elements/rails/railtie.rb

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
module CustomElements
2+
module Rails
3+
class Railtie < ::Rails::Railtie
4+
end
5+
end
6+
end

lib/custom_elements/rails/version.rb

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
module CustomElements
2+
module Rails
3+
VERSION = "0.1.0"
4+
end
5+
end

0 commit comments

Comments
 (0)