easy_reference_data 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
data/ChangeLog CHANGED
@@ -1,3 +1,9 @@
1
+ 0.1.1 - 2012-11-15
2
+
3
+ Enhancements
4
+
5
+ * add extra output messages when creating/updating reference data
6
+
1
7
  0.1.0 - 2012-11-14
2
8
 
3
9
  Bug fixes
@@ -11,6 +11,12 @@ module Easy
11
11
  record.send "#{key}=", value
12
12
  end
13
13
 
14
+ if record.new_record?
15
+ puts " creating #{clazz}(#{unique_attribute_value})"
16
+ elsif record.changed?
17
+ puts " updating #{clazz}(#{unique_attribute_value})"
18
+ end
19
+
14
20
  begin
15
21
  record.save!
16
22
  rescue
@@ -1,5 +1,5 @@
1
1
  module Easy
2
2
  module ReferenceData
3
- VERSION = "0.1.0"
3
+ VERSION = "0.1.1"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: easy_reference_data
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: