safrano 0.8.0 → 0.8.2
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/lib/core_ext/Date/format.rb +1 -0
- data/lib/core_ext/DateTime/format.rb +1 -0
- data/lib/core_ext/Hash/transform.rb +2 -2
- data/lib/core_ext/MatchData/matchlen.rb +14 -0
- data/lib/core_ext/Time/format.rb +1 -1
- data/lib/core_ext/matchdata.rb +3 -0
- data/lib/odata/attribute.rb +4 -5
- data/lib/odata/batch.rb +3 -1
- data/lib/odata/collection.rb +3 -0
- data/lib/odata/collection_media.rb +5 -4
- data/lib/odata/complex_type.rb +4 -3
- data/lib/odata/entity.rb +7 -4
- data/lib/odata/error.rb +21 -5
- data/lib/odata/filter/base.rb +1 -0
- data/lib/odata/filter/error.rb +3 -0
- data/lib/odata/filter/sequel.rb +6 -10
- data/lib/odata/filter/sequel_datetime_adapter.rb +1 -0
- data/lib/odata/filter/sequel_function_adapter.rb +1 -0
- data/lib/odata/filter/tree.rb +28 -26
- data/lib/odata/function_import.rb +7 -0
- data/lib/odata/model_ext.rb +20 -17
- data/lib/odata/navigation_attribute.rb +6 -0
- data/lib/odata/request/json.rb +1 -0
- data/lib/odata/transition.rb +134 -27
- data/lib/odata/walker.rb +5 -25
- data/lib/safrano/rack_app.rb +16 -3
- data/lib/safrano/rack_builder.rb +37 -37
- data/lib/safrano/request.rb +5 -4
- data/lib/safrano/service.rb +61 -7
- data/lib/safrano/type_mapping.rb +6 -3
- data/lib/safrano/version.rb +1 -1
- data/lib/sequel/plugins/join_by_paths.rb +2 -2
- metadata +4 -2
data/lib/safrano/version.rb
CHANGED
@@ -130,7 +130,7 @@ class JoinByPathsHelper < Set
|
|
130
130
|
# associated model's primary key. Each current model object can be
|
131
131
|
# associated with many associated model objects, and each associated
|
132
132
|
# model object can be associated with many current model objects.
|
133
|
-
# TODO: testcase for :one_through_one
|
133
|
+
# TODO: testcase for :one_through_one
|
134
134
|
# when # :one_through_one :: Similar to many_to_many in terms of foreign keys, but only one object
|
135
135
|
# is associated to the current object through the association.
|
136
136
|
# Provides only getter methods, no setter or modification methods.
|
@@ -173,7 +173,6 @@ class JoinByPathsHelper < Set
|
|
173
173
|
|
174
174
|
next result_
|
175
175
|
|
176
|
-
|
177
176
|
end
|
178
177
|
|
179
178
|
lks.map! { |k| Sequel[seg.first.alias_sym][k] } unless seg.first.empty?
|
@@ -229,6 +228,7 @@ module Sequel
|
|
229
228
|
@alias_cnt = 0
|
230
229
|
end
|
231
230
|
end
|
231
|
+
|
232
232
|
module ClassMethods
|
233
233
|
attr_reader :aliases_sym
|
234
234
|
attr_reader :alias_cnt
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: safrano
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.8.
|
4
|
+
version: 0.8.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- oz
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2024-03-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rack
|
@@ -187,6 +187,7 @@ files:
|
|
187
187
|
- lib/core_ext/Dir/iter.rb
|
188
188
|
- lib/core_ext/Hash/transform.rb
|
189
189
|
- lib/core_ext/Integer/edm.rb
|
190
|
+
- lib/core_ext/MatchData/matchlen.rb
|
190
191
|
- lib/core_ext/Numeric/convert.rb
|
191
192
|
- lib/core_ext/REXML/Document/output.rb
|
192
193
|
- lib/core_ext/String/convert.rb
|
@@ -197,6 +198,7 @@ files:
|
|
197
198
|
- lib/core_ext/dir.rb
|
198
199
|
- lib/core_ext/hash.rb
|
199
200
|
- lib/core_ext/integer.rb
|
201
|
+
- lib/core_ext/matchdata.rb
|
200
202
|
- lib/core_ext/numeric.rb
|
201
203
|
- lib/core_ext/rexml.rb
|
202
204
|
- lib/core_ext/string.rb
|