has_changelogs 0.1.1 → 0.2.0

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
  SHA1:
3
- metadata.gz: 5e243805eb29cad2c09fa3b8a01ca4c6a277a420
4
- data.tar.gz: 3f2d35a05a61230371adb75f8f95538f92f6bfd5
3
+ metadata.gz: 962652aadbf1928e4452b6468ad4a7b5a5a84a74
4
+ data.tar.gz: d4821a5234c522800f90d96b4998fca43dea7cb5
5
5
  SHA512:
6
- metadata.gz: 44d42555b52a03a298f58bfbc99bc32c08d7da18b8bbd3d8ebe53cda207163386dc10b01916c95feae5ec7f9a2bf0fb8a679d331768822ab7cf94bea0e27c496
7
- data.tar.gz: 45547aa24392c0e49f28afc2190a86c4113ca29ff75678882d7da338d80661908288b6d9c12b095052caa5b46501e95482ef643b8d15ce897df052f55a33269c
6
+ metadata.gz: 3cd4a65750b6034c858608d543d160f4c8a6d790f4b2cd4ad56ad75a0ed6dc2695b55dc5019e0dc477666fd1315f41b8200bcf95e604efa6cb6fc87291d72d75
7
+ data.tar.gz: 939fd8a171e795051a304edf98879d2398cbe4d736cf031d306a6904b59a73b114b59d5cae48bf12f6d5dc62a63deaca48e8b9784c60d3a1b4b2e215f47e0194
@@ -1,6 +1,6 @@
1
1
  The MIT License (MIT)
2
2
 
3
- Copyright (c) 2015 TODO: Write your name
3
+ Copyright (c) 2015 bitcrowd GmbH
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # HasChangelogs
2
2
 
3
- has_changelogs tracks changes on a model and it's associations for applications that need to have change history. The version is however, 0.1.0, so use at your own perril.
3
+ has_changelogs tracks changes on a model and it's associations for applications that need to have change history. The version is however, 0.2.0, so use at your own perril.
4
4
 
5
5
  Especially a generator for the changelog model is missing - see /spec/fixtures/active_record/changelog.rb for it.
6
6
 
@@ -81,7 +81,8 @@ module HasChangelogs
81
81
  defaults = {
82
82
  log_scope: log_scope,
83
83
  changed_data: log_data,
84
- log_origin: log_origin }
84
+ log_origin: log_origin,
85
+ log_metadata: log_metadata }
85
86
 
86
87
  changelog_association.create(defaults.merge options)
87
88
  end
@@ -102,6 +103,10 @@ module HasChangelogs
102
103
  self.class.to_s
103
104
  end
104
105
 
106
+ def log_metadata
107
+ {}
108
+ end
109
+
105
110
  def changelog_association
106
111
  logged_model.send changelog_association_name
107
112
  end
@@ -1,3 +1,3 @@
1
1
  module HasChangelogs
2
- VERSION = "0.1.1"
2
+ VERSION = "0.2.0"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: has_changelogs
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Elizabeth Brae
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2015-10-06 00:00:00.000000000 Z
12
+ date: 2015-11-20 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: activesupport
@@ -152,7 +152,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
152
152
  version: '0'
153
153
  requirements: []
154
154
  rubyforge_project:
155
- rubygems_version: 2.4.5.1
155
+ rubygems_version: 2.2.2
156
156
  signing_key:
157
157
  specification_version: 4
158
158
  summary: has_changelogs tracks changes on a model and it's associations for applications