harvest-ruby-v2 0.5.0 → 0.5.1
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 +4 -4
- data/CHANGELOG.rst +5 -0
- data/lib/harvest.rb +2 -1
- data/lib/harvest/resources/timeentry.rb +1 -0
- data/lib/harvest/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 58350245891bc951a4eaf534edd5adf454686668aecd9fc18e9607bbdbb5ce36
|
|
4
|
+
data.tar.gz: f1053f1810e4297cfb8d0400c064d2db2875359dd0a5440c1327ca0db50300ab
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: e07110f419334d96fcb0c54f7394adecfc33cb5f1ed82e2ccadefdacc646534b24200f1081d53f1d119361368454b4b955eead82e817ca43b76c83b5fbf3067b
|
|
7
|
+
data.tar.gz: e9557a89a104a7a358dd37a58b865422b5fba6b9d107af88941f1d47921251b7c34613945b19ff3f26a0e90b999ec3811bf3db096b63fdbc36de0a4117faa47a
|
data/CHANGELOG.rst
CHANGED
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 |
|
|
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
|
)
|
data/lib/harvest/version.rb
CHANGED
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.
|
|
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:
|
|
11
|
+
date: 2021-06-07 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: activesupport
|