Permalink
Browse files

remove vendor/dynomite

  • Loading branch information...
tongueroo committed Jan 10, 2019
1 parent 272aa9b commit 3c7855be68ff6514396ceb27eeba88cfef67caec
@@ -1,6 +1,3 @@
[submodule "vendor/dynomite"]
path = vendor/dynomite
url = https://github.com/tongueroo/dynomite.git
[submodule "vendor/jets-gems"]
path = vendor/jets-gems
url = https://github.com/tongueroo/jets-gems
@@ -8,6 +8,7 @@ gemspec
# Need both because of jets/application.rb and jets/webpacker/middleware_setup.rb
group :development, :test do
gem "mysql2", "~> 0.5.2"
gem "dynomite"
gem "webpacker", git: "https://github.com/tongueroo/webpacker.git", branch: "jets"
gem "rspec_junit_formatter"
end
@@ -67,7 +67,7 @@ GEM
tzinfo (~> 1.1)
arel (9.0.0)
aws-eventstream (1.0.1)
aws-partitions (1.129.0)
aws-partitions (1.130.0)
aws-sdk-apigateway (1.23.0)
aws-sdk-core (~> 3, >= 3.39.0)
aws-sigv4 (~> 1.0)
@@ -109,6 +109,9 @@ GEM
crass (1.0.4)
diff-lcs (1.3)
dotenv (2.6.0)
dynomite (1.1.0)
activesupport
aws-sdk-dynamodb
erubi (1.8.0)
gems (1.1.1)
json
@@ -174,6 +177,7 @@ PLATFORMS
DEPENDENCIES
bundler
byebug
dynomite
jets!
mysql2 (~> 0.5.2)
rake
@@ -61,11 +61,4 @@ module Jets
$:.unshift(File.expand_path("../../vendor/jets-gems/lib", __FILE__))
require "jets-gems"

# lazy loaded dependencies: depends what project. Mainly determined by Gemfile
# and config files.
if File.exist?("#{Jets.root}config/dynamodb.yml")
$:.unshift(File.expand_path("../../vendor/dynomite/lib", __FILE__))
require "dynomite"
end

Jets::Db # trigger autoload
@@ -13,6 +13,7 @@ gem "pg", "~> 1.1.3"
# Include mysql2 gem if you are using ActiveRecord, remove if you are not
gem "mysql2", "~> 0.5.2"
<% end %>
gem "dynomite"

group :development, :test do
# Call 'byebug' anywhere in the code to stop execution and get a debugger console
@@ -1,9 +1,15 @@
module Jets::Db ; end

# Thanks: https://makandracards.com/makandra/42521-detecting-if-a-ruby-gem-is-loaded
return unless File.exist?("#{Jets.root}config/database.yml")
if File.exist?("#{Jets.root}config/database.yml")
require "active_record"
specs = Gem.loaded_specs
require "mysql2" if specs.key?('mysql2')
require "pg" if specs.key?('pg')
end

require "active_record"
specs = Gem.loaded_specs
require "mysql2" if specs.key?('mysql2')
require "pg" if specs.key?('pg')
if File.exist?("#{Jets.root}config/dynamodb.yml")
specs = Gem.loaded_specs
specs.key?('dynomite')
require "dynomite" if specs.key?('dynomite')
end
@@ -8,6 +8,7 @@ end

gem "webpacker", git: "https://github.com/tongueroo/webpacker.git", branch: "jets"
gem "mysql2", "~> 0.5.2"
gem "dynomite"
# gem "pg", '~> 1.1.3'

