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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b21cc1c21df311748b99a9d3330de7849fa630a6
4
- data.tar.gz: a8c9a4a9ecfa5c037e5dcf079fb9733555fc9f26
3
+ metadata.gz: 7f14e34a863ed5d16f7d3b5e825cf13dfa868917
4
+ data.tar.gz: bac18cf5070d409b13ce725506dc81cb326780f0
5
5
  SHA512:
6
- metadata.gz: c4ede2022f4e70e63897cfc46f07fd983ef7b22227b1189f94e6c49487596d6921bd7b98cb8dd896ec2eb51bb7251a99a34775121aa783a2f36f23529fbd3648
7
- data.tar.gz: 7e05f2d6ab2dc558c41ec971a5c4e811f7fef6ad625193feb46f92cf5ef9ad8f7ff089be994f556ff903c1372e59cb1e6699833b9b310f91b777a052b788051b
6
+ metadata.gz: efe44619dcc03ef5c9a0ed65bee20e9dbc618282941cb55934386917b2d8f5df8ae0cbe23fd24a45fcab95862c104a4cfd595b0b5ee4e5800adbfc98e9e68952
7
+ data.tar.gz: e27fc972b669d0b7243cc6017a444e2a2fe8a147e7670e2ed3a8e64fd68d7af8d5d3fa5f5f1dcae81959c2b7aca001ac3b6db7273f1291dfc946d624fdc5aa2e
@@ -1,5 +1,5 @@
1
1
  module Cortex
2
2
  module Snippets
3
- VERSION = '1.1.1'
3
+ VERSION = '1.1.2'
4
4
  end
5
5
  end
@@ -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.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-03-27 00:00:00.000000000 Z
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.6.8
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