sanity-ruby 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.github/workflows/ci.yml +29 -0
- data/.gitignore +9 -0
- data/.standard.yml +2 -0
- data/Gemfile +16 -0
- data/LICENSE.txt +21 -0
- data/README.md +203 -0
- data/Rakefile +24 -0
- data/bin/console +11 -0
- data/bin/setup +8 -0
- data/bin/standardrb +29 -0
- data/lib/sanity.rb +21 -0
- data/lib/sanity/attributable.rb +66 -0
- data/lib/sanity/configuration.rb +44 -0
- data/lib/sanity/groq/filter.rb +111 -0
- data/lib/sanity/groq/order.rb +39 -0
- data/lib/sanity/groq/select.rb +37 -0
- data/lib/sanity/groq/slice.rb +41 -0
- data/lib/sanity/groqify.rb +49 -0
- data/lib/sanity/http.rb +24 -0
- data/lib/sanity/http/create.rb +9 -0
- data/lib/sanity/http/create_if_not_exists.rb +9 -0
- data/lib/sanity/http/create_or_replace.rb +9 -0
- data/lib/sanity/http/delete.rb +9 -0
- data/lib/sanity/http/find.rb +24 -0
- data/lib/sanity/http/mutation.rb +108 -0
- data/lib/sanity/http/patch.rb +9 -0
- data/lib/sanity/http/query.rb +74 -0
- data/lib/sanity/http/results.rb +26 -0
- data/lib/sanity/http/where.rb +59 -0
- data/lib/sanity/mutatable.rb +56 -0
- data/lib/sanity/queryable.rb +50 -0
- data/lib/sanity/refinements.rb +5 -0
- data/lib/sanity/refinements/arrays.rb +30 -0
- data/lib/sanity/refinements/hashes.rb +20 -0
- data/lib/sanity/refinements/strings.rb +38 -0
- data/lib/sanity/resource.rb +30 -0
- data/lib/sanity/resources.rb +4 -0
- data/lib/sanity/resources/asset.rb +7 -0
- data/lib/sanity/resources/document.rb +25 -0
- data/lib/sanity/version.rb +5 -0
- data/sanity.gemspec +29 -0
- metadata +86 -0
data/sanity.gemspec
ADDED
@@ -0,0 +1,29 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require_relative "lib/sanity/version"
|
4
|
+
|
5
|
+
Gem::Specification.new do |spec|
|
6
|
+
spec.name = "sanity-ruby"
|
7
|
+
spec.version = Sanity::VERSION
|
8
|
+
spec.authors = "Morning Brew"
|
9
|
+
spec.email = "tech@morningbrew.com"
|
10
|
+
|
11
|
+
spec.summary = "Ruby bindings for the Sanity API"
|
12
|
+
spec.description = ""
|
13
|
+
spec.homepage = "https://github.com/morning-brew/sanity-ruby"
|
14
|
+
spec.license = "MIT"
|
15
|
+
spec.required_ruby_version = Gem::Requirement.new(">= 2.6.0")
|
16
|
+
|
17
|
+
spec.metadata["homepage_uri"] = spec.homepage
|
18
|
+
spec.metadata["source_code_uri"] = spec.homepage
|
19
|
+
spec.metadata["changelog_uri"] = spec.homepage
|
20
|
+
|
21
|
+
# Specify which files should be added to the gem when it is released.
|
22
|
+
# The `git ls-files -z` loads the files in the RubyGem that have been added into git.
|
23
|
+
spec.files = Dir.chdir(File.expand_path("..", __FILE__)) do
|
24
|
+
`git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
25
|
+
end
|
26
|
+
spec.bindir = "exe"
|
27
|
+
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
28
|
+
spec.require_paths = ["lib"]
|
29
|
+
end
|
metadata
ADDED
@@ -0,0 +1,86 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: sanity-ruby
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Morning Brew
|
8
|
+
autorequire:
|
9
|
+
bindir: exe
|
10
|
+
cert_chain: []
|
11
|
+
date: 2021-07-29 00:00:00.000000000 Z
|
12
|
+
dependencies: []
|
13
|
+
description: ''
|
14
|
+
email: tech@morningbrew.com
|
15
|
+
executables: []
|
16
|
+
extensions: []
|
17
|
+
extra_rdoc_files: []
|
18
|
+
files:
|
19
|
+
- ".github/workflows/ci.yml"
|
20
|
+
- ".gitignore"
|
21
|
+
- ".standard.yml"
|
22
|
+
- Gemfile
|
23
|
+
- LICENSE.txt
|
24
|
+
- README.md
|
25
|
+
- Rakefile
|
26
|
+
- bin/console
|
27
|
+
- bin/setup
|
28
|
+
- bin/standardrb
|
29
|
+
- lib/sanity.rb
|
30
|
+
- lib/sanity/attributable.rb
|
31
|
+
- lib/sanity/configuration.rb
|
32
|
+
- lib/sanity/groq/filter.rb
|
33
|
+
- lib/sanity/groq/order.rb
|
34
|
+
- lib/sanity/groq/select.rb
|
35
|
+
- lib/sanity/groq/slice.rb
|
36
|
+
- lib/sanity/groqify.rb
|
37
|
+
- lib/sanity/http.rb
|
38
|
+
- lib/sanity/http/create.rb
|
39
|
+
- lib/sanity/http/create_if_not_exists.rb
|
40
|
+
- lib/sanity/http/create_or_replace.rb
|
41
|
+
- lib/sanity/http/delete.rb
|
42
|
+
- lib/sanity/http/find.rb
|
43
|
+
- lib/sanity/http/mutation.rb
|
44
|
+
- lib/sanity/http/patch.rb
|
45
|
+
- lib/sanity/http/query.rb
|
46
|
+
- lib/sanity/http/results.rb
|
47
|
+
- lib/sanity/http/where.rb
|
48
|
+
- lib/sanity/mutatable.rb
|
49
|
+
- lib/sanity/queryable.rb
|
50
|
+
- lib/sanity/refinements.rb
|
51
|
+
- lib/sanity/refinements/arrays.rb
|
52
|
+
- lib/sanity/refinements/hashes.rb
|
53
|
+
- lib/sanity/refinements/strings.rb
|
54
|
+
- lib/sanity/resource.rb
|
55
|
+
- lib/sanity/resources.rb
|
56
|
+
- lib/sanity/resources/asset.rb
|
57
|
+
- lib/sanity/resources/document.rb
|
58
|
+
- lib/sanity/version.rb
|
59
|
+
- sanity.gemspec
|
60
|
+
homepage: https://github.com/morning-brew/sanity-ruby
|
61
|
+
licenses:
|
62
|
+
- MIT
|
63
|
+
metadata:
|
64
|
+
homepage_uri: https://github.com/morning-brew/sanity-ruby
|
65
|
+
source_code_uri: https://github.com/morning-brew/sanity-ruby
|
66
|
+
changelog_uri: https://github.com/morning-brew/sanity-ruby
|
67
|
+
post_install_message:
|
68
|
+
rdoc_options: []
|
69
|
+
require_paths:
|
70
|
+
- lib
|
71
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - ">="
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: 2.6.0
|
76
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
77
|
+
requirements:
|
78
|
+
- - ">="
|
79
|
+
- !ruby/object:Gem::Version
|
80
|
+
version: '0'
|
81
|
+
requirements: []
|
82
|
+
rubygems_version: 3.0.3
|
83
|
+
signing_key:
|
84
|
+
specification_version: 4
|
85
|
+
summary: Ruby bindings for the Sanity API
|
86
|
+
test_files: []
|