machinist_callbacks 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
data/README.rdoc CHANGED
@@ -29,18 +29,26 @@ enabling more freedom in your construction rules.
29
29
  == Does it work with make_unsaved?
30
30
 
31
31
  Yes. Machinist is built in a way that every <tt>make</tt> in your callback implicitely becomes a <tt>make_unsaved</tt>
32
- when an object graph is created with <tt>make_unsaved</tt>. Just do not <tt>save</tt> records manually in your callbacks
33
- because that would be crazy.
32
+ when an object graph is created with <tt>make_unsaved</tt>.
34
33
 
35
- == Installation
36
34
 
37
- Install the gem:
35
+ == Installation and setup
36
+
37
+ You can install the gem with
38
38
  sudo gem install machinist_callbacks
39
39
 
40
- Require the gem after requiring machinist in your <tt>environment.rb</tt>:
41
- config.gem 'machinist'
40
+ In Rails 2, add the following to your <tt>environment.rb</tt>:
42
41
  config.gem 'machinist_callbacks'
43
42
 
43
+ In Rails 3, add the following to your <tt>Gemfile</tt>:
44
+ gem 'machinist_callbacks'
45
+
46
+
47
+ == Rails 3 compatibility
48
+
49
+ We cannot guarantee Rails 3 compatibility at this point, but we will upgrade the gem when Rails 3 is released.
50
+
51
+
44
52
  === Credits
45
53
 
46
54
  Henning Koch
data/Rakefile CHANGED
@@ -30,6 +30,7 @@ begin
30
30
  gemspec.homepage = "http://github.com/makandra/machinist_callbacks"
31
31
  gemspec.description = "Callback hooks for machinist blueprints"
32
32
  gemspec.authors = ["Henning Koch"]
33
+ gemspec.add_dependency 'machinist'
33
34
  end
34
35
  rescue LoadError
35
36
  puts "Jeweler not available. Install it with: sudo gem install jeweler"
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.0
1
+ 0.1.1
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{machinist_callbacks}
8
- s.version = "0.1.0"
8
+ s.version = "0.1.1"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Henning Koch"]
12
- s.date = %q{2010-06-20}
12
+ s.date = %q{2010-06-23}
13
13
  s.description = %q{Callback hooks for machinist blueprints}
14
14
  s.email = %q{github@makandra.de}
15
15
  s.extra_rdoc_files = [
@@ -80,8 +80,11 @@ Gem::Specification.new do |s|
80
80
  s.specification_version = 3
81
81
 
82
82
  if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
83
+ s.add_runtime_dependency(%q<machinist>, [">= 0"])
83
84
  else
85
+ s.add_dependency(%q<machinist>, [">= 0"])
84
86
  end
85
87
  else
88
+ s.add_dependency(%q<machinist>, [">= 0"])
86
89
  end
87
90
  end
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 1
8
- - 0
9
- version: 0.1.0
8
+ - 1
9
+ version: 0.1.1
10
10
  platform: ruby
11
11
  authors:
12
12
  - Henning Koch
@@ -14,10 +14,21 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2010-06-20 00:00:00 +02:00
17
+ date: 2010-06-23 00:00:00 +02:00
18
18
  default_executable:
19
- dependencies: []
20
-
19
+ dependencies:
20
+ - !ruby/object:Gem::Dependency
21
+ name: machinist
22
+ prerelease: false
23
+ requirement: &id001 !ruby/object:Gem::Requirement
24
+ requirements:
25
+ - - ">="
26
+ - !ruby/object:Gem::Version
27
+ segments:
28
+ - 0
29
+ version: "0"
30
+ type: :runtime
31
+ version_requirements: *id001
21
32
  description: Callback hooks for machinist blueprints
22
33
  email: github@makandra.de
23
34
  executables: []