magiclabs-userstamp 2.1.0 → 3.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: b4e70b4e78435726a3a05fd24a9d8a6da615be83
4
- data.tar.gz: 7d3dea09ccaef21dafaa8c47dbd15ae0fbba5c3c
3
+ metadata.gz: 42ffdd448ff6a56b80b38871d3f7689a0a6d5a7d
4
+ data.tar.gz: 255366c84ef49f6f67fc05d9b0fc05b518781b5d
5
5
  SHA512:
6
- metadata.gz: 26a9b90934a0d9c5c4ddb5834860cb7a88bbeb41923e5740133f74bded277a813945b7e40f41dd7e24fc74ec3f0187985bf6c9afa615c8be0bb13275171ba871
7
- data.tar.gz: bd0ca48484ddc04b7cafa0b48e6f2b41ef1f5c8bd96a1319e44ff5cde52a454b8b83d98b962bc5cbca33ca604bd5a36e334c9c0b01aedd76c050f28da71d176b
6
+ metadata.gz: 78d0225738e3ecff3de876443c8157031bd9c9afa4f906734e14deb99b2ed0a344605ea75edea4d1093461267e799542c951f7b079903645ea7d7b95bff50683
7
+ data.tar.gz: b4893662f94b9c2282079602c580db79ce5d2ec5ff4442b13cb15e7d0dea94a8a5cdc7290ca9c41fb4c70f4d7e7fcfee1d940f1e4ba8268036f72064238c7b51
data/CHANGELOG CHANGED
@@ -1,8 +1,13 @@
1
+ 3.0 (2016-09-13)
2
+
3
+ * Removed Rails < 4 support [Thomas von Deyen]
4
+ * Adds Rails 5 support [Thomas von Deyen]
5
+
1
6
  2.0 (2-17-2008)
2
7
  * [Ben Wyrosdick] - Added a migration helper that gives migration scripts a <tt>userstamps</tt>
3
8
  method.
4
9
  * [Marshall Roch] - Stamping can be temporarily turned off using the 'without_stamps' class
5
- method.
10
+ method.
6
11
  Example:
7
12
  Post.without_stamps do
8
13
  post = Post.find(params[:id])
data/Gemfile CHANGED
@@ -1,8 +1,8 @@
1
1
  source 'https://rubygems.org'
2
2
 
3
+ gemspec
4
+
3
5
  gem 'rake'
4
6
  gem 'redgreen'
5
- gem 'activerecord', :require => 'active_record'
6
- gem 'activesupport', :require => 'active_support'
7
- gem 'actionpack', :require => 'action_pack'
8
- gem 'sqlite3-ruby', :require => 'sqlite3'
7
+ gem 'activesupport'
8
+ gem 'sqlite3'
data/Rakefile CHANGED
@@ -1,6 +1,14 @@
1
- require 'rake'
1
+ #!/usr/bin/env rake
2
+
2
3
  require 'rake/testtask'
3
- require 'rake/rdoctask'
4
+
5
+ begin
6
+ require 'rdoc/task'
7
+ rescue LoadError
8
+ require 'rdoc/rdoc'
9
+ require 'rake/rdoctask'
10
+ RDoc::Task = Rake::RDocTask
11
+ end
4
12
 
5
13
  desc 'Default: run unit tests.'
6
14
  task :default => :test
@@ -13,7 +21,7 @@ Rake::TestTask.new(:test) do |t|
13
21
  end
14
22
 
15
23
  desc 'Generate documentation for the userstamp plugin.'
16
- Rake::RDocTask.new(:rdoc) do |rdoc|
24
+ RDoc::Task.new(:rdoc) do |rdoc|
17
25
  rdoc.rdoc_dir = 'rdoc'
18
26
  rdoc.title = 'Userstamp'
19
27
  rdoc.options << '--line-numbers' << '--inline-source'
@@ -9,15 +9,15 @@ This fork has been created to combine the grosser changes that enable use of the
9
9
 
10
10
  This fork also includes changes to perform the model stamping before validation is performed so that the model can enforce the presence of stamp attribute values eg.
11
11
 
12
- validates :created_by, :presence => true
13
- validates :updated_by, :presence => true
12
+ validates :created_by, presence: true
13
+ validates :updated_by, presence: true
14
14
 
