datetimepicker 0.0.1 → 0.0.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/README.md CHANGED
@@ -1,29 +1,34 @@
1
1
  # Datetimepicker
2
2
 
3
- TODO: Write a gem description
4
-
5
3
  ## Installation
6
4
 
7
- Add this line to your application's Gemfile:
5
+ Add to your application's Gemfile:
6
+
7
+ ```
8
+ gem 'datetimepicker'
9
+ ```
8
10
 
9
- gem 'datetimepicker'
11
+ ## Usage
10
12
 
11
- And then execute:
13
+ For barebones implementation, you only need to add the require CSS and JS to your application.
12
14
 
13
- $ bundle
15
+ ```coffeescript
16
+ # application.js.coffee
14
17
 
15
- Or install it yourself as:
18
+ #= require datetimepicker
19
+ ```
16
20
 
17
- $ gem install datetimepicker
21
+ ```sass
22
+ // application.css.scss
18
23
 
19
- ## Usage
24
+ @import "datetimepicker"
25
+ ```
20
26
 
21
- TODO: Write usage instructions here
27
+ Then, in simple form, use `:as => :datetimepicker`
22
28
 
23
- ## Contributing
29
+ ```erb
30
+ <%= simple_form_for @record do |f| %>
31
+ <% f.input :created_at, :as => :datetimepicker %>
32
+ <% end %>
33
+ ```
24
34
 
25
- 1. Fork it
26
- 2. Create your feature branch (`git checkout -b my-new-feature`)
27
- 3. Commit your changes (`git commit -am 'Added some feature'`)
28
- 4. Push to the branch (`git push origin my-new-feature`)
29
- 5. Create new Pull Request
@@ -6,7 +6,7 @@ Gem::Specification.new do |gem|
6
6
  gem.email = ["danott@marshill.com"]
7
7
  gem.description = %q{Custom field for individual setting of date and time for Rails :datetime attributes.}
8
8
  gem.summary = %q{Custom field for individual setting of date and time for Rails :datetime attributes.}
9
- gem.homepage = ""
9
+ gem.homepage = "http://github.com/marshill/datetimepicker"
10
10
 
11
11
  gem.files = `git ls-files`.split($\)
12
12
  gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
@@ -1,3 +1,5 @@
1
+ require 'simple_form'
2
+
1
3
  module SimpleForm
2
4
  module Inputs
3
5
 
@@ -1,3 +1,3 @@
1
1
  module Datetimepicker
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: datetimepicker
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
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: 2012-09-11 00:00:00.000000000 Z
12
+ date: 2012-09-27 00:00:00.000000000 Z
13
13
  dependencies: []
14
14
  description: Custom field for individual setting of date and time for Rails :datetime
15
15
  attributes.
@@ -37,7 +37,7 @@ files:
37
37
  - lib/datetimepicker/engine.rb
38
38
  - lib/datetimepicker/simple_form/inputs/datetimepicker_input.rb
39
39
  - lib/datetimepicker/version.rb
40
- homepage: ''
40
+ homepage: http://github.com/marshill/datetimepicker
41
41
  licenses: []
42
42
  post_install_message:
43
43
  rdoc_options: []
@@ -57,9 +57,10 @@ required_rubygems_version: !ruby/object:Gem::Requirement
57
57
  version: '0'
58
58
  requirements: []
59
59
  rubyforge_project:
60
- rubygems_version: 1.8.17
60
+ rubygems_version: 1.8.23
61
61
  signing_key:
62
62
  specification_version: 3
63
63
  summary: Custom field for individual setting of date and time for Rails :datetime
64
64
  attributes.
65
65
  test_files: []
66
+ has_rdoc: