mapfish 1.3.1 → 1.3.2

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.3.1
1
+ 1.3.2
data/init.rb CHANGED
@@ -1,8 +1 @@
1
- require 'geojson'
2
-
3
- # Load CoreExtensions
4
- Dir[File.join("#{File.dirname(__FILE__)}", 'lib', 'mapfish_core_extensions', '**', '*.rb')].each do |f|
5
- extension_module = f.sub(/(.*)(mapfish_core_extensions.*)\.rb/,'\2').classify.constantize
6
- base_module = f.sub(/(.*mapfish_core_extensions.)(.*)\.rb/,'\2').classify.constantize
7
- base_module.class_eval { include extension_module }
8
- end
1
+ require 'mapfish'
@@ -1 +1,3 @@
1
-
1
+ require 'geojson'
2
+ require 'mapfish_core_extensions/array.rb'
3
+ require 'mapfish_core_extensions/active_record/base.rb'
@@ -177,3 +177,9 @@ module MapfishCoreExtensions
177
177
  end
178
178
  end
179
179
  end
180
+
181
+ if defined? ActiveRecord
182
+ ActiveRecord::Base.class_eval do
183
+ include MapfishCoreExtensions::ActiveRecord::Base
184
+ end
185
+ end
@@ -29,3 +29,7 @@ module MapfishCoreExtensions
29
29
 
30
30
  end
31
31
  end
32
+
33
+ Array.class_eval do
34
+ include MapfishCoreExtensions::Array
35
+ end
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{mapfish}
8
- s.version = "1.3.1"
8
+ s.version = "1.3.2"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Pirmin Kalberer"]
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 1
7
7
  - 3
8
- - 1
9
- version: 1.3.1
8
+ - 2
9
+ version: 1.3.2
10
10
  platform: ruby
11
11
  authors:
12
12
  - Pirmin Kalberer