buttercms-ruby 1.0.9 → 1.0.10
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +8 -1
- data/VERSION +1 -1
- data/lib/buttercms-ruby.rb +1 -0
- data/lib/buttercms/errors/buttercms_error.rb +4 -0
- data/lib/buttercms/tag.rb +7 -0
- data/lib/buttercms/version.rb +1 -1
- metadata +4 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cf196fb4aad8f73afc7b5553f4db65169c71fc2c
|
4
|
+
data.tar.gz: ccf34d34ff943a7cd62357463f2c0d6c6c404e0b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ca83066a05a7acd2142fc81bd7cecf2b6cb5ecae8b0b84598f7401215bde14a8d9b40000dde1c1e71d2cd2c7aa91cb77a0380781a9e1ab7fd9cdf5aa2e9f9e22
|
7
|
+
data.tar.gz: d815c60c62f9ca9690d6a64e0393f19d500e00157cf36aadce71d676d69d3c51bc2275bd6f5cd31a313f60b116c17be7a01a071f0b196da43d6eb4dde9cb8a27
|
data/README.md
CHANGED
@@ -1,5 +1,9 @@
|
|
1
1
|
# ButterCMS API Ruby Client
|
2
2
|
|
3
|
+
## Documentation
|
4
|
+
|
5
|
+
For a comprehensive list of examples, check out the [API documentation](https://buttercms.com/docs/api/).
|
6
|
+
|
3
7
|
## Setup
|
4
8
|
|
5
9
|
To setup your project, follow these steps:
|
@@ -7,7 +11,7 @@ To setup your project, follow these steps:
|
|
7
11
|
1. Install using `gem install buttercms-ruby` or by adding to your `Gemfile`:
|
8
12
|
|
9
13
|
```ruby
|
10
|
-
gem 'buttercms-ruby', '~>1.0.
|
14
|
+
gem 'buttercms-ruby', '~>1.0.10'
|
11
15
|
```
|
12
16
|
|
13
17
|
2. Set your API token.
|
@@ -37,6 +41,9 @@ puts author.first_name
|
|
37
41
|
category = ButterCMS::Category.find("category-slug")
|
38
42
|
puts category.name
|
39
43
|
|
44
|
+
tags = ButterCMS::Tag.all
|
45
|
+
p tags
|
46
|
+
|
40
47
|
rss_feed = ButterCMS::Feed.find(:rss)
|
41
48
|
puts rss_feed.data
|
42
49
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0.
|
1
|
+
1.0.10
|
data/lib/buttercms-ruby.rb
CHANGED
@@ -7,6 +7,7 @@ require_relative 'buttercms/butter_collection'
|
|
7
7
|
require_relative 'buttercms/butter_resource'
|
8
8
|
require_relative 'buttercms/author'
|
9
9
|
require_relative 'buttercms/category'
|
10
|
+
require_relative 'buttercms/tag'
|
10
11
|
require_relative 'buttercms/post'
|
11
12
|
require_relative 'buttercms/feed'
|
12
13
|
require_relative 'buttercms/content'
|
data/lib/buttercms/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: buttercms-ruby
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.10
|
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
|
+
date: 2016-11-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rest-client
|
@@ -80,9 +80,11 @@ files:
|
|
80
80
|
- lib/buttercms/butter_resource.rb
|
81
81
|
- lib/buttercms/category.rb
|
82
82
|
- lib/buttercms/content.rb
|
83
|
+
- lib/buttercms/errors/buttercms_error.rb
|
83
84
|
- lib/buttercms/feed.rb
|
84
85
|
- lib/buttercms/hash_to_object.rb
|
85
86
|
- lib/buttercms/post.rb
|
87
|
+
- lib/buttercms/tag.rb
|
86
88
|
- lib/buttercms/version.rb
|
87
89
|
- lib/core_ext/ostruct.rb
|
88
90
|
- spec/lib/butter-ruby_spec.rb
|