nesta-plugin-contentfocus 0.0.17 → 0.0.18

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
  SHA1:
3
- metadata.gz: 82505ee3f5e9f3ed99439455d4f6a007e2c701f9
4
- data.tar.gz: ec82fb3553ad3db6105a7e5b052cf1adf5573fe1
3
+ metadata.gz: bb3650454b5bcc087f73092fee2aaa8ae38c4a43
4
+ data.tar.gz: ac9c5c2c621830184c9be925173d6f3a567f209d
5
5
  SHA512:
6
- metadata.gz: e0688f757e0511780490ae07007f3df275db4e3bbd89143321ae023cc5fe5dd03533d7929e60074ec29432bf55fc05e06160b51e4de92896e4d15114620ce880
7
- data.tar.gz: 373ae13ff01b4e573539db9ed328ec6b15247f344d0ceb746a6ade62fc311eb6efb81a2cf3dacbd2f89ed447050ba59b11c39af89854604c7becf3a0107cb5ab
6
+ metadata.gz: 209b11fb25f6cefb3fcd47fd523a31beb2c1923ba41d2daf32ceca52b66bb4d35001c64198413f7bced6926bd646665bc7029733b7fe7e496626620355db6a7a
7
+ data.tar.gz: 316141dc95ea8e1b71afa4d26438e49e817db06eee851844a45feb1237a411d52532e06b2de3b3a56b29658df8f76b72034566116352f0b4cbbfba4573539b3e
@@ -21,6 +21,18 @@ module Nesta
21
21
  end
22
22
  end
23
23
 
24
+ error SocketError do
25
+ contentfocus_url = Nesta::Plugin::ContentFocus::Client.host
26
+ if contentfocus_url.nil? || contentfocus_url == ""
27
+ filename = File.expand_path("assets/install.html", File.dirname(__FILE__))
28
+ template = File.read(filename)
29
+ return template
30
+ else
31
+ set_common_variables
32
+ haml(:error)
33
+ end
34
+ end
35
+
24
36
  error do
25
37
  set_common_variables
26
38
  haml(:error)
@@ -0,0 +1,51 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <title>Loading content...</title>
5
+ <meta http-equiv="refresh" content="7">
6
+ <link href="http://fonts.googleapis.com/css?family=Open+Sans:400,700" rel="stylesheet" type="text/css">
7
+ <link href="http://fonts.googleapis.com/css?family=Merriweather:300,400,700,300italic,400italic" rel="stylesheet" type="text/css">
8
+ <style>
9
+ body, html {
10
+ height: 100%;
11
+ }
12
+
13
+ body {
14
+ background-color: #fff;
15
+ text-align: center;
16
+ font-size: 22px;
17
+ font-weight: 300;
18
+ font-family: freight-text-pro, Merriweather, Georgia, Cambria, 'Times New Roman', Times, serif;
19
+ color: rgba(0, 0, 0, 0.8);
20
+ }
21
+ a {
22
+ color: rgb(77, 204, 75);
23
+ text-decoration: none;
24
+ transition: color 0.5s;
25
+ }
26
+ a:hover {
27
+ color: rgb(119, 63, 60);
28
+ text-decoration: underline;
29
+ }
30
+ h1 {
31
+ font-family: jaf-bernino-sans, 'Open Sans' 'Lucida Grande', 'Lucida Sans Unicode', 'Lucida Sans', Geneva, Verdana, sans-serif;
32
+ font-weight: 700;
33
+ margin: 1.66em 0 0.83em;
34
+ font-size: 36px;
35
+ line-height: 42px;
36
+ letter-spacing: -0.72px;
37
+ }
38
+ p {
39
+ line-height: 33px;
40
+ max-width: 40em;
41
+ margin: 0 auto;
42
+ }
43
+ </style>
44
+ </head>
45
+ <body>
46
+ <h1>Time to install Content Focus&hellip;</h1>
47
+ <p>This site uses <a href="https://contentfocus.io">Content Focus</a> to
48
+ make managing its content easier. Unfortunately it's not yet installed.
49
+ </p>
50
+ </body>
51
+ </html>
@@ -1,7 +1,7 @@
1
1
  module Nesta
2
2
  module Plugin
3
3
  module ContentFocus
4
- VERSION = "0.0.17"
4
+ VERSION = "0.0.18"
5
5
  end
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: nesta-plugin-contentfocus
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.17
4
+ version: 0.0.18
5
5
  platform: ruby
6
6
  authors:
7
7
  - Glenn Gillen
@@ -122,6 +122,7 @@ files:
122
122
  - Rakefile
123
123
  - lib/nesta-plugin-contentfocus.rb
124
124
  - lib/nesta-plugin-contentfocus/app.rb
125
+ - lib/nesta-plugin-contentfocus/assets/install.html
125
126
  - lib/nesta-plugin-contentfocus/assets/loading.html
126
127
  - lib/nesta-plugin-contentfocus/client.rb
127
128
  - lib/nesta-plugin-contentfocus/helpers.rb