rbytes 0.0.1

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: a2018b6cc0392420457e2edd1a8ec027f55978148bbb4ea5fba8e517116dc166
4
+ data.tar.gz: de96f8614e325160cda52825af368626ba6f70769dc1323efab289a5023c47d0
5
+ SHA512:
6
+ metadata.gz: 0b1021dc75c1ae9c56732c385101d53e65f2d8500f72b37e001e685db01a4b713ec6cd9052c0d0959a7acde61902c52c487f314c580be600aec2153f60957d4b
7
+ data.tar.gz: 84e337dcbb359ac314731982e0ae8ebcb0dd1e879df4eba8fc05699a47b7bb0fef83d3485b320d9c88aa5370d0d1862bfde59bdaa9b4e3e3f77f6565aa7b6f18
data/CHANGELOG.md ADDED
@@ -0,0 +1,5 @@
1
+ # Change log
2
+
3
+ ## master
4
+
5
+ [@palkan]: https://github.com/palkan
data/LICENSE.txt ADDED
@@ -0,0 +1,22 @@
1
+ Copyright (c) 2023 Vladimir Dementyev
2
+
3
+ MIT License
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining
6
+ a copy of this software and associated documentation files (the
7
+ "Software"), to deal in the Software without restriction, including
8
+ without limitation the rights to use, copy, modify, merge, publish,
9
+ distribute, sublicense, and/or sell copies of the Software, and to
10
+ permit persons to whom the Software is furnished to do so, subject to
11
+ the following conditions:
12
+
13
+ The above copyright notice and this permission notice shall be
14
+ included in all copies or substantial portions of the Software.
15
+
16
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
19
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
20
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
21
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
22
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,61 @@
1
+ [![Gem Version](https://badge.fury.io/rb/rbytes.svg)](https://rubygems.org/gems/rbytes) [![Build](https://github.com/palkan/rbytes/workflows/Build/badge.svg)](https://github.com/palkan/rbytes/actions)
2
+
3
+ # Ruby Bytes
4
+
5
+ Ruby Bytes is a tool to build application templates for Ruby and Rails applications, which helps to:
6
+
7
+ - Build complex templates consisting of multiple independent components.
8
+ - Test templates with ease.
9
+
10
+ We also provide a GitHub action to deploy _compiled_ templates to [RailsBytes][].
11
+
12
+ Templates built with Ruby Bytes can be used with the `rails app:template` command or with a custom [Thor command](#thor-integration) (if you want to use a template in a Rails-less environment)
13
+
14
+ ## Installation
15
+
16
+ In your Gemfile:
17
+
18
+ ```ruby
19
+ # Gemfile
20
+ gem "rbytes"
21
+ ```
22
+
23
+ ## Building templates
24
+
25
+ ### Testing
26
+
27
+ ## Thor integration
28
+
29
+ We provide a custom Thor command, which can be used to apply templates (similar to `rails app:template`).
30
+
31
+ - First, make sure you have Thor installed (`gem install thor`).
32
+ - Install `rbytes:template` command by running:
33
+
34
+ ```sh
35
+ thor install https://railsbytes.com/script/zNPsdN
36
+ ```
37
+
38
+ Now you can execute Rails (and non-Rails) templates using Thor:
39
+
40
+ ```sh
41
+ # hello world template
42
+ $ thor rbytes:template https://railsbytes.com/script/x7msKX
43
+
44
+ Run template from: https://railsbytes.com/script/x7msKX
45
+ apply https://railsbytes.com/script/x7msKX
46
+ hello world from https://railsbytes.com 👋
47
+ ```
48
+
49
+ ## Contributing
50
+
51
+ Bug reports and pull requests are welcome on GitHub at [https://github.com/palkan/rbytes](https://github.com/palkan/rbytes).
52
+
53
+ ## Credits
54
+
55
+ This gem is generated via [new-gem-generator](https://github.com/palkan/new-gem-generator).
56
+
57
+ ## License
58
+
59
+ The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
60
+
61
+ [RailsBytes]: https://railsbytes.com
@@ -0,0 +1,5 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Rbytes # :nodoc:
4
+ VERSION = "0.0.1"
5
+ end
data/lib/rbytes.rb ADDED
@@ -0,0 +1,3 @@
1
+ # frozen_string_literal: true
2
+
3
+ require "rbytes/version"
metadata ADDED
@@ -0,0 +1,96 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: rbytes
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ platform: ruby
6
+ authors:
7
+ - Vladimir Dementyev
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2023-03-16 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: bundler
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: '1.15'
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ">="
25
+ - !ruby/object:Gem::Version
26
+ version: '1.15'
27
+ - !ruby/object:Gem::Dependency
28
+ name: minitest
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '5.0'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '5.0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: rake
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ">="
46
+ - !ruby/object:Gem::Version
47
+ version: '13.0'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ">="
53
+ - !ruby/object:Gem::Version
54
+ version: '13.0'
55
+ description: Ruby Bytes is a tool to build application templates for Ruby and Rails
56
+ applications
57
+ email:
58
+ - dementiev.vm@gmail.com
59
+ executables: []
60
+ extensions: []
61
+ extra_rdoc_files: []
62
+ files:
63
+ - CHANGELOG.md
64
+ - LICENSE.txt
65
+ - README.md
66
+ - lib/rbytes.rb
67
+ - lib/rbytes/version.rb
68
+ homepage: http://github.com/palkan/rbytes
69
+ licenses:
70
+ - MIT
71
+ metadata:
72
+ bug_tracker_uri: http://github.com/palkan/rbytes/issues
73
+ changelog_uri: https://github.com/palkan/rbytes/blob/master/CHANGELOG.md
74
+ documentation_uri: http://github.com/palkan/rbytes
75
+ homepage_uri: http://github.com/palkan/rbytes
76
+ source_code_uri: http://github.com/palkan/rbytes
77
+ post_install_message:
78
+ rdoc_options: []
79
+ require_paths:
80
+ - lib
81
+ required_ruby_version: !ruby/object:Gem::Requirement
82
+ requirements:
83
+ - - ">="
84
+ - !ruby/object:Gem::Version
85
+ version: '3.0'
86
+ required_rubygems_version: !ruby/object:Gem::Requirement
87
+ requirements:
88
+ - - ">="
89
+ - !ruby/object:Gem::Version
90
+ version: '0'
91
+ requirements: []
92
+ rubygems_version: 3.4.8
93
+ signing_key:
94
+ specification_version: 4
95
+ summary: Ruby Bytes is a tool to build application templates for Ruby and Rails applications
96
+ test_files: []