kijirest-client 0.0.1 → 0.0.2

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 CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- ZjM4ZWM0ZDMzZTQzZTNmNzI4MzBlMzE4OGI0Y2ZjMWViZjY0NzFkYQ==
4
+ ZDY5ZTdkNjM3ZmM1MTNmNzYzYjlhMzk3ZDFkMmNiMzczMjRmYjUyZQ==
5
5
  data.tar.gz: !binary |-
6
- NGE3MjdiZjMxMDFlMzllYmE2NTk0MmQ3OWQyMjZhOGI4NTQ4ZTdlNw==
6
+ NGIxODI0YTc4ZGQ0MTYyMTFlMWFkNzU1MTU4NGQ4YTQ4ZTA2YWNiZA==
7
7
  !binary "U0hBNTEy":
8
8
  metadata.gz: !binary |-
9
- OGFiY2U1YzE5MTQ2MmQ5YWU2Yzc1NzY1Y2NhMmJiNGY2ODUwNjJiNTM0ODEx
10
- NzgxNjk1MDc1YzNmMzRlODA0MjIxMTBhNjMzM2I4YzI4ZDBkYmE4YzliMTA2
11
- ZWE4ZjU0NjRhMmFiMzc4YjhmZmVkZjBlODQyMmU3ZDQ0OThlNTk=
9
+ OTA5Yzg3YmYyOWIxOTBlYWJlMzViNmFiMzUyODc5Y2Q4NjVlZTdhNjY5MDgz
10
+ MTg4NDljYzIxZWNlOTM0NTk3ZmU3ZWZlMDQ0NzA5MDAxZDY0MjliY2IzMTk4
11
+ OGNiZDk0MzFiY2VlNjRjYWU2MjAyNTVkMzUxZTNjZTY3OWFjMjU=
12
12
  data.tar.gz: !binary |-
13
- YzBjNDAyOTFkMmVhMTUwYTliNzQ0NzEzODNmMWFhOTYyYWRmMmVlNGJjYzdm
14
- ZDgzOTVlMmZkZTZkZjUyYmUzNDRkOTc4NzRhMTQ1ZDM0MDg2MWY5ODQ3NmVj
15
- NWVjMzEwYTQyNTVkNGVmNjZkNWNhNDAwN2YxNzA0MmU0N2VmMzU=
13
+ OWJmMDI0MjIzZDI5NDYzM2FmYzMwMTQ5MDhlYWFhYjRhNWJjM2Q4MTEzMzli
14
+ MmM5OWFkN2Y1NDYxZjY1ZDhjOTNiYjQ1NDQ3MWRlMmFlZjg4ZWIyZmRmZjJm
15
+ NjBhMjRhNWMyYTBkNWIxZDJkNGJlMzQ3ZmZjY2FjY2NmY2MxZDQ=
@@ -72,6 +72,17 @@ module KijiRest
72
72
  get_json("#{rows_endpoint(instance_name, table_name)}/#{rowkey}", filters)
73
73
  end
74
74
 
75
+ # Returns a single row (identified by the specified entity_id) from the given table.
76
+ # param: instance_name is the name of the instance
77
+ # param: table_name is the name of the table
78
+ # param: entity_id is a string of an array consists of predefined components to fetch
79
+ # param: filters is a hash containing any filters to apply which will get translated as
80
+ # query parameters in the REST call.
81
+ def row_entityid(instance_name, table_name, entity_id, filters= {})
82
+ eid_filter = {:eid => entity_id}
83
+ get_json(rows_endpoint(instance_name, table_name), filters.merge(eid_filter))
84
+ end
85
+
75
86
  # Returns a list of the tables in the given instance.
76
87
  # param: instance_name is the name of the instance
77
88
  def tables(instance_name)
@@ -16,5 +16,5 @@
16
16
  # limitations under the License.
17
17
 
18
18
  module KijiRest
19
- VERSION = "0.0.1"
19
+ VERSION = "0.0.2"
20
20
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kijirest-client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - wibidata
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-05-21 00:00:00.000000000 Z
11
+ date: 2013-07-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler