contentstack 0.2.1 → 0.4.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/.gitignore +2 -1
- data/CHANGELOG.md +25 -0
- data/Gemfile +1 -6
- data/Gemfile.lock +56 -40
- data/LICENSE.txt +1 -1
- data/README.md +87 -24
- data/contentstack.gemspec +7 -5
- data/coverage/.last_run.json +1 -1
- data/coverage/.resultset.json +216 -79
- data/coverage/index.html +3297 -1794
- data/lib/contentstack/api.rb +6 -1
- data/lib/contentstack/client.rb +24 -2
- data/lib/contentstack/entry.rb +13 -0
- data/lib/contentstack/query.rb +13 -0
- data/lib/contentstack/sync_result.rb +30 -0
- data/lib/contentstack/version.rb +1 -1
- data/lib/contentstack.rb +7 -0
- data/spec/contentstack_spec.rb +7 -0
- data/spec/entry_spec.rb +6 -1
- data/spec/fixtures/sync_init.json +2975 -0
- data/spec/spec_helper.rb +14 -2
- data/spec/sync_spec.rb +27 -0
- metadata +65 -22
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a87ffedb4feafb037dccf082f50e3e2df92db4f68bbb2278c69fc6209ebd0f97
|
4
|
+
data.tar.gz: b89fca962f1c9fe6c2839f41fe3ce761eed92f2329229dc41b3cb79383e40b7a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d4af764bf1af5cd485a49bdb6ff127bd0a9a079f562c82a7ee27c79776324dd9b7c297291d1af71aadab8c19c7b0d989aede075689b7998b5d8ff858d65e8ce4
|
7
|
+
data.tar.gz: 128181df6d6b5e93ec1ea4bee2ce3c6c9afad74fb2519cf52f0d9b41a7a57519935ae7e7ebb00db45dbbb56c98471b443105ea5e560f63e49f544f53e06befb0
|
data/.gitignore
CHANGED
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,31 @@
|
|
1
1
|
## CHANGELOG
|
2
2
|
------------------------------------------------
|
3
|
+
## Version 0.4.2
|
4
|
+
### Date: 2nd-Sept-2021
|
5
|
+
### Dependency update
|
6
|
+
- Added URI open on open uri deprecation
|
3
7
|
|
8
|
+
------------------------------------------------
|
9
|
+
## Version 0.4.1
|
10
|
+
### Date: 2nd-Jun-2021
|
11
|
+
### Dependency update
|
12
|
+
- Updated gemspec dependency
|
13
|
+
|
14
|
+
------------------------------------------------
|
15
|
+
|
16
|
+
## Version 0.4.0
|
17
|
+
### Date: 16th-Apr-2021
|
18
|
+
### New Features
|
19
|
+
- Embedded feature Support added
|
20
|
+
|
21
|
+
------------------------------------------------
|
22
|
+
|
23
|
+
## Version 0.3.0
|
24
|
+
### Date: 17th-Mar-2021
|
25
|
+
### New Features
|
26
|
+
- Sync API module support added
|
27
|
+
|
28
|
+
------------------------------------------------
|
4
29
|
## Version 0.2.0
|
5
30
|
|
6
31
|
### New Features
|
data/Gemfile
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,61 +1,77 @@
|
|
1
|
+
PATH
|
2
|
+
remote: .
|
3
|
+
specs:
|
4
|
+
contentstack (0.4.1)
|
5
|
+
activesupport (>= 3.2, < 6.2)
|
6
|
+
contentstack_utils (~> 1.0, >= 1.0.1)
|
7
|
+
|
1
8
|
GEM
|
2
9
|
remote: https://rubygems.org/
|
3
10
|
specs:
|
4
|
-
activesupport (6.
|
11
|
+
activesupport (6.1.4)
|
5
12
|
concurrent-ruby (~> 1.0, >= 1.0.2)
|
6
|
-
i18n (>=
|
7
|
-
minitest (
|
8
|
-
tzinfo (~>
|
9
|
-
zeitwerk (~> 2.
|
10
|
-
addressable (2.
|
13
|
+
i18n (>= 1.6, < 2)
|
14
|
+
minitest (>= 5.1)
|
15
|
+
tzinfo (~> 2.0)
|
16
|
+
zeitwerk (~> 2.3)
|
17
|
+
addressable (2.8.0)
|
11
18
|
public_suffix (>= 2.0.2, < 5.0)
|
12
|
-
concurrent-ruby (1.1.
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
19
|
+
concurrent-ruby (1.1.9)
|
20
|
+
contentstack_utils (1.0.2)
|
21
|
+
activesupport (>= 3.2, < 6.2)
|
22
|
+
nokogiri (~> 1.11, >= 1.11.0)
|
23
|
+
crack (0.4.5)
|
24
|
+
rexml
|
25
|
+
diff-lcs (1.4.4)
|
26
|
+
docile (1.4.0)
|
17
27
|
hashdiff (1.0.1)
|
18
|
-
i18n (1.8.
|
28
|
+
i18n (1.8.10)
|
19
29
|
concurrent-ruby (~> 1.0)
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
rspec
|
30
|
+
mini_portile2 (2.5.3)
|
31
|
+
minitest (5.14.4)
|
32
|
+
nokogiri (1.11.7)
|
33
|
+
mini_portile2 (~> 2.5.0)
|
34
|
+
racc (~> 1.4)
|
35
|
+
public_suffix (4.0.6)
|
36
|
+
racc (1.5.2)
|
37
|
+
rexml (3.2.5)
|
38
|
+
rspec (3.10.0)
|
39
|
+
rspec-core (~> 3.10.0)
|
40
|
+
rspec-expectations (~> 3.10.0)
|
41
|
+
rspec-mocks (~> 3.10.0)
|
42
|
+
rspec-core (3.10.1)
|
43
|
+
rspec-support (~> 3.10.0)
|
44
|
+
rspec-expectations (3.10.1)
|
29
45
|
diff-lcs (>= 1.2.0, < 2.0)
|
30
|
-
rspec-support (~> 3.
|
31
|
-
rspec-mocks (3.
|
46
|
+
rspec-support (~> 3.10.0)
|
47
|
+
rspec-mocks (3.10.2)
|
32
48
|
diff-lcs (>= 1.2.0, < 2.0)
|
33
|
-
rspec-support (~> 3.
|
34
|
-
rspec-support (3.
|
35
|
-
|
36
|
-
simplecov (0.18.5)
|
49
|
+
rspec-support (~> 3.10.0)
|
50
|
+
rspec-support (3.10.2)
|
51
|
+
simplecov (0.21.2)
|
37
52
|
docile (~> 1.1)
|
38
53
|
simplecov-html (~> 0.11)
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
54
|
+
simplecov_json_formatter (~> 0.1)
|
55
|
+
simplecov-html (0.12.3)
|
56
|
+
simplecov_json_formatter (0.1.3)
|
57
|
+
tzinfo (2.0.4)
|
58
|
+
concurrent-ruby (~> 1.0)
|
59
|
+
webmock (3.11.3)
|
44
60
|
addressable (>= 2.3.6)
|
45
61
|
crack (>= 0.3.2)
|
46
62
|
hashdiff (>= 0.4.0, < 2.0.0)
|
47
|
-
yard (0.9.
|
48
|
-
zeitwerk (2.
|
63
|
+
yard (0.9.26)
|
64
|
+
zeitwerk (2.4.2)
|
49
65
|
|
50
66
|
PLATFORMS
|
51
67
|
ruby
|
52
68
|
|
53
69
|
DEPENDENCIES
|
54
|
-
|
55
|
-
rspec
|
56
|
-
simplecov
|
57
|
-
webmock
|
58
|
-
yard
|
70
|
+
contentstack!
|
71
|
+
rspec (~> 3.10.0)
|
72
|
+
simplecov (~> 0.21.1)
|
73
|
+
webmock (~> 3.11.0)
|
74
|
+
yard (~> 0.9.26)
|
59
75
|
|
60
76
|
BUNDLED WITH
|
61
|
-
2.
|
77
|
+
2.2.7
|
data/LICENSE.txt
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
The MIT License (MIT)
|
2
2
|
|
3
|
-
Copyright (c) 2012-
|
3
|
+
Copyright (c) 2012-2021 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
@@ -19,7 +19,7 @@ Or you can run this command in your terminal (you might need administrator privi
|
|
19
19
|
gem install contentstack
|
20
20
|
|
21
21
|
To start using the SDK in your application, you will need to initialize the stack by providing the values for the keys given in the code snippet below.
|
22
|
-
|
22
|
+
```ruby
|
23
23
|
# with default region
|
24
24
|
client = Contentstack::Client.new("api_key", "delivery_token", "enviroment_name")
|
25
25
|
|
@@ -28,6 +28,7 @@ To start using the SDK in your application, you will need to initialize the stac
|
|
28
28
|
|
29
29
|
# with custom host
|
30
30
|
client = Contentstack::Client.new("api_key", "delivery_token", "enviroment_name",{"host": "https://custom-cdn.contentstack.com"})
|
31
|
+
```
|
31
32
|
|
32
33
|
## **Key Concepts for using Contentstack**
|
33
34
|
|
@@ -56,35 +57,40 @@ A publishing environment corresponds to one or more deployment servers or a cont
|
|
56
57
|
### **Initializing your SDK**
|
57
58
|
|
58
59
|
To initialize the SDK, you need to provide values for the keys given in the snippet below:
|
59
|
-
|
60
|
-
|
60
|
+
```ruby
|
61
|
+
@stack = Contentstack::Client.new("api_key", "delivery_token", "enviroment_name")
|
62
|
+
```
|
61
63
|
|
62
64
|
To get the API credentials mentioned above, log in to your Contentstack account and then in your top panel navigation, go to Settings > Stack to view the API Key and Access Token.
|
63
65
|
|
64
66
|
### **Querying content from your stack**
|
65
67
|
|
66
68
|
To fetch all entries of of a content type, use the query given below:
|
67
|
-
|
68
|
-
|
69
|
+
```ruby
|
70
|
+
@entry = stack.content_type(<<CONTENT_TYPE_UID>>).query();
|
71
|
+
```
|
69
72
|
|
70
73
|
To fetch a specific entry from a content type, use the following query:
|
71
|
-
|
72
|
-
|
74
|
+
```ruby
|
75
|
+
@entry = stack.content_type(<<CONTENT_TYPE_UID>>).entry(<<ENTRY_UID>>);
|
76
|
+
```
|
73
77
|
|
74
78
|
### Get Multiple Entries
|
75
79
|
To retrieve multiple entries of a content type, specify the content type UID. You can also specify search parameters to filter results:
|
80
|
+
```ruby
|
81
|
+
@query = @stack.content_type('blog').query
|
82
|
+
@entries = @query.where('title', 'welcome')
|
83
|
+
.include_schema
|
84
|
+
.include_count
|
85
|
+
.fetch
|
86
|
+
puts "Total Entries -- #{@entries.count}"
|
87
|
+
@entries.each{|entry| puts "#{entry.get('title')}" }
|
88
|
+
```
|
76
89
|
|
77
|
-
@query = @stack.content_type('blog').query
|
78
|
-
@entries = @query.where('title', 'welcome')
|
79
|
-
.include_schema
|
80
|
-
.include_count
|
81
|
-
.fetch
|
82
|
-
puts "Total Entries -- #{@entries.count}"
|
83
|
-
@entries.each{|entry| puts "#{entry.get('title')}" }
|
84
90
|
To retrieve localized versions of entries, you can use the query attribute:
|
85
|
-
|
86
|
-
|
87
|
-
|
91
|
+
```ruby
|
92
|
+
entry = @stack.content_type('content_type_uid').query.locale('locale_code').fetch()
|
93
|
+
```
|
88
94
|
> Note: Currently, the above query works in case of retrieving localized versions of multiple entries only.
|
89
95
|
|
90
96
|
## **Advanced Queries**
|
@@ -96,11 +102,13 @@ You can query for content types, entries, assets and more using our Ruby API Ref
|
|
96
102
|
### Paginating Responses
|
97
103
|
In a single instance, the [Get Multiple Entries](https://www.contentstack.com/docs/developers/ruby/get-started-with-ruby-sdk/#get-multiple-entries) query will retrieve only the first 100 items of the specified content type. You can paginate and retrieve the rest of the items in batches using the [skip](https://www.rubydoc.info/gems/contentstack/Contentstack/Query#skip-instance_method) and [limit](https://www.rubydoc.info/gems/contentstack/Contentstack/Query#limit-instance_method) parameters in subsequent requests.
|
98
104
|
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
105
|
+
```ruby
|
106
|
+
@stack = Contentstack::Client.new("api_key", "delivery_token", "environment")
|
107
|
+
@entries = @stack.content_type('category').query
|
108
|
+
.limit(20)
|
109
|
+
.skip(50)
|
110
|
+
.fetch
|
111
|
+
```
|
104
112
|
|
105
113
|
> Note: Currently, the Ruby SDK does not support multiple content types referencing in a single query. For more information on how to query entries and assets, refer the Queries section of our Content Delivery API documentation.
|
106
114
|
|
@@ -112,8 +120,63 @@ For example, if you want to crop an image (with width as 300 and height as 400),
|
|
112
120
|
|
113
121
|
[Read Image Delivery API documentation](https://www.contentstack.com/docs/apis/image-delivery-api/).
|
114
122
|
|
115
|
-
SDK functions for Image Delivery API coming soon.
|
116
123
|
|
124
|
+
## **Using the Sync API with Ruby SDK**
|
125
|
+
|
126
|
+
The Sync API takes care of syncing your Contentstack data with your app and ensures that the data is always up-to-date by providing delta updates. Contentstack’s Ruby SDK supports Sync API, which you can use to build powerful apps. Read through to understand how to use the Sync API with Contentstack Ruby SDK.
|
127
|
+
[Read Sync API documentation](https://www.contentstack.com/docs/platforms/ruby#using-the-sync-api-with-ruby-sdk).
|
128
|
+
|
129
|
+
### Initial sync
|
130
|
+
|
131
|
+
The Initial Sync process performs a complete sync of your app data. It returns all the published entries and assets of the specified stack in response.
|
132
|
+
|
133
|
+
To start the Initial Sync process, use the syncStack method.
|
134
|
+
|
135
|
+
```ruby
|
136
|
+
@sync_result = @stack.sync({init: true})
|
137
|
+
# @sync_result.items: contains sync data
|
138
|
+
# @sync_result.pagination_token: for fetching the next batch of entries using pagination token
|
139
|
+
# @sync_result.sync_token: for performing subsequent sync after initial sync
|
140
|
+
```
|
141
|
+
|
142
|
+
The response also contains a sync token, which you need to store, since this token is used to get subsequent delta updates later, as shown in the Subsequent Sync section below.
|
143
|
+
|
144
|
+
You can also fetch custom results in initial sync by using advanced sync queries.
|
145
|
+
|
146
|
+
### Sync pagination
|
147
|
+
|
148
|
+
If the result of the initial sync (or subsequent sync) contains more than 100 records, the response would be paginated. It provides pagination token in the response. You will need to use this token to get the next batch of data.
|
149
|
+
|
150
|
+
```ruby
|
151
|
+
@sync_result = @stack.sync({pagination_token : "<pagination_token>"})
|
152
|
+
# @sync_result.items: contains sync data
|
153
|
+
# @sync_result.pagination_token: For fetching the next batch of entries using pagination token
|
154
|
+
# @sync_result.sync_token: For performing subsequent sync after initial sync
|
155
|
+
```
|
156
|
+
|
157
|
+
### Subsequent sync
|
158
|
+
|
159
|
+
You can use the sync token (that you receive after initial sync) to get the updated content next time. The sync token fetches only the content that was added after your last sync, and the details of the content that was deleted or updated.
|
160
|
+
|
161
|
+
```ruby
|
162
|
+
@sync_result = @stack.sync({sync_token : "<sync_token>"})
|
163
|
+
# @sync_result.items: contains sync data
|
164
|
+
# @sync_result.pagination_token: For fetching the next batch of entries using pagination token
|
165
|
+
# @sync_result.sync_token: For performing subsequent sync after initial sync
|
166
|
+
```
|
167
|
+
|
168
|
+
### Advanced sync queries
|
169
|
+
|
170
|
+
You can use advanced sync queries to fetch custom results while performing initial sync.
|
171
|
+
[Read advanced sync queries documentation](https://www.contentstack.com/docs/guide/synchronization/using-the-sync-api-with-ruby-sdk#advanced-sync-queries)
|
172
|
+
|
173
|
+
|
174
|
+
```ruby
|
175
|
+
@sync_result = @stack.sync({init : true, locale: "<locale>" content_type_uid: "<content_type_uid>"})
|
176
|
+
# @sync_result.items: contains sync data
|
177
|
+
# @sync_result.pagination_token: For fetching the next batch of entries using pagination token
|
178
|
+
# @sync_result.sync_token: For performing subsequent sync after initial sync
|
179
|
+
```
|
117
180
|
## **Helpful Links**
|
118
181
|
|
119
182
|
* [Contentstack Website](https://www.contentstack.com)
|
@@ -124,7 +187,7 @@ SDK functions for Image Delivery API coming soon.
|
|
124
187
|
|
125
188
|
## **The MIT License (MIT)**
|
126
189
|
|
127
|
-
Copyright © 2012-
|
190
|
+
Copyright © 2012-2021 [Contentstack](https://www.contentstack.com). All Rights Reserved
|
128
191
|
|
129
192
|
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
130
193
|
|
data/contentstack.gemspec
CHANGED
@@ -20,9 +20,11 @@ Gem::Specification.new do |s|
|
|
20
20
|
s.files = `git ls-files`.split("\n")
|
21
21
|
s.require_paths = ["lib"]
|
22
22
|
|
23
|
-
s.add_dependency 'activesupport',
|
24
|
-
|
25
|
-
|
26
|
-
s.add_development_dependency '
|
27
|
-
s.add_development_dependency '
|
23
|
+
s.add_dependency 'activesupport', '>= 3.2', '< 6.2'
|
24
|
+
s.add_dependency "contentstack_utils", '~> 1.0', '>= 1.0.1'
|
25
|
+
|
26
|
+
s.add_development_dependency 'rspec', '~> 3.10.0'
|
27
|
+
s.add_development_dependency 'webmock', '~> 3.11.0'
|
28
|
+
s.add_development_dependency 'simplecov', '~> 0.21.1'
|
29
|
+
s.add_development_dependency 'yard', '~> 0.9.26'
|
28
30
|
end
|
data/coverage/.last_run.json
CHANGED
data/coverage/.resultset.json
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"RSpec": {
|
3
3
|
"coverage": {
|
4
|
-
"/Users/uttamukkoji/Documents/Ruby/contentstack-ruby/lib/contentstack.rb": {
|
4
|
+
"/Users/uttamukkoji/Documents/Contentstack/Ruby/contentstack-ruby/lib/contentstack.rb": {
|
5
5
|
"lines": [
|
6
6
|
1,
|
7
7
|
null,
|
@@ -9,6 +9,8 @@
|
|
9
9
|
1,
|
10
10
|
1,
|
11
11
|
1,
|
12
|
+
1,
|
13
|
+
null,
|
12
14
|
null,
|
13
15
|
null,
|
14
16
|
null,
|
@@ -25,33 +27,37 @@
|
|
25
27
|
null,
|
26
28
|
null,
|
27
29
|
null,
|
30
|
+
1,
|
31
|
+
1,
|
32
|
+
1,
|
28
33
|
null,
|
29
34
|
1,
|
35
|
+
1,
|
36
|
+
null,
|
30
37
|
null
|
31
38
|
]
|
32
39
|
},
|
33
|
-
"/Users/uttamukkoji/Documents/Ruby/contentstack-ruby/lib/contentstack/version.rb": {
|
40
|
+
"/Users/uttamukkoji/Documents/Contentstack/Ruby/contentstack-ruby/lib/contentstack/version.rb": {
|
34
41
|
"lines": [
|
35
42
|
1,
|
36
43
|
1,
|
37
44
|
null
|
38
45
|
]
|
39
46
|
},
|
40
|
-
"/Users/uttamukkoji/Documents/Ruby/contentstack-ruby/lib/contentstack/client.rb": {
|
47
|
+
"/Users/uttamukkoji/Documents/Contentstack/Ruby/contentstack-ruby/lib/contentstack/client.rb": {
|
41
48
|
"lines": [
|
42
49
|
1,
|
43
50
|
1,
|
44
51
|
1,
|
45
|
-
null,
|
46
52
|
1,
|
47
53
|
1,
|
48
54
|
1,
|
49
|
-
null,
|
50
55
|
1,
|
51
|
-
78,
|
52
|
-
78,
|
53
|
-
78,
|
54
56
|
null,
|
57
|
+
1,
|
58
|
+
81,
|
59
|
+
81,
|
60
|
+
81,
|
55
61
|
null,
|
56
62
|
null,
|
57
63
|
1,
|
@@ -59,7 +65,7 @@
|
|
59
65
|
null,
|
60
66
|
null,
|
61
67
|
1,
|
62
|
-
|
68
|
+
69,
|
63
69
|
null,
|
64
70
|
null,
|
65
71
|
1,
|
@@ -70,21 +76,44 @@
|
|
70
76
|
7,
|
71
77
|
null,
|
72
78
|
null,
|
79
|
+
null,
|
80
|
+
null,
|
81
|
+
null,
|
82
|
+
null,
|
83
|
+
null,
|
84
|
+
null,
|
85
|
+
null,
|
86
|
+
null,
|
87
|
+
null,
|
88
|
+
null,
|
89
|
+
null,
|
90
|
+
null,
|
91
|
+
null,
|
92
|
+
null,
|
93
|
+
null,
|
94
|
+
null,
|
95
|
+
null,
|
96
|
+
null,
|
97
|
+
1,
|
98
|
+
2,
|
99
|
+
2,
|
100
|
+
null,
|
101
|
+
null,
|
73
102
|
1,
|
74
103
|
1,
|
75
|
-
|
104
|
+
79,
|
76
105
|
null,
|
77
|
-
|
106
|
+
77,
|
78
107
|
null,
|
79
108
|
2,
|
80
109
|
null,
|
81
|
-
|
110
|
+
79,
|
82
111
|
null,
|
83
112
|
null,
|
84
113
|
null
|
85
114
|
]
|
86
115
|
},
|
87
|
-
"/Users/uttamukkoji/Documents/Ruby/contentstack-ruby/lib/contentstack/api.rb": {
|
116
|
+
"/Users/uttamukkoji/Documents/Contentstack/Ruby/contentstack-ruby/lib/contentstack/api.rb": {
|
88
117
|
"lines": [
|
89
118
|
1,
|
90
119
|
1,
|
@@ -95,12 +124,12 @@
|
|
95
124
|
1,
|
96
125
|
1,
|
97
126
|
1,
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
127
|
+
81,
|
128
|
+
81,
|
129
|
+
81,
|
130
|
+
81,
|
131
|
+
81,
|
132
|
+
81,
|
104
133
|
null,
|
105
134
|
null,
|
106
135
|
1,
|
@@ -118,8 +147,8 @@
|
|
118
147
|
null,
|
119
148
|
null,
|
120
149
|
1,
|
121
|
-
|
122
|
-
|
150
|
+
14,
|
151
|
+
14,
|
123
152
|
null,
|
124
153
|
null,
|
125
154
|
1,
|
@@ -129,15 +158,20 @@
|
|
129
158
|
null,
|
130
159
|
null,
|
131
160
|
1,
|
161
|
+
2,
|
162
|
+
2,
|
163
|
+
null,
|
164
|
+
null,
|
132
165
|
1,
|
133
|
-
|
166
|
+
1,
|
167
|
+
82,
|
134
168
|
null,
|
135
|
-
|
169
|
+
82,
|
136
170
|
null,
|
137
|
-
|
171
|
+
82,
|
138
172
|
null,
|
139
173
|
null,
|
140
|
-
|
174
|
+
82,
|
141
175
|
null,
|
142
176
|
null,
|
143
177
|
null,
|
@@ -147,7 +181,7 @@
|
|
147
181
|
null
|
148
182
|
]
|
149
183
|
},
|
150
|
-
"/Users/uttamukkoji/Documents/Ruby/contentstack-ruby/lib/contentstack/content_type.rb": {
|
184
|
+
"/Users/uttamukkoji/Documents/Contentstack/Ruby/contentstack-ruby/lib/contentstack/content_type.rb": {
|
151
185
|
"lines": [
|
152
186
|
1,
|
153
187
|
null,
|
@@ -170,13 +204,13 @@
|
|
170
204
|
null,
|
171
205
|
null,
|
172
206
|
2,
|
173
|
-
|
207
|
+
81,
|
174
208
|
null,
|
175
209
|
null,
|
176
210
|
null,
|
177
211
|
null,
|
178
212
|
1,
|
179
|
-
|
213
|
+
91,
|
180
214
|
null,
|
181
215
|
null,
|
182
216
|
1,
|
@@ -184,7 +218,7 @@
|
|
184
218
|
null,
|
185
219
|
null,
|
186
220
|
1,
|
187
|
-
|
221
|
+
15,
|
188
222
|
null,
|
189
223
|
null,
|
190
224
|
null,
|
@@ -203,7 +237,7 @@
|
|
203
237
|
null
|
204
238
|
]
|
205
239
|
},
|
206
|
-
"/Users/uttamukkoji/Documents/Ruby/contentstack-ruby/lib/contentstack/query.rb": {
|
240
|
+
"/Users/uttamukkoji/Documents/Contentstack/Ruby/contentstack-ruby/lib/contentstack/query.rb": {
|
207
241
|
"lines": [
|
208
242
|
1,
|
209
243
|
null,
|
@@ -732,6 +766,19 @@
|
|
732
766
|
null,
|
733
767
|
null,
|
734
768
|
1,
|
769
|
+
0,
|
770
|
+
0,
|
771
|
+
null,
|
772
|
+
null,
|
773
|
+
null,
|
774
|
+
null,
|
775
|
+
null,
|
776
|
+
null,
|
777
|
+
null,
|
778
|
+
null,
|
779
|
+
null,
|
780
|
+
null,
|
781
|
+
1,
|
735
782
|
1,
|
736
783
|
1,
|
737
784
|
null,
|
@@ -824,7 +871,7 @@
|
|
824
871
|
null
|
825
872
|
]
|
826
873
|
},
|
827
|
-
"/Users/uttamukkoji/Documents/Ruby/contentstack-ruby/lib/contentstack/entry_collection.rb": {
|
874
|
+
"/Users/uttamukkoji/Documents/Contentstack/Ruby/contentstack-ruby/lib/contentstack/entry_collection.rb": {
|
828
875
|
"lines": [
|
829
876
|
1,
|
830
877
|
null,
|
@@ -871,7 +918,7 @@
|
|
871
918
|
null
|
872
919
|
]
|
873
920
|
},
|
874
|
-
"/Users/uttamukkoji/Documents/Ruby/contentstack-ruby/lib/contentstack/entry.rb": {
|
921
|
+
"/Users/uttamukkoji/Documents/Contentstack/Ruby/contentstack-ruby/lib/contentstack/entry.rb": {
|
875
922
|
"lines": [
|
876
923
|
1,
|
877
924
|
null,
|
@@ -879,7 +926,7 @@
|
|
879
926
|
1,
|
880
927
|
1,
|
881
928
|
1,
|
882
|
-
|
929
|
+
229,
|
883
930
|
null,
|
884
931
|
null,
|
885
932
|
null,
|
@@ -1029,6 +1076,19 @@
|
|
1029
1076
|
null,
|
1030
1077
|
null,
|
1031
1078
|
null,
|
1079
|
+
null,
|
1080
|
+
null,
|
1081
|
+
null,
|
1082
|
+
null,
|
1083
|
+
null,
|
1084
|
+
null,
|
1085
|
+
1,
|
1086
|
+
1,
|
1087
|
+
1,
|
1088
|
+
null,
|
1089
|
+
null,
|
1090
|
+
null,
|
1091
|
+
null,
|
1032
1092
|
1,
|
1033
1093
|
3,
|
1034
1094
|
3,
|
@@ -1045,31 +1105,31 @@
|
|
1045
1105
|
null,
|
1046
1106
|
null,
|
1047
1107
|
1,
|
1048
|
-
|
1049
|
-
|
1050
|
-
|
1051
|
-
|
1052
|
-
|
1108
|
+
14,
|
1109
|
+
14,
|
1110
|
+
14,
|
1111
|
+
14,
|
1112
|
+
14,
|
1053
1113
|
null,
|
1054
1114
|
null,
|
1055
1115
|
1,
|
1056
|
-
|
1057
|
-
|
1116
|
+
4,
|
1117
|
+
4,
|
1058
1118
|
null,
|
1059
1119
|
null,
|
1060
1120
|
1,
|
1061
1121
|
1,
|
1062
|
-
|
1063
|
-
|
1064
|
-
|
1065
|
-
|
1066
|
-
|
1122
|
+
243,
|
1123
|
+
243,
|
1124
|
+
243,
|
1125
|
+
243,
|
1126
|
+
243,
|
1067
1127
|
null,
|
1068
1128
|
null,
|
1069
1129
|
null
|
1070
1130
|
]
|
1071
1131
|
},
|
1072
|
-
"/Users/uttamukkoji/Documents/Ruby/contentstack-ruby/lib/contentstack/asset_collection.rb": {
|
1132
|
+
"/Users/uttamukkoji/Documents/Contentstack/Ruby/contentstack-ruby/lib/contentstack/asset_collection.rb": {
|
1073
1133
|
"lines": [
|
1074
1134
|
1,
|
1075
1135
|
null,
|
@@ -1099,7 +1159,7 @@
|
|
1099
1159
|
null
|
1100
1160
|
]
|
1101
1161
|
},
|
1102
|
-
"/Users/uttamukkoji/Documents/Ruby/contentstack-ruby/lib/contentstack/asset.rb": {
|
1162
|
+
"/Users/uttamukkoji/Documents/Contentstack/Ruby/contentstack-ruby/lib/contentstack/asset.rb": {
|
1103
1163
|
"lines": [
|
1104
1164
|
1,
|
1105
1165
|
null,
|
@@ -1170,50 +1230,84 @@
|
|
1170
1230
|
null
|
1171
1231
|
]
|
1172
1232
|
},
|
1173
|
-
"/Users/uttamukkoji/Documents/Ruby/contentstack-ruby/lib/contentstack/
|
1233
|
+
"/Users/uttamukkoji/Documents/Contentstack/Ruby/contentstack-ruby/lib/contentstack/sync_result.rb": {
|
1174
1234
|
"lines": [
|
1235
|
+
1,
|
1236
|
+
null,
|
1175
1237
|
1,
|
1176
1238
|
1,
|
1177
1239
|
1,
|
1178
1240
|
1,
|
1241
|
+
1,
|
1242
|
+
1,
|
1243
|
+
1,
|
1244
|
+
1,
|
1245
|
+
null,
|
1246
|
+
1,
|
1247
|
+
2,
|
1248
|
+
0,
|
1249
|
+
0,
|
1250
|
+
0,
|
1251
|
+
0,
|
1252
|
+
0,
|
1253
|
+
0,
|
1254
|
+
null,
|
1255
|
+
2,
|
1256
|
+
2,
|
1257
|
+
2,
|
1258
|
+
2,
|
1259
|
+
2,
|
1260
|
+
2,
|
1261
|
+
null,
|
1262
|
+
null,
|
1179
1263
|
null,
|
1180
1264
|
null
|
1181
1265
|
]
|
1182
1266
|
},
|
1183
|
-
"/Users/uttamukkoji/Documents/Ruby/contentstack-ruby/lib/
|
1267
|
+
"/Users/uttamukkoji/Documents/Contentstack/Ruby/contentstack-ruby/lib/contentstack/region.rb": {
|
1184
1268
|
"lines": [
|
1185
1269
|
1,
|
1186
1270
|
1,
|
1187
|
-
|
1188
|
-
|
1271
|
+
1,
|
1272
|
+
1,
|
1273
|
+
null,
|
1274
|
+
null
|
1275
|
+
]
|
1276
|
+
},
|
1277
|
+
"/Users/uttamukkoji/Documents/Contentstack/Ruby/contentstack-ruby/lib/util.rb": {
|
1278
|
+
"lines": [
|
1279
|
+
1,
|
1280
|
+
1,
|
1281
|
+
93,
|
1282
|
+
365,
|
1189
1283
|
null,
|
1190
1284
|
null,
|
1191
1285
|
null,
|
1192
1286
|
1,
|
1193
|
-
|
1194
|
-
|
1195
|
-
|
1196
|
-
|
1287
|
+
3628,
|
1288
|
+
3628,
|
1289
|
+
18741,
|
1290
|
+
3709,
|
1197
1291
|
null,
|
1198
|
-
|
1292
|
+
15032,
|
1199
1293
|
null,
|
1200
1294
|
null,
|
1201
|
-
|
1295
|
+
3628,
|
1202
1296
|
null,
|
1203
1297
|
null,
|
1204
1298
|
null,
|
1205
1299
|
1,
|
1206
1300
|
1,
|
1207
|
-
|
1208
|
-
|
1301
|
+
19,
|
1302
|
+
40,
|
1209
1303
|
null,
|
1210
1304
|
null,
|
1211
1305
|
1,
|
1212
|
-
|
1213
|
-
|
1214
|
-
|
1306
|
+
1487,
|
1307
|
+
1197,
|
1308
|
+
958,
|
1215
1309
|
null,
|
1216
|
-
|
1310
|
+
239,
|
1217
1311
|
null,
|
1218
1312
|
null,
|
1219
1313
|
null,
|
@@ -1221,12 +1315,12 @@
|
|
1221
1315
|
null,
|
1222
1316
|
1,
|
1223
1317
|
1,
|
1224
|
-
|
1225
|
-
|
1318
|
+
201,
|
1319
|
+
201,
|
1226
1320
|
null,
|
1227
1321
|
null,
|
1228
1322
|
1,
|
1229
|
-
|
1323
|
+
222,
|
1230
1324
|
null,
|
1231
1325
|
null,
|
1232
1326
|
null,
|
@@ -1236,13 +1330,13 @@
|
|
1236
1330
|
null,
|
1237
1331
|
null,
|
1238
1332
|
1,
|
1239
|
-
|
1333
|
+
335,
|
1240
1334
|
null,
|
1241
1335
|
null,
|
1242
1336
|
null,
|
1243
1337
|
1,
|
1244
1338
|
1,
|
1245
|
-
|
1339
|
+
80,
|
1246
1340
|
null,
|
1247
1341
|
null,
|
1248
1342
|
1,
|
@@ -1256,7 +1350,7 @@
|
|
1256
1350
|
null,
|
1257
1351
|
null,
|
1258
1352
|
1,
|
1259
|
-
|
1353
|
+
18,
|
1260
1354
|
null,
|
1261
1355
|
null,
|
1262
1356
|
null,
|
@@ -1291,7 +1385,7 @@
|
|
1291
1385
|
null
|
1292
1386
|
]
|
1293
1387
|
},
|
1294
|
-
"/Users/uttamukkoji/Documents/Ruby/contentstack-ruby/spec/asset_spec.rb": {
|
1388
|
+
"/Users/uttamukkoji/Documents/Contentstack/Ruby/contentstack-ruby/spec/asset_spec.rb": {
|
1295
1389
|
"lines": [
|
1296
1390
|
1,
|
1297
1391
|
1,
|
@@ -1343,7 +1437,7 @@
|
|
1343
1437
|
null
|
1344
1438
|
]
|
1345
1439
|
},
|
1346
|
-
"/Users/uttamukkoji/Documents/Ruby/contentstack-ruby/spec/content_type_spec.rb": {
|
1440
|
+
"/Users/uttamukkoji/Documents/Contentstack/Ruby/contentstack-ruby/spec/content_type_spec.rb": {
|
1347
1441
|
"lines": [
|
1348
1442
|
1,
|
1349
1443
|
1,
|
@@ -1428,7 +1522,7 @@
|
|
1428
1522
|
null
|
1429
1523
|
]
|
1430
1524
|
},
|
1431
|
-
"/Users/uttamukkoji/Documents/Ruby/contentstack-ruby/spec/contentstack_spec.rb": {
|
1525
|
+
"/Users/uttamukkoji/Documents/Contentstack/Ruby/contentstack-ruby/spec/contentstack_spec.rb": {
|
1432
1526
|
"lines": [
|
1433
1527
|
1,
|
1434
1528
|
1,
|
@@ -1461,10 +1555,17 @@
|
|
1461
1555
|
1,
|
1462
1556
|
null,
|
1463
1557
|
null,
|
1558
|
+
1,
|
1559
|
+
1,
|
1560
|
+
null,
|
1561
|
+
null,
|
1562
|
+
1,
|
1563
|
+
1,
|
1564
|
+
null,
|
1464
1565
|
null
|
1465
1566
|
]
|
1466
1567
|
},
|
1467
|
-
"/Users/uttamukkoji/Documents/Ruby/contentstack-ruby/spec/entry_collection_spec.rb": {
|
1568
|
+
"/Users/uttamukkoji/Documents/Contentstack/Ruby/contentstack-ruby/spec/entry_collection_spec.rb": {
|
1468
1569
|
"lines": [
|
1469
1570
|
1,
|
1470
1571
|
1,
|
@@ -1510,17 +1611,16 @@
|
|
1510
1611
|
null
|
1511
1612
|
]
|
1512
1613
|
},
|
1513
|
-
"/Users/uttamukkoji/Documents/Ruby/contentstack-ruby/spec/entry_spec.rb": {
|
1614
|
+
"/Users/uttamukkoji/Documents/Contentstack/Ruby/contentstack-ruby/spec/entry_spec.rb": {
|
1514
1615
|
"lines": [
|
1515
1616
|
1,
|
1516
1617
|
1,
|
1517
1618
|
null,
|
1518
1619
|
1,
|
1620
|
+
17,
|
1519
1621
|
16,
|
1520
|
-
15,
|
1521
|
-
null,
|
1522
1622
|
10,
|
1523
|
-
|
1623
|
+
7,
|
1524
1624
|
null,
|
1525
1625
|
1,
|
1526
1626
|
1,
|
@@ -1600,10 +1700,16 @@
|
|
1600
1700
|
1,
|
1601
1701
|
1,
|
1602
1702
|
null,
|
1703
|
+
null,
|
1704
|
+
1,
|
1705
|
+
1,
|
1706
|
+
1,
|
1707
|
+
1,
|
1708
|
+
null,
|
1603
1709
|
null
|
1604
1710
|
]
|
1605
1711
|
},
|
1606
|
-
"/Users/uttamukkoji/Documents/Ruby/contentstack-ruby/spec/query_spec.rb": {
|
1712
|
+
"/Users/uttamukkoji/Documents/Contentstack/Ruby/contentstack-ruby/spec/query_spec.rb": {
|
1607
1713
|
"lines": [
|
1608
1714
|
1,
|
1609
1715
|
1,
|
@@ -1804,8 +1910,39 @@
|
|
1804
1910
|
null,
|
1805
1911
|
null
|
1806
1912
|
]
|
1913
|
+
},
|
1914
|
+
"/Users/uttamukkoji/Documents/Contentstack/Ruby/contentstack-ruby/spec/sync_spec.rb": {
|
1915
|
+
"lines": [
|
1916
|
+
1,
|
1917
|
+
1,
|
1918
|
+
1,
|
1919
|
+
1,
|
1920
|
+
3,
|
1921
|
+
null,
|
1922
|
+
1,
|
1923
|
+
1,
|
1924
|
+
1,
|
1925
|
+
1,
|
1926
|
+
1,
|
1927
|
+
1,
|
1928
|
+
1,
|
1929
|
+
1,
|
1930
|
+
1,
|
1931
|
+
null,
|
1932
|
+
null,
|
1933
|
+
1,
|
1934
|
+
1,
|
1935
|
+
1,
|
1936
|
+
1,
|
1937
|
+
1,
|
1938
|
+
1,
|
1939
|
+
1,
|
1940
|
+
1,
|
1941
|
+
null,
|
1942
|
+
null
|
1943
|
+
]
|
1807
1944
|
}
|
1808
1945
|
},
|
1809
|
-
"timestamp":
|
1946
|
+
"timestamp": 1630385582
|
1810
1947
|
}
|
1811
1948
|
}
|