annotate-sequel 1.0.0.pre2 → 1.0.0.pre3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9860a1340d37d88c5c994924f53959c1be6e5762
4
- data.tar.gz: aba95953fb03eb87fe7e63b78b94219db70def7b
3
+ metadata.gz: 545d296445a3fad58b153ede8c76b5c257424a9b
4
+ data.tar.gz: 48098e18043694db3ef384b2b3261f4b4cbdc73b
5
5
  SHA512:
6
- metadata.gz: ff0672e2ee130c3f59228035ff34776eb062f6dc26036952139126110ed22e9922c6834f9afdccc61cfa19df5e711a8c01a665dacefa762a065a55d64bcb420a
7
- data.tar.gz: 2c43fe16eb16f390d50789ae8cf00721c221ce37f4fda781326ecd270db175696fc50206231d466724aae6fe61f9465d8c4441e06e9c77c430b8abaf2722e307
6
+ metadata.gz: 4e287d306670a14b652e0ba9c72d2e817e01afe17a6b1bb9b2baebdb0e5f3eb6bef46903649c3c23797723f01351c6d4a5ea9d582663f19259ff7286b21326e5
7
+ data.tar.gz: 7c6f5ac1c5597aad4dc005c7a2bc93418157b564c45d9caf1c4778de552b698c0b5e665fbdc64c55c8f8c751b66b3db486544dd5ef70aa8496904212e07bccc2
data/README.rdoc CHANGED
@@ -6,34 +6,37 @@ A gem to annotate your Sequel models.
6
6
 
7
7
  The schema comment looks like this:
8
8
 
9
- # == Schema Info
10
- #
11
- # Table name: line_items
12
- #
13
- # id :integer(11) not null, primary key
14
- # quantity :integer(11) not null
15
- # product_id :integer(11) not null
16
- # unit_price :float
17
- # order_id :integer(11)
18
- #
19
-
20
- class LineItem < ActiveRecord::Base
21
- belongs_to :product
22
- . . .
9
+ # Schema Info
10
+ #
11
+ # Table name: items
12
+ #
13
+ # id :integer, {:allow_null=>false, :default=>nil, :primary_key=>true, :db_type=>"integer", :ruby_default=>nil}
14
+ # name :string, {:allow_null=>true, :default=>nil, :primary_key=>false, :db_type=>"varchar(255)", :ruby_default=>nil}
15
+ # price :float, {:allow_null=>true, :default=>nil, :primary_key=>false, :db_type=>"double precision", :ruby_default=>nil}
16
+ #
17
+
18
+ DB.create_table :items do
19
+ primary_key :id
20
+ String :name
21
+ Float :price
22
+ end
23
+
24
+ class Item < Sequel::Model(:items)
25
+ end
23
26
 
24
27
  == Install
25
28
 
26
29
  For the `Gemfile`
27
30
 
28
- gem 'annotate-sequel-models'
31
+ $ gem 'annotate-sequel'
29
32
 
30
33
  To install on your system
31
34
 
32
- gem install annotate-sequel-models
35
+ $ gem install annotate-sequel
33
36
 
34
37
  == Usage
35
38
 
36
- rake annotate:sequel
39
+ $ annotate
37
40
 
38
41
  == Contributing to annotate-sequel
39
42
 
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "annotate-sequel"
8
- s.version = "1.0.0.pre2"
8
+ s.version = "1.0.0.pre3"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new("> 1.3.1") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Kenny Meyer"]
data/bin/annotate CHANGED
@@ -1,16 +1,18 @@
1
1
  #!/usr/bin/env ruby
2
2
  require 'rubygems'
3
+ require 'annotate-sequel'
3
4
  begin
4
5
  require 'bundler'
5
6
  Bundler.setup
6
7
  rescue Exception => e
8
+ puts e.backtrace
7
9
  end
8
10
 
9
11
  here = File.expand_path(File.dirname __FILE__)
10
12
  $:<< "#{here}/../lib"
11
13
 
12
14
  target = {
13
- :klass => AnnotateSequel,
15
+ :klass => AnnotateSequel::Model,
14
16
  :task => :do_annotations,
15
17
  }
16
18
 
@@ -3,7 +3,7 @@ class AnnotateSequel
3
3
  MAJOR = 1
4
4
  MINOR = 0
5
5
  PATCH = 0
6
- BUILD = 'pre2'
6
+ BUILD = 'pre3'
7
7
 
8
8
  STRING = [MAJOR, MINOR, PATCH, BUILD].compact.join('.')
9
9
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: annotate-sequel
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0.pre2
4
+ version: 1.0.0.pre3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kenny Meyer