dynomite 1.1.0 → 1.1.1

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
  SHA256:
3
- metadata.gz: b15b33b315b312ab9d3b277d49b91601a2a873de2f381a2cc12085b30f784df0
4
- data.tar.gz: 46636c01df3e78e6470e01b81fb829e1a379d3193dd276b0905ebd1af36ff94d
3
+ metadata.gz: bfae7abac0c8aa642ef93bde33f936415bbd4b51ee6dde84585e3cae63bef118
4
+ data.tar.gz: 37160a6a7e0b36463fa4702c491ad177c10aa45c19bb474b5533d2e96c24b8e4
5
5
  SHA512:
6
- metadata.gz: 50bc0730c3dad8654ae6323c98984e8c492d8d3bbccd9bf119ca1454ed50e9f4d183f51a822143e2e0bfa88902807d3d52497f913b736c0f126a748d065c0713
7
- data.tar.gz: f54b0f900e63317ea9dfc9cc68ef6ccda244939f146497d5d783dcf1abc24526b7da0334dbcc67fd5d05a8c0cdd167b324e4b247c6cfe447a9d8faf83dfddb12
6
+ metadata.gz: c228bf5f39aca9fa1efbb889bbdf6f339c8874efe7b8669f94f11291219659dc7f8ff194bb3ff6b93b3513b5f67f04d9e9aa3d7be2ae480f9837378f85e68eab
7
+ data.tar.gz: e78f78984b046fb167a9f0ca6ef8b99be104b1f95648bd03863175b80517b342c4aed2cbaf1f39a5f24b286d299239de10f2e88ca786d70479e0a9899419c763
data/CHANGELOG.md CHANGED
@@ -3,6 +3,9 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  This project *tries* to adhere to [Semantic Versioning](http://semver.org/), even before v1.0.
5
5
 
6
+ ## [1.1.1]
7
+ - #6 from patchkit-net/feature/table-count: add Item.count
8
+
6
9
  ## [1.1.0]
7
10
  - Merge pull request #5 from tongueroo/fix-index-creation
8
11
  - fix index creation dsl among other things
data/README.md CHANGED
@@ -1,5 +1,7 @@
1
1
  # Dynomite
2
2
 
3
+ NOTE: Am looking for maintainers to help with this gem. Send me an email! Also [dynamoid](https://github.com/Dynamoid/dynamoid) seems like a good option that should be considered delegating to or straight using. Learning on delegation so we can have better default behavior for a DynamoDB model layer for Jets.
4
+
3
5
  A simple wrapper library to make DynamoDB usage a little more friendly. The modeling is ActiveRecord-ish but not exactly because DynamoDB is a different type of database. Examples below explain it best:
4
6
 
5
7
  ## Examples
data/lib/dynomite/item.rb CHANGED
@@ -288,5 +288,12 @@ module Dynomite
288
288
  @table_name = value
289
289
  end
290
290
 
291
+ def self.table
292
+ Aws::DynamoDB::Table.new(name: table_name, client: db)
293
+ end
294
+
295
+ def self.count
296
+ table.item_count
297
+ end
291
298
  end
292
299
  end
@@ -1,3 +1,3 @@
1
1
  module Dynomite
2
- VERSION = "1.1.0"
2
+ VERSION = "1.1.1"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dynomite
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tung Nguyen
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-01-08 00:00:00.000000000 Z
11
+ date: 2019-01-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport