BibOpsworks 0.1.7 → 0.1.8

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: a90b778bd344bee1a2545f3fdda5bbf50a436320
4
- data.tar.gz: 453b15e3fac1570691360db143e1d1979cc3c564
3
+ metadata.gz: a4c80570e15b0f798a668a7608a8e2a93532533e
4
+ data.tar.gz: b63cb613831900e72b64594bd996f6d3d53e5df4
5
5
  SHA512:
6
- metadata.gz: 89e4ed70a1399a9b81d45293b6ceff3a0beb990de247573cde5ee1179a1043be96ba12a27a75624c7bb812996ff8631bc062e6fa151cc5b2b373b9c81d1f9561
7
- data.tar.gz: 6df9ec82a3151de5f2b97252045ce05e3d69d685cf45507ae783c174d1e607834732d3af3e7efd1e6f2ece8e2554e4d209d904a05ccd6504bdb1edfc57b473c4
6
+ metadata.gz: 93fc04a81b93da672bb6350287773a3b382aab0c44fc34bb08b56d126224647e00ccde039be3b0ee01b90c9924e3d3d088974136c07baab2aae0e1b1c0efea90
7
+ data.tar.gz: 9f5619f1631e0850bd20f49eaff2826396ee37c75667e7ab160c604350b8a64e69323f160590496bfb1fb3d542d89fa264b283cdbdbc517eed789fc564b515ea
data/.gitignore CHANGED
@@ -12,8 +12,6 @@ test/tmp
12
12
  test/version_tmp
13
13
  tmp
14
14
 
15
- Gemfile.lock
16
-
17
15
  # YARD artifacts
18
16
  .yardoc
19
17
  _yardoc
@@ -1,7 +1,15 @@
1
1
  language: ruby
2
+
3
+ before_install:
4
+ - gem update bundler
5
+
2
6
  rvm:
3
- - 2.1
7
+ - 2.2
4
8
 
5
9
  script:
6
10
  - bundle exec rake test
7
- - rubocop
11
+ - bundle exec rubocop
12
+
13
+ branches:
14
+ only:
15
+ - master
@@ -11,7 +11,7 @@ Gem::Specification.new do |spec|
11
11
  spec.homepage = 'https://github.com/easybiblabs/bib-opsworks'
12
12
  spec.summary = 'Tools wrapper for AWS Opsworks Deploys'
13
13
 
14
- spec.license = 'BSD-2-Clause'
14
+ spec.license = 'Apache-2.0'
15
15
 
16
16
  spec.files = `git ls-files`.split($INPUT_RECORD_SEPARATOR)
17
17
  spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
@@ -0,0 +1,55 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ BibOpsworks (0.1.8)
5
+ json
6
+
7
+ GEM
8
+ remote: https://rubygems.org/
9
+ specs:
10
+ ast (2.3.0)
11
+ coveralls (0.8.13)
12
+ json (~> 1.8)
13
+ simplecov (~> 0.11.0)
14
+ term-ansicolor (~> 1.3)
15
+ thor (~> 0.19.1)
16
+ tins (~> 1.6.0)
17
+ docile (1.1.5)
18
+ json (1.8.3)
19
+ minitest (5.0.8)
20
+ parser (2.3.1.2)
21
+ ast (~> 2.2)
22
+ powerpack (0.1.1)
23
+ rainbow (2.1.0)
24
+ rake (11.2.2)
25
+ rubocop (0.40.0)
26
+ parser (>= 2.3.1.0, < 3.0)
27
+ powerpack (~> 0.1)
28
+ rainbow (>= 1.99.1, < 3.0)
29
+ ruby-progressbar (~> 1.7)
30
+ unicode-display_width (~> 1.0, >= 1.0.1)
31
+ ruby-progressbar (1.8.1)
32
+ simplecov (0.11.2)
33
+ docile (~> 1.1.0)
34
+ json (~> 1.8)
35
+ simplecov-html (~> 0.10.0)
36
+ simplecov-html (0.10.0)
37
+ term-ansicolor (1.3.2)
38
+ tins (~> 1.0)
39
+ thor (0.19.1)
40
+ tins (1.6.0)
41
+ unicode-display_width (1.0.5)
42
+
43
+ PLATFORMS
44
+ ruby
45
+
46
+ DEPENDENCIES
47
+ BibOpsworks!
48
+ bundler (~> 1.3)
49
+ coveralls
50
+ minitest (~> 5.0.8)
51
+ rake
52
+ rubocop
53
+
54
+ BUNDLED WITH
55
+ 1.10.6
@@ -1,22 +1,13 @@
1
- Copyright (c) 2013 Till Klampaeckel, Florian Holzhauer, ImagineEasy Solutions LLC
2
- All rights reserved.
1
+ Copyright 2016 Chegg Inc.
3
2
 
