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 +4 -4
- data/CHANGELOG.md +4 -0
- data/README.md +31 -0
- data/lib/contentful_bootstrap/server.rb +6 -1
- data/lib/contentful_bootstrap/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 3722c92f03d28db69baa4bfc4811c9f470ed3933
|
|
4
|
+
data.tar.gz: bc92ff0935223a804eee9a4772dbda0204988555
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: c8fcceb2946f37f5a613ae785959e7ed01105f1306e087e20b3dcc0a6a7822a29153f3c4c2117166e15667364ca7ab333ca14f10496a1c13e56a90ff0dbb2bf1
|
|
7
|
+
data.tar.gz: c51f6badb7f23fcaa0ce7fb580d599d6acbec1ebf4df4e26345eb16ad8f43cc5f35d53f36b41c4f8582e8158d8622468eb6add0a0e6eff2f830fbddb58f7b16a
|
data/CHANGELOG.md
CHANGED
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
|
|
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">
|