appointments 1.0.8 → 1.0.10

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.
Files changed (6) hide show
  1. data/.autotest +23 -0
  2. data/Manifest.txt +8 -0
  3. data/README.rdoc +54 -0
  4. data/Rakefile +22 -0
  5. data/appointments.gemspec +18 -0
  6. metadata +23 -17
data/.autotest ADDED
@@ -0,0 +1,23 @@
1
+ # -*- ruby -*-
2
+
3
+ require 'autotest/restart'
4
+
5
+ # Autotest.add_hook :initialize do |at|
6
+ # at.extra_files << "../some/external/dependency.rb"
7
+ #
8
+ # at.libs << ":../some/external"
9
+ #
10
+ # at.add_exception 'vendor'
11
+ #
12
+ # at.add_mapping(/dependency.rb/) do |f, _|
13
+ # at.files_matching(/test_.*rb$/)
14
+ # end
15
+ #
16
+ # %w(TestA TestB).each do |klass|
17
+ # at.extra_class_map[klass] = "test/test_misc.rb"
18
+ # end
19
+ # end
20
+
21
+ # Autotest.add_hook :run_command do |at|
22
+ # system "rake build"
23
+ # end
data/Manifest.txt ADDED
@@ -0,0 +1,8 @@
1
+ .autotest
2
+ History.txt
3
+ Manifest.txt
4
+ README.txt
5
+ Rakefile
6
+ bin/appointments
7
+ lib/appointments.rb
8
+ test/test_appointments.rb
data/README.rdoc ADDED
@@ -0,0 +1,54 @@
1
+ = appointments
2
+
3
+ Schedule appointments with Rails 3 and the jQuery-UI
4
+
5
+ http://rubygems.org/gems/appointments
6
+
7
+ == SYNOPSIS:
8
+
9
+ Uses the jQuery UI datepicker and ActiveRecord to allow users to choose a date and then match the hours belonging to that date with hours that have already been scheduled. See the tutorial for more info http://leveton.wordpress.com/2012/02/19/schedule-appointments-with-rails3-and-jquery/
10
+
11
+ == REQUIREMENTS:
12
+
13
+ Rails 3.0+
14
+
15
+ == INSTALL:
16
+
17
+ <i>Ensure that you call '//= require jquery-ui' in your application.js file</i>
18
+
19
+ run:
20
+
21
+ <b>gem install appointments</b>
22
+
23
+ Add the gem to your gemfile.
24
+
25
+ If you want all the files pre-installed, then run the generator:
26
+
27
+ <b>rails generate appointments:install</b>
28
+
29
+ This will install the necessary model, view, and controller files
30
+
31
+ == LICENSE:
32
+
33
+ (The MIT License)
34
+
35
+ Copyright (c) 2012 FIX
36
+
37
+ Permission is hereby granted, free of charge, to any person obtaining
38
+ a copy of this software and associated documentation files (the
39
+ 'Software'), to deal in the Software without restriction, including
40
+ without limitation the rights to use, copy, modify, merge, publish,
41
+ distribute, sublicense, and/or sell copies of the Software, and to
42
+ permit persons to whom the Software is furnished to do so, subject to
43
+ the following conditions:
44
+
45
+ The above copyright notice and this permission notice shall be
46
+ included in all copies or substantial portions of the Software.
47
+
48
+ THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
49
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
50
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
51
+ IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
52
+ CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
53
+ TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
54
+ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/Rakefile ADDED
@@ -0,0 +1,22 @@
1
+ # -*- ruby -*-
2
+
3
+ require 'rubygems'
4
+ require 'hoe'
5
+
6
+ # Hoe.plugin :compiler
7
+ # Hoe.plugin :gem_prelude_sucks
8
+ # Hoe.plugin :inline
9
+ # Hoe.plugin :racc
10
+ # Hoe.plugin :rubyforge
11
+
12
+ Hoe.spec 'appointments' do
13
+ # HEY! If you fill these out in ~/.hoe_template/Rakefile.erb then
14
+ # you'll never have to touch them again!
15
+ # (delete this comment too, of course)
16
+
17
+ developer('Michael Leveton', 'mleveton@prepcloud.com')
18
+
19
+ # self.rubyforge_name = 'appointmentsx' # if different than 'appointments'
20
+ end
21
+
22
+ # vim: syntax=ruby
@@ -0,0 +1,18 @@
1
+ $:.push File.expand_path("../lib", __FILE__)
2
+
3
+ Gem::Specification.new do |s|
4
+ s.name = "appointments"
5
+ s.version = "1.0.10"
6
+ s.platform = Gem::Platform::RUBY
7
+ s.summary = "Schedule appointments with Rails 3 and the jQuery-UI"
8
+ s.email = "mleveton@prepcloud.com"
9
+ s.homepage = "https://github.com/Leveton/appointments"
10
+ s.description = "Schedule appointments with Rails 3 and the jQuery-UI"
11
+ s.authors = ['Michael Leveton']
12
+ s.files = `git ls-files`.split("\n")
13
+ s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
14
+ s.test_files = Dir["test/**/*"]
15
+ s.require_paths = ["lib"]
16
+ s.has_rdoc = true
17
+ s.add_dependency('thor')
18
+ 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.8
4
+ version: 1.0.10
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: &19298400 !ruby/object:Gem::Requirement
16
+ requirement: &12083360 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,36 +21,42 @@ dependencies:
21
21
  version: '0'
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *19298400
24
+ version_requirements: *12083360
25
25
  description: Schedule appointments with Rails 3 and the jQuery-UI
26
26
  email: mleveton@prepcloud.com
27
- executables: []
27
+ executables:
28
+ - appointments
28
29
  extensions: []
29
30
  extra_rdoc_files: []
30
31
  files:
32
+ - .autotest
33
+ - Manifest.txt
34
+ - README.rdoc
35
+ - Rakefile
36
+ - appointments.gemspec
31
37
  - bin/appointments
32
38
  - lib/appointments.rb
33
39
  - lib/generators/install_generators.rb
34
40
  - lib/generators/install_generators.rb~
41
+ - lib/generators/templates/appointment.js
35
42
  - lib/generators/templates/appointments_controller.rb
36
- - lib/generators/templates/jquery.ui.widget.min.js
37
- - lib/generators/templates/jquery.ui.datepicker.min.js
38
- - lib/generators/templates/jquery-ui-1.8.17.custom.css
39
- - lib/generators/templates/new.html.erb
40
- - lib/generators/templates/match_dates.html.erb
41
43
  - lib/generators/templates/initializer.rb
42
44
  - lib/generators/templates/initializer.rb~
43
- - lib/generators/templates/appointment.js
45
+ - lib/generators/templates/jquery-ui-1.8.17.custom.css
46
+ - lib/generators/templates/jquery.ui.datepicker.min.js
47
+ - lib/generators/templates/jquery.ui.widget.min.js
48
+ - lib/generators/templates/match_dates.html.erb
49
+ - lib/generators/templates/new.html.erb
44
50
  - lib/install/install_generator.rb
45
- - lib/public/jquery.ui.core.min.js
46
- - lib/public/jquery.css
47
- - lib/public/jquery-ui-1.8.17.custom.min.js
48
- - lib/public/jquery.ui.widget.min.js
49
- - lib/public/jquery.ui.datepicker.min.js
50
- - lib/public/jquery-ui-1.8.17.custom.css
51
51
  - lib/public/calendar.js
52
- - lib/public/jquery.ui.datepicker.js
53
52
  - lib/public/jquery-1.7.1.min.js
53
+ - lib/public/jquery-ui-1.8.17.custom.css
54
+ - lib/public/jquery-ui-1.8.17.custom.min.js
55
+ - lib/public/jquery.css
56
+ - lib/public/jquery.ui.core.min.js
57
+ - lib/public/jquery.ui.datepicker.js
58
+ - lib/public/jquery.ui.datepicker.min.js
59
+ - lib/public/jquery.ui.widget.min.js
54
60
  - test/test_appointments.rb
55
61
  homepage: https://github.com/Leveton/appointments
56
62
  licenses: []