refinerycms-api-wrapper 1.0.0.beta
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 +7 -0
- data/.gitignore +39 -0
- data/.rspec +2 -0
- data/.sample.env +3 -0
- data/.travis.yml +4 -0
- data/Gemfile +8 -0
- data/Gemfile.lock +65 -0
- data/LICENSE +21 -0
- data/LICENSE.txt +21 -0
- data/README.md +57 -0
- data/Rakefile +6 -0
- data/bin/console +14 -0
- data/bin/setup +8 -0
- data/lib/refinery/api.rb +22 -0
- data/lib/refinery/api/blog/posts.rb +42 -0
- data/lib/refinery/api/configuration.rb +24 -0
- data/lib/refinery/api/helpers/client_helper.rb +15 -0
- data/lib/refinery/api/images.rb +40 -0
- data/lib/refinery/api/inquiries/inquiries.rb +36 -0
- data/lib/refinery/api/pages.rb +40 -0
- data/lib/refinery/api/resources.rb +40 -0
- data/lib/refinery/api/version.rb +5 -0
- data/refinerycms-api-wrapper.gemspec +28 -0
- metadata +178 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: b7aa23e103c741c468459761e621ac3558157882
|
4
|
+
data.tar.gz: c76dac967bcfb3aa611ec3d10e431d7ef26eca1b
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 5bd8eff457bdeb0e7cc1f038d744fce5139830173b20fd3481fbf88b2ccf1e756cbb961c52560f57c60f6fd3c92d6ab54ee125050b811c51b069943c63d580db
|
7
|
+
data.tar.gz: 27c40e30d3f5158a95119bc32fb6fea15117a287bac465361c9b411232f30b2743a6b7ad7eb15df78a1debe6162f288a7708b6873faf367b8849e155286c2477
|
data/.gitignore
ADDED
@@ -0,0 +1,39 @@
|
|
1
|
+
*.gem
|
2
|
+
*.rbc
|
3
|
+
/.config
|
4
|
+
/coverage/
|
5
|
+
/InstalledFiles
|
6
|
+
/pkg/
|
7
|
+
/spec/reports/
|
8
|
+
/spec/examples.txt
|
9
|
+
/test/tmp/
|
10
|
+
/test/version_tmp/
|
11
|
+
/tmp/
|
12
|
+
|
13
|
+
## Specific to RubyMotion:
|
14
|
+
.dat*
|
15
|
+
.repl_history
|
16
|
+
build/
|
17
|
+
|
18
|
+
## Documentation cache and generated files:
|
19
|
+
/.yardoc/
|
20
|
+
/_yardoc/
|
21
|
+
/doc/
|
22
|
+
/rdoc/
|
23
|
+
|
24
|
+
## Environment normalization:
|
25
|
+
/.bundle/
|
26
|
+
/vendor/bundle
|
27
|
+
/lib/bundler/man/
|
28
|
+
|
29
|
+
# for a library or gem, you might want to ignore these files since the code is
|
30
|
+
# intended to run in multiple environments; otherwise, check them in:
|
31
|
+
# Gemfile.lock
|
32
|
+
# .ruby-version
|
33
|
+
# .ruby-gemset
|
34
|
+
|
35
|
+
# unless supporting rvm < 1.11.0 or doing something fancy, ignore this:
|
36
|
+
.rvmrc
|
37
|
+
.gems
|
38
|
+
.rbenv-*
|
39
|
+
.ruby-version
|
data/.rspec
ADDED
data/.sample.env
ADDED
data/.travis.yml
ADDED
data/Gemfile
ADDED
data/Gemfile.lock
ADDED
@@ -0,0 +1,65 @@
|
|
1
|
+
PATH
|
2
|
+
remote: .
|
3
|
+
specs:
|
4
|
+
refinerycms-api-wrapper (1.0.0.beta)
|
5
|
+
faraday
|
6
|
+
|
7
|
+
GEM
|
8
|
+
remote: https://rubygems.org/
|
9
|
+
specs:
|
10
|
+
addressable (2.4.0)
|
11
|
+
coderay (1.1.1)
|
12
|
+
crack (0.4.3)
|
13
|
+
safe_yaml (~> 1.0.0)
|
14
|
+
diff-lcs (1.2.5)
|
15
|
+
dotenv (2.1.1)
|
16
|
+
faraday (0.9.2)
|
17
|
+
multipart-post (>= 1.2, < 3)
|
18
|
+
hashdiff (0.3.0)
|
19
|
+
method_source (0.8.2)
|
20
|
+
multipart-post (2.0.0)
|
21
|
+
pry (0.10.4)
|
22
|
+
coderay (~> 1.1.0)
|
23
|
+
method_source (~> 0.8.1)
|
24
|
+
slop (~> 3.4)
|
25
|
+
rack (2.0.1)
|
26
|
+
rack-test (0.6.3)
|
27
|
+
rack (>= 1.0)
|
28
|
+
rake (10.5.0)
|
29
|
+
rspec (3.5.0)
|
30
|
+
rspec-core (~> 3.5.0)
|
31
|
+
rspec-expectations (~> 3.5.0)
|
32
|
+
rspec-mocks (~> 3.5.0)
|
33
|
+
rspec-core (3.5.1)
|
34
|
+
rspec-support (~> 3.5.0)
|
35
|
+
rspec-expectations (3.5.0)
|
36
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
37
|
+
rspec-support (~> 3.5.0)
|
38
|
+
rspec-mocks (3.5.0)
|
39
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
40
|
+
rspec-support (~> 3.5.0)
|
41
|
+
rspec-support (3.5.0)
|
42
|
+
safe_yaml (1.0.4)
|
43
|
+
slop (3.6.0)
|
44
|
+
vcr (3.0.3)
|
45
|
+
webmock (2.1.0)
|
46
|
+
addressable (>= 2.3.6)
|
47
|
+
crack (>= 0.3.2)
|
48
|
+
hashdiff
|
49
|
+
|
50
|
+
PLATFORMS
|
51
|
+
ruby
|
52
|
+
|
53
|
+
DEPENDENCIES
|
54
|
+
bundler (~> 1.11)
|
55
|
+
dotenv
|
56
|
+
pry
|
57
|
+
rack-test (~> 0.6.3)
|
58
|
+
rake (~> 10.0)
|
59
|
+
refinerycms-api-wrapper!
|
60
|
+
rspec (~> 3.0)
|
61
|
+
vcr
|
62
|
+
webmock
|
63
|
+
|
64
|
+
BUNDLED WITH
|
65
|
+
1.12.5
|
data/LICENSE
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) 2016 Rockets of Awesome
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
7
|
+
in the Software without restriction, including without limitation the rights
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
10
|
+
furnished to do so, subject to the following conditions:
|
11
|
+
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
13
|
+
copies or substantial portions of the Software.
|
14
|
+
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
21
|
+
SOFTWARE.
|
data/LICENSE.txt
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) 2016 Ian Rodriguez
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
7
|
+
in the Software without restriction, including without limitation the rights
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
10
|
+
furnished to do so, subject to the following conditions:
|
11
|
+
|
12
|
+
The above copyright notice and this permission notice shall be included in
|
13
|
+
all copies or substantial portions of the Software.
|
14
|
+
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
21
|
+
THE SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,57 @@
|
|
1
|
+
# Refinery CMS API Wrapper
|
2
|
+
|
3
|
+
[](https://travis-ci.org/refinerycms-contrib/refinerycms-api-wrapper)
|
4
|
+
|
5
|
+
A Ruby library for working with the The Refinery CMS REST API.
|
6
|
+
|
7
|
+
|
8
|
+
## Installation
|
9
|
+
|
10
|
+
Add this line to your application's Gemfile:
|
11
|
+
|
12
|
+
```ruby
|
13
|
+
gem 'refinerycms-api-wrapper'
|
14
|
+
```
|
15
|
+
|
16
|
+
And then execute:
|
17
|
+
|
18
|
+
$ bundle
|
19
|
+
|
20
|
+
Or install it yourself as:
|
21
|
+
|
22
|
+
$ gem install refinerycms-api-wrapper
|
23
|
+
|
24
|
+
## Usage
|
25
|
+
|
26
|
+
Configure a connection to the API:
|
27
|
+
|
28
|
+
```ruby
|
29
|
+
Refinery::API.configure do |conf|
|
30
|
+
conf.api_token = "123"
|
31
|
+
conf.api_url = "http://localhost:3000"
|
32
|
+
conf.api_path = "/api/v1"
|
33
|
+
end
|
34
|
+
```
|
35
|
+
|
36
|
+
Make your first call:
|
37
|
+
|
38
|
+
```ruby
|
39
|
+
client = Refinery::API::Pages.new
|
40
|
+
pages = client.index.body
|
41
|
+
```
|
42
|
+
|
43
|
+
## Development
|
44
|
+
|
45
|
+
After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
|
46
|
+
|
47
|
+
To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
|
48
|
+
|
49
|
+
## Contributing
|
50
|
+
|
51
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/refinerycms-api-wrapper.
|
52
|
+
|
53
|
+
|
54
|
+
## License
|
55
|
+
|
56
|
+
The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
|
57
|
+
|
data/Rakefile
ADDED
data/bin/console
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
|
3
|
+
require "bundler/setup"
|
4
|
+
require "refinery/api"
|
5
|
+
|
6
|
+
# You can add fixtures and/or initialization code here to make experimenting
|
7
|
+
# with your gem easier. You can also use a different console, if you like.
|
8
|
+
|
9
|
+
# (If you use this, don't forget to add pry to your Gemfile!)
|
10
|
+
# require "pry"
|
11
|
+
# Pry.start
|
12
|
+
|
13
|
+
require "irb"
|
14
|
+
IRB.start
|
data/bin/setup
ADDED
data/lib/refinery/api.rb
ADDED
@@ -0,0 +1,22 @@
|
|
1
|
+
require "refinery/api/version"
|
2
|
+
require "refinery/api/configuration"
|
3
|
+
require "refinery/api/pages"
|
4
|
+
require "refinery/api/resources"
|
5
|
+
require "refinery/api/images"
|
6
|
+
require "refinery/api/blog/posts"
|
7
|
+
require "refinery/api/inquiries/inquiries"
|
8
|
+
|
9
|
+
require "faraday"
|
10
|
+
|
11
|
+
module Refinery
|
12
|
+
module API
|
13
|
+
class << self
|
14
|
+
attr_accessor :configuration
|
15
|
+
end
|
16
|
+
|
17
|
+
def self.configure
|
18
|
+
self.configuration ||= Configuration.new
|
19
|
+
yield(configuration)
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
@@ -0,0 +1,42 @@
|
|
1
|
+
require "refinery/api/helpers/client_helper"
|
2
|
+
|
3
|
+
module Refinery
|
4
|
+
module API
|
5
|
+
module Blog
|
6
|
+
class Posts
|
7
|
+
include Refinery::API::Helpers::ClientHelper
|
8
|
+
|
9
|
+
def index
|
10
|
+
config.connection.get(posts_path)
|
11
|
+
end
|
12
|
+
|
13
|
+
def show(id:)
|
14
|
+
config.connection.get(posts_path(id))
|
15
|
+
end
|
16
|
+
|
17
|
+
def create(post:)
|
18
|
+
config.connection.post(posts_path) do |req|
|
19
|
+
req.body = post.to_json
|
20
|
+
end
|
21
|
+
end
|
22
|
+
|
23
|
+
def update(id:, post:)
|
24
|
+
config.connection.put(posts_path(id)) do |req|
|
25
|
+
req.body = post.to_json
|
26
|
+
end
|
27
|
+
end
|
28
|
+
|
29
|
+
def destroy(id:)
|
30
|
+
config.connection.delete(posts_path(id))
|
31
|
+
end
|
32
|
+
|
33
|
+
private
|
34
|
+
def posts_path(id = nil)
|
35
|
+
path = api_path + "/blog/posts"
|
36
|
+
path << "/#{id}" if id
|
37
|
+
path
|
38
|
+
end
|
39
|
+
end
|
40
|
+
end
|
41
|
+
end
|
42
|
+
end
|
@@ -0,0 +1,24 @@
|
|
1
|
+
require "faraday"
|
2
|
+
|
3
|
+
module Refinery
|
4
|
+
module API
|
5
|
+
class Configuration
|
6
|
+
attr_accessor :api_token, :api_url, :api_path
|
7
|
+
|
8
|
+
def initialize
|
9
|
+
@api_token = ""
|
10
|
+
@api_url = ""
|
11
|
+
@api_path = "/api"
|
12
|
+
end
|
13
|
+
|
14
|
+
def connection
|
15
|
+
@_connection ||= ::Faraday.new(url: api_url,
|
16
|
+
headers: { "X-Refinery-Token" => api_token,
|
17
|
+
"Content-Type" => "application/json" }) do |faraday|
|
18
|
+
faraday.request :url_encoded
|
19
|
+
faraday.adapter Faraday.default_adapter
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
23
|
+
end
|
24
|
+
end
|
@@ -0,0 +1,40 @@
|
|
1
|
+
require "refinery/api/helpers/client_helper"
|
2
|
+
|
3
|
+
module Refinery
|
4
|
+
module API
|
5
|
+
class Images
|
6
|
+
include Refinery::API::Helpers::ClientHelper
|
7
|
+
|
8
|
+
def index
|
9
|
+
config.connection.get(images_path)
|
10
|
+
end
|
11
|
+
|
12
|
+
def show(id:)
|
13
|
+
config.connection.get(images_path(id))
|
14
|
+
end
|
15
|
+
|
16
|
+
def create(image:)
|
17
|
+
config.connection.post(images_path) do |req|
|
18
|
+
req.body = image.to_json
|
19
|
+
end
|
20
|
+
end
|
21
|
+
|
22
|
+
def update(id:, image:)
|
23
|
+
config.connection.put(images_path(id)) do |req|
|
24
|
+
req.body = image.to_json
|
25
|
+
end
|
26
|
+
end
|
27
|
+
|
28
|
+
def destroy(id:)
|
29
|
+
config.connection.delete(images_path(id))
|
30
|
+
end
|
31
|
+
|
32
|
+
private
|
33
|
+
def images_path(id = nil)
|
34
|
+
path = api_path + "/images"
|
35
|
+
path << "/#{id}" if id
|
36
|
+
path
|
37
|
+
end
|
38
|
+
end
|
39
|
+
end
|
40
|
+
end
|
@@ -0,0 +1,36 @@
|
|
1
|
+
require "refinery/api/helpers/client_helper"
|
2
|
+
|
3
|
+
module Refinery
|
4
|
+
module API
|
5
|
+
module Inquiries
|
6
|
+
class Inquiries
|
7
|
+
include Refinery::API::Helpers::ClientHelper
|
8
|
+
|
9
|
+
def index
|
10
|
+
config.connection.get(inquiries_path)
|
11
|
+
end
|
12
|
+
|
13
|
+
def show(id:)
|
14
|
+
config.connection.get(inquiries_path(id))
|
15
|
+
end
|
16
|
+
|
17
|
+
def create(inquiry:)
|
18
|
+
config.connection.post(inquiries_path) do |req|
|
19
|
+
req.body = inquiry.to_json
|
20
|
+
end
|
21
|
+
end
|
22
|
+
|
23
|
+
def destroy(id:)
|
24
|
+
config.connection.delete(inquiries_path(id))
|
25
|
+
end
|
26
|
+
|
27
|
+
private
|
28
|
+
def inquiries_path(id = nil)
|
29
|
+
path = api_path + "/inquiries/inquiries"
|
30
|
+
path << "/#{id}" if id
|
31
|
+
path
|
32
|
+
end
|
33
|
+
end
|
34
|
+
end
|
35
|
+
end
|
36
|
+
end
|
@@ -0,0 +1,40 @@
|
|
1
|
+
require "refinery/api/helpers/client_helper"
|
2
|
+
|
3
|
+
module Refinery
|
4
|
+
module API
|
5
|
+
class Pages
|
6
|
+
include Refinery::API::Helpers::ClientHelper
|
7
|
+
|
8
|
+
def index
|
9
|
+
config.connection.get(pages_path)
|
10
|
+
end
|
11
|
+
|
12
|
+
def show(id:)
|
13
|
+
config.connection.get(pages_path(id))
|
14
|
+
end
|
15
|
+
|
16
|
+
def create(page:)
|
17
|
+
config.connection.post(pages_path) do |req|
|
18
|
+
req.body = page.to_json
|
19
|
+
end
|
20
|
+
end
|
21
|
+
|
22
|
+
def update(id:, page:)
|
23
|
+
config.connection.put(pages_path(id)) do |req|
|
24
|
+
req.body = page.to_json
|
25
|
+
end
|
26
|
+
end
|
27
|
+
|
28
|
+
def destroy(id:)
|
29
|
+
config.connection.delete(pages_path(id))
|
30
|
+
end
|
31
|
+
|
32
|
+
private
|
33
|
+
def pages_path(id = nil)
|
34
|
+
path = api_path + "/pages"
|
35
|
+
path << "/#{id}" if id
|
36
|
+
path
|
37
|
+
end
|
38
|
+
end
|
39
|
+
end
|
40
|
+
end
|
@@ -0,0 +1,40 @@
|
|
1
|
+
require "refinery/api/helpers/client_helper"
|
2
|
+
|
3
|
+
module Refinery
|
4
|
+
module API
|
5
|
+
class Resources
|
6
|
+
include Refinery::API::Helpers::ClientHelper
|
7
|
+
|
8
|
+
def index
|
9
|
+
config.connection.get(resources_path)
|
10
|
+
end
|
11
|
+
|
12
|
+
def show(id:)
|
13
|
+
config.connection.get(resources_path(id))
|
14
|
+
end
|
15
|
+
|
16
|
+
def create(resource:)
|
17
|
+
config.connection.post(resources_path) do |req|
|
18
|
+
req.body = resource.to_json
|
19
|
+
end
|
20
|
+
end
|
21
|
+
|
22
|
+
def update(id:, resource:)
|
23
|
+
config.connection.put(resources_path(id)) do |req|
|
24
|
+
req.body = resource.to_json
|
25
|
+
end
|
26
|
+
end
|
27
|
+
|
28
|
+
def destroy(id:)
|
29
|
+
config.connection.delete(resources_path(id))
|
30
|
+
end
|
31
|
+
|
32
|
+
private
|
33
|
+
def resources_path(id = nil)
|
34
|
+
path = api_path + "/resources"
|
35
|
+
path << "/#{id}" if id
|
36
|
+
path
|
37
|
+
end
|
38
|
+
end
|
39
|
+
end
|
40
|
+
end
|
@@ -0,0 +1,28 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
lib = File.expand_path('../lib', __FILE__)
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
+
require 'refinery/api/version'
|
5
|
+
|
6
|
+
Gem::Specification.new do |spec|
|
7
|
+
spec.name = "refinerycms-api-wrapper"
|
8
|
+
spec.version = Refinery::API::VERSION
|
9
|
+
spec.authors = ["Brice Sanchez", "Ian Rodriguez"]
|
10
|
+
|
11
|
+
spec.summary = %q{This wraps the Refinery CMS API in a simple yet flexible way.}
|
12
|
+
spec.description = %q{Interact with Refinery CMS API using this awesome gem.}
|
13
|
+
spec.license = "MIT"
|
14
|
+
spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
15
|
+
spec.bindir = "exe"
|
16
|
+
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
17
|
+
spec.require_paths = ["lib"]
|
18
|
+
|
19
|
+
spec.add_dependency "faraday"
|
20
|
+
|
21
|
+
spec.add_development_dependency "bundler", "~> 1.11"
|
22
|
+
spec.add_development_dependency "rack-test", "~> 0.6.3"
|
23
|
+
spec.add_development_dependency "rake", "~> 10.0"
|
24
|
+
spec.add_development_dependency "rspec", "~> 3.0"
|
25
|
+
spec.add_development_dependency "vcr"
|
26
|
+
spec.add_development_dependency "webmock"
|
27
|
+
spec.add_development_dependency "pry"
|
28
|
+
end
|
metadata
ADDED
@@ -0,0 +1,178 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: refinerycms-api-wrapper
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 1.0.0.beta
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Brice Sanchez
|
8
|
+
- Ian Rodriguez
|
9
|
+
autorequire:
|
10
|
+
bindir: exe
|
11
|
+
cert_chain: []
|
12
|
+
date: 2016-07-19 00:00:00.000000000 Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
15
|
+
name: faraday
|
16
|
+
requirement: !ruby/object:Gem::Requirement
|
17
|
+
requirements:
|
18
|
+
- - ">="
|
19
|
+
- !ruby/object:Gem::Version
|
20
|
+
version: '0'
|
21
|
+
type: :runtime
|
22
|
+
prerelease: false
|
23
|
+
version_requirements: !ruby/object:Gem::Requirement
|
24
|
+
requirements:
|
25
|
+
- - ">="
|
26
|
+
- !ruby/object:Gem::Version
|
27
|
+
version: '0'
|
28
|
+
- !ruby/object:Gem::Dependency
|
29
|
+
name: bundler
|
30
|
+
requirement: !ruby/object:Gem::Requirement
|
31
|
+
requirements:
|
32
|
+
- - "~>"
|
33
|
+
- !ruby/object:Gem::Version
|
34
|
+
version: '1.11'
|
35
|
+
type: :development
|
36
|
+
prerelease: false
|
37
|
+
version_requirements: !ruby/object:Gem::Requirement
|
38
|
+
requirements:
|
39
|
+
- - "~>"
|
40
|
+
- !ruby/object:Gem::Version
|
41
|
+
version: '1.11'
|
42
|
+
- !ruby/object:Gem::Dependency
|
43
|
+
name: rack-test
|
44
|
+
requirement: !ruby/object:Gem::Requirement
|
45
|
+
requirements:
|
46
|
+
- - "~>"
|
47
|
+
- !ruby/object:Gem::Version
|
48
|
+
version: 0.6.3
|
49
|
+
type: :development
|
50
|
+
prerelease: false
|
51
|
+
version_requirements: !ruby/object:Gem::Requirement
|
52
|
+
requirements:
|
53
|
+
- - "~>"
|
54
|
+
- !ruby/object:Gem::Version
|
55
|
+
version: 0.6.3
|
56
|
+
- !ruby/object:Gem::Dependency
|
57
|
+
name: rake
|
58
|
+
requirement: !ruby/object:Gem::Requirement
|
59
|
+
requirements:
|
60
|
+
- - "~>"
|
61
|
+
- !ruby/object:Gem::Version
|
62
|
+
version: '10.0'
|
63
|
+
type: :development
|
64
|
+
prerelease: false
|
65
|
+
version_requirements: !ruby/object:Gem::Requirement
|
66
|
+
requirements:
|
67
|
+
- - "~>"
|
68
|
+
- !ruby/object:Gem::Version
|
69
|
+
version: '10.0'
|
70
|
+
- !ruby/object:Gem::Dependency
|
71
|
+
name: rspec
|
72
|
+
requirement: !ruby/object:Gem::Requirement
|
73
|
+
requirements:
|
74
|
+
- - "~>"
|
75
|
+
- !ruby/object:Gem::Version
|
76
|
+
version: '3.0'
|
77
|
+
type: :development
|
78
|
+
prerelease: false
|
79
|
+
version_requirements: !ruby/object:Gem::Requirement
|
80
|
+
requirements:
|
81
|
+
- - "~>"
|
82
|
+
- !ruby/object:Gem::Version
|
83
|
+
version: '3.0'
|
84
|
+
- !ruby/object:Gem::Dependency
|
85
|
+
name: vcr
|
86
|
+
requirement: !ruby/object:Gem::Requirement
|
87
|
+
requirements:
|
88
|
+
- - ">="
|
89
|
+
- !ruby/object:Gem::Version
|
90
|
+
version: '0'
|
91
|
+
type: :development
|
92
|
+
prerelease: false
|
93
|
+
version_requirements: !ruby/object:Gem::Requirement
|
94
|
+
requirements:
|
95
|
+
- - ">="
|
96
|
+
- !ruby/object:Gem::Version
|
97
|
+
version: '0'
|
98
|
+
- !ruby/object:Gem::Dependency
|
99
|
+
name: webmock
|
100
|
+
requirement: !ruby/object:Gem::Requirement
|
101
|
+
requirements:
|
102
|
+
- - ">="
|
103
|
+
- !ruby/object:Gem::Version
|
104
|
+
version: '0'
|
105
|
+
type: :development
|
106
|
+
prerelease: false
|
107
|
+
version_requirements: !ruby/object:Gem::Requirement
|
108
|
+
requirements:
|
109
|
+
- - ">="
|
110
|
+
- !ruby/object:Gem::Version
|
111
|
+
version: '0'
|
112
|
+
- !ruby/object:Gem::Dependency
|
113
|
+
name: pry
|
114
|
+
requirement: !ruby/object:Gem::Requirement
|
115
|
+
requirements:
|
116
|
+
- - ">="
|
117
|
+
- !ruby/object:Gem::Version
|
118
|
+
version: '0'
|
119
|
+
type: :development
|
120
|
+
prerelease: false
|
121
|
+
version_requirements: !ruby/object:Gem::Requirement
|
122
|
+
requirements:
|
123
|
+
- - ">="
|
124
|
+
- !ruby/object:Gem::Version
|
125
|
+
version: '0'
|
126
|
+
description: Interact with Refinery CMS API using this awesome gem.
|
127
|
+
email:
|
128
|
+
executables: []
|
129
|
+
extensions: []
|
130
|
+
extra_rdoc_files: []
|
131
|
+
files:
|
132
|
+
- ".gitignore"
|
133
|
+
- ".rspec"
|
134
|
+
- ".sample.env"
|
135
|
+
- ".travis.yml"
|
136
|
+
- Gemfile
|
137
|
+
- Gemfile.lock
|
138
|
+
- LICENSE
|
139
|
+
- LICENSE.txt
|
140
|
+
- README.md
|
141
|
+
- Rakefile
|
142
|
+
- bin/console
|
143
|
+
- bin/setup
|
144
|
+
- lib/refinery/api.rb
|
145
|
+
- lib/refinery/api/blog/posts.rb
|
146
|
+
- lib/refinery/api/configuration.rb
|
147
|
+
- lib/refinery/api/helpers/client_helper.rb
|
148
|
+
- lib/refinery/api/images.rb
|
149
|
+
- lib/refinery/api/inquiries/inquiries.rb
|
150
|
+
- lib/refinery/api/pages.rb
|
151
|
+
- lib/refinery/api/resources.rb
|
152
|
+
- lib/refinery/api/version.rb
|
153
|
+
- refinerycms-api-wrapper.gemspec
|
154
|
+
homepage:
|
155
|
+
licenses:
|
156
|
+
- MIT
|
157
|
+
metadata: {}
|
158
|
+
post_install_message:
|
159
|
+
rdoc_options: []
|
160
|
+
require_paths:
|
161
|
+
- lib
|
162
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
163
|
+
requirements:
|
164
|
+
- - ">="
|
165
|
+
- !ruby/object:Gem::Version
|
166
|
+
version: '0'
|
167
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
168
|
+
requirements:
|
169
|
+
- - ">"
|
170
|
+
- !ruby/object:Gem::Version
|
171
|
+
version: 1.3.1
|
172
|
+
requirements: []
|
173
|
+
rubyforge_project:
|
174
|
+
rubygems_version: 2.5.1
|
175
|
+
signing_key:
|
176
|
+
specification_version: 4
|
177
|
+
summary: This wraps the Refinery CMS API in a simple yet flexible way.
|
178
|
+
test_files: []
|