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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: af116ffac55aaca5a7cc9cd857d56aa9804c48cdb00f0bf65a687f4fa03cc9b6
4
- data.tar.gz: 91fad8c932c7ae1dfbfb270165c82b72e23c0cd289356f6eee3d113e7d626146
3
+ metadata.gz: 4acd563cab19b141d3192c8452104bf49ff14fb2c3d7a1e49b7621ed591a5f04
4
+ data.tar.gz: f3c72f03d4091e6f8c760d3ecf2508cb6f2d74fd5f2047add0f014b48ecf3647
5
5
  SHA512:
6
- metadata.gz: 327638bbf5b05ff671037a591790212397a1c2620b0c8d5bf7c0c62a04a0d902b519100fa14657b54eb8637031650fa7ee2f3a44c06d81753f3d59d7167a987d
7
- data.tar.gz: 4a39fdce0bd44ac7a49e1e90c283205603a8524e7ef83677700d2d042e815e57836e89954b78384e945fb917a03236d1c3f6ca552eb18e2fafa6c07c81888d2f
6
+ metadata.gz: d700338f18f081faed53ce809ff3caa8f4f8494c8d0535a513b4c15696ff1153c9e646246c7a551a88e878e0a998c5266a0a4ed4a64800703b5dd1e46d444c5f
7
+ data.tar.gz: b6da920b7d41f231463d2787295b18174e63100931cdbe302c9aa019e602208cfcc3d15ae28f953373dd26cc3d80d91aba18d247edd96769284c1cd5a4a0a2d8
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- acts_as_full_calendar_event (1.0.2)
4
+ acts_as_full_calendar_event (1.0.3)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -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.2"
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
@@ -14,6 +14,7 @@ describe ActsAsFullCalendarEvent::FullCalendarEventSerializer do
14
14
  start: Date.new(2018, 1, 1),
15
15
  end: Date.new(2018, 1, 31),
16
16
  title: "title",
17
+ description: "description",
17
18
  color: "#FF0000",
18
19
  textColor: "#AAFFBB",
19
20
  link_url: "URL",
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.2
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-07 00:00:00.000000000 Z
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