train 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: 90cfe2b9d2a7ff8e247729ed8f7e7fac0ad3ced66eb98de9265b00170ae3e609
4
- data.tar.gz: cd9c481520c62e3ffe6c5bef2553a16f0b2685d312cb68517101a221a35136b7
3
+ metadata.gz: 90c0f7ae6d9f3cd9d417f855a88867b3ae5582ecf02b13775317ac251e4ead35
4
+ data.tar.gz: d0eb5084a35c2a4862c74c7857d4d3ff891d9b47dab1f80aaf2ba27a40fcc231
5
5
  SHA512:
6
- metadata.gz: c66b8d1b3d903b1efd079a49ff0a6007a247468c3a46df4b00b594cf78b1342a6ac138aea119752a49c8c3e196291cbabd9bf10da146d0176cde25345ea5aa17
7
- data.tar.gz: 3054b59b175c6fe70dc08099cf505092fb860c3c3323ed9c77c2c7a67a5d27a4f95c811238caaa3014fdd673626a77a2d02da583c953415b9a38013ab6accdde
6
+ metadata.gz: 8aa5e89b6c7415b04002457f750bec3fe525c1edbc8208e9c9c488fc88aa00ff8bf62d24f71fa18226f8d68bef6d893420024447407bd4d1bb3a4e20228bb6a0
7
+ data.tar.gz: '00691484482dcd5ff8a1be8e7458b11229bdb28d6c883666f06e0ac1efb9ea20c3992d2326f863626237f9037439321068d2a07e3e6423ccccf1c9cdcff6e3af'
@@ -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
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: json