contentstack 0.5.0 → 0.5.1

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: 9a123ae65668a6bf29833ecc4afcb2a2928e1732714972f6435a454b73aaf4ad
4
- data.tar.gz: 62e2227a92867dc87c0924a9739f8992ec48f315b36bd6dddd4c67695dec4312
3
+ metadata.gz: 38cb9c00678c71f0e4d00449b051bdbfa8e743141c95989d27caf58802665a28
4
+ data.tar.gz: f916dfd420ea954d7d01208ab97df9e7e2d8a97777449bef101a39d41d4f720d
5
5
  SHA512:
6
- metadata.gz: 46d3100475b3e04a49b01982ac0ffe39bc75669da2127256275ad4b9264f265e298391ea7da6f24c00a91e58307daf519a34baf71b4d21a54b6a6d365a4d1792
7
- data.tar.gz: d666b92d9b25fe675187cebac7f04f4fc426cc731636022ba6350293fbe61f9e5ef258ceae7df363abfc78dc6fbc37b1f0c294e79debaaba7b1a8dbb90b90f0c
6
+ metadata.gz: a7491b3bf5648675b9fd069bdf8dfff2c70e51d75594f1f2629b54632ca616be27cdebc6487dac9eb9f8fc242a440cd783167b94b0707f1a1879a925cde22301
7
+ data.tar.gz: f32ceecfa27bf63e217bcf27a6f11b62c054e2bef6a74c61a6659ff1508cdd4b8f5d14fb95b2df6814254e09e8898e18269a852bfc3eff925e53de6da4d293fa
data/.gitignore CHANGED
@@ -9,4 +9,4 @@ coverage
9
9
  .bundle/
10
10
  **/rspec_results.html
11
11
  vendor/
12
- coverage/
12
+ .dccache
data/.talismanrc ADDED
@@ -0,0 +1 @@
1
+ threshold: medium
data/CHANGELOG.md CHANGED
@@ -1,10 +1,4 @@
1
1
  ## CHANGELOG
2
- ------------------------------------------------
3
- ## Version 0.5.0
4
- ### Date: 14th-Oct-2021
5
- ### New Features
6
- - Live Preview feature support added
7
-
8
2
  ------------------------------------------------
9
3
  ## Version 0.4.3
10
4
  ### Date: 17th-Sept-2021
@@ -24,6 +18,7 @@
24
18
  - Updated gemspec dependency
25
19
 
26
20
  ------------------------------------------------
21
+
27
22
  ## Version 0.4.0
28
23
  ### Date: 16th-Apr-2021
29
24
  ### New Features
data/Gemfile.lock CHANGED
@@ -8,7 +8,7 @@ PATH
8
8
  GEM
9
9
  remote: https://rubygems.org/
10
10
  specs:
11
- activesupport (6.1.4.1)
11
+ activesupport (6.1.5)
12
12
  concurrent-ruby (~> 1.0, >= 1.0.2)
13
13
  i18n (>= 1.6, < 2)
14
14
  minitest (>= 5.1)
@@ -16,7 +16,7 @@ GEM
16
16
  zeitwerk (~> 2.3)
17
17
  addressable (2.8.0)
18
18
  public_suffix (>= 2.0.2, < 5.0)
19
- concurrent-ruby (1.1.9)
19
+ concurrent-ruby (1.1.10)
20
20
  contentstack_utils (1.1.0)
21
21
  activesupport (>= 3.2, < 6.2)
22
22
  nokogiri (~> 1.11, >= 1.11.0)
@@ -25,12 +25,12 @@ GEM
25
25
  diff-lcs (1.4.4)
26
26
  docile (1.4.0)
27
27
  hashdiff (1.0.1)
28
- i18n (1.8.10)
28
+ i18n (1.10.0)
29
29
  concurrent-ruby (~> 1.0)
30
- mini_portile2 (2.6.1)
31
- minitest (5.14.4)
32
- nokogiri (1.12.5)
33
- mini_portile2 (~> 2.6.1)
30
+ mini_portile2 (2.8.0)
31
+ minitest (5.15.0)
32
+ nokogiri (1.13.4)
33
+ mini_portile2 (~> 2.8.0)
34
34
  racc (~> 1.4)
35
35
  public_suffix (4.0.6)
36
36
  racc (1.6.0)
@@ -61,7 +61,7 @@ GEM
61
61
  crack (>= 0.3.2)
62
62
  hashdiff (>= 0.4.0, < 2.0.0)
63
63
  yard (0.9.26)
64
- zeitwerk (2.5.1)
64
+ zeitwerk (2.5.4)
65
65
 
66
66
  PLATFORMS
67
67
  ruby
data/LICENSE.txt CHANGED
@@ -1,6 +1,6 @@
1
1
  The MIT License (MIT)
2
2
 
3
- Copyright (c) 2012-2021 Contentstack. All Rights Reserved
3
+ Copyright (c) 2012-2022 Contentstack. All Rights Reserved
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
data/README.md CHANGED
@@ -116,7 +116,7 @@ In a single instance, the [Get Multiple Entries](https://www.contentstack.com/do
116
116
 
117
117
  We have introduced Image Delivery APIs that let you retrieve images and then manipulate and optimize them for your digital properties. It lets you perform a host of other actions such as crop, trim, resize, rotate, overlay, and so on.
118
118
 
119
- For example, if you want to crop an image (with width as 300 and height as 400), you simply need to append query parameters at the end of the image URL, such as, https://images.contentstack.io/v3/assets/blteae40eb499811073/bltc5064f36b5855343/59e0c41ac0eddd140d5a8e3e/download?crop=300,400. There are several more parameters that you can use for your images.
119
+ For example, if you want to crop an image (with width as 300 and height as 400), you simply need to append query parameters at the end of the image URL, such as, https://images.contentstack.io/v3/download?crop=300,400. There are several more parameters that you can use for your images.
120
120
 
121
121
  [Read Image Delivery API documentation](https://www.contentstack.com/docs/apis/image-delivery-api/).
122
122
 
data/SECURITY.md ADDED
@@ -0,0 +1,27 @@
1
+ ## Security
2
+
3
+ Contentstack takes the security of our software products and services seriously, which includes all source code repositories managed through our GitHub organizations.
4
+
5
+ If you believe you have found a security vulnerability in any Contentstack-owned repository, please report it to us as described below.
6
+
7
+ ## Reporting Security Issues
8
+
9
+ **Please do not report security vulnerabilities through public GitHub issues.**
10
+
11
+ Send email to [security@contentstack.com](mailto:security@contentstack.com).
12
+
13
+ You should receive a response within 24 hours. If for some reason you do not, please follow up via email to ensure we received your original message.
14
+
15
+ Please include the requested information listed below (as much as you can provide) to help us better understand the nature and scope of the possible issue:
16
+
17
+ * Type of issue (e.g. buffer overflow, SQL injection, cross-site scripting, etc.)
18
+ * Full paths of source file(s) related to the manifestation of the issue
19
+ * The location of the affected source code (tag/branch/commit or direct URL)
20
+ * Any special configuration required to reproduce the issue
21
+ * Step-by-step instructions to reproduce the issue
22
+ * Proof-of-concept or exploit code (if possible)
23
+ * Impact of the issue, including how an attacker might exploit the issue
24
+
25
+ This information will help us triage your report more quickly.
26
+
27
+ [https://www.contentstack.com/trust/](https://www.contentstack.com/trust/)
@@ -80,7 +80,7 @@ module Contentstack
80
80
  if !@branch.nil? && !@branch.empty?
81
81
  params["branch"] = @branch
82
82
  end
83
- ActiveSupport::JSON.decode(open("#{@host}#{@api_version}#{path}#{query}",params).read)
83
+ ActiveSupport::JSON.decode(URI.open("#{@host}#{@api_version}#{path}#{query}", params).read)
84
84
  end
85
85
 
86
86
  def self.send_preview_request(path, q=nil)
@@ -99,7 +99,7 @@ module Contentstack
99
99
  if !@branch.nil? && !@branch.empty?
100
100
  params["branch"] = @branch
101
101
  end
102
- ActiveSupport::JSON.decode(open("#{preview_host}#{@api_version}#{path}#{query}",params).read)
102
+ ActiveSupport::JSON.decode(URI.open("#{preview_host}#{@api_version}#{path}#{query}",params).read)
103
103
  end
104
104
  end
105
105
  end
@@ -1,3 +1,3 @@
1
1
  module Contentstack
2
- VERSION = "0.5.0"
2
+ VERSION = "0.5.1"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: contentstack
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
4
+ version: 0.5.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Contentstack
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-12-08 00:00:00.000000000 Z
11
+ date: 2022-04-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -114,6 +114,7 @@ extensions: []
114
114
  extra_rdoc_files: []
115
115
  files:
116
116
  - ".gitignore"
117
+ - ".talismanrc"
117
118
  - ".yardopts"
118
119
  - CHANGELOG.md
119
120
  - CODEOWNERS
@@ -122,6 +123,7 @@ files:
122
123
  - Gemfile.lock
123
124
  - LICENSE.txt
124
125
  - README.md
126
+ - SECURITY.md
125
127
  - contentstack.gemspec
126
128
  - lib/contentstack.rb
127
129
  - lib/contentstack/api.rb
@@ -161,7 +163,7 @@ homepage: https://github.com/contentstack/contentstack-ruby
161
163
  licenses:
162
164
  - MIT
163
165
  metadata: {}
164
- post_install_message:
166
+ post_install_message:
165
167
  rdoc_options: []
166
168
  require_paths:
167
169
  - lib
@@ -176,8 +178,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
176
178
  - !ruby/object:Gem::Version
177
179
  version: '0'
178
180
  requirements: []
179
- rubygems_version: 3.0.3
180
- signing_key:
181
+ rubygems_version: 3.3.7
182
+ signing_key:
181
183
  specification_version: 4
182
184
  summary: Contentstack Ruby client for the Content Delivery API
183
185
  test_files: []