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 +4 -4
- data/CHANGELOG.md +4 -1
- data/lib/dynomite/erb.rb +2 -2
- data/lib/dynomite/migration/executor.rb +1 -1
- data/lib/dynomite/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 072c41d0f02a3e4dd4deb32833b529b20fc6474c180d1b6fce3a1eda96a61ec4
|
4
|
+
data.tar.gz: a48afff5180b25ba7e7cba2ab7183ddc76741e4265c75bfd13a4b354f378b48b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c515b49750e8d8b27f03201ba7554d3918375667ccac98e96f3b80d273931fed8827d518d48244ab4f6dd4bcc92c557e2311966b00903ebaaa9d3ab126e19ba9
|
7
|
+
data.tar.gz: 406d3b81391f5718b77a6e6b6b210d3ae3d9411111658a04a2d654e6a9209fc281101b9774384f5576f35884f5264f4148409710e5467a53cbeb8f04c686633a
|
data/CHANGELOG.md
CHANGED
@@ -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
|
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]
|
data/lib/dynomite/erb.rb
CHANGED
@@ -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.
|
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".
|
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}".
|
34
|
+
puts "Unable to #{@method_name.to_s.gsub('_',' ')}: #{error.message}".color(:red)
|
35
35
|
end
|
36
36
|
end
|
37
37
|
end
|
data/lib/dynomite/version.rb
CHANGED