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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e9cccf298e724bb68577af95627efc0a5f99dd4e
4
- data.tar.gz: 2a640ea8a25ec2138a0a4b9c7d272742643a51cc
3
+ metadata.gz: 22bee27be4069de6fcfa0fd788da32a1dd674bcf
4
+ data.tar.gz: 555a45c912eb4996dfdd7f88db0ce9fe3444c337
5
5
  SHA512:
6
- metadata.gz: de6679fb116012edb5950cec4dbaf77b6b58b9996fab0569a5abf0bc9b63445773782b4ab33cb2320ce606ea0068bdfd45e9ae607967bec313b09663b7d172de
7
- data.tar.gz: 53d02c411c0bcfba7a9bfe6a4c3bdc9259a3e9263fd88023566fb0c0e8b1f09f250c50d241a038ee252010af26c0c102c8e8ed5ec84fd38170271806b207a6d3
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', '~> 1.0.5'
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.0
1
+ 1.1.1
@@ -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.0"
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) }
@@ -1,3 +1,3 @@
1
1
  module Butter
2
- VERSION = "1.1.0"
2
+ VERSION = "1.1.1"
3
3
  end
@@ -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 either set it below
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.0
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: 2016-11-29 00:00:00.000000000 Z
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.0
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.0
26
+ version: 1.1.1
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rails
29
29
  requirement: !ruby/object:Gem::Requirement