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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5e02c49d26cc07909949a38a9a180d6df3562cb7125260b08d696e43b006b00d
4
- data.tar.gz: 04652b27203782dc31deee97e1d7ba7e0d62d783b0e26353e1fef05689493a06
3
+ metadata.gz: 65ea078bbf9a870b0fde6cac4e3d7e700a2634b307229efa31dcc7802f785a7d
4
+ data.tar.gz: 9f7895adace53f8fa729233f42d55b4246e1b4d18e485ae7bc10acc1d8d71f99
5
5
  SHA512:
6
- metadata.gz: '083a7b1cab13f132029f8091816d968ae98d3d9f2f3a2b8760c9ff4aa899471e8060c7c41b483da298460cdc510c51f73f9dd2503c2bc473f8a845d60eaf1a04'
7
- data.tar.gz: 240dfb0ca0f3493cf9058aa0f3c69077d0d81161aea4954b2c38bce860035cfbbff21d3ee7d4499c2fbe322fb897ed389cb523f7af57d4fb2d4f39618c79b96f
6
+ metadata.gz: 3ad124ebb8be3e74dce0741f9ebea5834d82582adc0ff15a105d35ea8bfa1b511d39ecdd569d8c3b5faefe50cfd00f7c26c72e13e5b7f2931ed201fe620511c3
7
+ data.tar.gz: adcb0da4b5570d557871cb9e6ef6c91ff388ea992b0ec8f1deba7e61149eb43fbb05ec807bf84aa64dd64697642e0bb070a1a1c4ab7139105dda68573aa83642
@@ -1,3 +1,6 @@
1
+ 3.0.3:
2
+ * update gems
3
+
1
4
  3.0.2:
2
5
  * replace APP_ENV with RACK_ENV
3
6
 
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- sinator (3.0.1)
4
+ sinator (3.0.2)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -30,4 +30,4 @@ DEPENDENCIES
30
30
  sinator!
31
31
 
32
32
  BUNDLED WITH
33
- 1.16.6
33
+ 1.17.2
@@ -1,4 +1,4 @@
1
- Copyright (c) 2015-2016 Kunto Aji Kristianto
1
+ Copyright (c) 2015-2019 Kunto Aji Kristianto
2
2
 
3
3
  MIT License
4
4
 
data/README.md CHANGED
@@ -1,6 +1,9 @@
1
+ [![Maintainability](https://api.codeclimate.com/v1/badges/ae5f04c99c02d4efbadd/maintainability)](https://codeclimate.com/github/kuntoaji/sinator/maintainability)
2
+ [![Test Coverage](https://api.codeclimate.com/v1/badges/ae5f04c99c02d4efbadd/test_coverage)](https://codeclimate.com/github/kuntoaji/sinator/test_coverage)
3
+
1
4
  # Background
2
5
 
3
- Sinator is [Sinatra](http://www.sinatrarb.com/) application boilerplate. It provides generator and contains minimum configuration to develop web application with Sinatra.
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 and desired database is already exist.
44
- For complete example see [github.com/kuntoaji/todo_sinator](https://github.com/kuntoaji/todo_sinator)
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 file `db/migrations/001_create_artists.rb` and put the following code:
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
- 6. run `rake db:migrate`
67
- 7. create file `app/models/Artist.rb` and put the following code:
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
- 8. create file `app/routes/artists.rb` and put the following code:
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
- 9. create file `app/views/artists/index.erb` and put the following code:
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
- 10. run the server `bundle exec puma`
111
- 11. open url `localhost:9292/artists`
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`.
@@ -1,5 +1,4 @@
1
1
  #!/usr/bin/env ruby
2
2
 
3
- require_relative '../lib/sinator/command'
4
-
3
+ require 'sinator/command'
5
4
  puts Sinator::Command.parse ARGV
@@ -1,15 +1,15 @@
1
1
  source 'https://rubygems.org'
2
2
 
3
- gem 'sinatra', '2.0.4'
4
- gem 'sinatra-contrib', '2.0.4', require: false
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', '3.12.0'
7
+ gem 'puma', '4.0.1'
8
8
  gem 'tux', '0.3.0', require: false
9
- gem 'uglifier', '4.1.19', require: false
10
- gem 'sass', '3.6.0', require: false
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.13.0'
14
- gem 'sequel_pg', '1.11.0', require: 'sequel'
13
+ gem 'sequel', '5.22.0'
14
+ gem 'sequel_pg', '1.12.2', require: 'sequel'
15
15
  <% end -%>
@@ -1,3 +1,3 @@
1
1
  module Sinator
2
- VERSION = '3.0.2'
2
+ VERSION = '3.0.3'
3
3
  end
@@ -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 = "Sinatra application boilerplate generator"
9
- s.description = "Sinator provides generator and contains minimal configuration to develop application with Sinatra"
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'
4
- gem 'sinatra-contrib', '2.0.4', require: false
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', '3.12.0'
7
+ gem 'puma', '4.0.1'
8
8
  gem 'tux', '0.3.0', require: false
9
- gem 'uglifier', '4.1.19', require: false
10
- gem 'sass', '3.6.0', require: false
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.0'
13
- gem 'sequel_pg', '1.11.0', require: 'sequel'
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'
4
- gem 'sinatra-contrib', '2.0.4', require: false
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', '3.12.0'
7
+ gem 'puma', '4.0.1'
8
8
  gem 'tux', '0.3.0', require: false
9
- gem 'uglifier', '4.1.19', require: false
10
- gem 'sass', '3.6.0', require: false
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.2
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: 2018-10-10 00:00:00.000000000 Z
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 provides generator and contains minimal configuration to develop
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
- rubyforge_project:
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 boilerplate generator
125
+ summary: Sinatra application generator
128
126
  test_files: []