cortex-snippets-client 1.1.1 → 1.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/cortex/snippets/version.rb +1 -1
- data/lib/cortex/snippets/webpage.rb +16 -0
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7f14e34a863ed5d16f7d3b5e825cf13dfa868917
|
4
|
+
data.tar.gz: bac18cf5070d409b13ce725506dc81cb326780f0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: efe44619dcc03ef5c9a0ed65bee20e9dbc618282941cb55934386917b2d8f5df8ae0cbe23fd24a45fcab95862c104a4cfd595b0b5ee4e5800adbfc98e9e68952
|
7
|
+
data.tar.gz: e27fc972b669d0b7243cc6017a444e2a2fe8a147e7670e2ed3a8e64fd68d7af8d5d3fa5f5f1dcae81959c2b7aca001ac3b6db7273f1291dfc946d624fdc5aa2e
|
@@ -67,6 +67,22 @@ module Cortex
|
|
67
67
|
tables_widget_data&.[](section_name) || []
|
68
68
|
end
|
69
69
|
|
70
|
+
def accordion_group_widget_data
|
71
|
+
JSON.parse(@webpage[:accordion_group_widget_json] || 'null', quirks_mode: true)
|
72
|
+
end
|
73
|
+
|
74
|
+
def accordion_group_widget_data_for(section_name)
|
75
|
+
accordion_group_widget_data&.[](section_name) || []
|
76
|
+
end
|
77
|
+
|
78
|
+
def charts_widget_data
|
79
|
+
JSON.parse(@webpage[:charts_widget_json] || 'null', quirks_mode: true)
|
80
|
+
end
|
81
|
+
|
82
|
+
def charts_widget_data_for(section_name)
|
83
|
+
charts_widget_data&.[](section_name) || {}
|
84
|
+
end
|
85
|
+
|
70
86
|
def snippets
|
71
87
|
@webpage[:snippets]
|
72
88
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cortex-snippets-client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- CareerBuilder Employer Site & Content Products
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-05-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: cortex-client
|
@@ -122,7 +122,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
122
122
|
version: '0'
|
123
123
|
requirements: []
|
124
124
|
rubyforge_project:
|
125
|
-
rubygems_version: 2.
|
125
|
+
rubygems_version: 2.5.1
|
126
126
|
signing_key:
|
127
127
|
specification_version: 4
|
128
128
|
summary: Provides loading of Cortex snippets for Ruby applications, with some Rails
|