frankly 0.2.4 → 0.2.5

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: fe3e14e6b7eaca34d9ce4bfbb3b8ecd42ee953945747ea7d2cdb29e968b5cb4e
4
- data.tar.gz: 5d03218e4e887f6a4830ab7050f1131c8a56fa5725802e26661f5849b7a0da90
3
+ metadata.gz: 55072e2189a10b13cd3beca25cc58d0aed428099f250d2533f3690e9ac44e7d0
4
+ data.tar.gz: 346209309426c1496898246056fcebbd23a07820947ec060982a1049b5017805
5
5
  SHA512:
6
- metadata.gz: 67fd2432d06b7846926d09794e661362d04b51901789d267bd43370377f5598c90f2e736a454cb7483b3fb98eeff36f594d2133b78e4f14c4781f2a97a76dd72
7
- data.tar.gz: 788e5b29b4ff3a5ea7eba2b4a5c7fe051a51623a0860c02ca5cf9233b5cd1be579c99f505a035abf4e6eaf2fddec556f14c4cb62a85f30c75440a8b5c725c35a
6
+ metadata.gz: e022caa9ec66a23734a3f6577dbf38220143ff2c74822ad2541c9f775458b06b84cefbe7ccb6b893d549310af4307f037916506e10da73762139a00fe92bcc8a
7
+ data.tar.gz: 2b89f270e32860808ead382424c2b2b670531bf1a3e327526b4a2447348729ef6d4a72a2847906456bc0cfebbe72e9e8575407528a4a054e717e201a598f0126
data/README.md CHANGED
@@ -63,6 +63,7 @@ my_app/
63
63
  cd my_app
64
64
  bundle install
65
65
  bundle exec rackup
66
+ bundle exec bin/console
66
67
  ```
67
68
 
68
69
  Open [http://localhost:9292](http://localhost:9292).
data/lib/frankly/cli.rb CHANGED
@@ -52,6 +52,7 @@ module Frankly
52
52
  copy_file "config/database.rb", "#{@app_path}/config/database.rb"
53
53
  copy_file "config/environment.rb", "#{@app_path}/config/environment.rb"
54
54
  copy_file "db/seeds.rb", "#{@app_path}/db/seeds.rb"
55
+ copy_file "bin/console", "#{@app_path}/bin/console"
55
56
  template "README.md.tt", "#{@app_path}/README.md"
56
57
  template "Gemfile.tt", "#{@app_path}/Gemfile"
57
58
  template "gitignore.tt", "#{@app_path}/.gitignore"
@@ -61,6 +62,7 @@ module Frankly
61
62
  copy_file "public/css/application.css", "#{@app_path}/public/css/application.css"
62
63
  copy_file "public/js/application.js", "#{@app_path}/public/js/application.js"
63
64
  copy_file "public/favicon.ico", "#{@app_path}/public/favicon.ico"
65
+ chmod "#{@app_path}/bin/console", 0o755
64
66
  end
65
67
 
66
68
  def initialize_git_repo
@@ -80,6 +82,7 @@ module Frankly
80
82
  say " cd #{@app_path}"
81
83
  say " bundle install#{options[:bundle] ? ' (already run because you passed --bundle)' : ''}"
82
84
  say " bundle exec rackup"
85
+ say " bundle exec bin/console"
83
86
  say " Set DATABASE_URL in your environment (or use the defaults in config/database.rb)."
84
87
  say " Database setup is required for persistence (create DB and run migrations)."
85
88
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Frankly
4
- VERSION = "0.2.4"
4
+ VERSION = "0.2.5"
5
5
  end
@@ -7,6 +7,7 @@ Generated by `frankly`.
7
7
  ```sh
8
8
  bundle install
9
9
  bundle exec rackup
10
+ bundle exec bin/console
10
11
  ```
11
12
 
12
13
  Open http://localhost:9292.
@@ -0,0 +1,14 @@
1
+ #!/usr/bin/env ruby
2
+ # frozen_string_literal: true
3
+
4
+ ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../Gemfile", __dir__)
5
+ require "bundler/setup"
6
+ require_relative "../config/environment"
7
+
8
+ begin
9
+ require "pry"
10
+ Pry.start
11
+ rescue LoadError
12
+ require "irb"
13
+ IRB.start(__FILE__)
14
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: frankly
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.4
4
+ version: 0.2.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ken Rettberg
@@ -118,6 +118,7 @@ files:
118
118
  - templates/app/views/.gitkeep
119
119
  - templates/app/views/index.erb
120
120
  - templates/app/views/layout.erb
121
+ - templates/bin/console
121
122
  - templates/config.ru
122
123
  - templates/config/database.rb
123
124
  - templates/config/environment.rb