evrone-ci-build_configuration 0.2.0.pre25 → 0.2.0.pre26

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: c7826023c13f112738a9630a8309572793f7355f
4
- data.tar.gz: 66af6b3d22003f41ceb74529b99100fef9fbb00f
3
+ metadata.gz: 37300d05658d0e3f0b65a0e23afa7b3f50390663
4
+ data.tar.gz: a382ade1863b459de60c5f7afab6f2e20382550b
5
5
  SHA512:
6
- metadata.gz: a2f160039f3d9c650c84849ed19b4c77018a94413aeec08822e281af5baabe1a3f294713cde9ee966959e68c240029e9ec44ebfd9288ddffb6868bbeda73420c
7
- data.tar.gz: a0f71db702bb96d7639e94d1469857a1bb4345536d1f0238f8e2ab89b7196ea81375a9275e09ec99fe237d54e9278c97826ac7d2ca4222193034fd9b8e94d743
6
+ metadata.gz: d2f42d871576b0e5ce352b0029bd05040ee7aff17e88dabe41c7602a35a98b35e64aceadc8861841f8a5461a3bb037a5a33d8b2c623f891ee59a202a5ac5b324
7
+ data.tar.gz: 8b5d059f7c468c51e3c2127545c7c89d1f09df0c03f0e71b74ae8aed7a6a5b371908e744a76b6a29c3ea73394562a642fde4d4af2176212ef266b4ebf7beb89c
@@ -65,7 +65,7 @@ module Evrone
65
65
  end
66
66
  end
67
67
  else
68
- values
68
+ [values.flatten]
69
69
  end.sort_by(&:to_s)
70
70
  end
71
71
 
@@ -1,7 +1,7 @@
1
1
  module Evrone
2
2
  module CI
3
3
  class BuildConfiguration
4
- VERSION = "0.2.0.pre25"
4
+ VERSION = "0.2.0.pre26"
5
5
  end
6
6
  end
7
7
  end
@@ -0,0 +1,14 @@
1
+ language: ruby
2
+ rvm:
3
+ - "2.0.0"
4
+
5
+ env:
6
+ - DB=postgresql
7
+
8
+ before_script:
9
+ - cp config/samples/secret_token.rb config/initializers/secret_token.rb
10
+ - cp config/database.travis.yml config/database.yml
11
+ - bundle exec rake db:setup
12
+
13
+ script:
14
+ - bundle exec rake
@@ -52,6 +52,18 @@ describe Evrone::CI::BuildConfiguration::Matrix do
52
52
  )}
53
53
  end
54
54
 
55
+ context "with one env and one rvm key" do
56
+ let(:config) { Evrone::CI::BuildConfiguration.from_file fixture_path("travis_bug_1.yml") }
57
+
58
+ it{ should have(1).item }
59
+
60
+ context "attributes" do
61
+ subject { matrix.configurations.map(&:to_matrix_s) }
62
+
63
+ it { should eq ["env:DB=postgresql, rvm:2.0.0"] }
64
+ end
65
+ end
66
+
55
67
  context "values" do
56
68
 
57
69
  it { should have(12).items }
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: evrone-ci-build_configuration
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0.pre25
4
+ version: 0.2.0.pre26
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dmitry Galinsky
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-11-22 00:00:00.000000000 Z
11
+ date: 2013-12-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -86,6 +86,7 @@ files:
86
86
  - lib/evrone/ci/build_configuration/serializable.rb
87
87
  - lib/evrone/ci/build_configuration/version.rb
88
88
  - spec/fixtures/travis.yml
89
+ - spec/fixtures/travis_bug_1.yml
89
90
  - spec/lib/build_configuration_spec.rb
90
91
  - spec/lib/matrix_spec.rb
91
92
  - spec/spec_helper.rb
@@ -116,6 +117,7 @@ specification_version: 4
116
117
  summary: summary
117
118
  test_files:
118
119
  - spec/fixtures/travis.yml
120
+ - spec/fixtures/travis_bug_1.yml
119
121
  - spec/lib/build_configuration_spec.rb
120
122
  - spec/lib/matrix_spec.rb
121
123
  - spec/spec_helper.rb