reservation 0.0.3 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -23,6 +23,10 @@ Or install it yourself as:
23
23
 
24
24
  ## Usage
25
25
 
26
+ First of all migrate your schema so you have the necessary tables -
27
+
28
+ rails g reservation:migration
29
+
26
30
  Objects associated with an event are called "subjects"; each event has many subjects, via an association
27
31
  model called Reservation::Reservation. The simplest way to create a bunch of events is to use Event#create_weekly.
28
32
  This will create a set of events, with the given subjects, within the given constraints, repeating weekly.
@@ -0,0 +1,8 @@
1
+ Description:
2
+ Explain the generator
3
+
4
+ Example:
5
+ rails generate migration Thing
6
+
7
+ This will create:
8
+ what/will/it/create
@@ -1,8 +1,7 @@
1
-
2
1
  require 'rails/generators'
3
2
  require 'rails/generators/migration'
4
3
 
5
- class ReservationsGenerator < Rails::Generators::Base
4
+ class Reservation::MigrationGenerator < Rails::Generators::Base
6
5
  include Rails::Generators::Migration
7
6
 
8
7
  def self.source_root
@@ -1,3 +1,3 @@
1
1
  module Reservation
2
- VERSION = "0.0.3"
2
+ VERSION = "0.0.4"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: reservation
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-07-15 00:00:00.000000000 Z
12
+ date: 2013-07-16 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails
@@ -105,8 +105,9 @@ files:
105
105
  - MIT-LICENSE
106
106
  - README.md
107
107
  - Rakefile
108
- - lib/generators/reservation/reservations_generator.rb
109
- - lib/generators/reservation/templates/migration.rb
108
+ - lib/generators/reservation/migration/USAGE
109
+ - lib/generators/reservation/migration/migration_generator.rb
110
+ - lib/generators/reservation/migration/templates/migration.rb
110
111
  - lib/reservation.rb
111
112
  - lib/reservation/event.rb
112
113
  - lib/reservation/event_filter.rb