fixed_point_field 1.0 → 1.1

Sign up to get free protection for your applications and to get access to all the features.
data/Rakefile CHANGED
@@ -1,8 +1,3 @@
1
- begin
2
- require File.join(File.dirname(__FILE__), '..', '..', '..', 'config', 'environment')
3
- rescue LoadError
4
- raise "Please test from within your rails application: Unable to load environment.rb"
5
- end
6
1
  require 'rake'
7
2
  require 'rake/testtask'
8
3
  require 'rake/rdoctask'
File without changes
@@ -1,13 +1,13 @@
1
- # this doesn't stand alone, load rails
2
- unless defined?(RAILS_ROOT)
3
- ENV['RAILS_ENV'] = 'test'
4
- begin
5
- require File.join(File.dirname(__FILE__), '..', '..', '..', '..', 'config', 'environment')
6
- rescue
7
- raise "Please test from within your rails app vendor/plugins/THISPLUGIN: Unable to load config/environment.rb"
8
- end
1
+ begin
2
+ require 'active_record'
3
+ rescue LoadError
4
+ require 'rubygems'
5
+ require 'active_record'
9
6
  end
10
7
 
8
+ $: << File.join(File.dirname(__FILE__), '..', 'lib')
9
+ require File.join(File.dirname(__FILE__), '..', 'init.rb')
10
+
11
11
  begin
12
12
  require 'mocha'
13
13
  rescue LoadError
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fixed_point_field
3
3
  version: !ruby/object:Gem::Version
4
- version: "1.0"
4
+ version: "1.1"
5
5
  platform: ruby
6
6
  authors:
7
7
  - Todd Willey <todd@rubidine.com>
@@ -24,7 +24,7 @@ extra_rdoc_files:
24
24
  files:
25
25
  - README
26
26
  - Rakefile
27
- - init.rb
27
+ - rails/init.rb
28
28
  - lib/fixed_point_field.rb
29
29
  - tasks/fixed_point_field_tasks.rake
30
30
  - test/fixed_point_field_test.rb