<feed xmlns='http://www.w3.org/2005/Atom'>
<title>dbshell-rails, branch master</title>
<subtitle>A Rake task for Ruby on Rails to painlessly open a database shell</subtitle>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/dbshell-rails/'/>
<entry>
<title>Increase version v0.0.1 -&gt; v0.0.2</title>
<updated>2017-05-09T18:50:07+00:00</updated>
<author>
<name>Teddy Wing</name>
</author>
<published>2017-05-09T18:50:07+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/dbshell-rails/commit/?id=85c24cc3b0c7b5bca78033b67c4cfc6801b5f545'/>
<id>85c24cc3b0c7b5bca78033b67c4cfc6801b5f545</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>version.rb: Use single quotes</title>
<updated>2017-05-09T18:49:30+00:00</updated>
<author>
<name>Teddy Wing</name>
</author>
<published>2017-05-09T18:49:30+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/dbshell-rails/commit/?id=3af76be45efa59b8abf7d8e425b6aee60a27ec3f'/>
<id>3af76be45efa59b8abf7d8e425b6aee60a27ec3f</id>
<content type='text'>
Match the style in the rest of the project.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Match the style in the rest of the project.
</pre>
</div>
</content>
</entry>
<entry>
<title>Add CHANGELOG</title>
<updated>2017-05-09T18:42:54+00:00</updated>
<author>
<name>Teddy Wing</name>
</author>
<published>2017-05-09T18:42:54+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/dbshell-rails/commit/?id=a44b2adbabb41eabe659f8b461fc1a2a9ece7f12'/>
<id>a44b2adbabb41eabe659f8b461fc1a2a9ece7f12</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Merge branch 'fix-undefined-method-desc-exception'</title>
<updated>2017-05-09T18:36:27+00:00</updated>
<author>
<name>Teddy Wing</name>
</author>
<published>2017-05-09T18:36:27+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/dbshell-rails/commit/?id=3e04642dc5eebbb7e4d7b6e51f7931d4a6ae6609'/>
<id>3e04642dc5eebbb7e4d7b6e51f7931d4a6ae6609</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>rails.rb: Check that `Rake` is loaded before loading Rake task</title>
<updated>2017-05-09T18:30:02+00:00</updated>
<author>
<name>Teddy Wing</name>
</author>
<published>2017-05-09T18:30:02+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/dbshell-rails/commit/?id=27eaa02d28cc07ceb59a51529100ee4b7016a38f'/>
<id>27eaa02d28cc07ceb59a51529100ee4b7016a38f</id>
<content type='text'>
Was getting an exception when trying to start the development server on
a Rails 5.0.1 app:

    $ bundle exec rails s
    dbshell-rails/lib/dbshell/rails/tasks/dbshell.rake:5:in `&lt;top (required)&gt;': undefined method `desc' for main:Object (NoMethodError)
    	from .../ruby/gems/2.3.0/gems/activesupport-5.0.1/lib/active_support/dependencies.rb:287:in `load'
    	from .../ruby/gems/2.3.0/gems/activesupport-5.0.1/lib/active_support/dependencies.rb:287:in `block in load'
    	from .../ruby/gems/2.3.0/gems/activesupport-5.0.1/lib/active_support/dependencies.rb:259:in `load_dependency'
    	from .../ruby/gems/2.3.0/gems/activesupport-5.0.1/lib/active_support/dependencies.rb:287:in `load'
    	from dbshell-rails/lib/dbshell/rails.rb:3:in `&lt;top (required)&gt;'
    	from .../ruby/gems/2.3.0/gems/bundler-1.14.2/lib/bundler/runtime.rb:105:in `require'
    	from .../ruby/gems/2.3.0/gems/bundler-1.14.2/lib/bundler/runtime.rb:105:in `rescue in block in require'
    	from .../ruby/gems/2.3.0/gems/bundler-1.14.2/lib/bundler/runtime.rb:82:in `block in require'
    	from .../ruby/gems/2.3.0/gems/bundler-1.14.2/lib/bundler/runtime.rb:75:in `each'
    	from .../ruby/gems/2.3.0/gems/bundler-1.14.2/lib/bundler/runtime.rb:75:in `require'
    	from .../ruby/gems/2.3.0/gems/bundler-1.14.2/lib/bundler.rb:107:in `require'
    	from rails-app/config/application.rb:7:in `&lt;top (required)&gt;'
    	from .../ruby/gems/2.3.0/gems/railties-5.0.1/lib/rails/commands/commands_tasks.rb:88:in `require'
    	from .../ruby/gems/2.3.0/gems/railties-5.0.1/lib/rails/commands/commands_tasks.rb:88:in `block in server'
    	from .../ruby/gems/2.3.0/gems/railties-5.0.1/lib/rails/commands/commands_tasks.rb:85:in `tap'
    	from .../ruby/gems/2.3.0/gems/railties-5.0.1/lib/rails/commands/commands_tasks.rb:85:in `server'
    	from .../ruby/gems/2.3.0/gems/railties-5.0.1/lib/rails/commands/commands_tasks.rb:49:in `run_command!'
    	from .../ruby/gems/2.3.0/gems/railties-5.0.1/lib/rails/commands.rb:18:in `&lt;top (required)&gt;'
    	from rails-app/bin/rails:9:in `require'
    	from rails-app/bin/rails:9:in `&lt;top (required)&gt;'
    	from .../ruby/gems/2.3.0/gems/spring-2.0.1/lib/spring/client/rails.rb:28:in `load'
    	from .../ruby/gems/2.3.0/gems/spring-2.0.1/lib/spring/client/rails.rb:28:in `call'
    	from .../ruby/gems/2.3.0/gems/spring-2.0.1/lib/spring/client/command.rb:7:in `call'
    	from .../ruby/gems/2.3.0/gems/spring-2.0.1/lib/spring/client.rb:30:in `run'
    	from .../ruby/gems/2.3.0/gems/spring-2.0.1/bin/spring:49:in `&lt;top (required)&gt;'
    	from .../ruby/gems/2.3.0/gems/spring-2.0.1/lib/spring/binstub.rb:31:in `load'
    	from .../ruby/gems/2.3.0/gems/spring-2.0.1/lib/spring/binstub.rb:31:in `&lt;top (required)&gt;'
    	from rails-app/bin/spring:15:in `require'
    	from rails-app/bin/spring:15:in `&lt;top (required)&gt;'
    	from bin/rails:3:in `load'
    	from bin/rails:3:in `&lt;main&gt;'

Looks like Rails is trying to load the task without Rake, and the
interpreter doesn't know what to do with the Rake methods.

Follow the pattern in
https://github.com/paulelliott/fabrication/blob/b470cd817e1973c14e3253cd76606cf934942ca1/lib/fabrication.rb
and guard the load with a check for whether `Rake` is defined.

This makes the server start up and work as expected again.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Was getting an exception when trying to start the development server on
a Rails 5.0.1 app:

    $ bundle exec rails s
    dbshell-rails/lib/dbshell/rails/tasks/dbshell.rake:5:in `&lt;top (required)&gt;': undefined method `desc' for main:Object (NoMethodError)
    	from .../ruby/gems/2.3.0/gems/activesupport-5.0.1/lib/active_support/dependencies.rb:287:in `load'
    	from .../ruby/gems/2.3.0/gems/activesupport-5.0.1/lib/active_support/dependencies.rb:287:in `block in load'
    	from .../ruby/gems/2.3.0/gems/activesupport-5.0.1/lib/active_support/dependencies.rb:259:in `load_dependency'
    	from .../ruby/gems/2.3.0/gems/activesupport-5.0.1/lib/active_support/dependencies.rb:287:in `load'
    	from dbshell-rails/lib/dbshell/rails.rb:3:in `&lt;top (required)&gt;'
    	from .../ruby/gems/2.3.0/gems/bundler-1.14.2/lib/bundler/runtime.rb:105:in `require'
    	from .../ruby/gems/2.3.0/gems/bundler-1.14.2/lib/bundler/runtime.rb:105:in `rescue in block in require'
    	from .../ruby/gems/2.3.0/gems/bundler-1.14.2/lib/bundler/runtime.rb:82:in `block in require'
    	from .../ruby/gems/2.3.0/gems/bundler-1.14.2/lib/bundler/runtime.rb:75:in `each'
    	from .../ruby/gems/2.3.0/gems/bundler-1.14.2/lib/bundler/runtime.rb:75:in `require'
    	from .../ruby/gems/2.3.0/gems/bundler-1.14.2/lib/bundler.rb:107:in `require'
    	from rails-app/config/application.rb:7:in `&lt;top (required)&gt;'
    	from .../ruby/gems/2.3.0/gems/railties-5.0.1/lib/rails/commands/commands_tasks.rb:88:in `require'
    	from .../ruby/gems/2.3.0/gems/railties-5.0.1/lib/rails/commands/commands_tasks.rb:88:in `block in server'
    	from .../ruby/gems/2.3.0/gems/railties-5.0.1/lib/rails/commands/commands_tasks.rb:85:in `tap'
    	from .../ruby/gems/2.3.0/gems/railties-5.0.1/lib/rails/commands/commands_tasks.rb:85:in `server'
    	from .../ruby/gems/2.3.0/gems/railties-5.0.1/lib/rails/commands/commands_tasks.rb:49:in `run_command!'
    	from .../ruby/gems/2.3.0/gems/railties-5.0.1/lib/rails/commands.rb:18:in `&lt;top (required)&gt;'
    	from rails-app/bin/rails:9:in `require'
    	from rails-app/bin/rails:9:in `&lt;top (required)&gt;'
    	from .../ruby/gems/2.3.0/gems/spring-2.0.1/lib/spring/client/rails.rb:28:in `load'
    	from .../ruby/gems/2.3.0/gems/spring-2.0.1/lib/spring/client/rails.rb:28:in `call'
    	from .../ruby/gems/2.3.0/gems/spring-2.0.1/lib/spring/client/command.rb:7:in `call'
    	from .../ruby/gems/2.3.0/gems/spring-2.0.1/lib/spring/client.rb:30:in `run'
    	from .../ruby/gems/2.3.0/gems/spring-2.0.1/bin/spring:49:in `&lt;top (required)&gt;'
    	from .../ruby/gems/2.3.0/gems/spring-2.0.1/lib/spring/binstub.rb:31:in `load'
    	from .../ruby/gems/2.3.0/gems/spring-2.0.1/lib/spring/binstub.rb:31:in `&lt;top (required)&gt;'
    	from rails-app/bin/spring:15:in `require'
    	from rails-app/bin/spring:15:in `&lt;top (required)&gt;'
    	from bin/rails:3:in `load'
    	from bin/rails:3:in `&lt;main&gt;'

Looks like Rails is trying to load the task without Rake, and the
interpreter doesn't know what to do with the Rake methods.

Follow the pattern in
https://github.com/paulelliott/fabrication/blob/b470cd817e1973c14e3253cd76606cf934942ca1/lib/fabrication.rb
and guard the load with a check for whether `Rake` is defined.

This makes the server start up and work as expected again.
</pre>
</div>
</content>
</entry>
<entry>
<title>dbshell-rails.gemspec: Add homepage</title>
<updated>2017-05-01T02:38:28+00:00</updated>
<author>
<name>Teddy Wing</name>
</author>
<published>2017-05-01T02:38:28+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/dbshell-rails/commit/?id=67c870705085d44b99e9d0ca1361f9d62c133715'/>
<id>67c870705085d44b99e9d0ca1361f9d62c133715</id>
<content type='text'>
Link to the project's GitHub page.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Link to the project's GitHub page.
</pre>
</div>
</content>
</entry>
<entry>
<title>dbshell-rails.gemspec: Use SPDX ID for license</title>
<updated>2017-05-01T02:16:25+00:00</updated>
<author>
<name>Teddy Wing</name>
</author>
<published>2017-05-01T02:16:25+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/dbshell-rails/commit/?id=317fca5fb651f6510f514332bab7bc4ff83a6176'/>
<id>317fca5fb651f6510f514332bab7bc4ff83a6176</id>
<content type='text'>
The RubyGems.org guide
(http://guides.rubygems.org/specification-reference/#license=) specifies
that the `license` field should use "the standard SPDX ID
spdx.org/licenses/ for the license".
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The RubyGems.org guide
(http://guides.rubygems.org/specification-reference/#license=) specifies
that the `license` field should use "the standard SPDX ID
spdx.org/licenses/ for the license".
</pre>
</div>
</content>
</entry>
<entry>
<title>rails.rb: Simplify `load` call to include Rake task</title>
<updated>2017-05-01T02:08:58+00:00</updated>
<author>
<name>Teddy Wing</name>
</author>
<published>2017-05-01T02:08:58+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/dbshell-rails/commit/?id=ad3b6c7e69470a2b5bd68c7cafa170332b213b92'/>
<id>ad3b6c7e69470a2b5bd68c7cafa170332b213b92</id>
<content type='text'>
Thanks to the Patterns guide on rubygems.org, I now see that we don't
have to use `__FILE__` at all. Cool!

See:
http://guides.rubygems.org/patterns/#requiring-files-relative-to-each-other
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Thanks to the Patterns guide on rubygems.org, I now see that we don't
have to use `__FILE__` at all. Cool!

See:
http://guides.rubygems.org/patterns/#requiring-files-relative-to-each-other
</pre>
</div>
</content>
</entry>
<entry>
<title>rails.rb: Change to single-quotes</title>
<updated>2017-05-01T02:05:32+00:00</updated>
<author>
<name>Teddy Wing</name>
</author>
<published>2017-05-01T02:05:32+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/dbshell-rails/commit/?id=96b181b74aeac226d45a1f4d4a13488931b2b72d'/>
<id>96b181b74aeac226d45a1f4d4a13488931b2b72d</id>
<content type='text'>
Follow this package's convention.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Follow this package's convention.
</pre>
</div>
</content>
</entry>
<entry>
<title>License under the LGPLv3+</title>
<updated>2017-05-01T01:56:49+00:00</updated>
<author>
<name>Teddy Wing</name>
</author>
<published>2017-05-01T01:56:49+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/dbshell-rails/commit/?id=e35a0d3d39ecb7c835b993a30c8d3aec8b07e8c2'/>
<id>e35a0d3d39ecb7c835b993a30c8d3aec8b07e8c2</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
</feed>
