sequelizer 0.0.2 → 0.0.3

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
  SHA1:
3
- metadata.gz: f543366458873761352e0464a1113a9c2f791c7e
4
- data.tar.gz: 36531d0c933c330511d8e15a546e7d9cd391bffa
3
+ metadata.gz: 850cd00d16c6c1ffa076c95ac826cf48322ff678
4
+ data.tar.gz: fa352fe12ffb3d6affc33402ea40f3492af5349a
5
5
  SHA512:
6
- metadata.gz: 8b6dae1e942d5ef102eaed5ba14fb98c84b827079c67ed6171d87b88620608b1a82aaf84b19e93ab3444c79fbfb1d4ce3aa7e9b52223180708abd66428bb3a7d
7
- data.tar.gz: 29dc04d9f2e5ab95f8ea1062f039a5451acc921d65cd8d39783d1e611cb4ae95eb45d991f307c1c23dd8ea6343cd9cec8fd9a52a5a6fb10484020f454de3c1d4
6
+ metadata.gz: 8401cda3328933d79d078bbc20143d9089db5faa638a476eae64ce3fc4bf50dfe7b08fe50c04de0e2e9cee4f0628f55371d4138d7d98dcaf9e816857c18a879d
7
+ data.tar.gz: 57a62e5da3227d41f3825e5ba75aad372b9ebd54d8fa72e798e0c7de9ee53e1568909863a9e15e0825373768043059e9ad4ca41bce729be39d1c049d2e9b7f9d
@@ -1,5 +1,20 @@
1
1
  # Changelog
2
2
  All notable changes to this project will be documented in this file.
3
+
4
+ ## 0.0.3 - 2014-07-10
5
+
6
+ ### Added
7
+ - Ability to view configuration by running `sequelizer config`
8
+
9
+ ### Deprecated
10
+ - Nothing.
11
+
12
+ ### Removed
13
+ - Nothing.
14
+
15
+ ### Fixed
16
+ - Nothing.
17
+
3
18
  ## 0.0.2 - 2014-07-10
4
19
 
5
20
  ### Added
data/README.md CHANGED
@@ -26,9 +26,17 @@ Or install it yourself as:
26
26
 
27
27
  To get the most out of Sequelizer, you'll need to create a config/database.yml file or a .env file and specify your database configuration options in that file.
28
28
 
29
- You'll also need to make sure the gem for your database is installed. You can do this by adding a the gem to your application's Gemfile.
29
+ Sequelizer comes with a handy command that will print out your connection parameters. Just run:
30
30
 
31
- Sequelizer comes with a handy command that will update your Gemfile for you. Once you've specified your database configuration, run `bundle exec sequelizer update_gemfile`. The command will look up the right gem to use with the adapter you've specified, add a line to your Gemfile specifying that gem, and run `bundle install` to install the gem for you.
31
+ bundle exec sequelizer config
32
+
33
+ You'll also need to make sure the gem for your database is installed. You can do this by adding the gem to your application's Gemfile.
34
+
35
+ Sequelizer comes with a handy command that will update your Gemfile for you. Once you've specified your database configuration, run
36
+
37
+ bundle exec sequelizer update_gemfile
38
+
39
+ The command will look up the right gem to use with the adapter you've specified, add a line to your Gemfile specifying that gem, and run `bundle install` to install the gem for you.
32
40
 
33
41
  Once you've specified your options and made sure your database's gem is installed, simply include the Sequelizer module in any class that needs a database connection and you'll get two handy-dandy methods: `db` and `new_db`
34
42
 
@@ -1,4 +1,5 @@
1
1
  require 'thor'
2
+ require 'pp'
2
3
  require_relative 'gemfile_modifier'
3
4
 
4
5
  module Sequelizer
@@ -9,5 +10,10 @@ module Sequelizer
9
10
  def update_gemfile
10
11
  GemfileModifier.new(options).modify
11
12
  end
13
+
14
+ desc 'config', 'prints out the connection parameters'
15
+ def config
16
+ pp Options.new.to_hash
17
+ end
12
18
  end
13
19
  end
@@ -1,4 +1,4 @@
1
1
  module Sequelizer
2
2
  # Version for the gem
3
- VERSION = "0.0.2"
3
+ VERSION = "0.0.3"
4
4
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sequelizer
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ryan Duryea