gollum_rails 1.0.5 → 1.0.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: 1dd1e54d072e792db90321826d56dfb77a87888b
4
- data.tar.gz: 4983659fb53d6af311077327c7ad9e4b26afc8a8
3
+ metadata.gz: 9efbb648b9aa7ad7dffc2e02d8af20698ece92d9
4
+ data.tar.gz: 0822fe4e135626b88d25078ecbc02fb06207db20
5
5
  SHA512:
6
- metadata.gz: 3bb47d054fc9c8d222afefdb420ce6e3ae68718bf87afb6a4abf53139f2b00f63ddd914a328d4b7dc25f40afd174a8b093cf2e3b53442202ead7ab85cc22d6e8
7
- data.tar.gz: 81720d04bd848724fa69988392e60db8bf62bcd7b526508440a1bf150dea6607946558ce905d428137686ce86a14ec9599a1109dceb3ffd5b183b0da69ce51b2
6
+ metadata.gz: 360e9669919ae31dfec11a9ad5ab7a902f20983b2e2de2448681b68130b467ee3a0b4c5467146a437441c0bdc8c48ec0436b6584eb9e2b2c8696d4d7fc7498b0
7
+ data.tar.gz: bca20d67aacf28cefd0e5217f9546d6c80199d0b0b2fa1eace6fae7a07a4d03d6d2c00fe627bfc415ed27fcfefe2f59d7adc01da79cdb17732bbb68c07bd76b8
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- gollum_rails (1.0.5)
4
+ gollum_rails (1.0.6)
5
5
  activemodel (>= 3.2.11)
6
6
  gollum-lib (~> 1.0.9)
7
7
 
data/HISTORY.md CHANGED
@@ -1,3 +1,6 @@
1
+ # 1.0.6 9th December 2013
2
+ * Rails 3 backwards compability
3
+
1
4
  # 1.4.5 6th November 2013
2
5
  * Updated Gollum-Lib version to 1.0.9
3
6
  * Updated Rails stuff to 4.0.1
data/gollum_rails.gemspec CHANGED
@@ -4,7 +4,7 @@ Gem::Specification.new do |s|
4
4
  s.name = 'gollum_rails'
5
5
  s.rubyforge_project = s.name
6
6
 
7
- s.version = '1.0.5'
7
+ s.version = '1.0.6'
8
8
 
9
9
  s.summary = 'Combines Gollum and Rails'
10
10
  s.description= 'include Gollum into Rails with ease'
data/lib/gollum_rails.rb CHANGED
@@ -20,7 +20,7 @@ module GollumRails
20
20
  autoload :Setup, 'gollum_rails/setup'
21
21
 
22
22
  # GollumRails version string
23
- VERSION = '1.0.5'
23
+ VERSION = '1.0.6'
24
24
 
25
25
  # Simplified error
26
26
  class Error < StandardError; end
@@ -16,26 +16,13 @@ module GollumRails
16
16
  #
17
17
  class Page
18
18
  extend ActiveModel::Naming
19
+ extend ActiveModel::Callbacks
20
+
19
21
  include ActiveModel::Conversion
20
22
  include ActiveModel::Validations
21
23
 
22
- # Callback for save
23
- define_model_callbacks :save
24
-
25
- # Callback for update
26
- define_model_callbacks :update
27
-
28
- # Callback for delete
29
- define_model_callbacks :delete
30
-
31
- # Callback for initialize
32
- define_model_callbacks :initialize
33
-
34
- # Callback for create
35
- define_model_callbacks :create
24
+ define_model_callbacks :save, :update, :delete, :initialize, :create, :commit
36
25
 
37
- # Callback for commit
38
- define_model_callbacks :commit
39
26
 
40
27
  # static
41
28
  class << self
@@ -120,7 +107,7 @@ module GollumRails
120
107
  if name =~ /^find_by_(name)$/
121
108
  self.find(args.first)
122
109
  else
123
- raise NoMethodError, "Method #{name} was not found"
110
+ raise NoMethodError, "undefined method `#{name}` for #{self}:#{self.class}"
124
111
  end
125
112
  end
126
113
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gollum_rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.5
4
+ version: 1.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Florian Kasper