dm-gen 0.4.1 → 0.4.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/CHANGELOG.rdoc CHANGED
@@ -1,3 +1,24 @@
1
+ === 0.4.2 / 2009-11-06
2
+
3
+ * Updated is plugin generator
4
+ * Fixed rdoc generation
5
+ * Updated this changelog
6
+ * Fixed README
7
+
8
+ === 0.4.1 / 2009-11-06
9
+
10
+ * Updated one_file output
11
+ * Updated summary and description
12
+ * Moved to gemcutter
13
+
14
+ === 0.4.0 / 2009-09-02
15
+
16
+ * Generally fixed up dm-gen's layout to become a better 'gem citizen'
17
+
18
+ === 0.3.1 / 2009-08-30
19
+
20
+ * Requiring latest templater
21
+
1
22
  === 0.3.0 / 2009-07-10
2
23
 
3
24
  * Updated dm version to 0.10.0
data/README.rdoc CHANGED
@@ -40,7 +40,7 @@ adaptor API.
40
40
  dm-gen adapter example
41
41
 
42
42
  NB: This generates adapters with the 0.10.x API NOT the 0.9.x API. So make sure
43
- you're running DM from the next branch, or from http://gems.datamapper.org/
43
+ you're running a recent DataMapper release.
44
44
 
45
45
  == COPYRIGHT
46
46
 
@@ -1,20 +1,8 @@
1
- # Needed to import datamapper and other gems
2
- require 'rubygems'
3
- require 'pathname'
4
-
5
1
  # Add all external dependencies for the plugin here
6
- gem 'dm-core', '~> <%= DMGen::DM_VERSION %>'
7
- require 'dm-core'
2
+ # require 'dm-core' - this can probably be assumed.
8
3
 
9
4
  # Require plugin-files
10
- require Pathname(__FILE__).dirname.expand_path / '<%= gem_name %>' / 'is' / '<%= snake_name %>.rb'
11
-
5
+ require '<%= gem_name %>/is/<%= snake_name %>.rb'
12
6
 
13
- # Include the plugin in Resource
14
- module DataMapper
15
- module Resource
16
- module ClassMethods
17
- include DataMapper::Is::<%= class_name %>
18
- end # module ClassMethods
19
- end # module Resource
20
- end # module DataMapper
7
+ # Include the plugin in DM models
8
+ DataMapper::Model.append_extensions DataMapper::Is::<%= class_name %>
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dm-gen
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.1
4
+ version: 0.4.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jonathan Stott
@@ -83,7 +83,14 @@ licenses: []
83
83
 
84
84
  post_install_message:
85
85
  rdoc_options:
86
- - --charset=UTF-8
86
+ - --exclude
87
+ - lib/dm-gen/templates
88
+ - --title
89
+ - dm-gen
90
+ - --line-numbers
91
+ - --inline-source
92
+ - --main
93
+ - README.rdoc
87
94
  require_paths:
88
95
  - lib
89
96
  required_ruby_version: !ruby/object:Gem::Requirement