Skip to content

Commit ffa4c0a

Browse files
committed
Merge branch 'hotfix/0.0.3'
2 parents e0a6695 + 48d6b52 commit ffa4c0a

File tree

3 files changed

+17
-3
lines changed

3 files changed

+17
-3
lines changed

contentstack.gemspec

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ Gem::Specification.new do |s|
66
s.name = %q{contentstack}
77
s.version = Contentstack::VERSION.dup
88
s.date = Time.now
9-
s.authors = [%q{Rohit Sharma}]
10-
s.email = ["rubygems@contentstack.com"]
9+
s.authors = [%q{Contentstack}]
10+
s.email = ["support@contentstack.com"]
1111

1212
s.required_ruby_version = '>= 2.0'
1313

lib/contentstack/query.rb

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -370,6 +370,20 @@ def descending(field_uid)
370370
self
371371
end
372372

373+
# Get entries from the specified locale.
374+
#
375+
# @param [String] code The locale code of the entry
376+
#
377+
# Example
378+
# @query = @stack.content_type('category').query
379+
# @query.locale('en-us')
380+
#
381+
# @return [Contentstack::Query]
382+
def locale(code)
383+
@query[:locale] = code
384+
self
385+
end
386+
373387
# Specifies an array of 'only' keys in BASE object that would be 'included' in the response.
374388
#
375389
# @param [Array] fields Array of the 'only' reference keys to be included in response.

lib/contentstack/version.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
module Contentstack
2-
VERSION = "0.0.2"
2+
VERSION = "0.0.3"
33
end

0 commit comments

Comments
 (0)