appointments 1.0.14 → 1.0.15

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.
Binary file
data/appointments.gemspec CHANGED
@@ -2,7 +2,7 @@ $:.push File.expand_path("../lib", __FILE__)
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = "appointments"
5
- s.version = "1.0.14"
5
+ s.version = "1.0.15"
6
6
  s.platform = Gem::Platform::RUBY
7
7
  s.summary = "Schedule appointments with Rails 3 and the jQuery-UI"
8
8
  s.email = "mleveton@prepcloud.com"
@@ -0,0 +1,7 @@
1
+ class Appointment < ActiveRecord::Base
2
+ attr_accessible :date, :hour
3
+
4
+ validates :date, :presence => true
5
+ validates :hour, :presence => true,
6
+ :uniqueness => {:scope => :date}
7
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: appointments
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.14
4
+ version: 1.0.15
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -13,7 +13,7 @@ date: 2012-02-19 00:00:00.000000000Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: thor
16
- requirement: &19638440 !ruby/object:Gem::Requirement
16
+ requirement: &17394160 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,7 +21,7 @@ dependencies:
21
21
  version: '0'
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *19638440
24
+ version_requirements: *17394160
25
25
  description: Schedule appointments with Rails 3 and the jQuery-UI
26
26
  email: mleveton@prepcloud.com
27
27
  executables: []
@@ -33,13 +33,12 @@ files:
33
33
  - README
34
34
  - README.rdoc
35
35
  - Rakefile
36
- - appointments-1.0.13.gem
36
+ - appointments-1.0.14.gem
37
37
  - appointments.gemspec
38
38
  - lib/generators/appointments/install/install_generator.rb
39
39
  - lib/generators/appointments/templates/appointment.js
40
+ - lib/generators/appointments/templates/appointment.rb
40
41
  - lib/generators/appointments/templates/appointments_controller.rb
41
- - lib/generators/appointments/templates/initializer.rb
42
- - lib/generators/appointments/templates/initializer.rb~
43
42
  - lib/generators/appointments/templates/jquery-ui-1.8.17.custom.css
44
43
  - lib/generators/appointments/templates/jquery.ui.datepicker.min.js
45
44
  - lib/generators/appointments/templates/jquery.ui.widget.min.js
Binary file
@@ -1,4 +0,0 @@
1
- Rails.application.configure do
2
- # Uncomment this to turn on verbose mode
3
- # config.my_gem.verbose = true
4
- end