dynomite 1.2.4 → 1.2.5

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,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 55dd0f93e12c5b18e5ae2d1997be0089e60024d4656e15720732b8d8da743d97
4
- data.tar.gz: d8bf1232ace35602f896691af0e1036a31744adff2dec35b4eea7930c3c65ec6
3
+ metadata.gz: 072c41d0f02a3e4dd4deb32833b529b20fc6474c180d1b6fce3a1eda96a61ec4
4
+ data.tar.gz: a48afff5180b25ba7e7cba2ab7183ddc76741e4265c75bfd13a4b354f378b48b
5
5
  SHA512:
6
- metadata.gz: b16044c3d220c9e9a55634faf04a8d9c79a593377be323fca6a20ca9e7bbe8fa6e5e7c60c4f6bdebede938c420ed319272e62f75926c5937cb878714ba5ab2ea
7
- data.tar.gz: c43283a308192ab948e78b278db6f465d162d291fb06ce56e6fccfbbdfa1225cf3cc98ca9c463a01a85aa83ab4b4f4ca5fffc786fce70410e3da68e32a803e88
6
+ metadata.gz: c515b49750e8d8b27f03201ba7554d3918375667ccac98e96f3b80d273931fed8827d518d48244ab4f6dd4bcc92c557e2311966b00903ebaaa9d3ab126e19ba9
7
+ data.tar.gz: 406d3b81391f5718b77a6e6b6b210d3ae3d9411111658a04a2d654e6a9209fc281101b9774384f5576f35884f5264f4148409710e5467a53cbeb8f04c686633a
@@ -3,8 +3,11 @@
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.5]
7
+ - use correct color method
8
+
6
9
  ## [1.2.4]
7
- - #16 add rainbow gem dependency for colorize method
10
+ - #16 add rainbow gem dependency for color method
8
11
  - #17 fix table names for models with namespaces
9
12
 
10
13
  ## [1.2.3]
@@ -26,7 +26,7 @@ class Dynomite::Erb
26
26
  error_info ||= e.backtrace.grep(/\(erb\)/)[0]
27
27
  raise unless error_info # unable to find the (erb):xxx: error line
28
28
  line = error_info.split(':')[1].to_i
29
- log "Error evaluating ERB template on line #{line.to_s.colorize(:red)} of: #{path.sub(/^\.\//, '').colorize(:green)}"
29
+ log "Error evaluating ERB template on line #{line.to_s.color(:red)} of: #{path.sub(/^\.\//, '').color(:green)}"
30
30
 
31
31
  template_lines = template.split("\n")
32
32
  context = 5 # lines of context
@@ -35,7 +35,7 @@ class Dynomite::Erb
35
35
  template_lines[top..bottom].each_with_index do |line_content, index|
36
36
  line_number = top+index+1
37
37
  if line_number == line
38
- printf("%#{spacing}d %s\n".colorize(:red), line_number, line_content)
38
+ printf("%#{spacing}d %s\n".color(:red), line_number, line_content)
39
39
  else
40
40
  printf("%#{spacing}d %s\n", line_number, line_content)
41
41
  end
@@ -31,7 +31,7 @@ class Dynomite::Migration
31
31
 
32
32
  puts "DynamoDB Table: #{@table_name} Status: #{result.table_description.table_status}"
33
33
  rescue Aws::DynamoDB::Errors::ServiceError => error
34
- puts "Unable to #{@method_name.to_s.gsub('_',' ')}: #{error.message}".colorize(:red)
34
+ puts "Unable to #{@method_name.to_s.gsub('_',' ')}: #{error.message}".color(:red)
35
35
  end
36
36
  end
37
37
  end
@@ -1,3 +1,3 @@
1
1
  module Dynomite
2
- VERSION = "1.2.4"
2
+ VERSION = "1.2.5"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dynomite
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.4
4
+ version: 1.2.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tung Nguyen