4
- Redistribution and use in source and binary forms, with or without modification,
5
- are permitted provided that the following conditions are met:
3
+ Licensed under the Apache License, Version 2.0 (the "License");
4
+ you may not use this file except in compliance with the License.
5
+ You may obtain a copy of the License at
6
6
 
7
- * Redistributions of source code must retain the above copyright notice, this
8
- list of conditions and the following disclaimer.
9
- * Redistributions in binary form must reproduce the above copyright notice,
10
- this list of conditions and the following disclaimer in the documentation
11
- and/or other materials provided with the distribution.
7
+ http://www.apache.org/licenses/LICENSE-2.0
12
8
 
13
- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
14
- ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
15
- WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
16
- IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
17
- INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
18
- BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
19
- DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
20
- LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
21
- OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
22
- OF THE POSSIBILITY OF SUCH DAMAGE.
9
+ Unless required by applicable law or agreed to in writing, software
10
+ distributed under the License is distributed on an "AS IS" BASIS,
11
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ See the License for the specific language governing permissions and
13
+ limitations under the License.
@@ -1,3 +1,4 @@
1
+ require 'bib/opsworks/logging'
1
2
  require 'bib/opsworks/composer'
2
3
  require 'bib/opsworks/newrelic'
3
4
  require 'bib/opsworks/qafoo'
@@ -26,11 +26,11 @@ module Bib
26
26
  def prepare_publishing_data(app_name, deploy_data)
27
27
  scm_revision = deploy_data['scm']['revision']
28
28
 
29
- if deploy_data['deploying_user'].nil? || deploy_data['deploying_user'].empty?
30
- deployment_user = 'opsworks'
31
- else
32
- deployment_user = deploy_data['deploying_user'].split('/')[1]
33
- end
29
+ deployment_user = if deploy_data['deploying_user'].nil? || deploy_data['deploying_user'].empty?
30
+ 'opsworks'
31
+ else
32
+ deploy_data['deploying_user'].split('/')[1]
33
+ end
34
34
 
35
35
  google_params = {}
36
36
  {
@@ -26,11 +26,11 @@ module Bib
26
26
  def prepare_publishing_data(app_name, deploy_data)
27
27
  scm_revision = deploy_data['scm']['revision']
28
28
 
29
- if deploy_data['deploying_user'].nil? || deploy_data['deploying_user'].empty?
30
- deployment_user = 'opsworks'
31
- else
32
- deployment_user = deploy_data['deploying_user'].split('/')[1]
33
- end
29
+ deployment_user = if deploy_data['deploying_user'].nil? || deploy_data['deploying_user'].empty?
30
+ 'opsworks'
31
+ else
32
+ deploy_data['deploying_user'].split('/')[1]
33
+ end
34
34
 
35
35
  newrelic_params = {}
36
36
  {
@@ -1,4 +1,5 @@
1
1
  require 'net/http'
2
+ require 'bib/opsworks/logging'
2
3
 
3
4
  module Bib
4
5
  module Opsworks
@@ -30,11 +31,11 @@ module Bib
30
31
  def prepare_publishing_data(app_name, deploy_data)
31
32
  scm_revision = deploy_data['scm']['revision']
32
33
 
33
- if deploy_data['deploying_user'].nil? || deploy_data['deploying_user'].empty?
34
- deployment_user = 'opsworks'
35
- else
36
- deployment_user = deploy_data['deploying_user'].split('/')[1]
37
- end
34
+ deployment_user = if deploy_data['deploying_user'].nil? || deploy_data['deploying_user'].empty?
35
+ 'opsworks'
36
+ else
37
+ deploy_data['deploying_user'].split('/')[1]
38
+ end
38
39
 
39
40
  name_text = "#{scm_revision} by #{deployment_user}"
40
41
 
@@ -1,5 +1,5 @@
1
1
  module Bib
2
2
  module Opsworks
3
- VERSION = '0.1.7'
3
+ VERSION = '0.1.8'.freeze
4
4
  end
5
5
  end
@@ -11,11 +11,11 @@ class QafooTest < Minitest::Test
11
11
  app_name = 'unittest'
12
12
 
13
13
  scm_revision = deploy_data['scm']['revision']
14
- if deploy_data['deploying_user'].nil? || deploy_data['deploying_user'].empty?
15
- deployment_user = 'opsworks'
16
- else
17
- deployment_user = deploy_data['deploying_user'].split('/')[1]
18
- end
14
+ deployment_user = if deploy_data['deploying_user'].nil? || deploy_data['deploying_user'].empty?
15
+ 'opsworks'
16
+ else
17
+ deploy_data['deploying_user'].split('/')[1]
18
+ end
19
19
  name_text = "#{scm_revision} by #{deployment_user}"
20
20
 
21
21
  result = qafoo.prepare_publishing_data(app_name, deploy_data)
@@ -34,11 +34,11 @@ class QafooTest < Minitest::Test
34
34
  app_name = 'unittest'
35
35
 
36
36
  scm_revision = deploy_data['scm']['revision']
37
- if deploy_data['deploying_user'].nil? || deploy_data['deploying_user'].empty?
38
- deployment_user = 'opsworks'
39
- else
40
- deployment_user = deploy_data['deploying_user'].split('/')[1]
41
- end
37
+ deployment_user = if deploy_data['deploying_user'].nil? || deploy_data['deploying_user'].empty?
38
+ 'opsworks'
39
+ else
40
+ deploy_data['deploying_user'].split('/')[1]
41
+ end
42
42
  name_text = "#{scm_revision} by #{deployment_user}"
43
43
 
44
44
  result = qafoo.prepare_publishing_data(app_name, deploy_data)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: BibOpsworks
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.7
4
+ version: 0.1.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - fh
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2015-07-02 00:00:00.000000000 Z
13
+ date: 2016-06-20 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: json
@@ -108,6 +108,7 @@ files:
108
108
  - ".travis.yml"
109
109
  - BibOpsworks.gemspec
110
110
  - Gemfile
111
+ - Gemfile.lock
111
112
  - LICENSE.txt
112
113
  - README.md
113
114
  - Rakefile
@@ -124,7 +125,7 @@ files:
124
125
  - tests/qafoo_test.rb
125
126
  homepage: https://github.com/easybiblabs/bib-opsworks
126
127
  licenses:
127
- - BSD-2-Clause
128
+ - Apache-2.0
128
129
  metadata: {}
129
130
  post_install_message:
130
131
  rdoc_options: []
@@ -142,9 +143,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
142
143
  version: '0'
143
144
  requirements: []
144
145
  rubyforge_project:
145
- rubygems_version: 2.2.2
146
+ rubygems_version: 2.6.1
146
147
  signing_key:
147
148
  specification_version: 4
148
149
  summary: Tools wrapper for AWS Opsworks Deploys
149
150
  test_files: []
150
- has_rdoc: