quintype-api 0.2.1 → 0.2.2

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: 10c1012bf469aef0d78783d302b9b970804e5cd8
4
- data.tar.gz: 8dfaeefdc8b52436457fbb069bce38ccd88844bd
3
+ metadata.gz: 9128edb00e322219ab517949f9ebd1d15a403ee1
4
+ data.tar.gz: 3b78ba7abf921b3b65c2e4bca6d4e6997aae3f25
5
5
  SHA512:
6
- metadata.gz: 1d682835eec47a0e0176f1a4a0f5fd314dad7873c300848139a0b6191f534e8c97d26ab3f63a08f705c4ccb465fdd0a4aea80b17d5354be1d89ccf1d4ccf7edb
7
- data.tar.gz: 43134e059e881c2b5f3fb720d1600d60e58efac34b2f483761b095a8ecdb98e21c0ba7b5f4c4272dcd4fecdaf450076bd92c9efe4c3662e1ba4fc2e367e2e2ae
6
+ metadata.gz: 809815ae8ffc602ce30b21bd06f4a1bf4a6a12b704c08132348565d8115775c70cefc8438d791ce08050ece6f1e55a68ab809913a4454146398c4f790473bfe1
7
+ data.tar.gz: 449556b3a9cc98ed4d05d6844457eda1d8a001035f81948ab68d018d9ba5d5938a12af74d713e344fdbec3229b58b47c9c0e45921e150440cf9f80dd910becb7
@@ -5,6 +5,14 @@ module Quintype::API
5
5
  def each
6
6
  stories.each { |story| yield story }
7
7
  end
8
+
9
+ def method_missing(method, *args)
10
+ stories.send(method, *args)
11
+ end
12
+
13
+ def respond_to?(method)
14
+ super || stories.respond_to?(method)
15
+ end
8
16
 
9
17
  def location
10
18
  return "section-#{params["section-id"]}" if params["section-id"]
@@ -1,5 +1,5 @@
1
1
  module Quintype
2
2
  module Api
3
- VERSION = "0.2.1"
3
+ VERSION = "0.2.2"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: quintype-api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tejas Dinkar