humidifier 2.5.0 → 2.6.0

Sign up to get free protection for your applications and to get access to all the features.
data/lib/humidifier.rb CHANGED
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'date'
2
4
  require 'forwardable'
3
5
  require 'json'
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Humidifier
2
4
  # A container module for all adapters for the SDK
3
5
  module AwsAdapters
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Humidifier
2
4
  module AwsAdapters
3
5
  # An adapter used when neither SDK is loaded
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Humidifier
2
4
  module AwsAdapters
3
5
  # The adapter for v1 of aws-sdk
@@ -1,9 +1,11 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Humidifier
2
4
  module AwsAdapters
3
5
  # The adapter for v2 of aws-sdk
4
6
  class SDKV2 < Base
5
7
  # Format of the timestamp used in changeset naming
6
- TIME_FORMAT = '%Y-%m-%d-%H-%M-%S'.freeze
8
+ TIME_FORMAT = '%Y-%m-%d-%H-%M-%S'
7
9
 
8
10
  # Create a change set in CFN
9
11
  def create_change_set(payload)
@@ -1,9 +1,11 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Humidifier
2
4
  module AwsAdapters
3
5
  # The adapter for v3 of aws-sdk
4
6
  class SDKV3 < SDKV2
5
7
  # The notice to add the `aws-sdk-s3` gem when it is needed.
6
- S3_SDK_MESSAGE = <<-MSG.freeze
8
+ S3_SDK_MESSAGE = <<-MSG
7
9
  The AWS SDK for versions 3+ have broken out individual AWS modules into their
8
10
  own gems. Since the stack that you're attempting to use is large enough that it
9
11
  needs to be uploaded to S3, humidifier needs to load the S3 SDK. Please make
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'humidifier/aws_adapters/base'
2
4
  require 'humidifier/aws_adapters/noop'
3
5
  require 'humidifier/aws_adapters/sdkv1'
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Humidifier
2
4
  # Represents a CFN stack condition
3
5
  class Condition
@@ -1,9 +1,11 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Humidifier
2
4
  # a container for user params
3
5
  class Configuration
4
6
  # The message that gets displayed when the stack body is too large to use
5
7
  # the template_body option
6
- UPLOAD_MESSAGE = <<-MSG.freeze
8
+ UPLOAD_MESSAGE = <<-MSG
7
9
  The %<identifier>s stack's body is too large to be use the template_body option,
8
10
  and therefore must use the template_url option instead. You can configure
9
11
  Humidifier to do this automatically by setting up the s3 config on the top-level
data/lib/humidifier/fn.rb CHANGED
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Humidifier
2
4
  # Builds CFN function calls
3
5
  class Fn
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Humidifier
2
4
  # Pre-setting this module because AWS has a "Config" module and the below
3
5
  # register method dynamically looks up the module to see whether or not it
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Humidifier
2
4
  # Represents a CFN stack mapping
3
5
  class Mapping
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Humidifier
2
4
  # Represents a CFN stack output
3
5
  class Output
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Humidifier
2
4
  # Represents a CFN stack parameter
3
5
  class Parameter
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Humidifier
2
4
  # Container for property of CFN resources
3
5
  module Props
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Humidifier
2
4
  module Props
3
5
  # Superclass for all CFN properties
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Humidifier
2
4
  module Props
3
5
  # A boolean property
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Humidifier
2
4
  module Props
3
5
  # A double property
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Humidifier
2
4
  module Props
3
5
  # An integer property
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Humidifier
2
4
  module Props
3
5
  # A Json property
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Humidifier
2
4
  module Props
3
5
  # A property that is contained in a list
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Humidifier
2
4
  module Props
3
5
  # A property that is contained in a Map
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Humidifier
2
4
  module Props
3
5
  # A string property
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Humidifier
2
4
  module Props
3
5
  # A structure property that references a structure from the specification
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Humidifier
2
4
  module Props
3
5
  # A timestamp (ISO 8601) property
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Humidifier
2
4
  # Builds CFN references
3
5
  class Ref
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Humidifier
2
4
  # Superclass for all AWS resources
3
5
  class Resource
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Humidifier
2
4
  # The payload sent to the shim methods, representing the stack and the options
3
5
  class SdkPayload
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Humidifier
2
4
  # Dumps an object to CFN syntax
3
5
  class Serializer
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Humidifier
2
4
  # Manages waiting for stack events for v1 of the SDK
3
5
  class Sleeper
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Humidifier
2
4
  # Represents a CFN stack
3
5
  class Stack
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Humidifier
2
4
  # Dumps an object to CFN syntax
3
5
  module Utils
@@ -1,4 +1,6 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Humidifier
2
4
  # Gem version
3
- VERSION = '2.5.0'.freeze
5
+ VERSION = '2.6.0'
4
6
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: humidifier
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.5.0
4
+ version: 2.6.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Localytics
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-08-15 00:00:00.000000000 Z
11
+ date: 2018-08-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -72,14 +72,14 @@ dependencies:
72
72
  requirements:
73
73
  - - "~>"
74
74
  - !ruby/object:Gem::Version
75
- version: '0.56'
75
+ version: '0.58'
76
76
  type: :development
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
80
  - - "~>"
81
81
  - !ruby/object:Gem::Version
82
- version: '0.56'
82
+ version: '0.58'
83
83
  - !ruby/object:Gem::Dependency
84
84
  name: simplecov
85
85
  requirement: !ruby/object:Gem::Requirement