contentful-scheduler-custom 1.6.7.5220 → 1.6.7.5221

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: ad883c16978c34cff8b41abdeba5fb1304a11258afb8052530281d9c3b9e92ae
4
- data.tar.gz: f0958c41a57f316d766beee35c559b861c9fd4832be30e284d7997afa9522b5c
3
+ metadata.gz: d15cc29215cbe1dc1a4cfb1b4130aa6613b1dfcf59e68116e592eb81f039eaf8
4
+ data.tar.gz: cb8112b4cf9453e62e40d3b80e9a78514acc248ea7824b15b38bffdb82221613
5
5
  SHA512:
6
- metadata.gz: 7f3e60e321b432b08932864aac28e728b919e8df0fe5c8912dcaf865cdaebf152963f514be3bf3253e364fc6acadd2875fcf4c72b4c8757948487e6faf28cf98
7
- data.tar.gz: 3278bfcc86bb8e885626150dfeea763d7e4909e016c5c8586ad8cba4d85eb7902d4922a038807d678060cae475d7f4a80fc751421f53b2123a464035489ba2ee
6
+ metadata.gz: 6b42e4dc8e58054710852582ae5ae32903f837a6e89c6a1b7babf384254f9e2077079f71e5a835ff10890f1eab23a0acaa26d65d6ca468768f3d1b44bd11b884
7
+ data.tar.gz: 30eb526178e74bc895751d08d0cb98604847faaa6da97ac6b6512284f1769ea43b97877bcd41b8e31dcac4744d8f23572ca1bcdb354b8494fd0b2912fb641a77
data/3.json CHANGED
@@ -8,41 +8,211 @@
8
8
  "items": [
9
9
  {
10
10
  "sys": {
11
- "id": "5KsDBWseXY6QegucYAoacS",
12
- "type": "Entry",
13
- "version": 1,
14
11
  "space": {
15
12
  "sys": {
16
13
  "type": "Link",
17
14
  "linkType": "Space",
18
- "id": "yadj1kx9rmg0"
15
+ "id": "qbra4qai2ti2"
16
+ }
17
+ },
18
+ "id": "6ewCq2GrOEcEeeEqemWGgU",
19
+ "type": "Entry",
20
+ "createdAt": "2018-10-11T08:01:05.067Z",
21
+ "updatedAt": "2019-03-13T16:46:41.984Z",
22
+ "environment": {
23
+ "sys": {
24
+ "id": "master",
25
+ "type": "Link",
26
+ "linkType": "Environment"
19
27
  }
20
28
  },
29
+ "revision": 16,
21
30
  "contentType": {
22
31
  "sys": {
23
32
  "type": "Link",
24
33
  "linkType": "ContentType",
25
- "id": "hfM9RCJIk0wIm06WkEOQY"
34
+ "id": "305TcOWowok6cYgoCIm8Ya"
26
35
  }
27
36
  },
28
- "createdAt": "2016-12-20T10:43:35.772Z",
29
- "updatedAt": "2016-12-20T10:43:35.772Z",
30
- "revision": 1
37
+ "locale": "fi-FI"
31
38
  },
32
39
  "fields": {
33
- "author": {
34
- "en-US": {
40
+ "id": "Scheduling Testing",
41
+ "title": "Scheduling Testingsd",
42
+ "publishDate": "2019-03-13T16:38+02:00",
43
+ "contentBlocks": [
44
+ {
35
45
  "sys": {
36
46
  "type": "Link",
37
47
  "linkType": "Entry",
38
- "id": "4LgMotpNF6W20YKmuemW0a"
48
+ "id": "5ySzHkTjBcNQLnC1JC0mcv"
49
+ }
50
+ },
51
+ {
52
+ "sys": {
53
+ "type": "Link",
54
+ "linkType": "Entry",
55
+ "id": "2d5d3ekoU4EqG2YyGWIqgW"
56
+ }
57
+ },
58
+ {
59
+ "sys": {
60
+ "type": "Link",
61
+ "linkType": "Entry",
62
+ "id": "5Pul1SC8Qw3awarTLUtnRN"
39
63
  }
40
64
  }
65
+ ]
66
+ }
67
+ }
68
+ ],
69
+ "includes": {
70
+ "Entry": [
71
+ {
72
+ "sys": {
73
+ "space": {
74
+ "sys": {
75
+ "type": "Link",
76
+ "linkType": "Space",
77
+ "id": "qbra4qai2ti2"
78
+ }
79
+ },
80
+ "id": "2d5d3ekoU4EqG2YyGWIqgW",
81
+ "type": "Entry",
82
+ "createdAt": "2018-10-11T08:01:05.167Z",
83
+ "updatedAt": "2019-03-13T16:34:47.794Z",
84
+ "environment": {
85
+ "sys": {
86
+ "id": "master",
87
+ "type": "Link",
88
+ "linkType": "Environment"
89
+ }
90
+ },
91
+ "revision": 6,
92
+ "contentType": {
93
+ "sys": {
94
+ "type": "Link",
95
+ "linkType": "ContentType",
96
+ "id": "cbForm"
97
+ }
98
+ },
99
+ "locale": "fi-FI"
41
100
  },
42
- "title": {
43
- "en-US": "Hello, World!"
101
+ "fields": {
102
+ "id": "Test Form 134 asd",
103
+ "title": "Test Form 2",
104
+ "button": {
105
+ "sys": {
106
+ "type": "Link",
107
+ "linkType": "Entry",
108
+ "id": "3RGJc25XBSsSMGkYGuA224"
109
+ }
110
+ },
111
+ "fields": [
112
+ {
113
+ "sys": {
114
+ "type": "Link",
115
+ "linkType": "Entry",
116
+ "id": "5LWmHVo5MWUQAyCo0IYAKe"
117
+ }
118
+ },
119
+ {
120
+ "sys": {
121
+ "type": "Link",
122
+ "linkType": "Entry",
123
+ "id": "4ZDGs4Zv7Gyko0om8csUKI"
124
+ }
125
+ }
126
+ ]
127
+ }
128
+ },
129
+ {
130
+ "sys": {
131
+ "space": {
132
+ "sys": {
133
+ "type": "Link",
134
+ "linkType": "Space",
135
+ "id": "qbra4qai2ti2"
136
+ }
137
+ },
138
+ "id": "5Pul1SC8Qw3awarTLUtnRN",
139
+ "type": "Entry",
140
+ "createdAt": "2019-03-07T13:21:05.311Z",
141
+ "updatedAt": "2019-03-13T16:34:49.609Z",
142
+ "environment": {
143
+ "sys": {
144
+ "id": "master",
145
+ "type": "Link",
146
+ "linkType": "Environment"
147
+ }
148
+ },
149
+ "revision": 4,
150
+ "contentType": {
151
+ "sys": {
152
+ "type": "Link",
153
+ "linkType": "ContentType",
154
+ "id": "cbMarketingSquares"
155
+ }
156
+ },
157
+ "locale": "fi-FI"
158
+ },
159
+ "fields": {
160
+ "id": "Marketing Squares Abhilash testasasasd",
161
+ "marketingSquares": [
162
+ {
163
+ "sys": {
164
+ "type": "Link",
165
+ "linkType": "Entry",
166
+ "id": "3vGzmRtzx3YLQvTdl1cA2r"
167
+ }
168
+ }
169
+ ]
170
+ }
171
+ },
172
+ {
173
+ "sys": {
174
+ "space": {
175
+ "sys": {
176
+ "type": "Link",
177
+ "linkType": "Space",
178
+ "id": "qbra4qai2ti2"
179
+ }
180
+ },
181
+ "id": "5ySzHkTjBcNQLnC1JC0mcv",
182
+ "type": "Entry",
183
+ "createdAt": "2019-03-07T12:31:04.377Z",
184
+ "updatedAt": "2019-03-13T16:34:46.334Z",
185
+ "environment": {
186
+ "sys": {
187
+ "id": "master",
188
+ "type": "Link",
189
+ "linkType": "Environment"
190
+ }
191
+ },
192
+ "revision": 4,
193
+ "contentType": {
194
+ "sys": {
195
+ "type": "Link",
196
+ "linkType": "ContentType",
197
+ "id": "cbAccordion"
198
+ }
199
+ },
200
+ "locale": "fi-FI"
201
+ },
202
+ "fields": {
203
+ "id": "testcvxc678678asd",
204
+ "title": "test",
205
+ "accordionElements": [
206
+ {
207
+ "sys": {
208
+ "type": "Link",
209
+ "linkType": "Entry",
210
+ "id": "7Jvuq8Wpi92pgEYGAza2U0"
211
+ }
212
+ }
213
+ ]
44
214
  }
45
215
  }
46
- }
47
- ]
216
+ ]
217
+ }
48
218
  }