15
15
 
16
16
  == Using the Fork
17
17
 
18
18
  To use this fork add the following to your application gemfile:
19
19
 
20
- gem 'userstamp', :git => "git://github.com/insphire/userstamp.git"
20
+ gem 'magiclabs-userstamp', github: 'magiclabs/userstamp'
21
21
 
22
22
 
23
23
  == Overview
data/VERSION CHANGED
@@ -1 +1 @@
1
- 2.1.0
1
+ 3.0
@@ -18,8 +18,8 @@ module Ddb
18
18
  module Userstamp
19
19
  def self.included(base) # :nodoc:
20
20
  base.send :include, InstanceMethods
21
- base.before_filter :set_stamper
22
- base.after_filter :reset_stamper
21
+ base.before_action :set_stamper
22
+ base.after_action :reset_stamper
23
23
  end
24
24
 
25
25
  module InstanceMethods
@@ -49,4 +49,4 @@ module Ddb
49
49
  end
50
50
  end
51
51
 
52
- ActionController::Base.send(:include, Ddb::Controller) if defined?(ActionController)
52
+ ActionController::Base.send(:include, Ddb::Controller) if defined?(ActionController)
@@ -70,6 +70,9 @@ Gem::Specification.new do |s|
70
70
  s.require_paths = ["lib"]
71
71
  s.rubygems_version = "1.8.11"
72
72
 
73
+ s.add_runtime_dependency 'actionpack', '>= 4.0'
74
+ s.add_runtime_dependency 'activerecord', '>= 4.0'
75
+
73
76
  if s.respond_to? :specification_version then
74
77
  s.specification_version = 3
75
78
 
@@ -79,4 +82,3 @@ Gem::Specification.new do |s|
79
82
  else
80
83
  end
81
84
  end
82
-
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: magiclabs-userstamp
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.0
4
+ version: '3.0'
5
5
  platform: ruby
6
6
  authors:
7
7
  - DeLynn Berry
@@ -9,8 +9,36 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2014-03-27 00:00:00.000000000 Z
13
- dependencies: []
12
+ date: 2016-09-13 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: actionpack
16
+ requirement: !ruby/object:Gem::Requirement
17
+ requirements:
18
+ - - ">="
19
+ - !ruby/object:Gem::Version
20
+ version: '4.0'
21
+ type: :runtime
22
+ prerelease: false
23
+ version_requirements: !ruby/object:Gem::Requirement
24
+ requirements:
25
+ - - ">="
26
+ - !ruby/object:Gem::Version
27
+ version: '4.0'
28
+ - !ruby/object:Gem::Dependency
29
+ name: activerecord
30
+ requirement: !ruby/object:Gem::Requirement
31
+ requirements:
32
+ - - ">="
33
+ - !ruby/object:Gem::Version
34
+ version: '4.0'
35
+ type: :runtime
36
+ prerelease: false
37
+ version_requirements: !ruby/object:Gem::Requirement
38
+ requirements:
39
+ - - ">="
40
+ - !ruby/object:Gem::Version
41
+ version: '4.0'
14
42
  description: This gem extends ActiveRecord::Base to add automatic updating of created_by
15
43
  and updated_by attributes of your models in much the same way that the ActiveRecord::Timestamp
16
44
  module updates created_(at/on) and updated_(at/on) attributes.
@@ -81,19 +109,18 @@ require_paths:
81
109
  - lib
82
110
  required_ruby_version: !ruby/object:Gem::Requirement
83
111
  requirements:
84
- - - '>='
112
+ - - ">="
85
113
  - !ruby/object:Gem::Version
86
114
  version: '0'
87
115
  required_rubygems_version: !ruby/object:Gem::Requirement
88
116
  requirements:
89
- - - '>='
117
+ - - ">="
90
118
  - !ruby/object:Gem::Version
91
119
  version: '0'
92
120
  requirements: []
93
121
  rubyforge_project:
94
- rubygems_version: 2.1.11
122
+ rubygems_version: 2.6.4
95
123
  signing_key:
96
124
  specification_version: 3
97
125
  summary: Adds magic creator and updater attributes to your ActiveRecord models.
98
126
  test_files: []
99
- has_rdoc: