funktor 0.2.5 → 0.2.6

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
  SHA256:
3
- metadata.gz: 2ca7738fdb4ce7e628d489b4eafa1975036cc1e82ec162bc4115383ac2b29233
4
- data.tar.gz: 0a328bcb1d0c5a007d560eda72d88832269f9d21def9bfea3720746600f828f0
3
+ metadata.gz: 3a92d7870ba1cde9f91c5d872aab7e5dcc9d7a0d9ee8b4deb75fa1e679ea6ddc
4
+ data.tar.gz: 79d938d9d46f9763ae6bf7001bf54bb1ad48eefee0a0b5dcbb624a934edbba85
5
5
  SHA512:
6
- metadata.gz: 274578bd0e322e8cb4d5bfbdb27c5aaa97d966e37bc3e38ef63cec5536947e132f9b5018b78ba52f6d492ed73ba8f46ac872614b750bcb4fab425613c5eccbfe
7
- data.tar.gz: 454d9ffaf4970543f409be989ce455717c5f600e81c85f6ba8aea640867d232c4aaf2ec9b8f79e7956da53db197668a6bb37627de5c18ceac8a9348dfe527521
6
+ metadata.gz: b741a360102285bc392c6b846677b1859dbb02652b9e9412773fa989172c4a2368429f7825736f4438a543f4ac058098884fd78ce8a8f89be81b10f6b2e4db94
7
+ data.tar.gz: a450bec63e833671d3eeb7e4e1f00c38eec6c66c59de610ba431f8660a1273dac0ab4db85ff7b41ca2ff9e234c19f771087127d16ab2a21612b731ed61678609
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- funktor (0.2.5)
4
+ funktor (0.2.6)
5
5
  activesupport
6
6
  aws-sdk-sqs (~> 1.37)
7
7
  thor
@@ -30,14 +30,13 @@ module Funktor
30
30
  name
31
31
  end
32
32
 
33
-
34
-
35
33
  def funktor_config_yml
36
34
  #template "funktor_config.yml", File.join("funktor_config.yml")
37
35
  template File.join("config", "funktor.yml"), File.join("config", "funktor.yml")
38
36
  template File.join("config", "ruby_layer.yml"), File.join("config", "ruby_layer.yml")
39
37
  template File.join("config", "package.yml"), File.join("config", "package.yml")
40
38
  template File.join("config", "environment.yml"), File.join("config", "environment.yml")
39
+ template File.join("config", "boot.rb"), File.join("config", "boot.rb")
41
40
  end
42
41
 
43
42
  def package_json
@@ -0,0 +1,16 @@
1
+ # Point at our Gemfile
2
+ ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../Gemfile', __dir__)
3
+
4
+ # load rubygems & bundler
5
+ require "rubygems"
6
+ require 'bundler/setup'
7
+
8
+ # Set up gems listed in the Gemfile.
9
+ Bundler.require(:default, :production)
10
+
11
+ # Load all ruby files in the app directory
12
+ Dir.glob( File.join('..', 'app', '**', '*.rb'), base: File.dirname(__FILE__) ).each do |ruby_file|
13
+ puts "require_relative #{ruby_file}"
14
+ require_relative ruby_file
15
+ end
16
+
@@ -3,6 +3,7 @@ individually: false
3
3
  include:
4
4
  - Gemfile
5
5
  - Gemfile.lock
6
+ - config/boot.rb
6
7
  - app/**
7
8
  # Evertyting is excluded by default with serverless-ruby-layer, but you could use
8
9
  # the lines below to exlude files that are inside an include path.
@@ -1,4 +1,4 @@
1
- require 'funktor'
1
+ require_relative '../config/boot'
2
2
 
3
3
  $handler = Funktor::IncomingJobHandler.new
4
4
 
@@ -1,13 +1,4 @@
1
- require 'funktor'
2
-
3
- # Bundler is hard to make work because AWS includes some gems in the basic ruby runtime.
4
- # We're probably going to need to use containers...
5
- #require "rubygems"
6
- #require "bundler/setup"
7
- #Bundler.require(:default)
8
-
9
- # TODO : Ideally this wouldn't be needed
10
- require_relative '../workers/hello_worker'
1
+ require_relative '../config/boot'
11
2
 
12
3
  $handler = Funktor::ActiveJobHandler.new
13
4
 
@@ -1,3 +1,3 @@
1
1
  module Funktor
2
- VERSION = "0.2.5"
2
+ VERSION = "0.2.6"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: funktor
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.5
4
+ version: 0.2.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jeremy Green
@@ -116,6 +116,7 @@ files:
116
116
  - lib/funktor/cli/init.rb
117
117
  - lib/funktor/cli/templates/Gemfile
118
118
  - lib/funktor/cli/templates/app/workers/hello_worker.rb
119
+ - lib/funktor/cli/templates/config/boot.rb
119
120
  - lib/funktor/cli/templates/config/environment.yml
120
121
  - lib/funktor/cli/templates/config/function_definitions/incoming_job_handler.yml
121
122
  - lib/funktor/cli/templates/config/function_definitions/work_queue_handler.yml