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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 95f49eee82b72947cdea7363951491b004eb72f1ca0839893809552b026af303
4
- data.tar.gz: 1a1fd8449cc81a8f4a4b5b121fc2a3f4c0eedad0fc16962e31843efa7e3ee79e
3
+ metadata.gz: b082a65854e1aab6a3638fb0bc4c7f64f88cad69f685f67c681776ab10a772d3
4
+ data.tar.gz: 55ba22577d24d92d736d828b782d1465788ed4ce7970ff99b44e27202cf2afc4
5
5
  SHA512:
6
- metadata.gz: bd40b37f79b614ab037b43e04f43edf2811e01e1f01365be77e6da31cf91cfb6494bcf82071aa1a7858195dab38a8fc00a959069a0ffc6e3f858c8d3496e9f20
7
- data.tar.gz: 7512545a054795f53a7f60a14c2a6484ea00fdf39961b9a40c8dec20421af1964be16b105570db6fcd1a31ae0ff4208fc34e6b23896cc29895d8a9d96d4a8a20
6
+ metadata.gz: db8be67c3a0f1ab0d79a127c9904b4d9158b0177f6e725f2c1397063505ccb8e77ef4d417545216cf6651055932580fc4d778f52fe935e841a41cc3602ec20b9
7
+ data.tar.gz: 4e8a189006214ce6f5b4c2504b2c9bb5c1089fdca8fab3e6db204561b6f96e94e6ad436286af3a55b7a5d5356b9a1a9e4ceb86591a49e6218ccd644933c2e716
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- granule (0.1.5)
4
+ granule (0.1.6)
5
5
  rails (= 5.2.3)
6
6
 
7
7
  GEM
data/README.md CHANGED
@@ -1,43 +1,47 @@
1
1
  # Granule
2
2
 
3
- Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/granule`. To experiment with that code, run `bin/console` for an interactive prompt.
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
- Add this line to your application's Gemfile:
7
+ $ gem install granule
10
8
 
11
- ```ruby
12
- gem 'granule'
13
- ```
9
+ ## Usage
14
10
 
15
- And then execute:
11
+ $ granule new <NAME>
16
12
 
17
- $ bundle
18
13
 
19
- Or install it yourself as:
14
+ ## What's inside?
20
15
 
21
- $ gem install granule
16
+ ### App
22
17
 
23
- ## Usage
18
+ $ rails new -T --database=postgresql --webpack=react --skip-sprockets --skip-turbolinks
24
19
 
25
- TODO: Write usage instructions here
20
+ ### Gems
26
21
 
27
- ## Development
22
+ Core
28
23
 
29
- 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
+ * [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
- 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).
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/[USERNAME]/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.
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).
@@ -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 = 'Write a short summary, because RubyGems requires one.'
12
- spec.description = 'Write a longer description or delete this line.'
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.'
@@ -11,7 +11,13 @@ module Granule
11
11
  desc 'new DIRECTORY', 'Create a new rails app'
12
12
 
13
13
  def new(name)
14
- run("rails new #{name} #{DEFAULT_OPTIONS}")
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
@@ -1,4 +1,10 @@
1
- source_paths.unshift(File.dirname(__FILE__) + '/templates')
1
+ def call!
2
+ template 'Gemfile.tt', force: true
3
+ template '.rubocop.yml.tt', force: true
4
+ end
2
5
 
3
- template 'Gemfile.tt', force: true
4
- template '.rubocop.yml.tt', force: true
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 '2.6.3'
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'
@@ -1,4 +1,4 @@
1
1
  module Granule
2
- VERSION = '0.1.5'.freeze
2
+ VERSION = '0.1.6'.freeze
3
3
  RAILS_VERSION = '5.2.3'.freeze
4
4
  end
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.5
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: Write a longer description or delete this line.
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: Write a short summary, because RubyGems requires one.
179
+ summary: Rails apps bootstrapper.
180
180
  test_files: []