buttercms-rails 1.1.0 → 1.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +10 -1
- data/VERSION +1 -1
- data/buttercms-rails.gemspec +1 -1
- data/lib/butter/version.rb +1 -1
- data/lib/generators/templates/config/initializers/buttercms.rb +4 -2
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 22bee27be4069de6fcfa0fd788da32a1dd674bcf
|
4
|
+
data.tar.gz: 555a45c912eb4996dfdd7f88db0ce9fe3444c337
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1069bc37ff020b23f839b0915f35ac1803ebaaf519f4615b94d98eacbfc485b6e572ed3aef433d6f487d2694742accb82176bd9bcff0af43627992f3e7986a1e
|
7
|
+
data.tar.gz: 1021923dfd88578d935b3725181b305b660dd3b06c611f33a87304fa625ea4e71a7a740c4d43ba485406a4f0a9119386ee6910bdb241db8567dfcf0315ed547b
|
data/README.md
CHANGED
@@ -11,7 +11,7 @@ For a comprehensive list of examples and API docs, check out our [documentation]
|
|
11
11
|
To get started, first install the gem by adding it to your Gemfile:
|
12
12
|
|
13
13
|
```
|
14
|
-
gem 'buttercms-rails'
|
14
|
+
gem 'buttercms-rails'
|
15
15
|
```
|
16
16
|
|
17
17
|
After installing, run the genereator provided by the gem:
|
@@ -75,3 +75,12 @@ Extending and customizing your blog is easy. The ButterCMS Rails SDK uses the [B
|
|
75
75
|
### Fallback Data Store
|
76
76
|
|
77
77
|
The ButterCMS Ruby client supports automatic fallback to a data store when API requests fail. Learn more in the [buttercms-ruby README](https://github.com/buttercms/buttercms-ruby/tree/master#fallback-data-store).
|
78
|
+
|
79
|
+
### Test mode
|
80
|
+
|
81
|
+
Test mode can be used to setup a staging website for previewing content or for testing content during local development. To fetch content from test mode add the following to your initializer:
|
82
|
+
|
83
|
+
```ruby
|
84
|
+
ButterCMS::test_mode = true
|
85
|
+
```
|
86
|
+
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.1.
|
1
|
+
1.1.1
|
data/buttercms-rails.gemspec
CHANGED
@@ -15,7 +15,7 @@ Gem::Specification.new do |s|
|
|
15
15
|
s.homepage = "https://buttercms.com/docs"
|
16
16
|
s.license = 'MIT'
|
17
17
|
|
18
|
-
s.add_runtime_dependency "buttercms-ruby", "~> 1.1.
|
18
|
+
s.add_runtime_dependency "buttercms-ruby", "~> 1.1.1"
|
19
19
|
s.add_development_dependency "rails", ">= 3.2.0"
|
20
20
|
|
21
21
|
s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
|
data/lib/butter/version.rb
CHANGED
@@ -1,6 +1,8 @@
|
|
1
1
|
require 'buttercms-ruby'
|
2
2
|
|
3
3
|
# If you added the Heroku Butter add-on, ENV["BUTTER_TOKEN"] will be defined.
|
4
|
-
# Otherwise, grab your token at https://buttercms.com/profile/ and
|
5
|
-
# or in an environment variable.
|
4
|
+
# Otherwise, grab your token at https://buttercms.com/profile/ and set it below
|
6
5
|
ButterCMS::api_token = ENV['BUTTER_TOKEN']
|
6
|
+
|
7
|
+
# Test mode can be used to setup a staging website for previewing content or for testing content during local development.
|
8
|
+
# ButterCMS::test_mode = true
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: buttercms-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- ButterCMS
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2017-01-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: buttercms-ruby
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 1.1.
|
19
|
+
version: 1.1.1
|
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: 1.1.
|
26
|
+
version: 1.1.1
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: rails
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|