Skip to content

Commit 7517a91

Browse files
committed
Merge branch 'hotfix/0.0.3' into develop
2 parents 8d81e51 + 48d6b52 commit 7517a91

26 files changed

+1013
-350
lines changed

.gitignore

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,7 @@
1-
/.bundle/
2-
/.yardoc
3-
/Gemfile.lock
4-
/_yardoc/
5-
/coverage/
6-
/doc/
7-
/pkg/
8-
/lib/debugger.rb
9-
/spec/reports/
10-
/tmp/
11-
.env
1+
contentstack-*
2+
build_doc.sh
3+
test
4+
doc
5+
spec-integration
6+
coverage
7+
\.yardoc

.rspec

Lines changed: 0 additions & 2 deletions
This file was deleted.

.travis.yml

Lines changed: 0 additions & 5 deletions
This file was deleted.

.yardopts

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
--no-private
2-
-
3-
CHANGELOG.md
4-
LICENSE.txt
1+
README.rdoc
2+
lib/contentstack/*
3+
lib/contentstack.rb
4+
--exclude lib/contentstack/util.rb
5+
--exclude lib/contentstack/api.rb
6+
--exclude lib/contentstack/version.rb

Gemfile

Lines changed: 0 additions & 4 deletions
This file was deleted.

Rakefile

Lines changed: 0 additions & 6 deletions
This file was deleted.

bin/console

Lines changed: 0 additions & 14 deletions
This file was deleted.

bin/setup

Lines changed: 0 additions & 8 deletions
This file was deleted.

contentstack.gemspec

Lines changed: 19 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -1,47 +1,28 @@
1-
# coding: utf-8
21
lib = File.expand_path('../lib', __FILE__)
32
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
3+
44
require 'contentstack/version'
5+
Gem::Specification.new do |s|
6+
s.name = %q{contentstack}
7+
s.version = Contentstack::VERSION.dup
8+
s.date = Time.now
9+
s.authors = [%q{Contentstack}]
10+
s.email = ["support@contentstack.com"]
511

6-
Gem::Specification.new do |spec|
7-
spec.name = "contentstack"
8-
spec.version = Contentstack::VERSION
9-
spec.authors = ["amite"]
10-
spec.email = ["amit.erandole@gmail.com"]
12+
s.required_ruby_version = '>= 2.0'
1113

12-
spec.summary = %q{A ruby gem to work with contentstack.built.io}
13-
spec.description = %q{A ruby gem to work with the Content Delivery API for contentstack.built.io}
14-
spec.homepage = ""
15-
spec.license = "MIT"
14+
s.license = "MIT"
15+
s.homepage = "https://github.com/builtio-contentstack/contentstack-ruby"
1616

17-
# Prevent pushing this gem to RubyGems.org. To allow pushes either set the 'allowed_push_host'
18-
# to allow pushing to a single host or delete this section to allow pushing to any host.
19-
if spec.respond_to?(:metadata)
20-
spec.metadata['allowed_push_host'] = "http://rubygems.org"
21-
else
22-
raise "RubyGems 2.0 or newer is required to protect against " \
23-
"public gem pushes."
24-
end
17+
s.summary = %q{Contentstack Ruby client for the Content Delivery API}
18+
s.description = %q{Contentstack Ruby client for the Content Delivery API}
2519

26-
spec.files = `git ls-files -z`.split("\x0").reject do |f|
27-
f.match(%r{^(test|spec|features)/})
28-
end
29-
spec.bindir = "exe"
30-
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
31-
spec.require_paths = ["lib"]
20+
s.files = `git ls-files`.split("\n")
21+
s.require_paths = ["lib"]
3222

33-
spec.add_dependency 'typhoeus', '~> 1.1', '>= 1.1.2'
34-
spec.add_dependency 'multi_json', '~> 1.12', '>= 1.12.1'
35-
spec.add_dependency 'activesupport'
23+
s.add_dependency 'activesupport', "> 3.2.5"
3624

37-
spec.add_development_dependency 'bundler', '~> 1.13', '>= 1.13.6'
38-
spec.add_development_dependency 'rake', '~> 12.0'
39-
spec.add_development_dependency 'rspec', '~> 3.5'
40-
spec.add_development_dependency 'vcr', '~> 3.0', '>= 3.0.3'
41-
spec.add_development_dependency 'awesome_print'
42-
spec.add_development_dependency 'rb-readline'
43-
spec.add_development_dependency 'byebug'
44-
spec.add_development_dependency 'webmock', '~> 2.3', '>= 2.3.1'
45-
spec.add_development_dependency 'dotenv', '~> 2.1', '>= 2.1.1'
46-
spec.add_development_dependency 'yard'
47-
end
25+
s.add_development_dependency 'rspec'
26+
s.add_development_dependency 'webmock'
27+
s.add_development_dependency 'simplecov'
28+
end

lib/contentstack.rb

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,19 @@
22

33
require "contentstack/version"
44
require "contentstack/client"
5+
require "util"
56

6-
module Contentstack
7-
# The client object is initialized with an api_key and an access_token and then used
8-
# for querying resources from this space.
9-
# See README for details
10-
end
117

12-
require 'debugger'
8+
# == Built.io Contentstack - Ruby SDK
9+
# Built.io Contentstack is a content management system that facilitates the process of publication by separating the content from site-related programming and design.
10+
# == Installation
11+
# gem install contentstack
12+
# == Initialize the Stack
13+
# @stack = Contentstack::Client.new("site_api_key", "access_token", "enviroment_name")
14+
# == Usage
15+
# ==== Get single entry
16+
# @stack.content_type('blog').entry('<entry_uid_here>').fetch
17+
# ==== Query entries
18+
# @stack.content_type('blog').query.regex('title', '.*hello.*').fetch
19+
module Contentstack
20+
end

0 commit comments

Comments
 (0)