researchable-freedcamp-api 0.1.3 → 0.1.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: f885788c52cd28cfc3f624e5e1506736c1a44a883f86d3a5c6158b046dd96402
4
- data.tar.gz: 027344ad83e5b7bb4e0270514814d25f4ab4d50df112bc3c605ff89b4513e6b9
3
+ metadata.gz: 628dfc362e3b0422af518b3f795d52e1f352ba3a5f598b290eefba123f113fae
4
+ data.tar.gz: 567d22064d71fc1de66ddf277cdc11c4a96477c30a7b068e5f6ce0d8d733938b
5
5
  SHA512:
6
- metadata.gz: 56b9954ca632c1440bb37a8b41a896b0b0747df8d9eb1f7cddd8d9f41f2dfaf84cd704ae26cec355c9c142aec5477a2e3052e316fb0e21e2959361192c6ca388
7
- data.tar.gz: 0da479100cc7ae2ecf9f53d07dd85ede479e82614f00b62d4b319741f502f5b9a643181f630ea369691ecebce57caae24c8854a06b083ce7e360e374c8684eac
6
+ metadata.gz: 310a4dfd7749bd82b39d3c0d1a74e78437163ef7774107a5e85a74b50e0937decf9c8e3c393c370869eed30d65a2fde16518de876f8e0167f78218a04c1553f8
7
+ data.tar.gz: '08c08e707a1f4a6635396c5693375b84341724ad0d70279a2804873342da547bac9e688052341cdea84e3cba2556cd151ccd4b9d3c5c452b3bb5a7f743117725'
@@ -29,10 +29,10 @@ module Researchable
29
29
  # rubocop:enable Style/AccessorGrouping
30
30
 
31
31
  sig { params(public_key: String, secret_key: String, use_cache: T::Boolean).void }
32
- def initialize(public_key: ENV['PUBLIC_KEY'], secret_key: ENV['SECRET_KEY'], use_cache: true)
32
+ def initialize(public_key: ENV['PUBLIC_KEY'], secret_key: ENV['SECRET_KEY'], use_cache: ENV['USE_CACHE'])
33
33
  @public_key = public_key
34
34
  @secret_key = secret_key
35
- @use_cache = use_cache
35
+ @use_cache = use_cache == 'true'
36
36
  end
37
37
 
38
38
  sig { override.params(path: String).returns(T::Hash[T.untyped, T.untyped]) }
@@ -3,6 +3,6 @@
3
3
 
4
4
  module Researchable
5
5
  module FreedcampApi
6
- VERSION = "0.1.3"
6
+ VERSION = "0.1.4"
7
7
  end
8
8
  end
data/test.rb CHANGED
@@ -12,6 +12,7 @@ require 'researchable-freedcamp-api'
12
12
  # Pry.start
13
13
  #
14
14
  # Researchable::FreedcampApi::ListTasks.run!
15
+ ENV['USE_CACHE'] = 'true'
15
16
  puts Researchable::FreedcampApi::ListTasks.run!(task_id: 44_509_132).to_json
16
17
 
17
18
  progress = 2
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: researchable-freedcamp-api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Frank Blaauw
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-01-27 00:00:00.000000000 Z
11
+ date: 2022-01-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: active_interaction