group :development, :test do
@@ -1,6 +1,6 @@
GIT
remote: https://github.com/tongueroo/webpacker.git
revision: a8c46614c6757fab65e4d0c47d8203014e7b4ef9
revision: 3651cc317358018ebd16de75df3b8184adf1b818
branch: jets
specs:
webpacker (3.2.0)
@@ -11,7 +11,7 @@ GIT
PATH
remote: /home/ec2-user/environment/jets
specs:
jets (1.1.5)
jets (1.4.10)
actionpack (>= 5.2.1)
actionview (>= 5.2.1)
activerecord (>= 5.2.1)
@@ -23,6 +23,7 @@ PATH
aws-sdk-lambda
aws-sdk-s3
aws-sdk-sns
aws-sdk-sqs
colorize
dotenv
gems
@@ -40,48 +41,48 @@ PATH
GEM
remote: https://rubygems.org/
specs:
actionpack (5.2.1.1)
actionview (= 5.2.1.1)
activesupport (= 5.2.1.1)
actionpack (5.2.2)
actionview (= 5.2.2)
activesupport (= 5.2.2)
rack (~> 2.0)
rack-test (>= 0.6.3)
rails-dom-testing (~> 2.0)
rails-html-sanitizer (~> 1.0, >= 1.0.2)
actionview (5.2.1.1)
activesupport (= 5.2.1.1)
actionview (5.2.2)
activesupport (= 5.2.2)
builder (~> 3.1)
erubi (~> 1.4)
rails-dom-testing (~> 2.0)
rails-html-sanitizer (~> 1.0, >= 1.0.3)
activemodel (5.2.1.1)
activesupport (= 5.2.1.1)
activerecord (5.2.1.1)
activemodel (= 5.2.1.1)
activesupport (= 5.2.1.1)
activemodel (5.2.2)
activesupport (= 5.2.2)
activerecord (5.2.2)
activemodel (= 5.2.2)
activesupport (= 5.2.2)
arel (>= 9.0)
activesupport (5.2.1.1)
activesupport (5.2.2)
concurrent-ruby (~> 1.0, >= 1.0.2)
i18n (>= 0.7, < 2)
minitest (~> 5.1)
tzinfo (~> 1.1)
arel (9.0.0)
aws-eventstream (1.0.1)
aws-partitions (1.121.0)
aws-partitions (1.130.0)
aws-sdk-apigateway (1.23.0)
aws-sdk-core (~> 3, >= 3.39.0)
aws-sigv4 (~> 1.0)
aws-sdk-cloudformation (1.13.0)
aws-sdk-cloudformation (1.14.0)
aws-sdk-core (~> 3, >= 3.39.0)
aws-sigv4 (~> 1.0)
aws-sdk-cloudwatchlogs (1.12.0)
aws-sdk-core (~> 3, >= 3.39.0)
aws-sigv4 (~> 1.0)
aws-sdk-core (3.42.0)
aws-sdk-core (3.44.2)
aws-eventstream (~> 1.0)
aws-partitions (~> 1.0)
aws-sigv4 (~> 1.0)
jmespath (~> 1.0)
aws-sdk-dynamodb (1.18.0)
aws-sdk-dynamodb (1.19.0)
aws-sdk-core (~> 3, >= 3.39.0)
aws-sigv4 (~> 1.0)
aws-sdk-kms (1.13.0)
@@ -90,26 +91,32 @@ GEM
aws-sdk-lambda (1.16.0)
aws-sdk-core (~> 3, >= 3.39.0)
aws-sigv4 (~> 1.0)
aws-sdk-s3 (1.29.0)
aws-sdk-s3 (1.30.0)
aws-sdk-core (~> 3, >= 3.39.0)
aws-sdk-kms (~> 1)
aws-sigv4 (~> 1.0)
aws-sdk-sns (1.9.0)
aws-sdk-core (~> 3, >= 3.39.0)
aws-sigv4 (~> 1.0)
aws-sdk-sqs (1.10.0)
aws-sdk-core (~> 3, >= 3.39.0)
aws-sigv4 (~> 1.0)
aws-sigv4 (1.0.3)
builder (3.2.3)
byebug (10.0.2)
colorize (0.8.1)
concurrent-ruby (1.1.3)
concurrent-ruby (1.1.4)
crass (1.0.4)
diff-lcs (1.3)
dotenv (2.5.0)
erubi (1.7.1)
dotenv (2.6.0)
dynomite (1.1.0)
activesupport
aws-sdk-dynamodb
erubi (1.8.0)
gems (1.1.1)
json
hashie (3.6.0)
i18n (1.1.1)
i18n (1.5.1)
concurrent-ruby (~> 1.0)
jmespath (1.4.0)
json (2.1.0)
@@ -119,12 +126,12 @@ GEM
nokogiri (>= 1.5.9)
memoist (0.16.0)
method_source (0.9.2)
mimemagic (0.3.2)
mini_portile2 (2.3.0)
mimemagic (0.3.3)
mini_portile2 (2.4.0)
minitest (5.11.3)
mysql2 (0.5.2)
nokogiri (1.8.5)
mini_portile2 (~> 2.3.0)
nokogiri (1.10.0)
mini_portile2 (~> 2.4.0)
rack (2.0.6)
rack-proxy (0.6.5)
rack
@@ -135,13 +142,13 @@ GEM
nokogiri (>= 1.6)
rails-html-sanitizer (1.0.4)
loofah (~> 2.2, >= 2.2.2)
railties (5.2.1.1)
actionpack (= 5.2.1.1)
activesupport (= 5.2.1.1)
railties (5.2.2)
actionpack (= 5.2.2)
activesupport (= 5.2.2)
method_source
rake (>= 0.8.7)
thor (>= 0.19.0, < 2.0)
rake (12.3.1)
rake (12.3.2)
recursive-open-struct (1.1.0)
rspec (3.8.0)
rspec-core (~> 3.8.0)
@@ -169,6 +176,7 @@ PLATFORMS

DEPENDENCIES
byebug
dynomite
jets!
mysql2 (~> 0.5.2)
rack
@@ -1,15 +1,7 @@
#!/usr/bin/env ruby
# frozen_string_literal: true

#
# This file was generated by Bundler.
#
# The application 'webpack' is installed as part of a gem, and
# this file is here to facilitate running it.
#

bundle_binstub = File.expand_path("../bundle", __FILE__)
load(bundle_binstub) if File.file?(bundle_binstub)
ENV["JETS_ENV"] ||= ENV["RACK_ENV"] || "development"
ENV["NODE_ENV"] ||= "development"

require "pathname"
ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../../Gemfile",
@@ -18,4 +10,10 @@ ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../../Gemfile",
require "rubygems"
require "bundler/setup"

load Gem.bin_path("webpacker", "webpack")
require "webpacker"
require "webpacker/webpack_runner"

APP_ROOT = File.expand_path("..", __dir__)
Dir.chdir(APP_ROOT) do
Webpacker::WebpackRunner.run(ARGV)
end
@@ -1,15 +1,7 @@
#!/usr/bin/env ruby
# frozen_string_literal: true

#
# This file was generated by Bundler.
#
# The application 'webpack-dev-server' is installed as part of a gem, and
# this file is here to facilitate running it.
#

bundle_binstub = File.expand_path("../bundle", __FILE__)
load(bundle_binstub) if File.file?(bundle_binstub)
ENV["JETS_ENV"] ||= ENV["RACK_ENV"] || "development"
ENV["NODE_ENV"] ||= "development"

require "pathname"
ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../../Gemfile",
@@ -18,4 +10,10 @@ ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../../Gemfile",
require "rubygems"
require "bundler/setup"

load Gem.bin_path("webpacker", "webpack-dev-server")
require "webpacker"
require "webpacker/dev_server_runner"

APP_ROOT = File.expand_path("..", __dir__)
Dir.chdir(APP_ROOT) do
Webpacker::DevServerRunner.run(ARGV)
end
@@ -1,4 +1,5 @@
# This file is used by Rack-based servers to start the application.

require "jets"
Jets.boot
run Jets.application
@@ -0,0 +1,4 @@
Jets.application.configure do
# Example:
# config.function.memory_size = 1536
end
@@ -0,0 +1,4 @@
Jets.application.configure do
# Example:
# config.function.memory_size = 2048
end
Submodule dynomite deleted from c1d7cc

0 comments on commit 3c7855b

Please sign in to comment.