cortex-snippets-client 0.8.0 → 0.8.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +2 -2
- data/CHANGELOG.md +1 -0
- data/README.md +0 -60
- data/cortex-snippets-client-ruby.gemspec +7 -8
- data/lib/cortex/snippets/client/version.rb +1 -1
- metadata +17 -31
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a0b0723a93b68708387d68b12c61bd6a9dd83317
|
4
|
+
data.tar.gz: 6a1bdac0593168b74292de6b7672e8968b8fc162
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3f66164f7e8d53e2b8b0cd492b3d9881ef62798974d22d6c16c0516d108682305f371193658b9f5bd74d43ca02adba856002ffee2c7837f34d015846f62c0667
|
7
|
+
data.tar.gz: 7080574753504e32b766ae1cf98a6bff1f2d111639bb254f7b09e10a97edc4b40993e459d706eeaf82e85afabc122866edbdc3d7a6717bb54fb79c55e7f71e86
|
data/.travis.yml
CHANGED
data/CHANGELOG.md
CHANGED
@@ -3,6 +3,7 @@ Version History
|
|
3
3
|
* All Version bumps are required to update this file as well!!
|
4
4
|
----
|
5
5
|
|
6
|
+
* 0.8.1 - Dependency upgrades, etc
|
6
7
|
* 0.8.0 - Add Dynamic Yield Metadata
|
7
8
|
* 0.7.0 - Add SEO Robot Metadata
|
8
9
|
* 0.6.0 - Set SEO Keyword feed to be an array rather than comma separated String
|
data/README.md
CHANGED
@@ -1,61 +1 @@
|
|
1
1
|
# cortex-snippets-client-ruby
|
2
|
-
|
3
|
-
[![Build Status](https://travis-ci.org/cortex-cms/cortex-snippets-client-ruby.svg?branch=master)](https://travis-ci.org/cortex-cms/cortex-snippets-client-ruby)
|
4
|
-
[![Dependency Status](https://gemnasium.com/cortex-cms/cortex-snippets-client-ruby.svg)](https://gemnasium.com/cortex-cms/cortex-snippets-client-ruby)
|
5
|
-
|
6
|
-
Ruby client library that provides helpers to assist with loading and displaying Cortex Snippets.
|
7
|
-
|
8
|
-
## Installation
|
9
|
-
|
10
|
-
Add this line to your application's Gemfile:
|
11
|
-
|
12
|
-
gem 'cortex-snippets-client'
|
13
|
-
|
14
|
-
And then execute:
|
15
|
-
|
16
|
-
$ bundle
|
17
|
-
|
18
|
-
Or install it yourself as:
|
19
|
-
|
20
|
-
$ gem install cortex-snippets-client
|
21
|
-
|
22
|
-
## Configuration
|
23
|
-
|
24
|
-
Several environmental variables must be set before using the library:
|
25
|
-
|
26
|
-
* `CORTEX_SNIPPET_KEY`
|
27
|
-
* `CORTEX_SNIPPET_SECRET`
|
28
|
-
* `CORTEX_SNIPPET_BASE_URL`: provide the Cortex API base URL
|
29
|
-
* `CORTEX_SNIPPET_ACCESS_TOKEN`: only use this if you have been granted a bearer token (but [don't](https://hueniverse.com/2010/09/29/oauth-bearer-tokens-are-a-terrible-idea/))
|
30
|
-
* `CORTEX_SNIPPET_SCOPES`: provide the necessary scopes to obtain Webpage/Snippet data (usually just `view:webpages`)
|
31
|
-
|
32
|
-
```ruby
|
33
|
-
use OmniAuth::Builder do
|
34
|
-
provider :cortex, ENV['CORTEX_KEY'], ENV['CORTEX_SECRET'], scope: 'scope1, scope2, scope3'
|
35
|
-
end
|
36
|
-
```
|
37
|
-
|
38
|
-
## Rails Helpers
|
39
|
-
|
40
|
-
```haml
|
41
|
-
= snippet :id => "subhero-button1__text" do
|
42
|
-
```
|
43
|
-
|
44
|
-
## Sinatra Helpers
|
45
|
-
|
46
|
-
## Override Environment
|
47
|
-
|
48
|
-
If you would like to change the URLs used by cortex-snippets-client-ruby, override :client_options in the provider config step.
|
49
|
-
|
50
|
-
```ruby
|
51
|
-
provider :cortex, ENV['CORTEX_KEY'], ENV['CORTEX_SECRET'], scope: 'scope1, scope2, scope3',
|
52
|
-
{
|
53
|
-
:client_options => {
|
54
|
-
:site => 'http://localhost:3000/api/v1',
|
55
|
-
:authorize_url => 'http://localhost:3000/oauth/authorize',
|
56
|
-
:token_url => 'http://localhost:3000/oauth/token'
|
57
|
-
}
|
58
|
-
}
|
59
|
-
```
|
60
|
-
|
61
|
-
## Caching
|
@@ -6,8 +6,8 @@ require 'cortex/snippets/client/version'
|
|
6
6
|
Gem::Specification.new do |spec|
|
7
7
|
spec.name = 'cortex-snippets-client'
|
8
8
|
spec.version = Cortex::Snippets::Client::VERSION
|
9
|
-
spec.authors = ['
|
10
|
-
spec.email = ['
|
9
|
+
spec.authors = ['CareerBuilder Employer Site & Content Products']
|
10
|
+
spec.email = ['EmployerSiteContentProducts@cb.com']
|
11
11
|
spec.license = 'Apache-2.0'
|
12
12
|
|
13
13
|
spec.summary = %q{Provides loading of Cortex snippets for Ruby applications, with some Rails ViewHelpers}
|
@@ -18,11 +18,10 @@ Gem::Specification.new do |spec|
|
|
18
18
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
19
19
|
spec.require_paths = ['lib']
|
20
20
|
|
21
|
-
spec.add_dependency 'cortex-client', '~> 0.
|
22
|
-
spec.add_dependency 'connection_pool', '~> 2.2
|
23
|
-
spec.add_dependency 'addressable', '~> 2.
|
21
|
+
spec.add_dependency 'cortex-client', '~> 0.10'
|
22
|
+
spec.add_dependency 'connection_pool', '~> 2.2'
|
23
|
+
spec.add_dependency 'addressable', '~> 2.5'
|
24
24
|
|
25
|
-
spec.add_development_dependency 'rake', '~>
|
26
|
-
spec.add_development_dependency 'rspec'
|
27
|
-
spec.add_development_dependency 'pry'
|
25
|
+
spec.add_development_dependency 'rake', '~> 12.0'
|
26
|
+
spec.add_development_dependency 'rspec', '~> 3.5'
|
28
27
|
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: 0.8.
|
4
|
+
version: 0.8.1
|
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:
|
11
|
+
date: 2017-01-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: cortex-client
|
@@ -16,87 +16,73 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 0.
|
19
|
+
version: '0.10'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 0.
|
26
|
+
version: '0.10'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: connection_pool
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
31
|
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: 2.2
|
33
|
+
version: '2.2'
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: 2.2
|
40
|
+
version: '2.2'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: addressable
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
45
|
- - "~>"
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: 2.
|
47
|
+
version: '2.5'
|
48
48
|
type: :runtime
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
52
|
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version: 2.
|
54
|
+
version: '2.5'
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: rake
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
59
|
- - "~>"
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version: '
|
61
|
+
version: '12.0'
|
62
62
|
type: :development
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
66
|
- - "~>"
|
67
67
|
- !ruby/object:Gem::Version
|
68
|
-
version: '
|
68
|
+
version: '12.0'
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: rspec
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
72
72
|
requirements:
|
73
|
-
- - "
|
74
|
-
- !ruby/object:Gem::Version
|
75
|
-
version: '0'
|
76
|
-
type: :development
|
77
|
-
prerelease: false
|
78
|
-
version_requirements: !ruby/object:Gem::Requirement
|
79
|
-
requirements:
|
80
|
-
- - ">="
|
81
|
-
- !ruby/object:Gem::Version
|
82
|
-
version: '0'
|
83
|
-
- !ruby/object:Gem::Dependency
|
84
|
-
name: pry
|
85
|
-
requirement: !ruby/object:Gem::Requirement
|
86
|
-
requirements:
|
87
|
-
- - ">="
|
73
|
+
- - "~>"
|
88
74
|
- !ruby/object:Gem::Version
|
89
|
-
version: '
|
75
|
+
version: '3.5'
|
90
76
|
type: :development
|
91
77
|
prerelease: false
|
92
78
|
version_requirements: !ruby/object:Gem::Requirement
|
93
79
|
requirements:
|
94
|
-
- - "
|
80
|
+
- - "~>"
|
95
81
|
- !ruby/object:Gem::Version
|
96
|
-
version: '
|
82
|
+
version: '3.5'
|
97
83
|
description:
|
98
84
|
email:
|
99
|
-
-
|
85
|
+
- EmployerSiteContentProducts@cb.com
|
100
86
|
executables: []
|
101
87
|
extensions: []
|
102
88
|
extra_rdoc_files: []
|
@@ -137,7 +123,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
137
123
|
version: '0'
|
138
124
|
requirements: []
|
139
125
|
rubyforge_project:
|
140
|
-
rubygems_version: 2.
|
126
|
+
rubygems_version: 2.6.8
|
141
127
|
signing_key:
|
142
128
|
specification_version: 4
|
143
129
|
summary: Provides loading of Cortex snippets for Ruby applications, with some Rails
|