train-core 1.7.2 → 1.7.4

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: 2aa1b81d26ddba4a2a0f074d650fc9a9289afa7c2399b5c8f6a15e8c928cc431
4
- data.tar.gz: de2f1c194c79a4bab63a26610c6bc8472d1275e00ff53155bf070925187f48f4
3
+ metadata.gz: c93f63aca0e633e8e966621a59e3013f533a84575816b7e030e153d46261f592
4
+ data.tar.gz: d28b723093e26f15fe93c4126e01b77954e1bf683dc32678175310ad2a3d814a
5
5
  SHA512:
6
- metadata.gz: 04a84767760b02d28af78b7b1f8c6318e4f59a23832a4486d6d236cdba47955b5cca72e3bd104279fc4a6405cd982db0420c2b6c4d7ce84b26e16b1196a27a4d
7
- data.tar.gz: e2f9f46e1015fc25de047eadd5c1f5d694fd93659c28d5e4e8b274128b1b6de3cb50c043fa8f63373ecfc7081d65f45032af088d77c18b212aae609d27d52549
6
+ metadata.gz: adf2c40a58eb65d4cf8fda0e581af387933946996c145c48b8eb6e872b0204a4bee9872aae9f99f13a1bfd0323c9e0ba6b50a6f5e97864ed7227d8eea608bc51
7
+ data.tar.gz: a46b6c2336551c9510b93147235b20b54cee3e2013be019d836028e2493ba705eb5aa60c7a7437f85870d06a9240dabb909310cf5de665f59972ebd70741d73f
@@ -29,6 +29,7 @@ class Train::Plugins::Transport
29
29
  @cache_enabled = {
30
30
  file: true,
31
31
  command: false,
32
+ api_call: false,
32
33
  }
33
34
 
34
35
  @cache = {}
@@ -61,7 +62,7 @@ class Train::Plugins::Transport
61
62
  end
62
63
 
63
64
  # Enable caching types for Train. Currently we support
64
- # :file and :command types
65
+ # :api_call, :file and :command types
65
66
  def enable_cache(type)
66
67
  fail Train::UnknownCacheType, "#{type} is not a valid cache type" unless @cache_enabled.keys.include?(type.to_sym)
67
68
  @cache_enabled[type.to_sym] = true
data/lib/train/version.rb CHANGED
@@ -3,5 +3,5 @@
3
3
  # Author:: Dominik Richter (<dominik.richter@gmail.com>)
4
4
 
5
5
  module Train
6
- VERSION = '1.7.2'.freeze
6
+ VERSION = '1.7.4'.freeze
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: train-core
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.7.2
4
+ version: 1.7.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dominik Richter
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-01-31 00:00:00.000000000 Z
11
+ date: 2019-02-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: mixlib-shellout