acts_as_full_calendar_event 1.0.2 → 1.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/acts_as_full_calendar_event.gemspec +1 -1
- data/lib/acts_as_full_calendar_event/calendar_event.rb +4 -0
- data/lib/acts_as_full_calendar_event/serializers/full_calendar_event_serializer.rb +5 -0
- data/spec/.DS_Store +0 -0
- data/spec/serializers/full_calendar_event_serializer_spec.rb +1 -0
- data/spec/spec_helper.rb +10 -0
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4acd563cab19b141d3192c8452104bf49ff14fb2c3d7a1e49b7621ed591a5f04
|
4
|
+
data.tar.gz: f3c72f03d4091e6f8c760d3ecf2508cb6f2d74fd5f2047add0f014b48ecf3647
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d700338f18f081faed53ce809ff3caa8f4f8494c8d0535a513b4c15696ff1153c9e646246c7a551a88e878e0a998c5266a0a4ed4a64800703b5dd1e46d444c5f
|
7
|
+
data.tar.gz: b6da920b7d41f231463d2787295b18174e63100931cdbe302c9aa019e602208cfcc3d15ae28f953373dd26cc3d80d91aba18d247edd96769284c1cd5a4a0a2d8
|
data/Gemfile.lock
CHANGED
@@ -5,7 +5,7 @@ $:.push File.expand_path("../lib", __FILE__)
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = "acts_as_full_calendar_event"
|
8
|
-
s.version = "1.0.
|
8
|
+
s.version = "1.0.3"
|
9
9
|
s.platform = Gem::Platform::RUBY
|
10
10
|
s.author = ["Adrian Fernandez"]
|
11
11
|
s.email = ["adrianfernandez85@gmail.com"]
|
@@ -73,6 +73,10 @@ module ActsAsFullCalendarEvent
|
|
73
73
|
self.public_send(acts_as_full_calendar_event_options[:field_title])
|
74
74
|
end
|
75
75
|
|
76
|
+
def calendar_item_description
|
77
|
+
self.public_send(acts_as_full_calendar_event_options[:field_description])
|
78
|
+
end
|
79
|
+
|
76
80
|
def calendar_item_color
|
77
81
|
self.public_send(acts_as_full_calendar_event_options[:field_color])
|
78
82
|
end
|
@@ -5,6 +5,7 @@ module ActsAsFullCalendarEvent
|
|
5
5
|
:start,
|
6
6
|
:end,
|
7
7
|
:title,
|
8
|
+
:description,
|
8
9
|
:color,
|
9
10
|
:textColor,
|
10
11
|
:link_url,
|
@@ -24,6 +25,10 @@ module ActsAsFullCalendarEvent
|
|
24
25
|
object.calendar_item_title
|
25
26
|
end
|
26
27
|
|
28
|
+
def description
|
29
|
+
object.calendar_item_description
|
30
|
+
end
|
31
|
+
|
27
32
|
def color
|
28
33
|
if object.calendar_item_color.present?
|
29
34
|
object.calendar_item_color
|
data/spec/.DS_Store
ADDED
Binary file
|
data/spec/spec_helper.rb
CHANGED
@@ -56,6 +56,7 @@ class Event < ActiveRecord::Base
|
|
56
56
|
acts_as_full_calendar_event field_start: :calendar_inicio,
|
57
57
|
field_end: :calendar_fin,
|
58
58
|
field_title: :calendar_title,
|
59
|
+
field_description: :calendar_description,
|
59
60
|
field_color: :calendar_color,
|
60
61
|
field_text_color: :calendar_text_color,
|
61
62
|
field_url: :url_for_calendar,
|
@@ -104,6 +105,10 @@ class Event < ActiveRecord::Base
|
|
104
105
|
"title"
|
105
106
|
end
|
106
107
|
|
108
|
+
def calendar_description
|
109
|
+
"description"
|
110
|
+
end
|
111
|
+
|
107
112
|
def calendar_color
|
108
113
|
"#FF0000"
|
109
114
|
end
|
@@ -131,6 +136,7 @@ class OtherEvent < ActiveRecord::Base
|
|
131
136
|
acts_as_full_calendar_event field_start: :calendar_inicio,
|
132
137
|
field_end: :calendar_fin,
|
133
138
|
field_title: :calendar_title,
|
139
|
+
field_description: :calendar_description,
|
134
140
|
field_color: :calendar_color,
|
135
141
|
field_text_color: :calendar_text_color,
|
136
142
|
field_url: :url_for_calendar,
|
@@ -167,6 +173,10 @@ class OtherEvent < ActiveRecord::Base
|
|
167
173
|
"title"
|
168
174
|
end
|
169
175
|
|
176
|
+
def calendar_description
|
177
|
+
"description"
|
178
|
+
end
|
179
|
+
|
170
180
|
def calendar_color
|
171
181
|
"#FF0000"
|
172
182
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: acts_as_full_calendar_event
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Adrian Fernandez
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-08-
|
11
|
+
date: 2019-08-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rspec
|
@@ -168,6 +168,7 @@ files:
|
|
168
168
|
- lib/acts_as_full_calendar_event/serializers/full_calendar_event_serializer.rb
|
169
169
|
- lib/acts_as_full_calendar_event/services/calendar.rb
|
170
170
|
- lib/acts_as_full_calendar_event/version.rb
|
171
|
+
- spec/.DS_Store
|
171
172
|
- spec/acts_as_full_calendar_event_spec.rb
|
172
173
|
- spec/factories/category.rb
|
173
174
|
- spec/factories/event.rb
|