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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 676ec3c7c9f30d94b35b53688010a26b0faacd7b
4
- data.tar.gz: 6440e4be212fc94c52a775e970fe9638b59edafc
3
+ metadata.gz: cf196fb4aad8f73afc7b5553f4db65169c71fc2c
4
+ data.tar.gz: ccf34d34ff943a7cd62357463f2c0d6c6c404e0b
5
5
  SHA512:
6
- metadata.gz: 32057efd6463a074ee3273e0a4daf8215543e6089a81f23d8ee14dd27164cbe1ef22a284c4d3dd4c159fa8337ce515df28a0f518d8a308e3ff475ac9dd463094
7
- data.tar.gz: b0d37fa16f32231b362634f59da079286eba6b18e14156591e25130cca88e102804b9e4fa75a9d46a9f358e795f90bb765cbb1da3c04a8e539dedc4897010adf
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.1'
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.9
1
+ 1.0.10
@@ -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'
@@ -0,0 +1,4 @@
1
+ module ButterCMS
2
+ class ButterCMSError < StandardError
3
+ end
4
+ end
@@ -0,0 +1,7 @@
1
+ module ButterCMS
2
+ class Tag < ButterResource
3
+ def self.resource_path
4
+ "/tags"
5
+ end
6
+ end
7
+ end
@@ -1,3 +1,3 @@
1
1
  module ButterCMS
2
- VERSION = '1.0.9'
2
+ VERSION = '1.0.10'
3
3
  end
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.9
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-06-26 00:00:00.000000000 Z
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