recurrence_ui 0.3.3 → 0.3.4

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 148ea1c9b90cf1ead7565260393624603281a68ffc349fd02b774721e65c1882
4
- data.tar.gz: 64c351c8e924ef1676ca94e062061f03feb78d9c326c61f07168ba93d50d9859
3
+ metadata.gz: 910595c28bec3fde177873d891ed52c5c11cbea6edaba2fabea2743a0adf510e
4
+ data.tar.gz: d6c9fb0c0b4fc6e70a853dce96d23222ac913ec13cb44c34e9dfe2a327ee8238
5
5
  SHA512:
6
- metadata.gz: 0bbe8d72c6582df4257859c890ecf354821f37603090a6bbcaf863ba77a3aaaac9bd7a5b95a1504804fa7c6887b99cbcfc2c5954e38bad573a33bf464f9dc6b2
7
- data.tar.gz: 105e1e02dec4b660b8365939c752b0bb9373c553bcc363a987f7b19f25d689f31619814544f885c8a3df0afa20c361e76634033bee26b4e1d60c36877d85d022
6
+ metadata.gz: ce5ab79aa98502c62adff9f8ea93a7f849f4bcdc9c262c6b189afc098e14a05c6a0253293cd72f9e0bf71baa8636e81225edec247c61b9e2d85f398a6caaebc7
7
+ data.tar.gz: 2366076b61ffbaabe0a0dcb2f073450c600ffade66ce10768b12f3090bec6461052f4966cdaf3571f2fbad3771f2334ec132ee774539c8cc7f5e072b6366a19f
@@ -74,6 +74,19 @@ module RecurrenceUi
74
74
 
75
75
  say "Added RecurrenceUi styles import to #{target_css.relative_path_from(Rails.root)}", :green
76
76
  end
77
+ def create_initializer
78
+ say "3. Adding RecurrenceUi initializer", :green
79
+
80
+ initializer_path = "config/initializers/recurrence_ui.rb"
81
+ if File.exist?(initializer_path)
82
+ say "RecurrenceUi initializer already exists", :blue
83
+ return
84
+ end
85
+
86
+ template "recurrence_ui.rb", initializer_path
87
+ say "Created RecurrenceUi initializer at #{initializer_path}", :green
88
+ end
89
+
77
90
  end
78
91
  end
79
92
  end
@@ -0,0 +1,31 @@
1
+ # config/initializers/recurrence_ui.rb
2
+
3
+ RecurrenceUi.configure do |config|
4
+ # General settings
5
+ config.locale = :ru
6
+ config.time_zone = "Europe/Moscow"
7
+ config.week_start = 1
8
+
9
+ # Default event settings
10
+ config.start_time = "06:00"
11
+ config.end_time = "16:00"
12
+ config.duration = 3600
13
+
14
+ # UI options
15
+ config.allow_multiple_rules = true
16
+ config.show_duration = true
17
+ config.show_start_date_time = true
18
+ config.show_time_zone = true
19
+ config.show_end_date_time = true
20
+ config.show_exceptions = true
21
+ config.show_rdates = true
22
+ config.show_termination = true
23
+
24
+ # Enabled recurrence rule types
25
+ config.enabled_rule_types = %w[
26
+ never
27
+ weekly
28
+ daily
29
+ monthly_by_day_of_month
30
+ ]
31
+ end
@@ -1,3 +1,3 @@
1
1
  module RecurrenceUi
2
- VERSION = "0.3.3"
2
+ VERSION = "0.3.4"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: recurrence_ui
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.3
4
+ version: 0.3.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Katerina German
@@ -174,6 +174,7 @@ files:
174
174
  - config/locales/recurrence_ui.uk.yml
175
175
  - config/routes.rb
176
176
  - lib/generators/recurrence_ui/install/install_generator.rb
177
+ - lib/generators/recurrence_ui/install/templates/recurrence_ui.rb
177
178
  - lib/generators/recurrence_ui/views_generator.rb
178
179
  - lib/recurrence_ui.rb
179
180
  - lib/recurrence_ui/configuration.rb