randomizr 1.0.0 → 1.1.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,5 +1,5 @@
1
1
  require "randomizr/version"
2
- require "activerecord"
2
+ require "active_record"
3
3
 
4
4
  # http://paulbarry.com/articles/2009/08/30/active-record-random
5
5
  class ActiveRecord::Base
@@ -1,3 +1,3 @@
1
1
  module Randomizr
2
- VERSION = "1.0.0"
2
+ VERSION = "1.1.0"
3
3
  end
@@ -12,8 +12,10 @@ Gem::Specification.new do |s|
12
12
  s.description = %q{Returns one random Active Record object using cross-platform ANSI compliant SQL}
13
13
 
14
14
  s.rubyforge_project = "randomizr"
15
-
16
- s.add_dependency('activerecord', '>= 2.1', '< 4')
15
+
16
+ # I am not adding activerecord as a dependency, since it comes with likely unwanted deps itself
17
+ # e.g. when you're still on Rails 2 it will install activemodel 3 and arel 2, so best leave this out.
18
+ # s.add_dependency('activerecord', '>= 2.1', '< 4')
17
19
 
18
20
  s.files = `git ls-files`.split("\n")
19
21
  s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: randomizr
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 1.0.0
5
+ version: 1.1.0
6
6
  platform: ruby
7
7
  authors:
8
8
  - Joost Baaij
@@ -12,21 +12,8 @@ cert_chain: []
12
12
 
13
13
  date: 2011-08-03 00:00:00 +02:00
14
14
  default_executable:
15
- dependencies:
16
- - !ruby/object:Gem::Dependency
17
- name: activerecord
18
- prerelease: false
19
- requirement: &id001 !ruby/object:Gem::Requirement
20
- none: false
21
- requirements:
22
- - - ">="
23
- - !ruby/object:Gem::Version
24
- version: "2.1"
25
- - - <
26
- - !ruby/object:Gem::Version
27
- version: "4"
28
- type: :runtime
29
- version_requirements: *id001
15
+ dependencies: []
16
+
30
17
  description: Returns one random Active Record object using cross-platform ANSI compliant SQL
31
18
  email:
32
19
  - joost@spacebabies.nl