flynn-autoconf 0.1.0 → 0.2.0

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: aa66be00e9990f2b136b3189b1b9760d5a5f0fbe
4
- data.tar.gz: 51d86bbc1de90f829222b822dc24ccad824c93ed
3
+ metadata.gz: 04c2fc60832a832fdde216ade1c6e5e6f84fb431
4
+ data.tar.gz: 2a94a266566c14042693cc2ed07ec3031646c9b9
5
5
  SHA512:
6
- metadata.gz: 71cf74c7764b22779dd826e0be6f8b206af5b2fc986008d7a352b6055937cfe856085e3d14312be6ab56e302dcf58edcaa638bc8f317e193e92d75d4208fda2c
7
- data.tar.gz: ae0a85596ff27c09767069b554796cd0debafccac6e711fe123b21544bf7ba51c1dd2a48f48f081514fafbaeab65b4992e4f8cb91588a32256ea6080ac0d86c5
6
+ metadata.gz: 67fff461f3787d95c7717f0dea176efa7a7e9e60552b970982831d330623f4b69452710651cb1db5dec299353f4317ca839173b8bdb119aa5f226c66b7889628
7
+ data.tar.gz: 0a5d3b40052bb7bad0dfe00d3faa34fde9bdaf9f0a59bd64ef3a450629bce73b0d6f88f4367b26b67e1ac71b5e79572c335140ca64e7cf8624d05ec4f5daaead
data/README.md CHANGED
@@ -1,8 +1,6 @@
1
1
  # Flynn::Autoconf
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/flynn/autoconf`. 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
+ Small utility gem that sets up DATABASE_URL from PGUSER PGPASSWORD PGHOST and PGDATABASE environment vars.
6
4
 
7
5
  ## Installation
8
6
 
@@ -22,13 +20,8 @@ Or install it yourself as:
22
20
 
23
21
  ## Usage
24
22
 
25
- TODO: Write usage instructions here
26
-
27
- ## Development
28
-
29
- After checking out the repo, run `bin/setup` to install dependencies. Then, run `bin/console` for an interactive prompt that will allow you to experiment.
23
+ Flynn::AutoConf.setup_postgres
30
24
 
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` to create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
32
25
 
33
26
  ## Contributing
34
27
 
@@ -0,0 +1 @@
1
+ Flynn::AutoConf.setup_postgres(key: 'DATABASE_URL')
@@ -1,5 +1,5 @@
1
1
  module Flynn
2
2
  module Autoconf
3
- VERSION = "0.1.0"
3
+ VERSION = "0.2.0"
4
4
  end
5
5
  end
@@ -15,3 +15,5 @@ module Flynn
15
15
  end
16
16
  end
17
17
  end
18
+
19
+ require 'autoconf/rails' if defined?(Rails)
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: flynn-autoconf
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Hannes Nevalainen
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2015-08-28 00:00:00.000000000 Z
11
+ date: 2015-10-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -76,6 +76,7 @@ files:
76
76
  - bin/setup
77
77
  - flynn-autoconf.gemspec
78
78
  - lib/flynn/autoconf.rb
79
+ - lib/flynn/autoconf/rails.rb
79
80
  - lib/flynn/autoconf/version.rb
80
81
  homepage: https://github.com/kwando/flynn-autoconf
81
82
  licenses: []