granule 0.1.5 → 0.1.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/README.md +25 -21
- data/granule.gemspec +5 -6
- data/lib/granule/cli.rb +7 -1
- data/lib/granule/template.rb +9 -3
- data/lib/granule/templates/Gemfile.tt +3 -1
- data/lib/granule/version.rb +1 -1
- metadata +7 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b082a65854e1aab6a3638fb0bc4c7f64f88cad69f685f67c681776ab10a772d3
|
4
|
+
data.tar.gz: 55ba22577d24d92d736d828b782d1465788ed4ce7970ff99b44e27202cf2afc4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: db8be67c3a0f1ab0d79a127c9904b4d9158b0177f6e725f2c1397063505ccb8e77ef4d417545216cf6651055932580fc4d778f52fe935e841a41cc3602ec20b9
|
7
|
+
data.tar.gz: 4e8a189006214ce6f5b4c2504b2c9bb5c1089fdca8fab3e6db204561b6f96e94e6ad436286af3a55b7a5d5356b9a1a9e4ceb86591a49e6218ccd644933c2e716
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -1,43 +1,47 @@
|
|
1
1
|
# Granule
|
2
2
|
|
3
|
-
|
4
|
-
|
5
|
-
TODO: Delete this and the text above, and describe your gem
|
3
|
+
Rails (5.2.3) template with useful gems and configs
|
6
4
|
|
7
5
|
## Installation
|
8
6
|
|
9
|
-
|
7
|
+
$ gem install granule
|
10
8
|
|
11
|
-
|
12
|
-
gem 'granule'
|
13
|
-
```
|
9
|
+
## Usage
|
14
10
|
|
15
|
-
|
11
|
+
$ granule new <NAME>
|
16
12
|
|
17
|
-
$ bundle
|
18
13
|
|
19
|
-
|
14
|
+
## What's inside?
|
20
15
|
|
21
|
-
|
16
|
+
### App
|
22
17
|
|
23
|
-
|
18
|
+
$ rails new -T --database=postgresql --webpack=react --skip-sprockets --skip-turbolinks
|
24
19
|
|
25
|
-
|
20
|
+
### Gems
|
26
21
|
|
27
|
-
|
22
|
+
Core
|
28
23
|
|
29
|
-
|
24
|
+
* [devise](https://github.com/plataformatec/devise) - Authentication
|
25
|
+
* [dry-matcher](https://github.com/dry-rb/dry-matcher) - Pattern matching for ruby. Used to unify controller handlers
|
26
|
+
* [dry-monads](https://github.com/dry-rb/dry-monads) - Set of common monads for Ruby. Service Object/Interactor.
|
27
|
+
* [dry-validation](https://github.com/dry-rb/dry-validation) - Validation library with type-safe schemas and rules.
|
28
|
+
* [i18n-js](https://github.com/fnando/i18n-js) - Small library to provide the I18n translations on the Javascript
|
29
|
+
* [react-rails](https://github.com/reactjs/react-rails) - React + Rails + Webpacker as a monolith app
|
30
|
+
* [rolify](https://github.com/RolifyCommunity/rolify) - Role management library with resource scoping
|
31
|
+
* [webpacker](https://github.com/rails/webpacker) - Bundling JavaScript assets
|
30
32
|
|
31
|
-
|
33
|
+
Development
|
34
|
+
|
35
|
+
* TBD
|
36
|
+
|
37
|
+
Test
|
38
|
+
|
39
|
+
* TBD
|
32
40
|
|
33
41
|
## Contributing
|
34
42
|
|
35
|
-
Bug reports and pull requests are welcome on GitHub at https://github.com/
|
43
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/leksster/granule. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
|
36
44
|
|
37
45
|
## License
|
38
46
|
|
39
47
|
The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
|
40
|
-
|
41
|
-
## Code of Conduct
|
42
|
-
|
43
|
-
Everyone interacting in the Granule project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/[USERNAME]/granule/blob/master/CODE_OF_CONDUCT.md).
|
data/granule.gemspec
CHANGED
@@ -8,19 +8,18 @@ Gem::Specification.new do |spec|
|
|
8
8
|
spec.authors = ['Alex Bykov']
|
9
9
|
spec.email = ['leksster@gmail.com']
|
10
10
|
|
11
|
-
spec.summary = '
|
12
|
-
spec.description =
|
13
|
-
spec.homepage = 'http://github.com'
|
11
|
+
spec.summary = 'Rails apps bootstrapper.'
|
12
|
+
spec.description = spec.summary
|
13
|
+
spec.homepage = 'http://github.com/leksster/granule'
|
14
14
|
spec.license = 'MIT'
|
15
15
|
|
16
16
|
# Prevent pushing this gem to RubyGems.org. To allow pushes either set the 'allowed_push_host'
|
17
17
|
# to allow pushing to a single host or delete this section to allow pushing to any host.
|
18
18
|
if spec.respond_to?(:metadata)
|
19
19
|
spec.metadata['allowed_push_host'] = 'https://rubygems.org'
|
20
|
-
|
21
20
|
spec.metadata['homepage_uri'] = spec.homepage
|
22
|
-
spec.metadata['source_code_uri'] = 'https://github.com'
|
23
|
-
spec.metadata['changelog_uri'] = 'https://github.com'
|
21
|
+
spec.metadata['source_code_uri'] = 'https://github.com/leksster/granule'
|
22
|
+
spec.metadata['changelog_uri'] = 'https://github.com/leksster/granule'
|
24
23
|
else
|
25
24
|
raise 'RubyGems 2.0 or newer is required to protect against ' \
|
26
25
|
'public gem pushes.'
|
data/lib/granule/cli.rb
CHANGED
@@ -11,7 +11,13 @@ module Granule
|
|
11
11
|
desc 'new DIRECTORY', 'Create a new rails app'
|
12
12
|
|
13
13
|
def new(name)
|
14
|
-
|
14
|
+
cmd = "rails new #{name} #{DEFAULT_OPTIONS}"
|
15
|
+
|
16
|
+
if defined?(Bundler)
|
17
|
+
Bundler.with_clean_env { run(cmd) }
|
18
|
+
else
|
19
|
+
run(cmd)
|
20
|
+
end
|
15
21
|
end
|
16
22
|
end
|
17
23
|
end
|
data/lib/granule/template.rb
CHANGED
@@ -1,4 +1,10 @@
|
|
1
|
-
|
1
|
+
def call!
|
2
|
+
template 'Gemfile.tt', force: true
|
3
|
+
template '.rubocop.yml.tt', force: true
|
4
|
+
end
|
2
5
|
|
3
|
-
|
4
|
-
|
6
|
+
def source_paths
|
7
|
+
[__dir__ + '/templates']
|
8
|
+
end
|
9
|
+
|
10
|
+
call!
|
@@ -2,7 +2,7 @@ source 'https://rubygems.org'
|
|
2
2
|
|
3
3
|
git_source(:github) { |repo| "https://github.com/#{repo}.git" }
|
4
4
|
|
5
|
-
ruby '
|
5
|
+
ruby '<%= RUBY_VERSION %>'
|
6
6
|
|
7
7
|
gem 'bootsnap', require: false
|
8
8
|
|
@@ -41,6 +41,8 @@ gem 'rolify'
|
|
41
41
|
gem 'webpacker'
|
42
42
|
|
43
43
|
group :development do
|
44
|
+
gem 'better_errors'
|
45
|
+
gem 'binding_of_caller'
|
44
46
|
gem 'listen'
|
45
47
|
gem 'spring'
|
46
48
|
gem 'spring-watcher-listen'
|
data/lib/granule/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: granule
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Alex Bykov
|
@@ -122,7 +122,7 @@ dependencies:
|
|
122
122
|
- - ">="
|
123
123
|
- !ruby/object:Gem::Version
|
124
124
|
version: '0'
|
125
|
-
description:
|
125
|
+
description: Rails apps bootstrapper.
|
126
126
|
email:
|
127
127
|
- leksster@gmail.com
|
128
128
|
executables:
|
@@ -150,14 +150,14 @@ files:
|
|
150
150
|
- lib/granule/templates/.rubocop.yml.tt
|
151
151
|
- lib/granule/templates/Gemfile.tt
|
152
152
|
- lib/granule/version.rb
|
153
|
-
homepage: http://github.com
|
153
|
+
homepage: http://github.com/leksster/granule
|
154
154
|
licenses:
|
155
155
|
- MIT
|
156
156
|
metadata:
|
157
157
|
allowed_push_host: https://rubygems.org
|
158
|
-
homepage_uri: http://github.com
|
159
|
-
source_code_uri: https://github.com
|
160
|
-
changelog_uri: https://github.com
|
158
|
+
homepage_uri: http://github.com/leksster/granule
|
159
|
+
source_code_uri: https://github.com/leksster/granule
|
160
|
+
changelog_uri: https://github.com/leksster/granule
|
161
161
|
post_install_message:
|
162
162
|
rdoc_options: []
|
163
163
|
require_paths:
|
@@ -176,5 +176,5 @@ requirements: []
|
|
176
176
|
rubygems_version: 3.0.3
|
177
177
|
signing_key:
|
178
178
|
specification_version: 4
|
179
|
-
summary:
|
179
|
+
summary: Rails apps bootstrapper.
|
180
180
|
test_files: []
|