Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,6 @@ doc
spec-integration
coverage
\.yardoc
.DS_Store
.bundle/
*/rspec_results.html
7 changes: 7 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# Gemfile
source "https://rubygems.org"

gem "rspec"
gem "webmock"
gem "simplecov"
gem "activesupport"
59 changes: 59 additions & 0 deletions Gemfile.lock
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
GEM
remote: https://rubygems.org/
specs:
activesupport (6.0.2.2)
concurrent-ruby (~> 1.0, >= 1.0.2)
i18n (>= 0.7, < 2)
minitest (~> 5.1)
tzinfo (~> 1.1)
zeitwerk (~> 2.2)
addressable (2.7.0)
public_suffix (>= 2.0.2, < 5.0)
concurrent-ruby (1.1.6)
crack (0.4.3)
safe_yaml (~> 1.0.0)
diff-lcs (1.3)
docile (1.3.2)
hashdiff (1.0.1)
i18n (1.8.2)
concurrent-ruby (~> 1.0)
minitest (5.14.0)
public_suffix (4.0.4)
rspec (3.9.0)
rspec-core (~> 3.9.0)
rspec-expectations (~> 3.9.0)
rspec-mocks (~> 3.9.0)
rspec-core (3.9.1)
rspec-support (~> 3.9.1)
rspec-expectations (3.9.1)
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.9.0)
rspec-mocks (3.9.1)
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.9.0)
rspec-support (3.9.2)
safe_yaml (1.0.5)
simplecov (0.18.5)
docile (~> 1.1)
simplecov-html (~> 0.11)
simplecov-html (0.12.2)
thread_safe (0.3.6)
tzinfo (1.2.7)
thread_safe (~> 0.1)
webmock (3.8.3)
addressable (>= 2.3.6)
crack (>= 0.3.2)
hashdiff (>= 0.4.0, < 2.0.0)
zeitwerk (2.3.0)

PLATFORMS
ruby

DEPENDENCIES
activesupport
rspec
simplecov
webmock

BUNDLED WITH
2.1.4
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,13 @@ Or you can run this command in your terminal (you might need administrator privi
To start using the SDK in your application, you will need to initialize the stack by providing the values for the keys given in the code snippet below.

# with default region
client = Contentstack::Client.new("site_api_key", "access_token", "enviroment_name")
client = Contentstack::Client.new("site_api_key", "delivery_token", "enviroment_name")

# with specific region
client = Contentstack::Client.new("site_api_key", "access_token", "enviroment_name",{"region": Contentstack::Region::EU})
client = Contentstack::Client.new("site_api_key", "delivery_token", "enviroment_name",{"region": Contentstack::Region::EU})

# with custom host
client = Contentstack::Client.new("site_api_key", "access_token", "enviroment_name",{"host": "https://custom-cdn.contentstack.com"})
client = Contentstack::Client.new("site_api_key", "delivery_token", "enviroment_name",{"host": "https://custom-cdn.contentstack.com"})



Expand Down Expand Up @@ -61,7 +61,7 @@ A publishing environment corresponds to one or more deployment servers or a cont

To initialize the SDK, you need to provide values for the keys given in the snippet below:

stack = Contentstack::Client.new("site_api_key", "access_token", "enviroment_name")
stack = Contentstack::Client.new("site_api_key", "delivery_token", "enviroment_name")

To get the API credentials mentioned above, log in to your Contentstack account and then in your top panel navigation, go to Settings > Stack to view the API Key and Access Token.

Expand Down
2 changes: 1 addition & 1 deletion contentstack.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ Gem::Specification.new do |s|
s.required_ruby_version = '>= 2.0'

s.license = "MIT"
s.homepage = "https://github.com/builtio-contentstack/contentstack-ruby"
s.homepage = "https://github.com/contentstack/contentstack-ruby"

s.summary = %q{Contentstack Ruby client for the Content Delivery API}
s.description = %q{Contentstack Ruby client for the Content Delivery API}
Expand Down
2 changes: 1 addition & 1 deletion coverage/.last_run.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"result": {
"covered_percent": 96.63
"covered_percent": 96.65
}
}
Loading