draftsman 0.3.5 → 0.3.6

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: b6b70094474d8a0757c0b6dbf2eda0b44ad23a6c
4
- data.tar.gz: efb35b92ed79310bf131ca6a662b65350500dc47
3
+ metadata.gz: 960fc9d2b1792d584f3e47c2b403ba36283b94e8
4
+ data.tar.gz: c8db52c8059ee96b62a7a83c32fae54b9e0ed8b6
5
5
  SHA512:
6
- metadata.gz: 0387972bd595b8b5229f7ed2b72aa718b5a15245c1942b2197ef7a600d6a29c4e8c8d54af8ccb80c48371f0e927d5a52539fc9ec82be9715bcd79a2deeb4f473
7
- data.tar.gz: 33a3fcf0f5abb3953231993d44edafed69efedd2379db307bde1a98ea1a1c65149275a5704af867cb16fe49c97969a0616af6c8851356e6ac8229f5ff663d374
6
+ metadata.gz: 6608027eaeb64125d62070c83bd4b210075c05d12571e5e306eb4fb67569ff88247b63988f3d9595435df00c0cbe8af09aeeeb0ec0da88fd29bc641a45b7720d
7
+ data.tar.gz: 9d888f02c11178a3c2717fc3b40a141d8d8e66e7b96100ac76e8bb1f8c7c30f70d1f4c37d4880d863d7bdaa2393dca85990c262c7e494e2c065baf423cebcc46
@@ -1,5 +1,11 @@
1
1
  # CHANGELOG
2
2
 
3
+ ## 0.3.6 - August 16, 2015
4
+
5
+ - [@chrisdpeters](https://github.com/chrisdpeters)
6
+ [Fixed](https://github.com/liveeditor/draftsman/commit/971b3d945e9190fbb103acac09c9d006db7a2a31) -
7
+ Fix loading of Rails controller module for Rails 4.2+
8
+
3
9
  ## 0.3.5 - July 12, 2015
4
10
 
5
11
  - [@npafundi](https://github.com/npafundi)
data/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # Draftsman v0.3.5 (alpha)
1
+ # Draftsman v0.3.6 (alpha)
2
2
 
3
3
  Draftsman is a Ruby gem that lets you create draft versions of your database records. If you're developing a system in
4
4
  need of simple drafts or a publishing approval queue, then Draftsman just might be what you need.
@@ -50,13 +50,13 @@ Works well with Rails, Sinatra, or any other application that depends on ActiveR
50
50
  Add Draftsman to your `Gemfile`.
51
51
 
52
52
  ```ruby
53
- gem 'draftsman', '0.3.1'
53
+ gem 'draftsman', '0.3.6'
54
54
  ```
55
55
 
56
56
  Or if you want to grab the latest from `master`:
57
57
 
58
58
  ```ruby
59
- gem 'draftsman', :github => 'live-editor/draftsman'
59
+ gem 'draftsman', :github => 'liveeditor/draftsman'
60
60
  ```
61
61
 
62
62
  Generate a migration which will add a `drafts` table to your database.
@@ -3,9 +3,7 @@ module Draftsman
3
3
  module Controller
4
4
 
5
5
  def self.included(base)
6
- if defined?(ActionController) && base == ActionController::Base
7
- base.before_filter :set_draftsman_whodunnit, :set_draftsman_controller_info
8
- end
6
+ base.before_filter :set_draftsman_whodunnit, :set_draftsman_controller_info
9
7
  end
10
8
 
11
9
  protected
@@ -55,4 +53,8 @@ module Draftsman
55
53
 
56
54
  end
57
55
  end
56
+
57
+ if defined?(::ActionController)
58
+ ::ActiveSupport.on_load(:action_controller) { include Draftsman::Rails::Controller }
59
+ end
58
60
  end
@@ -1,3 +1,3 @@
1
1
  module Draftsman
2
- VERSION = '0.3.5'
2
+ VERSION = '0.3.6'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: draftsman
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.5
4
+ version: 0.3.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chris Peters
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-07-12 00:00:00.000000000 Z
11
+ date: 2015-08-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord