harvest-ruby-v2 0.5.0 → 0.5.1

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: f341c06dfb732eeb0ab69f8a03d2d3a1d183c3afa1e200c14dba0cfe9e4bc81c
4
- data.tar.gz: b10cb0684fb74ebb9a8e0dc87875b617a7b3c77af99ca5ed2dd75978c6fa7cf2
3
+ metadata.gz: 58350245891bc951a4eaf534edd5adf454686668aecd9fc18e9607bbdbb5ce36
4
+ data.tar.gz: f1053f1810e4297cfb8d0400c064d2db2875359dd0a5440c1327ca0db50300ab
5
5
  SHA512:
6
- metadata.gz: bddbbd22c42beb25c7877adc7241b4d2feb61961c0f3ba61c5b774f34c9caf69a87239703a2e3eca0d7906a2b90e648b598492cc149c8d0752804d7f0bc58dd6
7
- data.tar.gz: 8bdd8d98251fa443f0fbaf0b6665de237f64131aab1cc6d207c1305912f6891831bdd5eb8bf706e6d22696737209e9fccf158e8a9c3ba5625924254d5f8de086
6
+ metadata.gz: e07110f419334d96fcb0c54f7394adecfc33cb5f1ed82e2ccadefdacc646534b24200f1081d53f1d119361368454b4b955eead82e817ca43b76c83b5fbf3067b
7
+ data.tar.gz: e9557a89a104a7a358dd37a58b865422b5fba6b9d107af88941f1d47921251b7c34613945b19ff3f26a0e90b999ec3811bf3db096b63fdbc36de0a4117faa47a
data/CHANGELOG.rst CHANGED
@@ -2,6 +2,11 @@
2
2
  Changelog for harvest-ruby
3
3
  ##########################
4
4
 
5
+ 0.5.1
6
+ ^^^^^
7
+
8
+ * Harvest API external_reference on time entries now contains account_id, updated Struct
9
+
5
10
  0.5.0
6
11
  ^^^^^
7
12
 
data/lib/harvest.rb CHANGED
@@ -15,6 +15,7 @@ require 'harvest/changers'
15
15
 
16
16
  # Conform to naming pattern of Finder, Discover, Creators.
17
17
  # @param key [Symbol] symbol of state
18
+ # @return [Symbol] Symbol to use in class lookups
18
19
  def to_class_name(key)
19
20
  key.to_s.split('_').map(&:capitalize).join.to_sym
20
21
  end
@@ -96,7 +97,7 @@ module Harvest
96
97
 
97
98
  # Find single instance of resource
98
99
  def change(**kwargs)
99
- @state[@state[:active]].map do |obj|
100
+ @state[@state[:active]].map do |_obj|
100
101
  Harvest::Changers.const_get(to_class_name(@state[:active])).new.change(
101
102
  @factory, @client, active_user, @state, kwargs
102
103
  )
@@ -95,6 +95,7 @@ module Harvest
95
95
  TimeEntryExternalReference = Struct.new(
96
96
  'TimeEntryExternalReference',
97
97
  :id,
98
+ :account_id,
98
99
  :group_id,
99
100
  :permalink,
100
101
  :service,
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Harvest
4
- VERSION = '0.5.0'
4
+ VERSION = '0.5.1'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: harvest-ruby-v2
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
4
+ version: 0.5.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Craig Davis
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-11-06 00:00:00.000000000 Z
11
+ date: 2021-06-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport