zenaton 0.5.2 → 0.5.3

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: 2b9c645b85a1f05b539497abb1a05cf9c7d0f626429f322d081e24121038f18e
4
- data.tar.gz: e9a8c66426f42d47eba240da7992735fb1f0543a99e86464db9e2a8da48fb9cf
3
+ metadata.gz: b08187623f70606c27295f86be811f71dd80188db775074adb36525e7eb2c93c
4
+ data.tar.gz: 11656eb73d4e571e8603c403c40793904b3d94fb2d44c5a73791ea58ef874a86
5
5
  SHA512:
6
- metadata.gz: 7e210712d18a2c6fbb68698071e12f3b3fb7b51ee125db3d36f1daf41882751c95b2e76b9ade9b8af8391c726c424249ddf23041be169dd145bf156283bee251
7
- data.tar.gz: 13f953230c111b2062effdf6488197c6a753bb160c7499d11054ff69dc21ba7cf51518591409db78e73d5c82f3fd8c5b482c591ab5aa368dbde16416c18236ea
6
+ metadata.gz: 1b0004ca3a2e9791578af89aeb735d09062eedd5bd77fc4cf098abdae564526310b166e37e84f6e272ae9288f2fe0649fa6cf587499bf906e6c6969b0b75b90d
7
+ data.tar.gz: d94f70b29a3ff0b7f43bc5f38a0c00a05ebed2126439c08a50d202166d9670abc36e263f191b658f3d1472114c10322680de183caf15969638534aba62fbfe4a
data/.circleci/config.yml CHANGED
@@ -8,8 +8,13 @@ commands:
8
8
  - checkout
9
9
  - restore_cache:
10
10
  keys:
11
- - v3-dependencies-{{ checksum "Gemfile.lock" }}
12
- - v3-dependencies-
11
+ - v3-dependencies-{{ checksum "Gemfile.lock" }}
12
+ - v3-dependencies-
13
+
14
+ - run:
15
+ name: release activesupport version
16
+ command: |
17
+ bundle lock --update activesupport
13
18
 
14
19
  - run:
15
20
  name: install dependencies
data/CHANGELOG.md CHANGED
@@ -5,12 +5,27 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
5
5
  and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
6
6
 
7
7
  ## [Unreleased]
8
- ### Changes
9
8
 
10
9
  ### Added
11
10
 
11
+ ### Changed
12
+
13
+ ### Deprecated
14
+
15
+ ### Removed
16
+
12
17
  ### Fixed
13
18
 
19
+ ### Security
20
+
21
+ ## [0.5.3] - 2019-10-02
22
+
23
+ ### Added
24
+ - Added support to activesupport 6.0.0.
25
+
26
+ ### Changed
27
+ - Decoded hashes are now instances of `ActiveSupport::HashWithIndifferentAccess`
28
+
14
29
  ## [0.5.2] - 2019-09-19
15
30
 
16
31
  ### Fixed
@@ -23,7 +38,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
23
38
  - Added `custom_id` argument for workflow schedule.
24
39
 
25
40
  ## [0.5.0] - 2019-08-27
26
- ### Changes
41
+ ### Changed
27
42
  - No longer load JSON core extensions. Use our own refinements to avoid clashes
28
43
  with frameworks and user code.
29
44
 
@@ -47,7 +62,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
47
62
  - Fixed an error caused by a bad class name serialization when `as_json` is overrided (in rails for example).
48
63
 
49
64
  ## [0.4.1] - 2019-06-04
50
- ### Changes
65
+ ### Changed
51
66
  - Fix symbol json encoding breaking compatibility with some gems
52
67
 
53
68
  ### Added
@@ -57,7 +72,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
57
72
  ### Added
58
73
  - Calling `#dispatch` on tasks now allows to process tasks asynchronously
59
74
 
60
- ### Changes
75
+ ### Changed
61
76
  - Update Zenaton engine URL to point to the new subdomain.
62
77
 
63
78
  ### Fixed
@@ -122,8 +137,9 @@ available.
122
137
  ### Added
123
138
  - Initial release.
124
139
 
125
- [Unreleased]: https://github.com/zenaton/zenaton-ruby/compare/v0.5.2...HEAD
126
- [0.5.2]: https://github.com/zenaton/zenaton-ruby/compare/v0.5.0...v0.5.2
140
+ [Unreleased]: https://github.com/zenaton/zenaton-ruby/compare/v0.5.3...HEAD
141
+ [0.5.3]: https://github.com/zenaton/zenaton-ruby/compare/v0.5.2...v0.5.3
142
+ [0.5.2]: https://github.com/zenaton/zenaton-ruby/compare/v0.5.1...v0.5.2
127
143
  [0.5.1]: https://github.com/zenaton/zenaton-ruby/compare/v0.5.0...v0.5.1
128
144
  [0.5.0]: https://github.com/zenaton/zenaton-ruby/compare/v0.4.2...v0.5.0
129
145
  [0.4.2]: https://github.com/zenaton/zenaton-ruby/compare/v0.4.1...v0.4.2
data/Gemfile.lock CHANGED
@@ -1,18 +1,19 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- zenaton (0.5.2)
5
- activesupport (~> 5)
4
+ zenaton (0.5.3)
5
+ activesupport
6
6
  tzinfo-data
7
7
 
8
8
  GEM
9
9
  remote: https://rubygems.org/
10
10
  specs:
11
- activesupport (5.2.3)
11
+ activesupport (6.0.0)
12
12
  concurrent-ruby (~> 1.0, >= 1.0.2)
13
13
  i18n (>= 0.7, < 2)
14
14
  minitest (~> 5.1)
15
15
  tzinfo (~> 1.1)
16
+ zeitwerk (~> 2.1, >= 2.1.8)
16
17
  addressable (2.6.0)
17
18
  public_suffix (>= 2.0.2, < 4.0)
18
19
  appraisal (2.2.0)
@@ -88,6 +89,7 @@ GEM
88
89
  addressable (>= 2.3.6)
89
90
  crack (>= 0.3.2)
90
91
  hashdiff (>= 0.4.0, < 2.0.0)
92
+ zeitwerk (2.1.10)
91
93
 
92
94
  PLATFORMS
93
95
  ruby
@@ -2,7 +2,7 @@
2
2
 
3
3
  require 'json'
4
4
  require 'zenaton/services/properties'
5
- require 'json'
5
+ require 'active_support/core_ext/hash/indifferent_access.rb'
6
6
 
7
7
  module Zenaton
8
8
  module Services
@@ -169,7 +169,7 @@ module Zenaton
169
169
  end
170
170
 
171
171
  def decode_hash(id, hash)
172
- @decoded[id] = {}
172
+ @decoded[id] = ActiveSupport::HashWithIndifferentAccess.new
173
173
  hash.each do |key, value|
174
174
  @decoded[id][key] = decode_element(value)
175
175
  end
@@ -12,8 +12,13 @@ module Zenaton
12
12
  include WithDuration
13
13
  extend ActiveSupport::Concern
14
14
 
15
- # Array of weekdays as symbols from ActiveSupport
16
- WEEKDAYS = DateAndTime::Calculations::DAYS_INTO_WEEK.keys
15
+ WEEKDAYS = %i[monday
16
+ tuesday
17
+ wednesday
18
+ thursday
19
+ friday
20
+ saturday
21
+ sunday].freeze
17
22
  MODE_AT = 'AT' # When specifying a time
18
23
  MODE_WEEK_DAY = 'WEEK_DAY' # When specifying a day of the week
19
24
  MODE_MONTH_DAY = 'MONTH_DAY' # When specifying a day of the month
@@ -2,5 +2,5 @@
2
2
 
3
3
  module Zenaton
4
4
  # This gem's current version
5
- VERSION = '0.5.2'
5
+ VERSION = '0.5.3'
6
6
  end
data/zenaton.gemspec CHANGED
@@ -22,7 +22,7 @@ Gem::Specification.new do |spec|
22
22
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
23
23
  spec.require_paths = ['lib']
24
24
 
25
- spec.add_runtime_dependency 'activesupport', '~> 5'
25
+ spec.add_runtime_dependency 'activesupport'
26
26
  spec.add_runtime_dependency 'tzinfo-data'
27
27
 
28
28
  spec.add_development_dependency 'appraisal'
metadata CHANGED
@@ -1,29 +1,29 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: zenaton
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.2
4
+ version: 0.5.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Zenaton
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-09-19 00:00:00.000000000 Z
11
+ date: 2019-10-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - "~>"
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: '5'
19
+ version: '0'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - "~>"
24
+ - - ">="
25
25
  - !ruby/object:Gem::Version
26
- version: '5'
26
+ version: '0'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: tzinfo-data
29
29
  requirement: !ruby/object:Gem::Requirement