dynomite 1.2.3 → 1.2.4

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: ba0cab197e4c82a702171a78a2af524612fef3d51d4f42c0879d7b1940779efe
4
- data.tar.gz: a17d46ca50b8724a7f2d4593143f4362ca112845aeb7d9e28b4774f4aa768264
3
+ metadata.gz: 55dd0f93e12c5b18e5ae2d1997be0089e60024d4656e15720732b8d8da743d97
4
+ data.tar.gz: d8bf1232ace35602f896691af0e1036a31744adff2dec35b4eea7930c3c65ec6
5
5
  SHA512:
6
- metadata.gz: c205ab08ade2838e917c4fa083d059f08c26910c742c9039e9b6c4a7c86430149226bb22e6481d88bbd7cd2eab9eef8bff4021ef4b40b00d5a1d7ec0d2b0509d
7
- data.tar.gz: 3892ca684ddc538cf332420a9ec438ee33004084cef8192c6e4e1cca9c8a96a4c6823aef783cfd69de02f529e9c70605bcedc964170de1e061786c370fd0172e
6
+ metadata.gz: b16044c3d220c9e9a55634faf04a8d9c79a593377be323fca6a20ca9e7bbe8fa6e5e7c60c4f6bdebede938c420ed319272e62f75926c5937cb878714ba5ab2ea
7
+ data.tar.gz: c43283a308192ab948e78b278db6f465d162d291fb06ce56e6fccfbbdfa1225cf3cc98ca9c463a01a85aa83ab4b4f4ca5fffc786fce70410e3da68e32a803e88
@@ -3,6 +3,10 @@
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.2.4]
7
+ - #16 add rainbow gem dependency for colorize method
8
+ - #17 fix table names for models with namespaces
9
+
6
10
  ## [1.2.3]
7
11
  - #11 fix comments in dsl.rb
8
12
  - #13 update find method to support composite key
@@ -22,6 +22,7 @@ Gem::Specification.new do |spec|
22
22
 
23
23
  spec.add_dependency "activesupport"
24
24
  spec.add_dependency "aws-sdk-dynamodb"
25
+ spec.add_dependency "rainbow"
25
26
 
26
27
  spec.add_development_dependency "bundler"
27
28
  spec.add_development_dependency "rake"
@@ -1,5 +1,6 @@
1
1
  $:.unshift(File.expand_path("../", __FILE__))
2
2
  require "dynomite/version"
3
+ require "rainbow/ext/string"
3
4
 
4
5
  module Dynomite
5
6
  ATTRIBUTE_TYPES = {
@@ -306,7 +306,7 @@ module Dynomite
306
306
  end
307
307
 
308
308
  def self.get_table_name
309
- @table_name ||= self.name.pluralize.underscore
309
+ @table_name ||= self.name.pluralize.gsub('::','-').underscore.dasherize
310
310
  [table_namespace, @table_name].reject {|s| s.nil? || s.empty?}.join('-')
311
311
  end
312
312
 
@@ -1,3 +1,3 @@
1
1
  module Dynomite
2
- VERSION = "1.2.3"
2
+ VERSION = "1.2.4"
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.2.3
4
+ version: 1.2.4
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-11-11 00:00:00.000000000 Z
11
+ date: 2019-11-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -38,6 +38,20 @@ dependencies:
38
38
  - - ">="
39
39
  - !ruby/object:Gem::Version
40
40
  version: '0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: rainbow
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ">="
46
+ - !ruby/object:Gem::Version
47
+ version: '0'
48
+ type: :runtime
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ">="
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
41
55
  - !ruby/object:Gem::Dependency
42
56
  name: bundler
43
57
  requirement: !ruby/object:Gem::Requirement