lono 3.0.0 → 3.0.1

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: 2d0a86c90a4434f8330f76b0dd3c804449d42c68
4
- data.tar.gz: d8a703e5267a622bf1280d60283e80aeb4cf41ad
3
+ metadata.gz: a7bf899e0c6e9dba34f0aff2e220325275f419fd
4
+ data.tar.gz: 47400300431d3be963f406faff2ce98b369021d9
5
5
  SHA512:
6
- metadata.gz: 5051c3a781e0eb8b9e00c2eb38072c7f764e2d75516622a61a823d13810753e24718829783a50ffd4fdc24ebfe37b90c9df70b25cb3b587ce505d7aa15d8a9c7
7
- data.tar.gz: 2e1180d405393ed872c504727f2d612dea0e301b7197a6aefa82de3f3396c83cb464276e4639be60d5c6824a567eab6f8066c7a58c2a6bb15881115b749f5df1
6
+ metadata.gz: 9e4b477af4147d519185b81ad26ad1489739d13ddc849dde311fdf3994862132c56e567f13cb18f0ccfe554042f4a044703c00e46a2d5601aaeb1045f7afa98a
7
+ data.tar.gz: 95b037ae178f17e914542ef48667fc4196235c8ce68a9b997fa1d339f6a2584841b0707c06b047318eb699052e2a00e9643726390dc6ff4eeb5072ee69be9151
data/CHANGELOG.md CHANGED
@@ -3,6 +3,9 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  This project *tries* to adhere to [Semantic Versioning](http://semver.org/), even before v1.0.
5
5
 
6
+ ## [3.0.1]
7
+ - update aws-sdk to version 3
8
+
6
9
  ## [3.0.0]
7
10
  - Major feature changes
8
11
  - Lono structural changes
@@ -13,7 +13,7 @@ class Lono::Cfn::Create < Lono::Cfn::Base
13
13
  end
14
14
 
15
15
  if stack_exists?(@stack_name)
16
- puts "Cannot create '#{@stack_name}' stack because it already exists."
16
+ puts "Cannot create '#{@stack_name}' stack because it already exists.".colorize(:red)
17
17
  return
18
18
  end
19
19
 
data/lib/lono/settings.rb CHANGED
@@ -3,6 +3,13 @@ class Lono::Settings
3
3
  @project_root = project_root || '.'
4
4
  end
5
5
 
6
+ # The options from the files get merged with the following precedence:
7
+ #
8
+ # current folder - The current folder’s lono/settings.yml values take the highest precedence.
9
+ # user - The user’s ~/.lono/settings.yml values take the second highest precedence.
10
+ # default - The default settings bundled with the tool takes the lowest precedence.
11
+ #
12
+ # More info: http://lono.cloud/docs/settings/
6
13
  def data
7
14
  return @settings_yaml if @settings_yaml
8
15
 
@@ -2,6 +2,11 @@ require "aws-sdk"
2
2
 
3
3
  module Lono::Template::AwsServices
4
4
  def s3
5
- @s3 ||= Aws::S3::Client.new
5
+ return @s3 if @s3
6
+
7
+ options = {}
8
+ # example: endpoint: 'https://s3.us-west-2.amazonaws.com'
9
+ options[:endpoint] = ENV['S3_ENDPOINT'] if ENV['S3_ENDPOINT']
10
+ @s3 = Aws::S3::Client.new(options)
6
11
  end
7
12
  end
data/lib/lono/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Lono
2
- VERSION = "3.0.0"
2
+ VERSION = "3.0.1"
3
3
  end
data/lono.gemspec CHANGED
@@ -26,7 +26,7 @@ Gem::Specification.new do |gem|
26
26
  gem.add_dependency "guard-lono"
27
27
  gem.add_dependency "colorize"
28
28
  gem.add_dependency "hashie"
29
- gem.add_dependency "aws-sdk"
29
+ gem.add_dependency "aws-sdk", '~> 3'
30
30
  gem.add_dependency "activesupport"
31
31
  # gem.add_dependency "plissken" # dependency for vendor/lono-params
32
32
  # using the vendor fork version: https://github.com/tongueroo/plissken
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lono
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.0
4
+ version: 3.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tung Nguyen
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-08-28 00:00:00.000000000 Z
11
+ date: 2017-09-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: json
@@ -126,16 +126,16 @@ dependencies:
126
126
  name: aws-sdk
127
127
  requirement: !ruby/object:Gem::Requirement
128
128
  requirements:
129
- - - ">="
129
+ - - "~>"
130
130
  - !ruby/object:Gem::Version
131
- version: '0'
131
+ version: '3'
132
132
  type: :runtime
133
133
  prerelease: false
134
134
  version_requirements: !ruby/object:Gem::Requirement
135
135
  requirements:
136
- - - ">="
136
+ - - "~>"
137
137
  - !ruby/object:Gem::Version
138
- version: '0'
138
+ version: '3'
139
139
  - !ruby/object:Gem::Dependency
140
140
  name: activesupport
141
141
  requirement: !ruby/object:Gem::Requirement