@@ -23,21 +23,21 @@ module Contentful
23
23
  application_version: Contentful::Scheduler::VERSION
24
24
  )
25
25
 
26
- logger.info"logger works !"
26
+ logger.info "logger works !"
27
27
 
28
28
  linked_enteries = client1.entries(links_to_entry: entry_id)
29
29
 
30
- logger.info"Got #{linked_enteries.to_json}"
30
+ logger.info "Got #{linked_enteries.to_json}"
31
31
 
32
- logger.info"Got enteries type is #{linked_enteries.class.name}"
32
+ logger.info "Got enteries type is #{linked_enteries.class.name}"
33
33
 
34
- linked_enteries.each do |sys|
35
- logger.info"Publishing Linked Entery with id #{sys['sys']['id']}"
36
- client.entries.find(space_id, sys['sys']['id']).publish
37
- logger.info"Published Linked Enteries"
34
+ if (linked_enteries.items.length > 0 && !linked_enteries.includes.nil?)
35
+ linked_enteries.includes.Entry.each do |entry|
36
+ entry.fields.each do |field|
37
+ logger.info "field ids are #{field.sys[:id]}"
38
+ end
38
39
  end
39
-
40
-
40
+ end
41
41
 
42
42
  client.entries.find(space_id, entry_id).publish
43
43
  end
@@ -1,5 +1,5 @@
1
1
  module Contentful
2
2
  module Scheduler
3
- VERSION = "1.6.7.5220"
3
+ VERSION = "1.6.7.5221"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: contentful-scheduler-custom
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.6.7.5220
4
+ version: 1.6.7.5221
5
5
  platform: ruby
6
6
  authors:
7
7
  - Contentful GmbH (David Litvak Bruno0
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-03-13 00:00:00.000000000 Z
11
+ date: 2019-03-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: contentful