capistrano-env 0.0.5 → 0.0.6

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: 62a5c599be9a5f7035abc1b4c1d8e186bd64cf5a
4
- data.tar.gz: e423190c788c45cb7826fe671bf66eb4d3438040
3
+ metadata.gz: 8c6d6246b91035f56134ddcc439f1d891697840d
4
+ data.tar.gz: ebf3e969d776b6e5fcbad1e68d27e63c0326e045
5
5
  SHA512:
6
- metadata.gz: 14e45200a7211a2d043a9c46d961b795b9a9474a58d8b19cb87dc905e13e1c6395e0b8123dead0b1d9737311b596244523edca83efdaf525dc9320fe06384070
7
- data.tar.gz: 0077c5252713c32a5027d33ed6850f6df2054bf03e37c28a349ac2096dd3b098bf080e7a1f345d47be33cf915d53f350f2d60b72affdd09ee559d18b90d05387
6
+ metadata.gz: 07e1a8e194b7b3511e8232a64d818037aaa37bdcf837786e16be75b75d67b22b4e230c34a3eb1c4b02ca5ba33087bee3118fcd2937bbe5e628b9ae4c5a65eaaf
7
+ data.tar.gz: a6c91e02cedf59e99cbd7745cefc2c4d9d8cb294ac37a60f14c29572c2b1c0c4844345393f9524af3ca3720a06fa01661433fcf4356c89e4d7b2a5a5a470bc03
@@ -6,6 +6,7 @@ module Capistrano
6
6
  config = Capistrano::Env::Config.new
7
7
  yield(config)
8
8
  add config
9
+ set :default_environment, config.envs
9
10
  config
10
11
  end
11
12
 
@@ -1,5 +1,5 @@
1
1
  module Capistrano
2
2
  module Env
3
- VERSION = "0.0.5"
3
+ VERSION = "0.0.6"
4
4
  end
5
5
  end
@@ -5,11 +5,17 @@ describe Capistrano::Env::Plugin do
5
5
  let(:capistrano) { Capistrano::Configuration.new }
6
6
 
7
7
  describe :capenv do
8
- let(:setup) { capistrano.capenv.use {|config| ; } }
8
+ let(:setup) { capistrano.capenv.use {|config| config.add "HELLO", "WORLD" } }
9
+
9
10
  it 'add task' do
10
11
  expect(capistrano.capenv).to receive(:add)
11
12
  setup
12
13
  end
13
14
  it { expect(setup).to be_a Capistrano::Env::Config }
15
+
16
+ it "set default_environment" do
17
+ setup
18
+ expect(capistrano.fetch(:default_environment)).to eq "HELLO" => "WORLD"
19
+ end
14
20
  end
15
21
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: capistrano-env
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - masarakki
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-02-07 00:00:00.000000000 Z
11
+ date: 2014-02-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails