bootstrap_calendar_rails 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.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 6d7bde6530c8c5e569f3aa333646d0bf09c8446c
4
+ data.tar.gz: b8e61a961d10c16490d3f2c096700c97bc5dbe40
5
+ SHA512:
6
+ metadata.gz: 0e4a8e459a852de451e5e34c53a2ea0a364d8c3706b2fb9e2c3b68caa63dbf880f6f13ead0bda8b88c494309179941ecfb30b2aa533e3abf7b5f0b1de9274598
7
+ data.tar.gz: f1ff1e7d28ea584d635b7238bf791ff1fe2fdf5e222f82451635e9e7c2d7c6f6c2d9a5ccdb77c7b90cd1498707af305e986c48618bc125418f5f5fe797eb8a9a
data/README.md CHANGED
@@ -1,3 +1,94 @@
1
- = BootstrapCalendarRails
1
+ # Calendar helper for Twitter Bootstrap and Rails
2
2
 
3
- This project rocks and uses MIT-LICENSE.
3
+ This gem provide simple and easy way to create calendar with Twitter Bootstrap and Rails.
4
+
5
+ ## Installation
6
+
7
+ First of all you should include twitter bootstrap in your app. You can do it manually, or use [twitter-bootstrap-rails](https://github.com/seyhunak/twitter-bootstrap-rails) gem.
8
+
9
+ ### Installing the Less stylesheets
10
+
11
+ To use Less stylesheets, you'll need the [less-rails gem](http://rubygems.org/gems/less-rails), and one of [Javascript runtimes supported by CommonJS](https://github.com/cowboyd/commonjs.rb#supported-runtimes).
12
+
13
+ Include these lines in the Gemfile to install the gems from [RubyGems.org](http://rubygems.org):
14
+
15
+ ```ruby
16
+ gem "therubyracer"
17
+ gem "less-rails" #Sprockets (what Rails 3.1 uses for its asset pipeline) supports LESS
18
+ gem "bootstrap_calendar_rails"
19
+ ```
20
+
21
+ Then run `bundle install` from the command line:
22
+
23
+ bundle install
24
+
25
+ Then run the bootstrap generator to add Calendar includes into your assets:
26
+
27
+ rails generate calendar:install less
28
+
29
+ ### Installing the CSS stylesheets
30
+
31
+ If you don't need to customize the stylesheets using Less, the only gem you need is the `bootstrap_calendar_rails` gem:
32
+
33
+ ```ruby
34
+ gem "bootstrap_calendar_rails"
35
+ ```
36
+
37
+ After running `bundle install`, run the generator:
38
+
39
+ rails generate calendar:install static
40
+
41
+ ## Usage
42
+
43
+ ### Basic usage
44
+
45
+ You should use something like this in the view
46
+ ```ruby
47
+ bootstrap_calendar Date.today {} do |date|
48
+ date.day.to_s
49
+ end
50
+ ```
51
+
52
+ it show you calendar for the current month.
53
+
54
+ ### Advanced usage
55
+
56
+ You can specify another start week day. Use `start_day` key for this:
57
+
58
+ ```ruby
59
+ bootstrap_calendar Date.today { start_day: :wednesday } do |date|
60
+ date.day.to_s
61
+ end
62
+ ```
63
+
64
+ You can extend day classes. Use `extra_day_classes` key and lambda for this:
65
+
66
+ ```ruby
67
+ options = { extra_day_classes: lambda { |classes, date|
68
+ classes << 'cal-day-daylight' if true
69
+ }
70
+ }
71
+ bootstrap_calendar Date.today, options do |date|
72
+ date.day.to_s
73
+ end
74
+ ```
75
+
76
+ ## Example application
77
+
78
+ An example application is available at [sharpyfox/bootstrap_calendar_rails_example](https://github.com/sharpyfox/bootstrap_calendar_rails_example). You can view it running on heroku [here](http://calendar-example.herokuapp.com/). Contributions welcome.
79
+
80
+ ![Screenshot](https://raw.github.com/sharpyfox/bootstrap_calendar_rails_example/master/public/screenshot.png "Screenshot")
81
+
82
+ ## Inspiration
83
+
84
+ This gem are highly inspired by:
85
+
86
+ davidray and [davidray / twitter-bootstrap-calendar](https://github.com/davidray/twitter-bootstrap-calendar) Basically this gem is an adoptation `davidray / twitter-bootstrap-calendar` for my flavour
87
+
88
+ Serhioromano and [Serhioromano / bootstrap-calendar](https://github.com/Serhioromano/bootstrap-calendar) I stole all css markup from him
89
+
90
+ Thanks guys!
91
+
92
+ ## Contribution
93
+
94
+ If you'd like to add features (or bug fixes) to improve the gem, you can fork the GitHub repo and [make pull requests](http://help.github.com/send-pull-requests/). Your code contributions are welcome!
@@ -3,5 +3,5 @@
3
3
  # License:: Distributes under the same terms as Ruby
4
4
 
5
5
  module BootstrapCalendarRails
6
- VERSION = "0.0.1"
6
+ VERSION = "0.0.2"
7
7
  end
metadata CHANGED
@@ -1,62 +1,55 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bootstrap_calendar_rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
5
- prerelease:
4
+ version: 0.0.2
6
5
  platform: ruby
7
6
  authors:
8
7
  - Nikita Vasiliev
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2013-06-14 00:00:00.000000000 Z
11
+ date: 2014-05-11 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: rails
16
15
  requirement: !ruby/object:Gem::Requirement
17
- none: false
18
16
  requirements:
19
- - - ~>
17
+ - - ">="
20
18
  - !ruby/object:Gem::Version
21
19
  version: '3'
22
20
  type: :runtime
23
21
  prerelease: false
24
22
  version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
23
  requirements:
27
- - - ~>
24
+ - - ">="
28
25
  - !ruby/object:Gem::Version
29
26
  version: '3'
30
27
  - !ruby/object:Gem::Dependency
31
28
  name: sqlite3
32
29
  requirement: !ruby/object:Gem::Requirement
33
- none: false
34
30
  requirements:
35
- - - ! '>='
31
+ - - ">="
36
32
  - !ruby/object:Gem::Version
37
33
  version: '0'
38
34
  type: :development
39
35
  prerelease: false
40
36
  version_requirements: !ruby/object:Gem::Requirement
41
- none: false
42
37
  requirements:
43
- - - ! '>='
38
+ - - ">="
44
39
  - !ruby/object:Gem::Version
45
40
  version: '0'
46
41
  - !ruby/object:Gem::Dependency
47
42
  name: rspec-rails
48
43
  requirement: !ruby/object:Gem::Requirement
49
- none: false
50
44
  requirements:
51
- - - ! '>='
45
+ - - ">="
52
46
  - !ruby/object:Gem::Version
53
47
  version: '0'
54
48
  type: :development
55
49
  prerelease: false
56
50
  version_requirements: !ruby/object:Gem::Requirement
57
- none: false
58
51
  requirements:
59
- - - ! '>='
52
+ - - ">="
60
53
  - !ruby/object:Gem::Version
61
54
  version: '0'
62
55
  description: bootstrap_calendar_rails allow you to build beautiful calendars with
@@ -67,47 +60,46 @@ executables: []
67
60
  extensions: []
68
61
  extra_rdoc_files: []
69
62
  files:
70
- - lib/tasks/bootstrap_calendar_rails_tasks.rake
63
+ - MIT-LICENSE
64
+ - README.md
65
+ - Rakefile
66
+ - lib/bootstrap_calendar_rails.rb
71
67
  - lib/bootstrap_calendar_rails/railtie.rb
72
- - lib/bootstrap_calendar_rails/view_helper.rb
73
68
  - lib/bootstrap_calendar_rails/version.rb
74
- - lib/generators/calendar/install/templates/month.css.less
69
+ - lib/bootstrap_calendar_rails/view_helper.rb
70
+ - lib/generators/calendar/install/install_generator.rb
75
71
  - lib/generators/calendar/install/templates/application.css
76
- - lib/generators/calendar/install/templates/grid.css.less
77
- - lib/generators/calendar/install/templates/variables.css.less
78
- - lib/generators/calendar/install/templates/events.css.less
79
- - lib/generators/calendar/install/templates/theme.css.less
80
72
  - lib/generators/calendar/install/templates/calendar.css
81
- - lib/generators/calendar/install/templates/week.css.less
82
73
  - lib/generators/calendar/install/templates/calendar.css.less
83
74
  - lib/generators/calendar/install/templates/en.calendar.yml
84
- - lib/generators/calendar/install/install_generator.rb
85
- - lib/bootstrap_calendar_rails.rb
86
- - MIT-LICENSE
87
- - Rakefile
88
- - README.md
75
+ - lib/generators/calendar/install/templates/events.css.less
76
+ - lib/generators/calendar/install/templates/grid.css.less
77
+ - lib/generators/calendar/install/templates/month.css.less
78
+ - lib/generators/calendar/install/templates/theme.css.less
79
+ - lib/generators/calendar/install/templates/variables.css.less
80
+ - lib/generators/calendar/install/templates/week.css.less
81
+ - lib/tasks/bootstrap_calendar_rails_tasks.rake
89
82
  homepage: https://github.com/sharpyfox/bootstrap_calendar_rails
90
83
  licenses: []
84
+ metadata: {}
91
85
  post_install_message:
92
86
  rdoc_options: []
93
87
  require_paths:
94
88
  - lib
95
89
  required_ruby_version: !ruby/object:Gem::Requirement
96
- none: false
97
90
  requirements:
98
- - - ! '>='
91
+ - - ">="
99
92
  - !ruby/object:Gem::Version
100
93
  version: '0'
101
94
  required_rubygems_version: !ruby/object:Gem::Requirement
102
- none: false
103
95
  requirements:
104
- - - ! '>='
96
+ - - ">="
105
97
  - !ruby/object:Gem::Version
106
98
  version: '0'
107
99
  requirements: []
108
100
  rubyforge_project:
109
- rubygems_version: 1.8.25
101
+ rubygems_version: 2.2.2
110
102
  signing_key:
111
- specification_version: 3
103
+ specification_version: 4
112
104
  summary: calendar helper for Twitter Bootstrap
113
105
  test_files: []