jets 0.8.6 → 0.8.8

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: be2ed76014a054591772fdabfa1f833abe104e5d2e7a8284e4c8e9dc994b3dac
4
- data.tar.gz: 86e525512671d55cb3b63add4d68fcc931df1ca42b8199e5e876d73a55d794c6
3
+ metadata.gz: 56dd075a80453ed4f7e6e684f64060915cfbb01cec7ccff68427507a403b5cf7
4
+ data.tar.gz: a0f48fffbdb695cff01a05494402013945d7a51cab62def79beee48722dd2964
5
5
  SHA512:
6
- metadata.gz: e1db0f1765ea0d72e6326ea93c2cc2df3be9f1507fac9e7b36a46d758053bcafd99c3a23d15119968ff3abd1ec5d80f23cc9a1d5e500c6a30236ccce1cf2764a
7
- data.tar.gz: 85bdcfe8c1b8d6856ec846880a9c6d079220d6919d60589298fe77fc66ef02bde2ff4172dda1d020135d5797698110202cf8416042eb89a8e8c5174630121842
6
+ metadata.gz: 1f278333701df438a6e55db6a1b15999b00a4e5d41e0bea1df098920006eadf38eff02885ee93a7efaad9bf03bb04b847bf57151f06d306bd0235ff0cb0447c3
7
+ data.tar.gz: c17110bf29063c2e2256f20fa295b906857b7e9161884ba5635397cbba7ad73ec5949a1eec94ee97a158febd9516aabf876265f4503b6541e884a913d512fc54
@@ -3,12 +3,18 @@
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/), even before v1.0.
5
5
 
6
+ ## [0.8.8]
7
+ - fix cron expression
8
+
9
+ ## [0.8.7]
10
+ - add JETS_ENV_REMOTE and fix database config load for jets console
11
+
6
12
  ## [0.8.6]
7
13
  - fix local server
8
14
 
9
15
  ## [0.8.5]
10
16
  - Rename to Camelizer PR #23
11
- - Fix helpers PR #22 from tongueroo/helpers
17
+ - Fix helpers PR #22
12
18
 
13
19
  ## [0.8.4]
14
20
  - fix custom iam policies
@@ -11,7 +11,7 @@ GIT
11
11
  PATH
12
12
  remote: .
13
13
  specs:
14
- jets (0.8.6)
14
+ jets (0.8.8)
15
15
  actionpack (>= 5.2.1)
16
16
  actionview (>= 5.2.1)
17
17
  activerecord (>= 5.2.1)
@@ -114,6 +114,7 @@ class Jets::Application
114
114
  def load_db_config
115
115
  config.database = {}
116
116
 
117
+ Jets::Dotenv.load!
117
118
  database_yml = "#{Jets.root}config/database.yml"
118
119
  if File.exist?(database_yml)
119
120
  text = Jets::Erb.result(database_yml)
@@ -8,3 +8,11 @@
8
8
  >> Jets.env
9
9
  => "development"
10
10
  >>
11
+
12
+ ## Use .env.development.remote
13
+
14
+ To use the remote values also in the `jets console` you can use the `JETS_ENV_REMOTE=1` env variable. Example:
15
+
16
+ JETS_ENV_REMOTE=1 jets console
17
+
18
+ More info at [Env Files](http://rubyonjets.com/docs/env-files/)
@@ -1,10 +1,6 @@
1
1
  source "https://rubygems.org"
2
2
 
3
- if File.exist?("dev.mode")
4
- gem "jets", path: "#{ENV['HOME']}/environment/jets"
5
- else
6
- gem "jets", git: "https://github.com/tongueroo/jets.git", submodules: true
7
- end
3
+ gem "jets"
8
4
 
9
5
  <% if @webpacker -%>
10
6
  # Include webpacker if you are you are building html pages
@@ -1,12 +1,13 @@
1
1
  require 'dotenv'
2
2
 
3
3
  class Jets::Dotenv
4
- def self.load!(deploy=false)
5
- new(deploy).load!
4
+ def self.load!(remote=false)
5
+ new(remote).load!
6
6
  end
7
7
 
8
- def initialize(deploy=false)
9
- @deploy = deploy
8
+ def initialize(remote=false)
9
+ @remote = remote
10
+ @remote = ENV['JETS_ENV_REMOTE'] if ENV['JETS_ENV_REMOTE']
10
11
  end
11
12
 
12
13
  def load!
@@ -27,7 +28,7 @@ class Jets::Dotenv
27
28
  root.join(".env.#{Jets.env}"),
28
29
  root.join(".env.#{Jets.env}.local"),
29
30
  ]
30
- files << root.join(".env.#{Jets.env}.remote") if @deploy
31
+ files << root.join(".env.#{Jets.env}.remote") if @remote
31
32
  files.compact
32
33
  end
33
34
 
@@ -14,7 +14,7 @@ module Jets::Job::Dsl
14
14
  end
15
15
 
16
16
  def cron(expression)
17
- update_properties(schedule_expression: "cron(#{expression}")
17
+ update_properties(schedule_expression: "cron(#{expression})")
18
18
  end
19
19
 
20
20
  def event_pattern(details={})
@@ -1,3 +1,3 @@
1
1
  module Jets
2
- VERSION = "0.8.6"
2
+ VERSION = "0.8.8"
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: 0.8.6
4
+ version: 0.8.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tung Nguyen
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-09-06 00:00:00.000000000 Z
11
+ date: 2018-09-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor