contentful_bootstrap 0.0.6 → 0.0.7

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: ccdf855e61bc34f54ceb1aa0d11ffe347fa82354
4
- data.tar.gz: 382ab23f1e2da34c48718f82a66d49600a232569
3
+ metadata.gz: 3722c92f03d28db69baa4bfc4811c9f470ed3933
4
+ data.tar.gz: bc92ff0935223a804eee9a4772dbda0204988555
5
5
  SHA512:
6
- metadata.gz: b05191cd8ace399c1e88f9c8f4461217f5137021a1e3115d1d18ed0dd70bbcba08174e25eeb0ed79a5e7d86bb325401dfb86aaace3ded6cf5e1a56a8631589a1
7
- data.tar.gz: e17a17529945dad7bd8b7805a38d71c4196edd2356ceda2f342bd57679ec7ac2840c13c5343da2b1cc98868e1c4f187aef9a53b988c4994ac5a9059b564d2490
6
+ metadata.gz: c8fcceb2946f37f5a613ae785959e7ed01105f1306e087e20b3dcc0a6a7822a29153f3c4c2117166e15667364ca7ab333ca14f10496a1c13e56a90ff0dbb2bf1
7
+ data.tar.gz: c51f6badb7f23fcaa0ce7fb580d599d6acbec1ebf4df4e26345eb16ad8f43cc5f35d53f36b41c4f8582e8158d8622468eb6add0a0e6eff2f830fbddb58f7b16a
data/CHANGELOG.md CHANGED
@@ -1,6 +1,10 @@
1
1
  # Change Log
2
2
  ## Unreleased
3
3
 
4
+ ## v0.0.7
5
+ ### Fixed
6
+ * Redirected Favicon fetch to Contentful's favicon, as some browsers would ping the server indefinitely
7
+
4
8
  ## v0.0.6
5
9
  ### Fixed
6
10
  * Token was not being returned on `generate_token` call
data/README.md CHANGED
@@ -53,6 +53,37 @@ catalogue
53
53
  This will get you started with Contentful by setting up a Space with some Demo Data to get you
54
54
  started as soon as possible with development using our API.
55
55
 
56
+ ### Using from within other applications
57
+
58
+ Include `contentful_bootstrap` to your project's `Gemfile`
59
+
60
+ ```ruby
61
+ gem "contentful_bootstrap"
62
+ ```
63
+
64
+ Require `contentful_bootstrap`
65
+
66
+ ```ruby
67
+ require 'contentful_bootstrap'
68
+ ```
69
+
70
+ To do the complete `init` process
71
+
72
+ ```ruby
73
+ ContentfulBootstrap::Commands.new.init("space_name", "template_name") # Template Name is optional
74
+ ```
75
+
76
+
77
+ To create a new Space or Token. *This operations require a CMA Token located in `File.join(Dir.pwd, '.contentful_token')`*
78
+
79
+ ```ruby
80
+ # Create a new Space
81
+ ContentfulBootstrap::Commands.new.create_space("space_name", "template_name") # Template Name is optional
82
+
83
+ # Create a new CDA Access Token
84
+ ContentfulBootstrap::Commands.new.generate_token("space_id", "token_name") # Token Name is optional
85
+ ```
86
+
56
87
  ## Contributing
57
88
 
58
89
  Feel free to improve this tool by submitting a Pull Request. For more information,
@@ -8,7 +8,10 @@ module ContentfulBootstrap
8
8
  class OAuthEchoView
9
9
  def render
10
10
  <<-JS
11
- <html><head></head><body>
11
+ <html><head>
12
+ <link rel="shortcut icon" type="image/png" href="https://www.contentful.com/assets/images/favicons/favicon-47dc5f9d.png"/>
13
+ <link rel="shortcut icon" type="image/png" href="https://www.contentful.com/assets/images/favicons/favicon-47dc5f9d.png"/>
14
+ </head><body>
12
15
  <script type="text/javascript">
13
16
  (function() {
14
17
  var access_token = window.location.hash.split('&')[0].split('=')[1];
@@ -24,6 +27,8 @@ module ContentfulBootstrap
24
27
  def render
25
28
  <<-HTML
26
29
  <html><head>
30
+ <link rel="shortcut icon" type="image/png" href="https://www.contentful.com/assets/images/favicons/favicon-47dc5f9d.png"/>
31
+ <link rel="shortcut icon" type="image/png" href="https://www.contentful.com/assets/images/favicons/favicon-47dc5f9d.png"/>
27
32
  <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css" />
28
33
  </head><body>
29
34
  <div class="container">
@@ -1,3 +1,3 @@
1
1
  module ContentfulBootstrap
2
- VERSION = "0.0.6"
2
+ VERSION = "0.0.7"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: contentful_bootstrap
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.6
4
+ version: 0.0.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Litvak Bruno