jets 2.2.4 → 2.2.5

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: cac50647c7713fc980484f19f1270d09940339e9fbc50677aa57296df8235485
4
- data.tar.gz: 7bf35b3b092ed92fe6195a90aa45bdcd991e99eb5d48309b0df474968a38b8b1
3
+ metadata.gz: f191f33dde592fc0b2aaa7b5959d2955c277ac428ebce5041e1e37133555f6be
4
+ data.tar.gz: 195760363e6602d1d983d361371455b2085987fe10255889b410ea72d7e0a173
5
5
  SHA512:
6
- metadata.gz: f3049959d4e66829ce91a2a117b9bfbd7e504b7538a3c501f7f3f5c2ffaa7674b1d24c6613e77c2ec9e80ffef5a8bff3bc3a0bad9956c5b8b77ca76dfbf106f0
7
- data.tar.gz: dcdf12b818f4f460aabab793b9e5d85ed3361f273dd431e3ef2a87392becfd61026f466b538d380b903b6606786963932a476ec235630d0cb7ae5ed3ea6db91c
6
+ metadata.gz: e8e191c328450dd8b50fce323579ce9fe1859fcb688188eb26b01e48d67117a62f0bf0b29f50b2782bc1f1805bd151453ac904e81c36d95f2c9e05124e442b38
7
+ data.tar.gz: 408768c1d40e76ea4a40a6c5cbaf7447c5c5900ce429b91de626b8f8afac2d83ffe36fa79a13252d4c64bfb7979b5ca94f90422872577cfdeb78f0bd0b02d769
data/CHANGELOG.md CHANGED
@@ -3,6 +3,10 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  This project *loosely tries* to adhere to [Semantic Versioning](http://semver.org/).
5
5
 
6
+ ## [2.2.5]
7
+ - #374 fix rspec execution for projects with no database
8
+ - #375 add jets dotenv:show command
9
+
6
10
  ## [2.2.4]
7
11
  - #346 Check that migrations have been ran as part of running project specs. If migrations haven't ran, exit and report an error.
8
12
 
@@ -0,0 +1,9 @@
1
+ module Jets::Commands
2
+ class Dotenv < Jets::Commands::Base
3
+ desc "show", "Shows evaulated dotenv values"
4
+ long_desc Help.text('dotenv:show')
5
+ def show
6
+ Jets::Dotenv::Show.list
7
+ end
8
+ end
9
+ end
@@ -0,0 +1,11 @@
1
+ class Jets::Dotenv
2
+ class Show
3
+ def self.list
4
+ puts "# Env from evaluated dotenv files"
5
+ vars = Jets::Dotenv.load!
6
+ vars.each do |k,v|
7
+ puts "#{k}=#{v}"
8
+ end
9
+ end
10
+ end
11
+ end
@@ -23,7 +23,7 @@ class Jets::Dotenv
23
23
  end
24
24
 
25
25
  if @missing.empty?
26
- interpolated_variables.to_h # success
26
+ interpolated_variables.to_h.sort_by { |k,_| k }.to_h # success
27
27
  else
28
28
  message = "Error loading .env variables. No matching SSM parameters found for:\n".color(:red)
29
29
  message += @missing.map { |k,v,n| " #{k}=ssm:#{v} # ssm name: #{n}"}.join("\n")
@@ -9,7 +9,7 @@ module Jets
9
9
  end
10
10
  end
11
11
 
12
- unless ENV["SKIP_MIGRATION_CHECK"] == "true"
12
+ if File.exist?("#{Jets.root}/config/database.yml") && !ENV["SKIP_MIGRATION_CHECK"]
13
13
  ActiveRecord::Tasks::DatabaseTasks.db_dir = "#{Jets.root}/db"
14
14
  ActiveRecord::Migration.extend ActiveRecord::MigrationChecker
15
15
  ActiveRecord::Migration.prepare_test_db
data/lib/jets/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Jets
2
- VERSION = "2.2.4"
2
+ VERSION = "2.2.5"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jets
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.2.4
4
+ version: 2.2.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tung Nguyen
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-09-25 00:00:00.000000000 Z
11
+ date: 2019-09-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: actionmailer
@@ -660,6 +660,7 @@ files:
660
660
  - lib/jets/commands/dbconsole.rb
661
661
  - lib/jets/commands/delete.rb
662
662
  - lib/jets/commands/deploy.rb
663
+ - lib/jets/commands/dotenv.rb
663
664
  - lib/jets/commands/dynamodb.rb
664
665
  - lib/jets/commands/dynamodb/migrate.rb
665
666
  - lib/jets/commands/dynamodb/migrator.rb
@@ -781,6 +782,7 @@ files:
781
782
  - lib/jets/core_ext/kernel.rb
782
783
  - lib/jets/db.rb
783
784
  - lib/jets/dotenv.rb
785
+ - lib/jets/dotenv/show.rb
784
786
  - lib/jets/dotenv/ssm.rb
785
787
  - lib/jets/erb.rb
786
788
  - lib/jets/generator.rb