simple_calendar 1.1.9 → 1.1.10
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +2 -0
- data/lib/simple_calendar/calendar.rb +1 -2
- data/lib/simple_calendar/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b1bdcbd6d655fbc158f0cf7d66e3895da990d2bd
|
4
|
+
data.tar.gz: c9eae626c02312bf24d10416f0e7fdae69718e9e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e18cb18051aa312839aff84a6236302319accd44d208e3c5166e32af5bbe32409ab10149e8d8081f0117a6703ba23eb7e846f843899c64e6d04ec150044d5d9a
|
7
|
+
data.tar.gz: 2c82eaaa511a7c86c95b7e4555528789e84a5a64df3b4c2c6de7cdb0aec8cdad05802ca8360f332664a18e7c0d939f13fcceaa85f32dc64a5b7aa8b3ce1826c3
|
data/README.md
CHANGED
@@ -12,6 +12,8 @@ Mongoid, any other ORM, or pure Ruby objects.
|
|
12
12
|
|
13
13
|
Thanks to all contributors for your wonderful help!
|
14
14
|
|
15
|
+
![calendar](https://s3.amazonaws.com/f.cl.ly/items/1T0t1s0W212d28282V2M/Screen%20Shot%202013-03-28%20at%209.44.49%20AM.png)
|
16
|
+
|
15
17
|
Installation
|
16
18
|
------------
|
17
19
|
|
@@ -121,7 +121,6 @@ module SimpleCalendar
|
|
121
121
|
->(start_date, current_calendar_date) {
|
122
122
|
today = Time.zone.now.to_date
|
123
123
|
td_class = ["day"]
|
124
|
-
|
125
124
|
td_class << "today" if today == current_calendar_date
|
126
125
|
td_class << "past" if today > current_calendar_date
|
127
126
|
td_class << "future" if today < current_calendar_date
|
@@ -129,6 +128,7 @@ module SimpleCalendar
|
|
129
128
|
td_class << "next-month" if start_date.month != current_calendar_date.month && current_calendar_date > start_date
|
130
129
|
td_class << "current-month" if start_date.month == current_calendar_date.month
|
131
130
|
td_class << "wday-#{current_calendar_date.wday.to_s}"
|
131
|
+
td_class << "has-events" if events_for_date(current_calendar_date).any?
|
132
132
|
|
133
133
|
{ class: td_class.join(" ") }
|
134
134
|
}
|
@@ -145,4 +145,3 @@ module SimpleCalendar
|
|
145
145
|
end
|
146
146
|
end
|
147
147
|
end
|
148
|
-
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: simple_calendar
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.10
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Chris Oliver
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2015-02-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|