majestic-monolith 0.1.2 → 0.1.4

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: c7894e1824b6f7b1b18da5c1b91373c6133b525f9a6b53915f5bdc623665bf45
4
- data.tar.gz: edf23bbf32dff39491b33da7065669759f5006f1bcf1ab61ecb4ed10f629888d
3
+ metadata.gz: 4d3d2258b5e6cc550badd955c5d2964d0176cf5983629f7d090522cad0b130e1
4
+ data.tar.gz: 6e82fa7bd11c083adc9407793d46b64074a3ed64a5d4941738d2a7e07a169c1a
5
5
  SHA512:
6
- metadata.gz: c94d9106eb22743c92b70a7f8cda60cd2e6f5c8f5824de9a7e21c5b4a851121d5e1f3c15cc51e5109092bf399b1570bcd35b062edb2998097bdece6eb3363b29
7
- data.tar.gz: e78b9ba87cba365dc34ccc2dd3d414b629cb823053ae467bb200147948e7587a95a1ddee889bb5d8e490569c7bf0244b3a84df058c9c68619acda83b59112681
6
+ metadata.gz: 8b7a46739a0530bb25bcc739abcaf943821d5c131c5cb0f753d62ada3c454e9cbec2094e8fe534bd3b8efb5b8b3584948b998217f616cf185205490f799ee8ef
7
+ data.tar.gz: ebce6a0d575cd5ab4e21490d14ef8d5bbe7b2a01e8c18eca17c5db170be1b5b8547c7201b95f8b388796ae28eb2ab503c678f883ad416ba45a082c0f9d1d7a96
@@ -18,9 +18,6 @@ class Monolith::InstallGenerator < Rails::Generators::Base
18
18
  # Encapsulate views (instead of using partials)
19
19
  gem "view_component"
20
20
 
21
- # I use to not like Tailwind, but now I love using it with view_components.
22
- gem "tailwindcss-rails"
23
-
24
21
  # Displays UTC times from the database in the users local time, all computed client-side.
25
22
  # Super duper useful for keeping times sane
26
23
  gem "local_time"
@@ -86,9 +83,9 @@ class Monolith::InstallGenerator < Rails::Generators::Base
86
83
 
87
84
  def post_install_message
88
85
  say_status "next steps", <<~DOCS
89
- [ ] Run `rails db:migrate`
90
- [ ] Launch the server via `dev`
91
- [ ] Go to `http://localhost:3000`
86
+ [ ] Run `./bin/rails db:create db:migrate`
87
+ [ ] Launch the server via `./bin/dev`
88
+ [ ] Open `http://localhost:3000` in your browser
92
89
  DOCS
93
90
  end
94
91
 
@@ -1,2 +1,2 @@
1
1
  # I really just want this gem to be called `monolith`, not `majestic-monolith`.
2
- require_relative "./monolith.rb"
2
+ require "monolith"
data/lib/monolith/cli.rb CHANGED
@@ -1,4 +1,5 @@
1
1
  require "thor"
2
+ require "monolith/version"
2
3
 
3
4
  module Monolith
4
5
  class CLI < Thor
@@ -6,10 +7,15 @@ module Monolith
6
7
 
7
8
  DEFAULT_PROJECT_NAME = "server".freeze
8
9
 
9
- desc 'new [PROJECT_NAME]', 'create a new Rails monolith'
10
+ desc "new [PROJECT_NAME]", "create a new Rails monolith"
10
11
  def new(project_name = DEFAULT_PROJECT_NAME)
11
12
  template_path = File.join File.expand_path(__dir__), "cli/template.rb"
12
13
  run "rails new #{project_name} --template #{template_path} --database postgresql --css tailwind"
13
14
  end
15
+
16
+ desc "version", "prints version of monolith"
17
+ def version
18
+ puts Monolith::VERSION
19
+ end
14
20
  end
15
21
  end
@@ -1,3 +1,3 @@
1
1
  module Monolith
2
- VERSION = "0.1.2"
2
+ VERSION = "0.1.4"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: majestic-monolith
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brad Gessler
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-06-09 00:00:00.000000000 Z
11
+ date: 2022-09-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -17,7 +17,7 @@ dependencies:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
19
  version: 7.0.0
20
- type: :runtime
20
+ type: :development
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
@@ -94,7 +94,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
94
94
  - !ruby/object:Gem::Version
95
95
  version: '0'
96
96
  requirements: []
97
- rubygems_version: 3.2.3
97
+ rubygems_version: 3.3.20
98
98
  signing_key:
99
99
  specification_version: 4
100
100
  summary: CLI used to create Rails monoliths by Rocketship for quickly building SaaS