mina-config 0.0.1 → 0.0.2

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
  SHA1:
3
- metadata.gz: 152340b5d39b85176be19edd9b87e779d7b9c8a2
4
- data.tar.gz: fdec71830cb42986844ffd3b1870057208de4fb9
3
+ metadata.gz: 5ba93e5b3598ce648cee7f820656da583dbaab5e
4
+ data.tar.gz: d351e1b40af33e2712c9e771e78a973812cfcd67
5
5
  SHA512:
6
- metadata.gz: b3d8b9a7789b0414dadec24329dc6a08f1afb3ce23a57040ed5b2dd61119e4d2ac699a3a969a7c9e7b1ac9f0708dcbed50b84519cbec52e9a84a1f1ecc268621
7
- data.tar.gz: aa75fb46c580bca25a2d50fc5f55f6ca24820149a7bc729e033a9712051745d5d4c19d4edad6e04e87dbf59d00353493f0e9388367f21ce750573579a36405b1
6
+ metadata.gz: c3e008f2ea8c441ba663b41cd8697ed02ec134499f61f6c723fabbca3c65241c652c9845638ab85c1e66413bafd7051c6eeac69c121fa2dd271d695699e86ec1
7
+ data.tar.gz: 8bdcc7305e04e6b7bbaf3d252dfdf6206bda612c2d701dbd561e8d2f83dc07ace83a0de8a053ca1723fa163fa24287d85c0a0229278b7f81f52c915bc8cf4531
data/README.md CHANGED
@@ -2,11 +2,13 @@
2
2
 
3
3
  Adds a multi-environment yml configuration file to mina. Environment configuration is dynamically created by the definitions in the deploy.yml file.
4
4
 
5
+ As of right now the gem does require you to use rvm and have a .ruby-version file.
6
+
5
7
  ## Installation
6
8
 
7
9
  Add this line to your application's Gemfile:
8
10
 
9
- gem 'mina-config'
11
+ gem 'mina-config', require: false
10
12
 
11
13
  And then execute:
12
14
 
@@ -38,6 +40,11 @@ task deploy: :environment do
38
40
  end
39
41
  ```
40
42
 
43
+ At the moment the gem requires usage of rvm. Add the following to `config/deploy.rb` with the path to your rvm install:
44
+ ```rb
45
+ set :rvm_path, '/usr/local/rvm/scripts/rvm'
46
+ ```
47
+
41
48
  Then run the config initializer:
42
49
 
43
50
  ```shell
@@ -1,5 +1,5 @@
1
1
  module Mina
2
2
  module Config
3
- VERSION = "0.0.1"
3
+ VERSION = "0.0.2"
4
4
  end
5
5
  end
data/lib/mina/config.rb CHANGED
@@ -23,7 +23,7 @@ unless environments.nil?
23
23
  desc "Set the environment to #{environment}."
24
24
  task(environment) do
25
25
  set :rails_env, environment
26
- set :branch, config[rails_env]['branch']
26
+ set :branch, ENV['branch'] || onfig[rails_env]['branch']
27
27
  set :user, config[rails_env]['user']
28
28
  set :domain, config[rails_env]['domain']
29
29
  set :app, config[rails_env]['app']
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mina-config
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Zachary Mckenzie
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-08-24 00:00:00.000000000 Z
11
+ date: 2014-10-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: mina
@@ -95,3 +95,4 @@ signing_key:
95
95
  specification_version: 4
96
96
  summary: Adds a multi-environment yml configuration file to mina
97
97
  test_files: []
98
+ has_rdoc: