gimme_a_break 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. data/README.rdoc +6 -2
  2. data/Rakefile +16 -5
  3. data/gimme_a_break.gemspec +13 -1
  4. metadata +16 -3
data/README.rdoc CHANGED
@@ -29,13 +29,17 @@ getting overloaded, reduce the timeout.
29
29
 
30
30
  == Prerequisites
31
31
 
32
- Your model needs to have a created_at column for this to work.
32
+ Your model needs to have a created_at column for this to work. An index on it is highly recommended.
33
33
 
34
34
 
35
35
  == Installation
36
36
 
37
37
  ruby script/plugin install git://github.com/tilsammans/gimme_a_break
38
38
 
39
+ or in your Gemfile:
40
+
41
+ gem 'gimme_a_break'
42
+
39
43
 
40
44
  == Examples
41
45
 
@@ -48,4 +52,4 @@ Your model needs to have a created_at column for this to work.
48
52
  end
49
53
 
50
54
 
51
- Copyright (c) 2010 Joost Baaij, released under the MIT license
55
+ Copyright (c) 2011 Joost Baaij, released under the MIT license
data/Rakefile CHANGED
@@ -3,10 +3,21 @@ require 'rubygems'
3
3
  require 'rake'
4
4
  require 'echoe'
5
5
 
6
- Echoe.new('gimme_a_break', '0.1.0') do |p|
7
- p.summary = "Throttle ActiveRecord creation"
8
- p.url = "http://github.com/tilsammans/gimme_a_break"
9
- p.author = "Joost Baaij"
10
- p.email = "joost@spacebabies.nl"
6
+ Echoe.new('gimme_a_break', '0.1.1') do |p|
7
+ p.summary = "Throttle ActiveRecord creation"
8
+ p.url = "http://github.com/tilsammans/gimme_a_break"
9
+ p.author = "Joost Baaij"
10
+ p.email = "joost@spacebabies.nl"
11
+ p.install_message = <<-EOM
12
+
13
+ *****************************************************
14
+ gimme_a_break installed.
15
+
16
+ Make sure your models have a created_at column.
17
+ Adding an index to this column is highly recommended.
18
+ *****************************************************
19
+
20
+ EOM
21
+ p.runtime_dependencies = ["activerecord"]
11
22
  p.development_dependencies = []
12
23
  end
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{gimme_a_break}
5
- s.version = "0.1.0"
5
+ s.version = "0.1.1"
6
6
 
7
7
  s.required_rubygems_version = Gem::Requirement.new(">= 1.2") if s.respond_to? :required_rubygems_version=
8
8
  s.authors = [%q{Joost Baaij}]
@@ -12,6 +12,15 @@ Gem::Specification.new do |s|
12
12
  s.extra_rdoc_files = [%q{README.rdoc}, %q{lib/gimme_a_break.rb}]
13
13
  s.files = [%q{MIT-LICENSE}, %q{README.rdoc}, %q{Rakefile}, %q{init.rb}, %q{lib/gimme_a_break.rb}, %q{Manifest}, %q{gimme_a_break.gemspec}]
14
14
  s.homepage = %q{http://github.com/tilsammans/gimme_a_break}
15
+ s.post_install_message = %q{
16
+ *****************************************************
17
+ gimme_a_break installed.
18
+
19
+ Make sure your models have a created_at column.
20
+ Adding an index to this column is highly recommended.
21
+ *****************************************************
22
+
23
+ }
15
24
  s.rdoc_options = [%q{--line-numbers}, %q{--inline-source}, %q{--title}, %q{Gimme_a_break}, %q{--main}, %q{README.rdoc}]
16
25
  s.require_paths = [%q{lib}]
17
26
  s.rubyforge_project = %q{gimme_a_break}
@@ -22,8 +31,11 @@ Gem::Specification.new do |s|
22
31
  s.specification_version = 3
23
32
 
24
33
  if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
34
+ s.add_runtime_dependency(%q<activerecord>, [">= 0"])
25
35
  else
36
+ s.add_dependency(%q<activerecord>, [">= 0"])
26
37
  end
27
38
  else
39
+ s.add_dependency(%q<activerecord>, [">= 0"])
28
40
  end
29
41
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gimme_a_break
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -10,7 +10,18 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
  date: 2011-07-20 00:00:00.000000000Z
13
- dependencies: []
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: activerecord
16
+ requirement: &2153305480 !ruby/object:Gem::Requirement
17
+ none: false
18
+ requirements:
19
+ - - ! '>='
20
+ - !ruby/object:Gem::Version
21
+ version: '0'
22
+ type: :runtime
23
+ prerelease: false
24
+ version_requirements: *2153305480
14
25
  description: Throttle ActiveRecord creation
15
26
  email: joost@spacebabies.nl
16
27
  executables: []
@@ -28,7 +39,9 @@ files:
28
39
  - gimme_a_break.gemspec
29
40
  homepage: http://github.com/tilsammans/gimme_a_break
30
41
  licenses: []
31
- post_install_message:
42
+ post_install_message: ! " \n *****************************************************\n
43
+ \ gimme_a_break installed.\n\n Make sure your models have a created_at column.\n
44
+ \ Adding an index to this column is highly recommended.\n *****************************************************\n\n"
32
45
  rdoc_options:
33
46
  - --line-numbers
34
47
  - --inline-source