ruby_lambda 0.2.2

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 ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: f646027b7f81f705b0472a745971a06da4b80db8e45a492638fc12a0b9425356
4
+ data.tar.gz: d0bf726f45c71e52d965a03dca6af04db1a1fe90e12c9fe47f0db78fc4f73862
5
+ SHA512:
6
+ metadata.gz: 64ea3b68aa6e3e789bcd17bdfc337a61cfed2678025cb8c52a911af9702c3289edc6a1feeb83b41ef287464b96ae0d1be117c7f474f6764f1b87bf5e10a314f1
7
+ data.tar.gz: b02f4be3d106db803cb2ed5301521baddcc969285aab632be9c5009edc08cf6b9b4c51970019db49e88f86598530d5ea573540f3d5e6aa3da1d148cbf74de059
data/.gitignore ADDED
@@ -0,0 +1,12 @@
1
+ /.bundle/
2
+ /.yardoc
3
+ /_yardoc/
4
+ /coverage/
5
+ /doc/
6
+ /pkg/
7
+ /spec/reports/
8
+ /tmp/
9
+
10
+ # rspec failure tracking
11
+ .rspec_status
12
+ coverage
data/.rspec ADDED
@@ -0,0 +1,3 @@
1
+ --format documentation
2
+ --color
3
+ --require spec_helper
data/.ruby-version ADDED
@@ -0,0 +1 @@
1
+ 2.5.3
data/.travis.yml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ sudo: false
3
+ language: ruby
4
+ cache: bundler
5
+ rvm:
6
+ - 2.5.0
7
+ before_install: gem install bundler -v 1.16.6
@@ -0,0 +1,74 @@
1
+ # Contributor Covenant Code of Conduct
2
+
3
+ ## Our Pledge
4
+
5
+ In the interest of fostering an open and welcoming environment, we as
6
+ contributors and maintainers pledge to making participation in our project and
7
+ our community a harassment-free experience for everyone, regardless of age, body
8
+ size, disability, ethnicity, gender identity and expression, level of experience,
9
+ nationality, personal appearance, race, religion, or sexual identity and
10
+ orientation.
11
+
12
+ ## Our Standards
13
+
14
+ Examples of behavior that contributes to creating a positive environment
15
+ include:
16
+
17
+ * Using welcoming and inclusive language
18
+ * Being respectful of differing viewpoints and experiences
19
+ * Gracefully accepting constructive criticism
20
+ * Focusing on what is best for the community
21
+ * Showing empathy towards other community members
22
+
23
+ Examples of unacceptable behavior by participants include:
24
+
25
+ * The use of sexualized language or imagery and unwelcome sexual attention or
26
+ advances
27
+ * Trolling, insulting/derogatory comments, and personal or political attacks
28
+ * Public or private harassment
29
+ * Publishing others' private information, such as a physical or electronic
30
+ address, without explicit permission
31
+ * Other conduct which could reasonably be considered inappropriate in a
32
+ professional setting
33
+
34
+ ## Our Responsibilities
35
+
36
+ Project maintainers are responsible for clarifying the standards of acceptable
37
+ behavior and are expected to take appropriate and fair corrective action in
38
+ response to any instances of unacceptable behavior.
39
+
40
+ Project maintainers have the right and responsibility to remove, edit, or
41
+ reject comments, commits, code, wiki edits, issues, and other contributions
42
+ that are not aligned to this Code of Conduct, or to ban temporarily or
43
+ permanently any contributor for other behaviors that they deem inappropriate,
44
+ threatening, offensive, or harmful.
45
+
46
+ ## Scope
47
+
48
+ This Code of Conduct applies both within project spaces and in public spaces
49
+ when an individual is representing the project or its community. Examples of
50
+ representing a project or community include using an official project e-mail
51
+ address, posting via an official social media account, or acting as an appointed
52
+ representative at an online or offline event. Representation of a project may be
53
+ further defined and clarified by project maintainers.
54
+
55
+ ## Enforcement
56
+
57
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be
58
+ reported by contacting the project team at hingasellu@gmail.com. All
59
+ complaints will be reviewed and investigated and will result in a response that
60
+ is deemed necessary and appropriate to the circumstances. The project team is
61
+ obligated to maintain confidentiality with regard to the reporter of an incident.
62
+ Further details of specific enforcement policies may be posted separately.
63
+
64
+ Project maintainers who do not follow or enforce the Code of Conduct in good
65
+ faith may face temporary or permanent repercussions as determined by other
66
+ members of the project's leadership.
67
+
68
+ ## Attribution
69
+
70
+ This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
71
+ available at [http://contributor-covenant.org/version/1/4][version]
72
+
73
+ [homepage]: http://contributor-covenant.org
74
+ [version]: http://contributor-covenant.org/version/1/4/
data/Gemfile ADDED
@@ -0,0 +1,8 @@
1
+ source "https://rubygems.org"
2
+
3
+ git_source(:github) {|repo_name| "https://github.com/#{repo_name}" }
4
+
5
+ ruby '2.5.3'
6
+
7
+ # Specify your gem's dependencies in ruby_lambda.gemspec
8
+ gemspec
data/Gemfile.lock ADDED
@@ -0,0 +1,87 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ ruby_lambda (0.2.2)
5
+ awesome_print (~> 1.8.0)
6
+ thor (~> 0.19)
7
+
8
+ GEM
9
+ remote: https://rubygems.org/
10
+ specs:
11
+ awesome_print (1.8.0)
12
+ coderay (1.1.2)
13
+ diff-lcs (1.3)
14
+ docile (1.3.1)
15
+ ffi (1.9.25)
16
+ formatador (0.2.5)
17
+ guard (2.15.0)
18
+ formatador (>= 0.2.4)
19
+ listen (>= 2.7, < 4.0)
20
+ lumberjack (>= 1.0.12, < 2.0)
21
+ nenv (~> 0.1)
22
+ notiffany (~> 0.0)
23
+ pry (>= 0.9.12)
24
+ shellany (~> 0.0)
25
+ thor (>= 0.18.1)
26
+ guard-compat (1.2.1)
27
+ guard-rspec (4.7.3)
28
+ guard (~> 2.1)
29
+ guard-compat (~> 1.1)
30
+ rspec (>= 2.99.0, < 4.0)
31
+ json (2.1.0)
32
+ listen (3.1.5)
33
+ rb-fsevent (~> 0.9, >= 0.9.4)
34
+ rb-inotify (~> 0.9, >= 0.9.7)
35
+ ruby_dep (~> 1.2)
36
+ lumberjack (1.0.13)
37
+ method_source (0.9.2)
38
+ nenv (0.3.0)
39
+ notiffany (0.1.1)
40
+ nenv (~> 0.1)
41
+ shellany (~> 0.0)
42
+ pry (0.12.2)
43
+ coderay (~> 1.1.0)
44
+ method_source (~> 0.9.0)
45
+ rake (10.5.0)
46
+ rb-fsevent (0.10.3)
47
+ rb-inotify (0.10.0)
48
+ ffi (~> 1.0)
49
+ rspec (3.8.0)
50
+ rspec-core (~> 3.8.0)
51
+ rspec-expectations (~> 3.8.0)
52
+ rspec-mocks (~> 3.8.0)
53
+ rspec-core (3.8.0)
54
+ rspec-support (~> 3.8.0)
55
+ rspec-expectations (3.8.2)
56
+ diff-lcs (>= 1.2.0, < 2.0)
57
+ rspec-support (~> 3.8.0)
58
+ rspec-mocks (3.8.0)
59
+ diff-lcs (>= 1.2.0, < 2.0)
60
+ rspec-support (~> 3.8.0)
61
+ rspec-support (3.8.0)
62
+ ruby_dep (1.5.0)
63
+ shellany (0.0.1)
64
+ simplecov (0.16.1)
65
+ docile (~> 1.1)
66
+ json (>= 1.8, < 3)
67
+ simplecov-html (~> 0.10.0)
68
+ simplecov-html (0.10.2)
69
+ thor (0.20.3)
70
+
71
+ PLATFORMS
72
+ ruby
73
+
74
+ DEPENDENCIES
75
+ bundler (~> 1.16)
76
+ guard
77
+ guard-rspec
78
+ rake (~> 10.0)
79
+ rspec (~> 3.0)
80
+ ruby_lambda!
81
+ simplecov
82
+
83
+ RUBY VERSION
84
+ ruby 2.5.3p105
85
+
86
+ BUNDLED WITH
87
+ 1.16.6
data/Guardfile ADDED
@@ -0,0 +1,46 @@
1
+ # A sample Guardfile
2
+ # More info at https://github.com/guard/guard#readme
3
+
4
+ ## Uncomment and set this to only include directories you want to watch
5
+ # directories %w(app lib config test spec features) \
6
+ # .select{|d| Dir.exist?(d) ? d : UI.warning("Directory #{d} does not exist")}
7
+
8
+ ## Note: if you are using the `directories` clause above and you are not
9
+ ## watching the project directory ('.'), then you will want to move
10
+ ## the Guardfile to a watched dir and symlink it back, e.g.
11
+ #
12
+ # $ mkdir config
13
+ # $ mv Guardfile config/
14
+ # $ ln -s config/Guardfile .
15
+ #
16
+ # and, you'll have to watch "config/Guardfile" instead of "Guardfile"
17
+
18
+ # Note: The cmd option is now required due to the increasing number of ways
19
+ # rspec may be run, below are examples of the most common uses.
20
+ # * bundler: 'bundle exec rspec'
21
+ # * bundler binstubs: 'bin/rspec'
22
+ # * spring: 'bin/rspec' (This will use spring if running and you have
23
+ # installed the spring binstubs per the docs)
24
+ # * zeus: 'zeus rspec' (requires the server to be started separately)
25
+ # * 'just' rspec: 'rspec'
26
+
27
+ guard :rspec, cmd: "bundle exec rspec" do
28
+ require "guard/rspec/dsl"
29
+ dsl = Guard::RSpec::Dsl.new(self)
30
+
31
+ # Feel free to open issues for suggestions and improvements
32
+
33
+ # RSpec files
34
+ rspec = dsl.rspec
35
+ watch(rspec.spec_helper) { rspec.spec_dir }
36
+ watch(rspec.spec_support) { rspec.spec_dir }
37
+ watch(rspec.spec_files)
38
+
39
+ # Ruby files
40
+ ruby = dsl.ruby
41
+ dsl.watch_spec_files_for(ruby.lib_files)
42
+
43
+ watch(%r{^spec/.+_spec\.rb$})
44
+ watch(%r{^lib/(.+)\.rb$}) { |m| "spec/lib/#{m[1]}_spec.rb" }
45
+ watch('spec/spec_helper.rb') { "spec" }
46
+ end
data/LICENSE.txt ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2018 denissellu
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,56 @@
1
+ # RubyLambda
2
+
3
+ RubyLambda is a toolset for developing and deploying serverless Ruby apps in AWS Lambda.
4
+
5
+
6
+ ## Installation
7
+
8
+ $ gem install ruby_lambda
9
+
10
+
11
+ ## Usage
12
+ The main available commands.
13
+
14
+ ```
15
+ $ ruby-lambda init
16
+ $ ruby-lambda execute
17
+ $ ruby-lambda build
18
+ $ ruby-lambda deploy
19
+ ```
20
+
21
+ ### Commands
22
+
23
+ #### ruby-lambda init
24
+ ```
25
+ $ ruby-lambda init
26
+ ```
27
+
28
+ Initializes the `.gitignore`, `config.yml`, `env`, `event.json`, `lambda_function.rb`, `Gemfile`, `.ruby-version` files.
29
+ * `event.json` is where you mock your event.
30
+ * `config.yml` contains some default configuration for your function.
31
+ * `env` will be renamed to `.env` after the init command runs, it will contain `AWS_ACCESS_KEY` and `AWS_SECRET_ACCESS_KEY`. You will need these to be able to deploy your function.
32
+
33
+ Please have a read of the `config.yml` and update any of the default configuration to better suit your function.
34
+
35
+ #### ruby-lambda execute
36
+ ```
37
+ $ ruby-lambda execute
38
+ ```
39
+
40
+ ## Development
41
+
42
+ After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
43
+
44
+ To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
45
+
46
+ ## Contributing
47
+
48
+ Bug reports and pull requests are welcome on GitHub at https://github.com/cookieshq/ruby_lambda. This project is intended to be a welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
49
+
50
+ ## License
51
+
52
+ The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
53
+
54
+ ## Code of Conduct
55
+
56
+ Everyone interacting in the RubyLambda project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/cookieshq/ruby_lambda/blob/master/CODE_OF_CONDUCT.md).
data/Rakefile ADDED
@@ -0,0 +1,6 @@
1
+ require "bundler/gem_tasks"
2
+ require "rspec/core/rake_task"
3
+
4
+ RSpec::Core::RakeTask.new(:spec)
5
+
6
+ task :default => :spec
data/bin/console ADDED
@@ -0,0 +1,14 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require "bundler/setup"
4
+ require "ruby_lambda"
5
+
6
+ # You can add fixtures and/or initialization code here to make experimenting
7
+ # with your gem easier. You can also use a different console, if you like.
8
+
9
+ # (If you use this, don't forget to add pry to your Gemfile!)
10
+ # require "pry"
11
+ # Pry.start
12
+
13
+ require "irb"
14
+ IRB.start(__FILE__)
data/bin/ruby-lambda ADDED
@@ -0,0 +1,24 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require 'bundler/setup'
4
+ require 'ruby_lambda'
5
+
6
+ class RubyLambdaCLI < Thor
7
+ map '-v' => :version, '--version' => :version
8
+ desc '-v (--versions)', 'Outputs the version of Ruby Lambda.'
9
+ def version
10
+ puts RubyLambda::VERSION
11
+ end
12
+
13
+ desc 'init', 'Uses the current directory as a lambda ruby project (creates `main.rb`, `.ruby-version`, and `Gemfile`).'
14
+ def init
15
+ RubyLambda::Init.new(FileUtils.pwd).run
16
+ end
17
+
18
+ desc 'execute', 'execute'
19
+ def execute
20
+ RubyLambda::Execute.new(FileUtils.pwd).run
21
+ end
22
+ end
23
+
24
+ RubyLambdaCLI.start(ARGV)
data/bin/setup ADDED
@@ -0,0 +1,8 @@
1
+ #!/usr/bin/env bash
2
+ set -euo pipefail
3
+ IFS=$'\n\t'
4
+ set -vx
5
+
6
+ bundle install
7
+
8
+ # Do any other automated setup that you need to do here
@@ -0,0 +1,12 @@
1
+ require 'json'
2
+ require 'thor'
3
+ require 'fileutils'
4
+ require 'awesome_print'
5
+ require 'yaml'
6
+
7
+ require 'ruby_lambda/version'
8
+ require 'ruby_lambda/init'
9
+ require 'ruby_lambda/execute'
10
+
11
+ module RubyLambda
12
+ end
@@ -0,0 +1,32 @@
1
+ require 'ruby_lambda/lambda_context'
2
+
3
+ module RubyLambda
4
+ class Execute
5
+ def initialize(current_directory)
6
+ @current_directory = current_directory
7
+ @shell = Thor::Base.shell.new
8
+ end
9
+
10
+ def run(mute: false)
11
+ config_file = "#{@current_directory}/config.yml"
12
+
13
+ config_data = YAML.load_file config_file
14
+
15
+ lambda_function, lambda_handler = config_data['handler'].split('.')
16
+
17
+ load "#{@current_directory}/#{lambda_function}.rb"
18
+
19
+ event_json_file = File.read("#{@current_directory}/event.json")
20
+
21
+ event = JSON.parse(event_json_file)
22
+
23
+ context = LambdaContext.new()
24
+
25
+ if mute
26
+ send(:"#{lambda_handler}", event: event, context: context)
27
+ else
28
+ ap send(:"#{lambda_handler}", event: event, context: context)
29
+ end
30
+ end
31
+ end
32
+ end
@@ -0,0 +1,58 @@
1
+ module RubyLambda
2
+ class Init
3
+
4
+ TEMPLATE_DIR = "#{__dir__}/templates"
5
+
6
+ def initialize(current_directory)
7
+ @current_directory = current_directory
8
+ @shell = Thor::Base.shell.new
9
+ end
10
+
11
+ def run(mute: false)
12
+
13
+ @mute = mute
14
+
15
+ unless File.writable?(@current_directory)
16
+ @shell.say "Can not create files as the current directory is not writable: #{@current_directory}", :red
17
+ return
18
+ end
19
+
20
+ move_template_files
21
+ rename_env_file
22
+ update_function_name
23
+ end
24
+
25
+ private
26
+
27
+ def move_template_files
28
+ Dir.foreach(TEMPLATE_DIR) do |template_file_name|
29
+ next if template_file_name == '.' or template_file_name == '..'
30
+
31
+ init_file = File.join(@current_directory, template_file_name)
32
+
33
+ template_file_path = File.join(TEMPLATE_DIR, template_file_name)
34
+
35
+ if File.exist?(init_file)
36
+ @shell.say_status("Skipped:", "#{template_file_name} file already exists at #{File.expand_path(init_file)}", :yellow) unless @mute
37
+ else
38
+ FileUtils.cp(template_file_path, init_file)
39
+
40
+ @shell.say_status("Created:", "#{template_file_name}", :green) unless @mute
41
+ end
42
+ end
43
+ end
44
+
45
+ def rename_env_file
46
+ File.rename("#{@current_directory}/env", "#{@current_directory}/.env")
47
+ end
48
+
49
+ def update_function_name
50
+ config_file = "#{@current_directory}/config.yml"
51
+
52
+ config_data = YAML.load_file config_file
53
+ config_data['function_name'] = @current_directory.split('/').last
54
+
55
+ File.open(config_file, 'w') { |f| YAML.dump(config_data, f) }
56
+ end
57
+ end
58
+ end
@@ -0,0 +1,18 @@
1
+ module RubyLambda
2
+ class LambdaContext
3
+
4
+ attr_reader :aws_request_id, :clock_diff, :deadline_ms, :function_name, :function_version, :invoked_function_arn, :log_group_name, :log_stream_name, :memory_limit_in_mb
5
+
6
+ def initialize
7
+ @aws_request_id = "c089f0e4-022d-11e9-a659-a36fee2f4cdb"
8
+ @clock_diff = 1545072475011
9
+ @deadline_ms = 1545073117036
10
+ @function_name = "ruby-lambda"
11
+ @function_version = "$LATEST"
12
+ @invoked_function_arn = "arn:aws:lambda:eu-west-2:537022253312:function:ruby-lambda"
13
+ @log_group_name = "/aws/lambda/ruby-lambda"
14
+ @log_stream_name = "2018/12/17/[$LATEST]b367aa21dad14637a7bd7cc483992b4d"
15
+ @memory_limit_in_mb = "128"
16
+ end
17
+ end
18
+ end
@@ -0,0 +1,4 @@
1
+ /tmp/
2
+ .env
3
+ build/
4
+ /.bundle/
@@ -0,0 +1 @@
1
+ 2.5.0
@@ -0,0 +1,4 @@
1
+ source "https://rubygems.org"
2
+
3
+ git_source(:github) {|repo_name| "https://github.com/#{repo_name}" }
4
+
@@ -0,0 +1,8 @@
1
+ region: us-east-1
2
+
3
+ function_name: my_lambda_function
4
+ handler: lambda_function.handler
5
+ runtime: ruby2.5
6
+
7
+ aws_access_key: <%= ENV['AWS_ACCESS_KEY'] %>
8
+ aws_secret_access_key: <%= ENV['AWS_SECRET_ACCESS_KEY'] %>
@@ -0,0 +1,2 @@
1
+ AWS_ACCESS_KEY:
2
+ AWS_SECRET_ACCESS_KEY:
@@ -0,0 +1 @@
1
+ {}
@@ -0,0 +1,6 @@
1
+ require 'json'
2
+
3
+ def handler(event:, context:)
4
+ # TODO: implement
5
+ { statusCode: 200, body: JSON.generate('Hello from Ruby Lambda') }
6
+ end
@@ -0,0 +1,3 @@
1
+ module RubyLambda
2
+ VERSION = '0.2.2'
3
+ end
@@ -0,0 +1,39 @@
1
+
2
+ lib = File.expand_path("../lib", __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require "ruby_lambda/version"
5
+
6
+ Gem::Specification.new do |spec|
7
+ spec.name = "ruby_lambda"
8
+ spec.version = RubyLambda::VERSION
9
+ spec.authors = ["cookieshq", "denissellu"]
10
+ spec.email = ["denis@cookieshq.co.uk"]
11
+
12
+ spec.summary = %q{RubyLambda is a toolset for developing and deploying serverless Ruby app in AWS Lambda.}
13
+ spec.description = %q{Command line tool to locally run, test and deploy your Ruby app to AWS Lambda.}
14
+ spec.homepage = "https://cookieshq.co.uk"
15
+ spec.license = "MIT"
16
+ spec.metadata = {
17
+ 'source_code_uri' => 'https://github.com/cookieshq/ruby_lambda',
18
+ 'documentation_uri' => 'https://github.com/cookieshq/ruby_lambda'
19
+ }
20
+
21
+ # Specify which files should be added to the gem when it is released.
22
+ # The `git ls-files -z` loads the files in the RubyGem that have been added into git.
23
+ spec.files = Dir.chdir(File.expand_path('..', __FILE__)) do
24
+ `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
25
+ end
26
+ spec.bindir = 'bin'
27
+ spec.executables = %w[ruby-lambda]
28
+ spec.require_paths = ['lib']
29
+
30
+ spec.add_runtime_dependency 'thor', '~> 0.19'
31
+ spec.add_runtime_dependency 'awesome_print', '~> 1.8.0'
32
+
33
+ spec.add_development_dependency 'bundler', '~> 1.16'
34
+ spec.add_development_dependency 'rake', '~> 10.0'
35
+ spec.add_development_dependency 'rspec', '~> 3.0'
36
+ spec.add_development_dependency 'simplecov'
37
+ spec.add_development_dependency 'guard'
38
+ spec.add_development_dependency 'guard-rspec'
39
+ end
metadata ADDED
@@ -0,0 +1,189 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: ruby_lambda
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.2.2
5
+ platform: ruby
6
+ authors:
7
+ - cookieshq
8
+ - denissellu
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+ date: 2019-01-09 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: thor
16
+ requirement: !ruby/object:Gem::Requirement
17
+ requirements:
18
+ - - "~>"
19
+ - !ruby/object:Gem::Version
20
+ version: '0.19'
21
+ type: :runtime
22
+ prerelease: false
23
+ version_requirements: !ruby/object:Gem::Requirement
24
+ requirements:
25
+ - - "~>"
26
+ - !ruby/object:Gem::Version
27
+ version: '0.19'
28
+ - !ruby/object:Gem::Dependency
29
+ name: awesome_print
30
+ requirement: !ruby/object:Gem::Requirement
31
+ requirements:
32
+ - - "~>"
33
+ - !ruby/object:Gem::Version
34
+ version: 1.8.0
35
+ type: :runtime
36
+ prerelease: false
37
+ version_requirements: !ruby/object:Gem::Requirement
38
+ requirements:
39
+ - - "~>"
40
+ - !ruby/object:Gem::Version
41
+ version: 1.8.0
42
+ - !ruby/object:Gem::Dependency
43
+ name: bundler
44
+ requirement: !ruby/object:Gem::Requirement
45
+ requirements:
46
+ - - "~>"
47
+ - !ruby/object:Gem::Version
48
+ version: '1.16'
49
+ type: :development
50
+ prerelease: false
51
+ version_requirements: !ruby/object:Gem::Requirement
52
+ requirements:
53
+ - - "~>"
54
+ - !ruby/object:Gem::Version
55
+ version: '1.16'
56
+ - !ruby/object:Gem::Dependency
57
+ name: rake
58
+ requirement: !ruby/object:Gem::Requirement
59
+ requirements:
60
+ - - "~>"
61
+ - !ruby/object:Gem::Version
62
+ version: '10.0'
63
+ type: :development
64
+ prerelease: false
65
+ version_requirements: !ruby/object:Gem::Requirement
66
+ requirements:
67
+ - - "~>"
68
+ - !ruby/object:Gem::Version
69
+ version: '10.0'
70
+ - !ruby/object:Gem::Dependency
71
+ name: rspec
72
+ requirement: !ruby/object:Gem::Requirement
73
+ requirements:
74
+ - - "~>"
75
+ - !ruby/object:Gem::Version
76
+ version: '3.0'
77
+ type: :development
78
+ prerelease: false
79
+ version_requirements: !ruby/object:Gem::Requirement
80
+ requirements:
81
+ - - "~>"
82
+ - !ruby/object:Gem::Version
83
+ version: '3.0'
84
+ - !ruby/object:Gem::Dependency
85
+ name: simplecov
86
+ requirement: !ruby/object:Gem::Requirement
87
+ requirements:
88
+ - - ">="
89
+ - !ruby/object:Gem::Version
90
+ version: '0'
91
+ type: :development
92
+ prerelease: false
93
+ version_requirements: !ruby/object:Gem::Requirement
94
+ requirements:
95
+ - - ">="
96
+ - !ruby/object:Gem::Version
97
+ version: '0'
98
+ - !ruby/object:Gem::Dependency
99
+ name: guard
100
+ requirement: !ruby/object:Gem::Requirement
101
+ requirements:
102
+ - - ">="
103
+ - !ruby/object:Gem::Version
104
+ version: '0'
105
+ type: :development
106
+ prerelease: false
107
+ version_requirements: !ruby/object:Gem::Requirement
108
+ requirements:
109
+ - - ">="
110
+ - !ruby/object:Gem::Version
111
+ version: '0'
112
+ - !ruby/object:Gem::Dependency
113
+ name: guard-rspec
114
+ requirement: !ruby/object:Gem::Requirement
115
+ requirements:
116
+ - - ">="
117
+ - !ruby/object:Gem::Version
118
+ version: '0'
119
+ type: :development
120
+ prerelease: false
121
+ version_requirements: !ruby/object:Gem::Requirement
122
+ requirements:
123
+ - - ">="
124
+ - !ruby/object:Gem::Version
125
+ version: '0'
126
+ description: Command line tool to locally run, test and deploy your Ruby app to AWS
127
+ Lambda.
128
+ email:
129
+ - denis@cookieshq.co.uk
130
+ executables:
131
+ - ruby-lambda
132
+ extensions: []
133
+ extra_rdoc_files: []
134
+ files:
135
+ - ".gitignore"
136
+ - ".rspec"
137
+ - ".ruby-version"
138
+ - ".travis.yml"
139
+ - CODE_OF_CONDUCT.md
140
+ - Gemfile
141
+ - Gemfile.lock
142
+ - Guardfile
143
+ - LICENSE.txt
144
+ - README.md
145
+ - Rakefile
146
+ - bin/console
147
+ - bin/ruby-lambda
148
+ - bin/setup
149
+ - lib/ruby_lambda.rb
150
+ - lib/ruby_lambda/execute.rb
151
+ - lib/ruby_lambda/init.rb
152
+ - lib/ruby_lambda/lambda_context.rb
153
+ - lib/ruby_lambda/templates/.gitignore
154
+ - lib/ruby_lambda/templates/.ruby-version
155
+ - lib/ruby_lambda/templates/Gemfile
156
+ - lib/ruby_lambda/templates/config.yml
157
+ - lib/ruby_lambda/templates/env
158
+ - lib/ruby_lambda/templates/event.json
159
+ - lib/ruby_lambda/templates/lambda_function.rb
160
+ - lib/ruby_lambda/version.rb
161
+ - ruby_lambda.gemspec
162
+ homepage: https://cookieshq.co.uk
163
+ licenses:
164
+ - MIT
165
+ metadata:
166
+ source_code_uri: https://github.com/cookieshq/ruby_lambda
167
+ documentation_uri: https://github.com/cookieshq/ruby_lambda
168
+ post_install_message:
169
+ rdoc_options: []
170
+ require_paths:
171
+ - lib
172
+ required_ruby_version: !ruby/object:Gem::Requirement
173
+ requirements:
174
+ - - ">="
175
+ - !ruby/object:Gem::Version
176
+ version: '0'
177
+ required_rubygems_version: !ruby/object:Gem::Requirement
178
+ requirements:
179
+ - - ">="
180
+ - !ruby/object:Gem::Version
181
+ version: '0'
182
+ requirements: []
183
+ rubyforge_project:
184
+ rubygems_version: 2.7.8
185
+ signing_key:
186
+ specification_version: 4
187
+ summary: RubyLambda is a toolset for developing and deploying serverless Ruby app
188
+ in AWS Lambda.
189
+ test_files: []