cortex-snippets-client 1.1.0 → 1.1.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
  SHA1:
3
- metadata.gz: 7b1b29afae0364c3a870b8299cf725fb533a1b04
4
- data.tar.gz: 0a9e78580faabedf599c52b50a94397a616a584a
3
+ metadata.gz: b21cc1c21df311748b99a9d3330de7849fa630a6
4
+ data.tar.gz: a8c9a4a9ecfa5c037e5dcf079fb9733555fc9f26
5
5
  SHA512:
6
- metadata.gz: c42611122362e4f16ba77a51e6b093593a308dca3d2c94b61aaa1c9950566f5b6260ecb0cf4de7538c94017e73e51a93da1851dc1a3422b7c3797c04bc9d2f25
7
- data.tar.gz: 1347c202d705e37af9ba5a7f4b96a5501155cf873eb5e10d42c168fbfa8e7c20821215126a83347953a74c663b06a22145948788a42b048155a3c39b955fc7f2
6
+ metadata.gz: c4ede2022f4e70e63897cfc46f07fd983ef7b22227b1189f94e6c49487596d6921bd7b98cb8dd896ec2eb51bb7251a99a34775121aa783a2f36f23529fbd3648
7
+ data.tar.gz: 7e05f2d6ab2dc558c41ec971a5c4e811f7fef6ad625193feb46f92cf5ef9ad8f7ff089be994f556ff903c1372e59cb1e6699833b9b310f91b777a052b788051b
data/README.md CHANGED
@@ -17,7 +17,7 @@ Or if you're installing from a Gemfile include it as
17
17
  gem 'cortex-snippets-client`, '~> 1.0.4'
18
18
  ```
19
19
 
20
- And then run
20
+ And then run
21
21
 
22
22
  ```ruby
23
23
  bundle install
@@ -51,7 +51,7 @@ Use of this gem is generally split into two categories: Snippets and Webpages
51
51
 
52
52
  **Snippets** refers to blocks of markup that are editable in Cortex IPE and, through the use of this gem, persist into the tenant application. This allows the copy changes made in IPE to replace default blocks on the page and your changes to be shown.
53
53
 
54
- **Webpages** refer to the created webpages themselves, which have several bits of relevant metadata including, but not limited to: title, keywords, and indexing information.
54
+ **Webpages** refer to the created webpages themselves, which have several bits of relevant metadata including, but not limited to: title, keywords, and indexing information.
55
55
 
56
56
  ### Snippets
57
57
 
@@ -125,9 +125,10 @@ This will give you a webpage object from your current Cortex Tenant with all of
125
125
  |noarchive| The noarchive information for the Webpage. Included in `seo_robots`|
126
126
  |noimageindex| The noimageindex information for the Webpage. Included in `seo_robots`|
127
127
  |dynamic_yield| A hash of Dynamic Yield information from the current Webpage.|
128
+ |tables_widget_data| A hash containing Tables Widget configuration data.|
129
+ |tables_widget_data_for| An array (usually) containing table data for a single section.|
128
130
  |snippets|An array of the associated snippets with the current Webpage.|
129
131
 
130
-
131
132
  1:<br>
132
133
  The resulting array from `seo_keywords` can be entered into a single keyword meta tag like so:
133
134
 
@@ -1,5 +1,5 @@
1
1
  module Cortex
2
2
  module Snippets
3
- VERSION = '1.1.0'
3
+ VERSION = '1.1.1'
4
4
  end
5
5
  end
@@ -59,12 +59,12 @@ module Cortex
59
59
  }
60
60
  end
61
61
 
62
- def table_widget_data
62
+ def tables_widget_data
63
63
  JSON.parse(@webpage[:tables_widget_json] || 'null', quirks_mode: true)
64
64
  end
65
65
 
66
- def table_widget_data_for(table_name)
67
- table_widget_data&.[](table_name) || []
66
+ def tables_widget_data_for(section_name)
67
+ tables_widget_data&.[](section_name) || []
68
68
  end
69
69
 
70
70
  def snippets
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cortex-snippets-client
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - CareerBuilder Employer Site & Content Products