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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 65fb5fd5211c292f991e0ae45d44aabad4ef9bbc
4
- data.tar.gz: 5aae83bda73fa5357a46fa11eb768f83cac7eeca
3
+ metadata.gz: b1bdcbd6d655fbc158f0cf7d66e3895da990d2bd
4
+ data.tar.gz: c9eae626c02312bf24d10416f0e7fdae69718e9e
5
5
  SHA512:
6
- metadata.gz: f2a87f319397852670c5ba042bc3642d33dd51a1c4e98a6814b576bba198440d86e14251e06e55e295c86dce52e114387473be345a83aa6c5d53e339b27ff451
7
- data.tar.gz: 444b28f23ea11284ac1919c9371680a8554bdd75ed20fc4e315fdb42be9a83440e931c0e3ec2ce8b7461338618a368bfeb5090a2de5975c5d5140e1d3f5fbbb2
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
-
@@ -1,3 +1,3 @@
1
1
  module SimpleCalendar
2
- VERSION = "1.1.9"
2
+ VERSION = "1.1.10"
3
3
  end
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.9
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: 2014-11-20 00:00:00.000000000 Z
11
+ date: 2015-02-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails