notion_ruby_mapping 0.7.0 → 0.7.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 378e8aecdacdabc3fd951939783195ed13f2e56665a202a8fe3cf9a2d66e0fab
4
- data.tar.gz: d92c738818763b3d4d49d06e1f7c326ec2fc60e5214162a8185c4f7a8c3f501a
3
+ metadata.gz: 8a757ebe4ea9fc3bf0709bddf57721136db4ba0c6d9bc063353971de92b172c2
4
+ data.tar.gz: 7a8e3d103725393f587c3294af0ee736b2a6ecdda6aab86b61f77bf202ca7918
5
5
  SHA512:
6
- metadata.gz: 0dd2673402bbe54ccd135331c3476f4009af7c68411895f2244288eae761c8975e5bb7e9e39d14ba5d2fc58b96cb38c8dd4f401de2a422d0ebfaeff4c29277ed
7
- data.tar.gz: 331fadb7063f5d72c049a7f84907174b3470be179340539796772e31a3ff61dd10222d1638d26688c67fe8470501235c3025c2ebda46ba8942e404cc256aad91
6
+ metadata.gz: f4af8a3a2ac3f2116e7b943d109b87d38231f0e5ff74fc442ed1f8eba64c63f5b3d812dd7a5be6bae2f8094910e0c7221343b292252d04bd5b4c0afab75e70d5
7
+ data.tar.gz: 8316db70c2ac52ce0de63ed9b3f1e71622c4a0b64e1f5915d9022816206842e964bca775290e66775fcd104eb331236530088d9678905d9a3497179032398b1b
data/README.md CHANGED
@@ -125,6 +125,7 @@ NotionRubyMapping.configuration { |c| c.notion_token = ENV["NOTION_API_TOKEN"] }
125
125
 
126
126
  ## 3. ChangeLog
127
127
 
128
+ - 2022/12/16 [v0.7.1] bug fix for query rollup property
128
129
  - 2022/11/28 [v0.7.0] add this_week filter and NotionRubyMapping.configure
129
130
  - 2022/11/13 [v0.6.8] remove error checking for start and end dates, add Users.all, and change Rollup and Formula query specification
130
131
  - 2022/9/2 [v0.6.7] add support for Status property, is_toggleable for headings block, and page property values
@@ -143,12 +143,10 @@ module NotionRubyMapping
143
143
  # @param [Object] value query value
144
144
  # @return [NotionRubyMapping::Query] generated Query object
145
145
  def make_filter_query(key, value, condition: nil, another_type: nil)
146
- if is_a? FormulaProperty
147
- Query.new filter: {"property" => @name, "formula" => {another_type => {key => value}}}
148
- elsif condition
149
- Query.new filter: {"property" => @name, condition => {another_type => {key => value}}}
146
+ if condition
147
+ Query.new filter: {"property" => @name, type => {condition => {another_type => {key => value}}}}
150
148
  elsif another_type
151
- Query.new filter: {"property" => @name, another_type => {key => value}}
149
+ Query.new filter: {"property" => @name, type => {another_type => {key => value}}}
152
150
  elsif @name == "__timestamp__"
153
151
  Query.new filter: {"timestamp" => type, type => {key => value}}
154
152
  else
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module NotionRubyMapping
4
- VERSION = "0.7.0"
4
+ VERSION = "0.7.1"
5
5
  NOTION_VERSION = "2022-06-28"
6
6
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: notion_ruby_mapping
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.0
4
+ version: 0.7.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Hiroyuki KOBAYASHI
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-11-30 00:00:00.000000000 Z
11
+ date: 2022-12-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday
@@ -257,7 +257,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
257
257
  - !ruby/object:Gem::Version
258
258
  version: '0'
259
259
  requirements: []
260
- rubygems_version: 3.3.7
260
+ rubygems_version: 3.3.26
261
261
  signing_key:
262
262
  specification_version: 4
263
263
  summary: Notion Ruby mapping tool