vorsprung 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 +7 -0
- data/.gitignore +12 -0
- data/.rspec +3 -0
- data/.travis.yml +5 -0
- data/Gemfile +5 -0
- data/LICENSE.txt +21 -0
- data/README.md +35 -0
- data/Rakefile +6 -0
- data/bin/console +14 -0
- data/bin/setup +8 -0
- data/bin/vorsprung +6 -0
- data/lib/vorsprung.rb +7 -0
- data/lib/vorsprung/cli.rb +14 -0
- data/lib/vorsprung/version.rb +4 -0
- data/templates/.env.tt +1 -0
- data/templates/Procfile.tt +2 -0
- data/templates/README.md +1 -0
- data/templates/secrets.yml.tt +21 -0
- data/vorsprung.gemspec +30 -0
- metadata +134 -0
checksums.yaml
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
---
|
|
2
|
+
SHA1:
|
|
3
|
+
metadata.gz: 31081e8858585b240f12f52fdac78fe6ef111a71
|
|
4
|
+
data.tar.gz: '0319560c9536d251ca0efecd9bd5e17c412637e8'
|
|
5
|
+
SHA512:
|
|
6
|
+
metadata.gz: e2ab27303f291d686d764e0cfa4f2ee422ec58c10911abd5bc3390ba4f71278263e755e6b6dc16c94c7bb94cb5fd4c5d68b73d4108a731964611f2577530dbee
|
|
7
|
+
data.tar.gz: f71cb5ea095de8cbee3ad01f5ca2a3d87bd96afd3233de893b129fd7582ad9706a85d11edf8edf3c5f2c5e621a2d7067ab0a738471f872883aab34ed6e6cb601
|
data/.gitignore
ADDED
data/.rspec
ADDED
data/.travis.yml
ADDED
data/Gemfile
ADDED
data/LICENSE.txt
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
The MIT License (MIT)
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2017 Built By Kaiser, LLC
|
|
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,35 @@
|
|
|
1
|
+
# Vorsprung
|
|
2
|
+
|
|
3
|
+
Give your Rails app a running start! Vorsprung generates the base Rails applications for [Built By Kaiser](http://www.builtbykaiser.com) and stays up-to-date with best practices.
|
|
4
|
+
|
|
5
|
+
## Installation
|
|
6
|
+
|
|
7
|
+
Run this in your terminal:
|
|
8
|
+
|
|
9
|
+
```shell
|
|
10
|
+
$ gem install vorsprung
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
Then, to create a new Rails app, run:
|
|
14
|
+
|
|
15
|
+
```shell
|
|
16
|
+
$ vorsprung myapp
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
And you'll be off to a running start!
|
|
20
|
+
|
|
21
|
+
## Development
|
|
22
|
+
|
|
23
|
+
After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
|
|
24
|
+
|
|
25
|
+
To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
|
|
26
|
+
|
|
27
|
+
## Contributing
|
|
28
|
+
|
|
29
|
+
Bug reports and pull requests are welcome on [GitHub](https://github.com/builtbykaiser/vorsprung).
|
|
30
|
+
|
|
31
|
+
## License
|
|
32
|
+
|
|
33
|
+
Vorsprung is Copyright 2017 Built By Kaiser, LLC. It is free software and may be redistributed under the terms specified in the [LICENSE] file.
|
|
34
|
+
|
|
35
|
+
[LICENSE]: LICENSE
|
data/Rakefile
ADDED
data/bin/console
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
#!/usr/bin/env ruby
|
|
2
|
+
|
|
3
|
+
require "bundler/setup"
|
|
4
|
+
require "vorsprung"
|
|
5
|
+
|
|
6
|
+
# You can add fixtures and/or initialization code here to make experimenting
|
|
7
|
+
# with your gem easier. You can also use a different console, if you like.
|
|
8
|
+
|
|
9
|
+
# (If you use this, don't forget to add pry to your Gemfile!)
|
|
10
|
+
# require "pry"
|
|
11
|
+
# Pry.start
|
|
12
|
+
|
|
13
|
+
require "irb"
|
|
14
|
+
IRB.start(__FILE__)
|
data/bin/setup
ADDED
data/bin/vorsprung
ADDED
data/lib/vorsprung.rb
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
module Vorsprung
|
|
2
|
+
class CLI < Thor
|
|
3
|
+
include Thor::Actions
|
|
4
|
+
|
|
5
|
+
desc "new APP_NAME", "create a new Rails app called APP_NAME"
|
|
6
|
+
def new(app_name)
|
|
7
|
+
say "Vorsprinkling you a new Rails app..."
|
|
8
|
+
run "rails new #{app_name}", capture: true
|
|
9
|
+
template "Procfile", "#{app_name}/Procfile"
|
|
10
|
+
template ".env", "#{app_name}/.env"
|
|
11
|
+
template "secrets.yml", "#{app_name}/config/secrets.yml"
|
|
12
|
+
end
|
|
13
|
+
end
|
|
14
|
+
end
|
data/templates/.env.tt
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
SECRET_KEY_BASE='<%= SecureRandom.hex(64) %>'
|
data/templates/README.md
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
Welcome to your new app!
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# Be sure to restart your server when you modify this file.
|
|
2
|
+
|
|
3
|
+
# Your secret key is used for verifying the integrity of signed cookies.
|
|
4
|
+
# If you change this key, all old signed cookies will become invalid!
|
|
5
|
+
|
|
6
|
+
# Make sure the secret is at least 30 characters and all random,
|
|
7
|
+
# no regular words or you'll be exposed to dictionary attacks.
|
|
8
|
+
# You can use `rails secret` to generate a secure secret key.
|
|
9
|
+
|
|
10
|
+
# Make sure the secrets in this file are kept private
|
|
11
|
+
# if you're sharing your code publicly.
|
|
12
|
+
|
|
13
|
+
# Shared secrets are available across all environments.
|
|
14
|
+
|
|
15
|
+
# shared:
|
|
16
|
+
# api_key: a1B2c3D4e5F6
|
|
17
|
+
|
|
18
|
+
# Environmental secrets are only available for that specific environment.
|
|
19
|
+
|
|
20
|
+
shared:
|
|
21
|
+
secret_key_base: <%%= ENV["SECRET_KEY_BASE"] %>
|
data/vorsprung.gemspec
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
lib = File.expand_path("../lib", __FILE__)
|
|
2
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
3
|
+
require "vorsprung/version"
|
|
4
|
+
|
|
5
|
+
Gem::Specification.new do |spec|
|
|
6
|
+
spec.name = "vorsprung"
|
|
7
|
+
spec.version = Vorsprung::VERSION
|
|
8
|
+
spec.authors = ["Built By Kaiser"]
|
|
9
|
+
spec.email = ["support@builtbykaiser.com"]
|
|
10
|
+
|
|
11
|
+
spec.summary = "Give your Rails app a running start!"
|
|
12
|
+
spec.description = "Vorsprung generates base Rails applications and stays up-to-date with best practices."
|
|
13
|
+
spec.homepage = "https://github.com/builtbykaiser/vorsprung"
|
|
14
|
+
spec.license = "MIT"
|
|
15
|
+
|
|
16
|
+
spec.files = `git ls-files -z`.split("\x0").reject do |f|
|
|
17
|
+
f.match(%r{^(test|spec|features)/})
|
|
18
|
+
end
|
|
19
|
+
|
|
20
|
+
spec.bindir = "bin"
|
|
21
|
+
spec.executables = ["vorsprung"]
|
|
22
|
+
spec.require_paths = ["lib"]
|
|
23
|
+
|
|
24
|
+
spec.add_dependency "rails", "~> #{Vorsprung::RAILS_VERSION}"
|
|
25
|
+
spec.add_dependency "thor"
|
|
26
|
+
|
|
27
|
+
spec.add_development_dependency "bundler", "~> 1.16"
|
|
28
|
+
spec.add_development_dependency "rake", "~> 10.0"
|
|
29
|
+
spec.add_development_dependency "rspec", "~> 3.0"
|
|
30
|
+
end
|
metadata
ADDED
|
@@ -0,0 +1,134 @@
|
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
|
2
|
+
name: vorsprung
|
|
3
|
+
version: !ruby/object:Gem::Version
|
|
4
|
+
version: 0.1.0
|
|
5
|
+
platform: ruby
|
|
6
|
+
authors:
|
|
7
|
+
- Built By Kaiser
|
|
8
|
+
autorequire:
|
|
9
|
+
bindir: bin
|
|
10
|
+
cert_chain: []
|
|
11
|
+
date: 2017-12-21 00:00:00.000000000 Z
|
|
12
|
+
dependencies:
|
|
13
|
+
- !ruby/object:Gem::Dependency
|
|
14
|
+
name: rails
|
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
|
16
|
+
requirements:
|
|
17
|
+
- - "~>"
|
|
18
|
+
- !ruby/object:Gem::Version
|
|
19
|
+
version: 5.1.4
|
|
20
|
+
type: :runtime
|
|
21
|
+
prerelease: false
|
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
23
|
+
requirements:
|
|
24
|
+
- - "~>"
|
|
25
|
+
- !ruby/object:Gem::Version
|
|
26
|
+
version: 5.1.4
|
|
27
|
+
- !ruby/object:Gem::Dependency
|
|
28
|
+
name: thor
|
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
|
30
|
+
requirements:
|
|
31
|
+
- - ">="
|
|
32
|
+
- !ruby/object:Gem::Version
|
|
33
|
+
version: '0'
|
|
34
|
+
type: :runtime
|
|
35
|
+
prerelease: false
|
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
37
|
+
requirements:
|
|
38
|
+
- - ">="
|
|
39
|
+
- !ruby/object:Gem::Version
|
|
40
|
+
version: '0'
|
|
41
|
+
- !ruby/object:Gem::Dependency
|
|
42
|
+
name: bundler
|
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
|
44
|
+
requirements:
|
|
45
|
+
- - "~>"
|
|
46
|
+
- !ruby/object:Gem::Version
|
|
47
|
+
version: '1.16'
|
|
48
|
+
type: :development
|
|
49
|
+
prerelease: false
|
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
51
|
+
requirements:
|
|
52
|
+
- - "~>"
|
|
53
|
+
- !ruby/object:Gem::Version
|
|
54
|
+
version: '1.16'
|
|
55
|
+
- !ruby/object:Gem::Dependency
|
|
56
|
+
name: rake
|
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
|
58
|
+
requirements:
|
|
59
|
+
- - "~>"
|
|
60
|
+
- !ruby/object:Gem::Version
|
|
61
|
+
version: '10.0'
|
|
62
|
+
type: :development
|
|
63
|
+
prerelease: false
|
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
65
|
+
requirements:
|
|
66
|
+
- - "~>"
|
|
67
|
+
- !ruby/object:Gem::Version
|
|
68
|
+
version: '10.0'
|
|
69
|
+
- !ruby/object:Gem::Dependency
|
|
70
|
+
name: rspec
|
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
|
72
|
+
requirements:
|
|
73
|
+
- - "~>"
|
|
74
|
+
- !ruby/object:Gem::Version
|
|
75
|
+
version: '3.0'
|
|
76
|
+
type: :development
|
|
77
|
+
prerelease: false
|
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
79
|
+
requirements:
|
|
80
|
+
- - "~>"
|
|
81
|
+
- !ruby/object:Gem::Version
|
|
82
|
+
version: '3.0'
|
|
83
|
+
description: Vorsprung generates base Rails applications and stays up-to-date with
|
|
84
|
+
best practices.
|
|
85
|
+
email:
|
|
86
|
+
- support@builtbykaiser.com
|
|
87
|
+
executables:
|
|
88
|
+
- vorsprung
|
|
89
|
+
extensions: []
|
|
90
|
+
extra_rdoc_files: []
|
|
91
|
+
files:
|
|
92
|
+
- ".gitignore"
|
|
93
|
+
- ".rspec"
|
|
94
|
+
- ".travis.yml"
|
|
95
|
+
- Gemfile
|
|
96
|
+
- LICENSE.txt
|
|
97
|
+
- README.md
|
|
98
|
+
- Rakefile
|
|
99
|
+
- bin/console
|
|
100
|
+
- bin/setup
|
|
101
|
+
- bin/vorsprung
|
|
102
|
+
- lib/vorsprung.rb
|
|
103
|
+
- lib/vorsprung/cli.rb
|
|
104
|
+
- lib/vorsprung/version.rb
|
|
105
|
+
- templates/.env.tt
|
|
106
|
+
- templates/Procfile.tt
|
|
107
|
+
- templates/README.md
|
|
108
|
+
- templates/secrets.yml.tt
|
|
109
|
+
- vorsprung.gemspec
|
|
110
|
+
homepage: https://github.com/builtbykaiser/vorsprung
|
|
111
|
+
licenses:
|
|
112
|
+
- MIT
|
|
113
|
+
metadata: {}
|
|
114
|
+
post_install_message:
|
|
115
|
+
rdoc_options: []
|
|
116
|
+
require_paths:
|
|
117
|
+
- lib
|
|
118
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
|
119
|
+
requirements:
|
|
120
|
+
- - ">="
|
|
121
|
+
- !ruby/object:Gem::Version
|
|
122
|
+
version: '0'
|
|
123
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
124
|
+
requirements:
|
|
125
|
+
- - ">="
|
|
126
|
+
- !ruby/object:Gem::Version
|
|
127
|
+
version: '0'
|
|
128
|
+
requirements: []
|
|
129
|
+
rubyforge_project:
|
|
130
|
+
rubygems_version: 2.6.14
|
|
131
|
+
signing_key:
|
|
132
|
+
specification_version: 4
|
|
133
|
+
summary: Give your Rails app a running start!
|
|
134
|
+
test_files: []
|