datetime_format_converter 0.0.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 +7 -0
- data/.gitignore +9 -0
- data/Gemfile +4 -0
- data/README.md +47 -0
- data/Rakefile +10 -0
- data/bin/console +14 -0
- data/bin/setup +8 -0
- data/datetime_format_converter.gemspec +24 -0
- data/lib/datetime_format_converter.rb +253 -0
- data/lib/datetime_format_converter/railtie.rb +9 -0
- data/lib/datetime_format_converter/version.rb +3 -0
- data/lib/datetime_format_converter/view_helpers.rb +11 -0
- metadata +97 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 7bf35d7e793446bd7c0957fe8d338bda0d2101b6
|
4
|
+
data.tar.gz: f726fe8908faeb8eec7fcb8350a2b8fef87211d8
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 8fb43dffc7c4d158998d1d2774d888c741d94bff6e5f88749c1c71a93ac771f3efe1a2ba077f0ac3bb4719d2db538240774d621bdca5afce55c3e484aa654245
|
7
|
+
data.tar.gz: d35b7d86d1c9a504fb848c2e61d3b919b44ed3d90b61e6d36cdaa7b9f5bb77419af2dd59d1510ddf41e640adc0d0fdb7faf4686af4e574c2dd81fe82e1cae3cf
|
data/.gitignore
ADDED
data/Gemfile
ADDED
data/README.md
ADDED
@@ -0,0 +1,47 @@
|
|
1
|
+
# DatetimeFormatConverter
|
2
|
+
|
3
|
+
This gem allows to convert ruby datetime format to javasciprt datetime format. Also works with timezones.
|
4
|
+
|
5
|
+
## Installation
|
6
|
+
|
7
|
+
Add this line to your application's Gemfile:
|
8
|
+
|
9
|
+
```ruby
|
10
|
+
gem 'datetime_format_converter'
|
11
|
+
```
|
12
|
+
|
13
|
+
And then execute:
|
14
|
+
|
15
|
+
$ bundle
|
16
|
+
|
17
|
+
Or install it yourself as:
|
18
|
+
|
19
|
+
$ gem install datetime_format_converter
|
20
|
+
|
21
|
+
## Usage
|
22
|
+
|
23
|
+
From anywhere
|
24
|
+
|
25
|
+
DatetimeFormatConverter.datetime_format_to_js('%d %m %y') # returns 'DD MM YY'
|
26
|
+
|
27
|
+
From helpers
|
28
|
+
|
29
|
+
<%= datetime_format_to_js('%d %m %y') %> # prints 'DD MM YY'
|
30
|
+
|
31
|
+
And for timezones
|
32
|
+
|
33
|
+
DatetimeFormatConverter.timezone_format_to_js('Moscow') # returns 'Europe/Moscow'
|
34
|
+
|
35
|
+
And helper
|
36
|
+
|
37
|
+
<%= timezone_format_to_js('Moscow') %> # prints 'Europe/Moscow'
|
38
|
+
|
39
|
+
## Development
|
40
|
+
|
41
|
+
After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake test` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
|
42
|
+
|
43
|
+
To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
|
44
|
+
|
45
|
+
## Contributing
|
46
|
+
|
47
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/cimon-io/datetime_format_converter. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
|
data/Rakefile
ADDED
data/bin/console
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
|
3
|
+
require "bundler/setup"
|
4
|
+
require "datetime_format_converter"
|
5
|
+
|
6
|
+
# You can add fixtures and/or initialization code here to make experimenting
|
7
|
+
# with your gem easier. You can also use a different console, if you like.
|
8
|
+
|
9
|
+
# (If you use this, don't forget to add pry to your Gemfile!)
|
10
|
+
# require "pry"
|
11
|
+
# Pry.start
|
12
|
+
|
13
|
+
require "irb"
|
14
|
+
IRB.start
|
data/bin/setup
ADDED
@@ -0,0 +1,24 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
lib = File.expand_path('../lib', __FILE__)
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
+
require 'datetime_format_converter/version'
|
5
|
+
|
6
|
+
Gem::Specification.new do |spec|
|
7
|
+
spec.name = "datetime_format_converter"
|
8
|
+
spec.version = DatetimeFormatConverter::VERSION
|
9
|
+
spec.authors = ["Alexey Osipenko"]
|
10
|
+
spec.email = ["alexey@cimon.io"]
|
11
|
+
|
12
|
+
spec.summary = %q{Converts ruby date/time format to javascript format of date/time}
|
13
|
+
spec.description = %q{Converts ruby date/time format to javascript format of date/time}
|
14
|
+
spec.homepage = "https://github.com/cimon-io/datetime_format_converter"
|
15
|
+
|
16
|
+
spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
17
|
+
spec.bindir = "exe"
|
18
|
+
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
19
|
+
spec.require_paths = ["lib"]
|
20
|
+
|
21
|
+
spec.add_development_dependency "bundler", "~> 1.11"
|
22
|
+
spec.add_development_dependency "rake", "~> 10.0"
|
23
|
+
spec.add_development_dependency "minitest", "~> 5.0"
|
24
|
+
end
|
@@ -0,0 +1,253 @@
|
|
1
|
+
require "datetime_format_converter/version"
|
2
|
+
require 'datetime_format_converter/railtie' if defined?(Rails)
|
3
|
+
|
4
|
+
module DatetimeFormatConverter
|
5
|
+
|
6
|
+
class DatetimeNotSupportedError < ::StandardError
|
7
|
+
end
|
8
|
+
|
9
|
+
FORMAT_MAPPING = [
|
10
|
+
["%C", nil, "year / 100 (round down. 20 in 2009)"],
|
11
|
+
["%N", nil, "Fractional seconds digits, default is 9 digits (nanosecond)"],
|
12
|
+
["%w", nil, "Day of the week (Sunday is 0, 0..6)"],
|
13
|
+
["%W", nil, "Week number of the year. The week starts with Monday. (00..53)"],
|
14
|
+
["%Y", "YYYY", "Year with century (can be negative, 4 digits at least)"],
|
15
|
+
["%y", "YY", "year % 100 (00..99)"],
|
16
|
+
["%m", "MM", "Month of the year, zero-padded (01..12)"],
|
17
|
+
["%_m", "MM", "blank-padded ( 1..12)"],
|
18
|
+
["%-m", "M", "no-padded (1..12)"],
|
19
|
+
["%B", "MMMM", "The full month name (``January'')"],
|
20
|
+
["%^B", "MMMM", "uppercased (``JANUARY'')"],
|
21
|
+
["%b", "MMM", "The abbreviated month name (``Jan'')"],
|
22
|
+
["%h", "MMM", "Equivalent to %b"],
|
23
|
+
["%^b", "MMM", "uppercased (``JAN'')"],
|
24
|
+
["%d", "DD", "Day of the month, zero-padded (01..31)"],
|
25
|
+
["%-d", "D", "no-padded (1..31)"],
|
26
|
+
["%e", "DD", "Day of the month, blank-padded ( 1..31)"],
|
27
|
+
["%j", "DDDD", "Day of the year (001..366)"],
|
28
|
+
["%H", "HH", "Hour of the day, 24-hour clock, zero-padded (00..23)"],
|
29
|
+
["%k", "H", "Hour of the day, 24-hour clock, blank-padded ( 0..23)"],
|
30
|
+
["%I", "hh", "Hour of the day, 12-hour clock, zero-padded (01..12)"],
|
31
|
+
["%l", "h", "Hour of the day, 12-hour clock, blank-padded ( 1..12)"],
|
32
|
+
["%P", "a", "Meridian indicator, lowercase (``am'' or ``pm'')"],
|
33
|
+
["%p", "A", "Meridian indicator, uppercase (``AM'' or ``PM'')"],
|
34
|
+
["%M", "mm", "Minute of the hour (00..59)"],
|
35
|
+
["%S", "ss", "Second of the minute (00..59)"],
|
36
|
+
["%L", "SSS", "Millisecond of the second (000..999)"],
|
37
|
+
["%z", "Z", "Time zone as hour and minute offset from UTC (e.g. +0900)"],
|
38
|
+
["%:z", "ZZ", "hour and minute offset from UTC with a colon (e.g. +09:00)"],
|
39
|
+
["%::z", "ZZ:00", "hour, minute and second offset from UTC (e.g. +09:00:00)"],
|
40
|
+
["%:::z", "ZZ:00", "hour, minute and second offset from UTC (e.g. +09, +09:30, +09:30:30)"],
|
41
|
+
["%Z", "ZZ", "Time zone abbreviation name"],
|
42
|
+
["%A", "dddd", "The full weekday name (``Sunday'')"],
|
43
|
+
["%^A", "dddd", "uppercased (``SUNDAY'')"],
|
44
|
+
["%a", "ddd", "The abbreviated name (``Sun'')"],
|
45
|
+
["%^a", "ddd", "uppercased (``SUN'')"],
|
46
|
+
["%u", "E", "Day of the week (Monday is 1, 1..7)"],
|
47
|
+
["%G", "W", "The week-based year"],
|
48
|
+
["%g", "WW", "The last 2 digits of the week-based year (00..99)"],
|
49
|
+
["%V", "W", "Week number of the week-based year (01..53)"],
|
50
|
+
["%U", "WW", "Week number of the year. The week starts with Sunday. (00..53)"],
|
51
|
+
["%s", "x", "Number of seconds since 1970-01-01 00:00:00 UTC."],
|
52
|
+
["%Q", "x", "Number of microseconds since 1970-01-01 00:00:00 UTC."],
|
53
|
+
["%n", "\n", "Newline character (\n)"],
|
54
|
+
["%t", "\t", "Tab character (\t)"],
|
55
|
+
["%%", "%", "Literal ``%'' character"],
|
56
|
+
["%3N", "SSS", "millisecond (3 digits)"],
|
57
|
+
["%6N", "SSS000", "microsecond (6 digits)"],
|
58
|
+
["%9N", "SSS000000", "nanosecond (9 digits)"],
|
59
|
+
["%12N", "SSS000000000", "picosecond (12 digits)"],
|
60
|
+
["%c", "ddd MMM DD HH:mm:ss YYYY", "date and time (%a %b %e %T %Y)"],
|
61
|
+
["%D", "mm/DD/YY", "Date (%m/%d/%y)"],
|
62
|
+
["%x", "mm/DD/YY", "Same as %D"],
|
63
|
+
["%F", "YYYY-mm-DD", "The ISO 8601 date format (%Y-%m-%d)"],
|
64
|
+
["%v", "DD-MMM-YYYY", "VMS date (%e-%b-%Y)"],
|
65
|
+
["%T", "HH:mm:ss", "24-hour time (%H:%M:%S)"],
|
66
|
+
["%X", "HH:mm:ss", "Same as %T"],
|
67
|
+
["%r", "HH:mm:ss A", "12-hour time (%I:%M:%S %p)"],
|
68
|
+
["%R", "HH:mm", "24-hour time (%H:%M)"],
|
69
|
+
["%+", "ddd MMM DD HH:mm:ss ZZ YYYY", "date(1) (%a %b %e %H:%M:%S %Z %Y)"]
|
70
|
+
]
|
71
|
+
|
72
|
+
TIMEZONE_MAPPING = {
|
73
|
+
"International Date Line West" => "Pacific/Midway",
|
74
|
+
"Midway Island" => "Pacific/Midway",
|
75
|
+
"American Samoa" => "Pacific/Pago_Pago",
|
76
|
+
"Hawaii" => "Pacific/Honolulu",
|
77
|
+
"Alaska" => "America/Juneau",
|
78
|
+
"Pacific Time (US & Canada)" => "America/Los_Angeles",
|
79
|
+
"Tijuana" => "America/Tijuana",
|
80
|
+
"Mountain Time (US & Canada)" => "America/Denver",
|
81
|
+
"Arizona" => "America/Phoenix",
|
82
|
+
"Chihuahua" => "America/Chihuahua",
|
83
|
+
"Mazatlan" => "America/Mazatlan",
|
84
|
+
"Central Time (US & Canada)" => "America/Chicago",
|
85
|
+
"Saskatchewan" => "America/Regina",
|
86
|
+
"Guadalajara" => "America/Mexico_City",
|
87
|
+
"Mexico City" => "America/Mexico_City",
|
88
|
+
"Monterrey" => "America/Monterrey",
|
89
|
+
"Central America" => "America/Guatemala",
|
90
|
+
"Eastern Time (US & Canada)" => "America/New_York",
|
91
|
+
"Indiana (East)" => "America/Indiana/Indianapolis",
|
92
|
+
"Bogota" => "America/Bogota",
|
93
|
+
"Lima" => "America/Lima",
|
94
|
+
"Quito" => "America/Lima",
|
95
|
+
"Atlantic Time (Canada)" => "America/Halifax",
|
96
|
+
"Caracas" => "America/Caracas",
|
97
|
+
"La Paz" => "America/La_Paz",
|
98
|
+
"Santiago" => "America/Santiago",
|
99
|
+
"Newfoundland" => "America/St_Johns",
|
100
|
+
"Brasilia" => "America/Sao_Paulo",
|
101
|
+
"Buenos Aires" => "America/Argentina/Buenos_Aires",
|
102
|
+
"Montevideo" => "America/Montevideo",
|
103
|
+
"Georgetown" => "America/Guyana",
|
104
|
+
"Greenland" => "America/Godthab",
|
105
|
+
"Mid-Atlantic" => "Atlantic/South_Georgia",
|
106
|
+
"Azores" => "Atlantic/Azores",
|
107
|
+
"Cape Verde Is." => "Atlantic/Cape_Verde",
|
108
|
+
"Dublin" => "Europe/Dublin",
|
109
|
+
"Edinburgh" => "Europe/London",
|
110
|
+
"Lisbon" => "Europe/Lisbon",
|
111
|
+
"London" => "Europe/London",
|
112
|
+
"Casablanca" => "Africa/Casablanca",
|
113
|
+
"Monrovia" => "Africa/Monrovia",
|
114
|
+
"UTC" => "Etc/UTC",
|
115
|
+
"Belgrade" => "Europe/Belgrade",
|
116
|
+
"Bratislava" => "Europe/Bratislava",
|
117
|
+
"Budapest" => "Europe/Budapest",
|
118
|
+
"Ljubljana" => "Europe/Ljubljana",
|
119
|
+
"Prague" => "Europe/Prague",
|
120
|
+
"Sarajevo" => "Europe/Sarajevo",
|
121
|
+
"Skopje" => "Europe/Skopje",
|
122
|
+
"Warsaw" => "Europe/Warsaw",
|
123
|
+
"Zagreb" => "Europe/Zagreb",
|
124
|
+
"Brussels" => "Europe/Brussels",
|
125
|
+
"Copenhagen" => "Europe/Copenhagen",
|
126
|
+
"Madrid" => "Europe/Madrid",
|
127
|
+
"Paris" => "Europe/Paris",
|
128
|
+
"Amsterdam" => "Europe/Amsterdam",
|
129
|
+
"Berlin" => "Europe/Berlin",
|
130
|
+
"Bern" => "Europe/Zurich",
|
131
|
+
"Zurich" => "Europe/Zurich",
|
132
|
+
"Rome" => "Europe/Rome",
|
133
|
+
"Stockholm" => "Europe/Stockholm",
|
134
|
+
"Vienna" => "Europe/Vienna",
|
135
|
+
"West Central Africa" => "Africa/Algiers",
|
136
|
+
"Bucharest" => "Europe/Bucharest",
|
137
|
+
"Cairo" => "Africa/Cairo",
|
138
|
+
"Helsinki" => "Europe/Helsinki",
|
139
|
+
"Kyiv" => "Europe/Kiev",
|
140
|
+
"Riga" => "Europe/Riga",
|
141
|
+
"Sofia" => "Europe/Sofia",
|
142
|
+
"Tallinn" => "Europe/Tallinn",
|
143
|
+
"Vilnius" => "Europe/Vilnius",
|
144
|
+
"Athens" => "Europe/Athens",
|
145
|
+
"Istanbul" => "Europe/Istanbul",
|
146
|
+
"Minsk" => "Europe/Minsk",
|
147
|
+
"Jerusalem" => "Asia/Jerusalem",
|
148
|
+
"Harare" => "Africa/Harare",
|
149
|
+
"Pretoria" => "Africa/Johannesburg",
|
150
|
+
"Kaliningrad" => "Europe/Kaliningrad",
|
151
|
+
"Moscow" => "Europe/Moscow",
|
152
|
+
"St. Petersburg" => "Europe/Moscow",
|
153
|
+
"Volgograd" => "Europe/Volgograd",
|
154
|
+
"Samara" => "Europe/Samara",
|
155
|
+
"Kuwait" => "Asia/Kuwait",
|
156
|
+
"Riyadh" => "Asia/Riyadh",
|
157
|
+
"Nairobi" => "Africa/Nairobi",
|
158
|
+
"Baghdad" => "Asia/Baghdad",
|
159
|
+
"Tehran" => "Asia/Tehran",
|
160
|
+
"Abu Dhabi" => "Asia/Muscat",
|
161
|
+
"Muscat" => "Asia/Muscat",
|
162
|
+
"Baku" => "Asia/Baku",
|
163
|
+
"Tbilisi" => "Asia/Tbilisi",
|
164
|
+
"Yerevan" => "Asia/Yerevan",
|
165
|
+
"Kabul" => "Asia/Kabul",
|
166
|
+
"Ekaterinburg" => "Asia/Yekaterinburg",
|
167
|
+
"Islamabad" => "Asia/Karachi",
|
168
|
+
"Karachi" => "Asia/Karachi",
|
169
|
+
"Tashkent" => "Asia/Tashkent",
|
170
|
+
"Chennai" => "Asia/Kolkata",
|
171
|
+
"Kolkata" => "Asia/Kolkata",
|
172
|
+
"Mumbai" => "Asia/Kolkata",
|
173
|
+
"New Delhi" => "Asia/Kolkata",
|
174
|
+
"Kathmandu" => "Asia/Kathmandu",
|
175
|
+
"Astana" => "Asia/Dhaka",
|
176
|
+
"Dhaka" => "Asia/Dhaka",
|
177
|
+
"Sri Jayawardenepura" => "Asia/Colombo",
|
178
|
+
"Almaty" => "Asia/Almaty",
|
179
|
+
"Novosibirsk" => "Asia/Novosibirsk",
|
180
|
+
"Rangoon" => "Asia/Rangoon",
|
181
|
+
"Bangkok" => "Asia/Bangkok",
|
182
|
+
"Hanoi" => "Asia/Bangkok",
|
183
|
+
"Jakarta" => "Asia/Jakarta",
|
184
|
+
"Krasnoyarsk" => "Asia/Krasnoyarsk",
|
185
|
+
"Beijing" => "Asia/Shanghai",
|
186
|
+
"Chongqing" => "Asia/Chongqing",
|
187
|
+
"Hong Kong" => "Asia/Hong_Kong",
|
188
|
+
"Urumqi" => "Asia/Urumqi",
|
189
|
+
"Kuala Lumpur" => "Asia/Kuala_Lumpur",
|
190
|
+
"Singapore" => "Asia/Singapore",
|
191
|
+
"Taipei" => "Asia/Taipei",
|
192
|
+
"Perth" => "Australia/Perth",
|
193
|
+
"Irkutsk" => "Asia/Irkutsk",
|
194
|
+
"Ulaanbaatar" => "Asia/Ulaanbaatar",
|
195
|
+
"Seoul" => "Asia/Seoul",
|
196
|
+
"Osaka" => "Asia/Tokyo",
|
197
|
+
"Sapporo" => "Asia/Tokyo",
|
198
|
+
"Tokyo" => "Asia/Tokyo",
|
199
|
+
"Yakutsk" => "Asia/Yakutsk",
|
200
|
+
"Darwin" => "Australia/Darwin",
|
201
|
+
"Adelaide" => "Australia/Adelaide",
|
202
|
+
"Canberra" => "Australia/Melbourne",
|
203
|
+
"Melbourne" => "Australia/Melbourne",
|
204
|
+
"Sydney" => "Australia/Sydney",
|
205
|
+
"Brisbane" => "Australia/Brisbane",
|
206
|
+
"Hobart" => "Australia/Hobart",
|
207
|
+
"Vladivostok" => "Asia/Vladivostok",
|
208
|
+
"Guam" => "Pacific/Guam",
|
209
|
+
"Port Moresby" => "Pacific/Port_Moresby",
|
210
|
+
"Magadan" => "Asia/Magadan",
|
211
|
+
"Srednekolymsk" => "Asia/Srednekolymsk",
|
212
|
+
"Solomon Is." => "Pacific/Guadalcanal",
|
213
|
+
"New Caledonia" => "Pacific/Noumea",
|
214
|
+
"Fiji" => "Pacific/Fiji",
|
215
|
+
"Kamchatka" => "Asia/Kamchatka",
|
216
|
+
"Marshall Is." => "Pacific/Majuro",
|
217
|
+
"Auckland" => "Pacific/Auckland",
|
218
|
+
"Wellington" => "Pacific/Auckland",
|
219
|
+
"Nuku'alofa" => "Pacific/Tongatapu",
|
220
|
+
"Tokelau Is." => "Pacific/Fakaofo",
|
221
|
+
"Chatham Is." => "Pacific/Chatham",
|
222
|
+
"Samoa" => "Pacific/Apia"
|
223
|
+
}
|
224
|
+
|
225
|
+
def timezone_format_to_js(source_format)
|
226
|
+
TIMEZONE_MAPPING.fetch(source_format) { raise DatetimeNotSupportedError.new("#{source_format} is not supported to convert it to js format") }
|
227
|
+
end
|
228
|
+
module_function :timezone_format_to_js
|
229
|
+
|
230
|
+
def datetime_format_to_js(source_format)
|
231
|
+
raise DatetimeNotSupportedError.new("#{source_format} is not supported to convert it to js format") unless supported(source_format)
|
232
|
+
supported_formats.inject(source_format) do |acc, h|
|
233
|
+
acc.gsub(h[0], h[1])
|
234
|
+
end
|
235
|
+
end
|
236
|
+
module_function :datetime_format_to_js
|
237
|
+
|
238
|
+
def supported(source_format)
|
239
|
+
source_format.scan(not_supported_regexp).none?
|
240
|
+
end
|
241
|
+
module_function :supported
|
242
|
+
|
243
|
+
def not_supported_regexp
|
244
|
+
Regexp.new(FORMAT_MAPPING.reject{|i|i[1]}.map(&:first).map{|i|"(#{i})"}.join("|"))
|
245
|
+
end
|
246
|
+
module_function :not_supported_regexp
|
247
|
+
|
248
|
+
def supported_formats
|
249
|
+
FORMAT_MAPPING.select{ |i| i[1] }
|
250
|
+
end
|
251
|
+
module_function :supported_formats
|
252
|
+
|
253
|
+
end
|
@@ -0,0 +1,11 @@
|
|
1
|
+
module DatetimeFormatConverter
|
2
|
+
module ViewHelpers
|
3
|
+
def datetime_format_to_js(source_format)
|
4
|
+
DatetimeFormatConverter.datetime_format_to_js(source_format)
|
5
|
+
end
|
6
|
+
|
7
|
+
def timezone_format_to_js(source_format)
|
8
|
+
DatetimeFormatConverter.timezone_format_to_js(source_format)
|
9
|
+
end
|
10
|
+
end
|
11
|
+
end
|
metadata
ADDED
@@ -0,0 +1,97 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: datetime_format_converter
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.4
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Alexey Osipenko
|
8
|
+
autorequire:
|
9
|
+
bindir: exe
|
10
|
+
cert_chain: []
|
11
|
+
date: 2016-02-11 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: bundler
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '1.11'
|
20
|
+
type: :development
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '1.11'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: rake
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '10.0'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '10.0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: minitest
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "~>"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '5.0'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "~>"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '5.0'
|
55
|
+
description: Converts ruby date/time format to javascript format of date/time
|
56
|
+
email:
|
57
|
+
- alexey@cimon.io
|
58
|
+
executables: []
|
59
|
+
extensions: []
|
60
|
+
extra_rdoc_files: []
|
61
|
+
files:
|
62
|
+
- ".gitignore"
|
63
|
+
- Gemfile
|
64
|
+
- README.md
|
65
|
+
- Rakefile
|
66
|
+
- bin/console
|
67
|
+
- bin/setup
|
68
|
+
- datetime_format_converter.gemspec
|
69
|
+
- lib/datetime_format_converter.rb
|
70
|
+
- lib/datetime_format_converter/railtie.rb
|
71
|
+
- lib/datetime_format_converter/version.rb
|
72
|
+
- lib/datetime_format_converter/view_helpers.rb
|
73
|
+
homepage: https://github.com/cimon-io/datetime_format_converter
|
74
|
+
licenses: []
|
75
|
+
metadata: {}
|
76
|
+
post_install_message:
|
77
|
+
rdoc_options: []
|
78
|
+
require_paths:
|
79
|
+
- lib
|
80
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
81
|
+
requirements:
|
82
|
+
- - ">="
|
83
|
+
- !ruby/object:Gem::Version
|
84
|
+
version: '0'
|
85
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - ">="
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '0'
|
90
|
+
requirements: []
|
91
|
+
rubyforge_project:
|
92
|
+
rubygems_version: 2.5.1
|
93
|
+
signing_key:
|
94
|
+
specification_version: 4
|
95
|
+
summary: Converts ruby date/time format to javascript format of date/time
|
96
|
+
test_files: []
|
97
|
+
has_rdoc:
|