sinator 3.0.2 → 3.0.3
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 +4 -4
- data/CHANGELOG.md +3 -0
- data/Gemfile.lock +2 -2
- data/LICENSE.txt +1 -1
- data/README.md +15 -11
- data/bin/sinator +1 -2
- data/lib/sinator/templates/Gemfile.erb +7 -7
- data/lib/sinator/version.rb +1 -1
- data/sinator.gemspec +2 -2
- data/spec/fixtures/with_db/gemfile.txt +7 -7
- data/spec/fixtures/without_db/gemfile.txt +5 -5
- metadata +5 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 65ea078bbf9a870b0fde6cac4e3d7e700a2634b307229efa31dcc7802f785a7d
|
4
|
+
data.tar.gz: 9f7895adace53f8fa729233f42d55b4246e1b4d18e485ae7bc10acc1d8d71f99
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3ad124ebb8be3e74dce0741f9ebea5834d82582adc0ff15a105d35ea8bfa1b511d39ecdd569d8c3b5faefe50cfd00f7c26c72e13e5b7f2931ed201fe620511c3
|
7
|
+
data.tar.gz: adcb0da4b5570d557871cb9e6ef6c91ff388ea992b0ec8f1deba7e61149eb43fbb05ec807bf84aa64dd64697642e0bb070a1a1c4ab7139105dda68573aa83642
|
data/CHANGELOG.md
CHANGED
data/Gemfile.lock
CHANGED
data/LICENSE.txt
CHANGED
data/README.md
CHANGED
@@ -1,6 +1,9 @@
|
|
1
|
+
[](https://codeclimate.com/github/kuntoaji/sinator/maintainability)
|
2
|
+
[](https://codeclimate.com/github/kuntoaji/sinator/test_coverage)
|
3
|
+
|
1
4
|
# Background
|
2
5
|
|
3
|
-
Sinator is [Sinatra](http://www.sinatrarb.com/) application
|
6
|
+
Sinator is [Sinatra](http://www.sinatrarb.com/) application generator. It will generate Sinatra application with minimum configuration.
|
4
7
|
The reasons behind this project because I want to create many small web application based on sinatra with other third party ruby gems as foundation.
|
5
8
|
|
6
9
|
# Features
|
@@ -40,13 +43,14 @@ sinator -n my_app -d
|
|
40
43
|
```
|
41
44
|
|
42
45
|
### Example Usage
|
43
|
-
This example assume that PostgreSQL is already running
|
44
|
-
|
46
|
+
This example assume that PostgreSQL is already running.
|
47
|
+
See [github.com/kuntoaji/todo_sinator](https://github.com/kuntoaji/todo_sinator) for Todo Application generated with Sinator.
|
45
48
|
1. run `sinator -n my_app -d`
|
46
49
|
2. cd `my_app`
|
47
50
|
3. run `bundle install`
|
48
51
|
4. configure your database setting in `config/database.yml`
|
49
|
-
5. create
|
52
|
+
5. create database with `createdb my_app_development`.
|
53
|
+
6. create file `db/migrations/001_create_artists.rb` and put the following code:
|
50
54
|
|
51
55
|
```ruby
|
52
56
|
Sequel.migration do
|
@@ -63,15 +67,15 @@ For complete example see [github.com/kuntoaji/todo_sinator](https://github.com/k
|
|
63
67
|
end
|
64
68
|
```
|
65
69
|
|
66
|
-
|
67
|
-
|
70
|
+
7. run `rake db:migrate`
|
71
|
+
8. create file `app/models/Artist.rb` and put the following code:
|
68
72
|
|
69
73
|
```ruby
|
70
74
|
class Artist < Sequel::Model
|
71
75
|
end
|
72
76
|
```
|
73
77
|
|
74
|
-
|
78
|
+
9. create file `app/routes/artists.rb` and put the following code:
|
75
79
|
|
76
80
|
```ruby
|
77
81
|
class MyApp
|
@@ -90,7 +94,7 @@ For complete example see [github.com/kuntoaji/todo_sinator](https://github.com/k
|
|
90
94
|
end
|
91
95
|
```
|
92
96
|
|
93
|
-
|
97
|
+
10. create file `app/views/artists/index.erb` and put the following code:
|
94
98
|
|
95
99
|
```erb
|
96
100
|
<h1>List of Artist</h1>
|
@@ -107,8 +111,8 @@ For complete example see [github.com/kuntoaji/todo_sinator](https://github.com/k
|
|
107
111
|
</form>
|
108
112
|
```
|
109
113
|
|
110
|
-
|
111
|
-
|
114
|
+
11. run the server `bundle exec puma`
|
115
|
+
12. open url `localhost:9292/artists`
|
112
116
|
|
113
117
|
### List of Ruby Gems
|
114
118
|
|
@@ -124,4 +128,4 @@ For complete example see [github.com/kuntoaji/todo_sinator](https://github.com/k
|
|
124
128
|
* sprockets
|
125
129
|
* sass
|
126
130
|
* uglifier
|
127
|
-
* tux for console
|
131
|
+
* tux for console, run with `bundle exec tux`.
|
data/bin/sinator
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
source 'https://rubygems.org'
|
2
2
|
|
3
|
-
gem 'sinatra', '2.0.
|
4
|
-
gem 'sinatra-contrib', '2.0.
|
3
|
+
gem 'sinatra', '2.0.5'
|
4
|
+
gem 'sinatra-contrib', '2.0.5', require: false
|
5
5
|
gem 'encrypted_cookie', '0.0.5'
|
6
6
|
gem 'rack_csrf', '2.6.0', require: 'rack/csrf'
|
7
|
-
gem 'puma', '
|
7
|
+
gem 'puma', '4.0.1'
|
8
8
|
gem 'tux', '0.3.0', require: false
|
9
|
-
gem 'uglifier', '4.1.
|
10
|
-
gem 'sass', '3.
|
9
|
+
gem 'uglifier', '4.1.20', require: false
|
10
|
+
gem 'sass', '3.7.4', require: false
|
11
11
|
gem 'sprockets', '3.7.2'
|
12
12
|
<% if @with_database -%>
|
13
|
-
gem 'sequel', '5.
|
14
|
-
gem 'sequel_pg', '1.
|
13
|
+
gem 'sequel', '5.22.0'
|
14
|
+
gem 'sequel_pg', '1.12.2', require: 'sequel'
|
15
15
|
<% end -%>
|
data/lib/sinator/version.rb
CHANGED
data/sinator.gemspec
CHANGED
@@ -5,8 +5,8 @@ Gem::Specification.new do |s|
|
|
5
5
|
s.name = 'sinator'
|
6
6
|
s.version = Sinator::VERSION
|
7
7
|
s.date = Date.today.to_s
|
8
|
-
s.summary =
|
9
|
-
s.description =
|
8
|
+
s.summary = 'Sinatra application generator'
|
9
|
+
s.description = 'Sinator will generate Sinatra application with minimum configuration'
|
10
10
|
s.author = 'Kunto Aji Kristianto'
|
11
11
|
s.email = 'kuntoaji@kaklabs.com'
|
12
12
|
s.files = `git ls-files -z`.split("\x0")
|
@@ -1,13 +1,13 @@
|
|
1
1
|
source 'https://rubygems.org'
|
2
2
|
|
3
|
-
gem 'sinatra', '2.0.
|
4
|
-
gem 'sinatra-contrib', '2.0.
|
3
|
+
gem 'sinatra', '2.0.5'
|
4
|
+
gem 'sinatra-contrib', '2.0.5', require: false
|
5
5
|
gem 'encrypted_cookie', '0.0.5'
|
6
6
|
gem 'rack_csrf', '2.6.0', require: 'rack/csrf'
|
7
|
-
gem 'puma', '
|
7
|
+
gem 'puma', '4.0.1'
|
8
8
|
gem 'tux', '0.3.0', require: false
|
9
|
-
gem 'uglifier', '4.1.
|
10
|
-
gem 'sass', '3.
|
9
|
+
gem 'uglifier', '4.1.20', require: false
|
10
|
+
gem 'sass', '3.7.4', require: false
|
11
11
|
gem 'sprockets', '3.7.2'
|
12
|
-
gem 'sequel', '5.
|
13
|
-
gem 'sequel_pg', '1.
|
12
|
+
gem 'sequel', '5.22.0'
|
13
|
+
gem 'sequel_pg', '1.12.2', require: 'sequel'
|
@@ -1,11 +1,11 @@
|
|
1
1
|
source 'https://rubygems.org'
|
2
2
|
|
3
|
-
gem 'sinatra', '2.0.
|
4
|
-
gem 'sinatra-contrib', '2.0.
|
3
|
+
gem 'sinatra', '2.0.5'
|
4
|
+
gem 'sinatra-contrib', '2.0.5', require: false
|
5
5
|
gem 'encrypted_cookie', '0.0.5'
|
6
6
|
gem 'rack_csrf', '2.6.0', require: 'rack/csrf'
|
7
|
-
gem 'puma', '
|
7
|
+
gem 'puma', '4.0.1'
|
8
8
|
gem 'tux', '0.3.0', require: false
|
9
|
-
gem 'uglifier', '4.1.
|
10
|
-
gem 'sass', '3.
|
9
|
+
gem 'uglifier', '4.1.20', require: false
|
10
|
+
gem 'sass', '3.7.4', require: false
|
11
11
|
gem 'sprockets', '3.7.2'
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sinator
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0.
|
4
|
+
version: 3.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kunto Aji Kristianto
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2019-07-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -38,8 +38,7 @@ dependencies:
|
|
38
38
|
- - '='
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: 3.2.0
|
41
|
-
description: Sinator
|
42
|
-
application with Sinatra
|
41
|
+
description: Sinator will generate Sinatra application with minimum configuration
|
43
42
|
email: kuntoaji@kaklabs.com
|
44
43
|
executables:
|
45
44
|
- sinator
|
@@ -120,9 +119,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
120
119
|
- !ruby/object:Gem::Version
|
121
120
|
version: '0'
|
122
121
|
requirements: []
|
123
|
-
|
124
|
-
rubygems_version: 2.7.6
|
122
|
+
rubygems_version: 3.0.3
|
125
123
|
signing_key:
|
126
124
|
specification_version: 4
|
127
|
-
summary: Sinatra application
|
125
|
+
summary: Sinatra application generator
|
128
126
|
test_files: []
|