js-timezone-converter-rails 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -9,11 +9,11 @@ module JSTimeZoneConverterRails
9
9
 
10
10
  module Helper
11
11
  def js_timezone_converter_data
12
- content_tag "div", "", id: 'js_timezone_converter_data', data: {
12
+ content_tag "div", "", id: 'js_timezone_converter_data', data: {
13
13
  timezones: Hash[ActiveSupport::TimeZone::MAPPING.keys.map { |zone|
14
14
  tz = ActiveSupport::TimeZone.new zone
15
15
  offset = tz.utc_offset
16
- dst = tz.period_for_local(Time.now,true).dst?
16
+ dst = tz.period_for_local(Time.now,true).dst? rescue false
17
17
  [zone, dst ? (offset + 3600): offset]
18
18
  }]
19
19
  }
@@ -1,3 +1,3 @@
1
1
  module JSTimeZoneConverterRails
2
- VERSION="0.0.1"
3
- end
2
+ VERSION="0.0.2"
3
+ end
metadata CHANGED
@@ -1,48 +1,67 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: js-timezone-converter-rails
3
- version: !ruby/object:Gem::Version
4
- version: 0.0.1
5
- prerelease:
3
+ version: !ruby/object:Gem::Version
4
+ prerelease: false
5
+ segments:
6
+ - 0
7
+ - 0
8
+ - 2
9
+ version: 0.0.2
6
10
  platform: ruby
7
- authors:
11
+ authors:
8
12
  - Eran Barak Levi
9
13
  autorequire:
10
14
  bindir: bin
11
15
  cert_chain: []
12
- date: 2013-05-16 00:00:00.000000000 Z
16
+
17
+ date: 2013-10-20 00:00:00 +03:00
18
+ default_executable:
13
19
  dependencies: []
20
+
14
21
  description: JavaScript Timezone Converter library for rails applications
15
22
  email: wtf@wtf.com
16
23
  executables: []
24
+
17
25
  extensions: []
26
+
18
27
  extra_rdoc_files: []
19
- files:
28
+
29
+ files:
20
30
  - lib/js-timezone-converter-rails/engine.rb
21
31
  - lib/js-timezone-converter-rails/version.rb
22
32
  - lib/js-timezone-converter-rails.rb
23
33
  - app/assets/javascripts/js-timezone-converter.js
34
+ has_rdoc: true
24
35
  homepage: http://github.com/eranb/js-timezone-converter-rails
25
36
  licenses: []
37
+
26
38
  post_install_message:
27
39
  rdoc_options: []
28
- require_paths:
40
+
41
+ require_paths:
29
42
  - lib
30
- required_ruby_version: !ruby/object:Gem::Requirement
31
- none: false
32
- requirements:
33
- - - ! '>='
34
- - !ruby/object:Gem::Version
43
+ required_ruby_version: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ">="
46
+ - !ruby/object:Gem::Version
47
+ segments:
48
+ - 1
49
+ - 8
50
+ - 5
35
51
  version: 1.8.5
36
- required_rubygems_version: !ruby/object:Gem::Requirement
37
- none: false
38
- requirements:
39
- - - ! '>='
40
- - !ruby/object:Gem::Version
41
- version: '0'
52
+ required_rubygems_version: !ruby/object:Gem::Requirement
53
+ requirements:
54
+ - - ">="
55
+ - !ruby/object:Gem::Version
56
+ segments:
57
+ - 0
58
+ version: "0"
42
59
  requirements: []
60
+
43
61
  rubyforge_project: js-timezone-converter-rails
44
- rubygems_version: 1.8.25
62
+ rubygems_version: 1.3.6
45
63
  signing_key:
46
64
  specification_version: 3
47
65
  summary: JavaScript Timezone Converter library
48
66
  test_files: []
67
+