singer 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: 163ec71a47082776d17f44c04b900fb6937391a5d4919835c39174ca4282faad
4
+ data.tar.gz: 7985b7d520838dd18562236fa9575243f6db0fc595524ab6835d73d33c8de405
5
+ SHA512:
6
+ metadata.gz: fd50a363afd291df5aba0d86918f79ae651f416a35f91a0bd3f37a701804a7d631646ad0306ef3acdcd0eaa463d4bb80f1e5aa6c9515fe0a6e621de3a0629198
7
+ data.tar.gz: ec2cd69cf7f7ebdeeef5a94a4a7fe9514552e3315395d7c07f49a149653ecf00092e1683841f479329f1af6cd6812a2a2c82e72e818d9619cfe44b8e64be838b
data/LICENSE.txt ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2025 Emil Chludziński
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,36 @@
1
+ # Singer
2
+
3
+ Generates code from templates. Originally intended for Sinatra applications (and models etc.), highly configurable and extensible.
4
+
5
+ ## Installation
6
+
7
+ Run `gem install singer`.
8
+
9
+ ## Usage
10
+
11
+ TODO: Write usage instructions here
12
+
13
+ ## Development
14
+
15
+ ```bash
16
+ git clone git@gitlab.com:tanstaafl/singer.git
17
+ cd singer
18
+ bundle install
19
+ bundle exec rake
20
+ ```
21
+
22
+ This will run tests (Minitest) and linter (Rubocop, custom config, see `.rubocop.yml`).
23
+
24
+ Note: the repo does not force the bundle to be vendorized, but should work fine if you set `BUNDLE_PATH: "vendor"` in your `~/.bundle/config`. Hint, hint ;)
25
+
26
+ You can also run `bin/console` for an interactive prompt that will allow you to experiment.
27
+
28
+ To install this gem onto your local machine from sources, run `bundle exec rake install`.
29
+
30
+ ## Contributing
31
+
32
+ Bug reports and merge requests are welcome on GitLab at https://gitlab.com/tanstaafl/singer.
33
+
34
+ ## License
35
+
36
+ The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
data/exe/singer ADDED
@@ -0,0 +1,11 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require 'singer'
4
+
5
+ File.write('server.rb', <<~RUBY)
6
+ require 'sinatra'
7
+
8
+ get '/' do
9
+ 'Hello, world.'
10
+ end
11
+ RUBY
@@ -0,0 +1,3 @@
1
+ module Singer
2
+ VERSION = '0.1.0'.freeze
3
+ end
data/lib/singer.rb ADDED
@@ -0,0 +1,6 @@
1
+ require_relative 'singer/version'
2
+
3
+ module Singer
4
+ class Error < StandardError; end
5
+ # Your code goes here...
6
+ end
metadata ADDED
@@ -0,0 +1,51 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: singer
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - Emil Chludziński
8
+ bindir: exe
9
+ cert_chain: []
10
+ date: 2025-01-06 00:00:00.000000000 Z
11
+ dependencies: []
12
+ description: |
13
+ Singer is a highly configurable templating system intended for generating Ruby boilerplate.
14
+ It aims to make creating and extending Sinatra apps easier.
15
+ email:
16
+ - tanstaafl@tlen.pl
17
+ executables:
18
+ - singer
19
+ extensions: []
20
+ extra_rdoc_files: []
21
+ files:
22
+ - LICENSE.txt
23
+ - README.md
24
+ - exe/singer
25
+ - lib/singer.rb
26
+ - lib/singer/version.rb
27
+ homepage: https://gitlab.com/tanstaafl/singer/
28
+ licenses:
29
+ - MIT
30
+ metadata:
31
+ homepage_uri: https://gitlab.com/tanstaafl/singer/
32
+ source_code_uri: https://gitlab.com/tanstaafl/singer/
33
+ rubygems_mfa_required: 'true'
34
+ rdoc_options: []
35
+ require_paths:
36
+ - lib
37
+ required_ruby_version: !ruby/object:Gem::Requirement
38
+ requirements:
39
+ - - ">="
40
+ - !ruby/object:Gem::Version
41
+ version: 3.1.0
42
+ required_rubygems_version: !ruby/object:Gem::Requirement
43
+ requirements:
44
+ - - ">="
45
+ - !ruby/object:Gem::Version
46
+ version: '0'
47
+ requirements: []
48
+ rubygems_version: 3.6.2
49
+ specification_version: 4
50
+ summary: Singer generates code (such as Sinatra apps) from templates.
51
+ test_files: []