mark_facets 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,17 @@
1
+ class ActiveSupport::TimeZone
2
+
3
+ class << self
4
+
5
+ def all_with_us_first
6
+ zones = [ActiveSupport::TimeZone.us_zones.dup].flatten
7
+ ActiveSupport::TimeZone.all.each {|z| zones << z unless zones.include?(z)}
8
+ return zones
9
+ end
10
+
11
+ def options_for_select
12
+ ActiveSupport::TimeZone.all_with_us_first.collect{|x| [x.to_s, x.name]}
13
+ end
14
+
15
+ end
16
+
17
+ end
data/lib/mark_facets.rb CHANGED
@@ -13,7 +13,7 @@ rails_path = File.join(path, 'rails')
13
13
  end
14
14
 
15
15
  if defined?(Rails)
16
- %w{rails}.each do |f|
16
+ %w{rails time_zones}.each do |f|
17
17
  require File.expand_path(File.join(rails_path, f))
18
18
  end
19
19
  end
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 1
8
- - 0
9
- version: 0.1.0
8
+ - 1
9
+ version: 0.1.1
10
10
  platform: ruby
11
11
  authors:
12
12
  - markbates
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2010-08-30 00:00:00 -04:00
17
+ date: 2010-09-01 00:00:00 -04:00
18
18
  default_executable:
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
@@ -49,6 +49,7 @@ files:
49
49
  - lib/mark_facets/rails/test/rspec/should/have_same_elements.rb
50
50
  - lib/mark_facets/rails/test/rspec/should/render_404.rb
51
51
  - lib/mark_facets/rails/test.rb
52
+ - lib/mark_facets/rails/time_zones.rb
52
53
  - lib/mark_facets/ruby/big_decimal.rb
53
54
  - lib/mark_facets/ruby/file.rb
54
55
  - lib/mark_facets/ruby/hash.rb
@@ -73,7 +74,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
73
74
  requirements:
74
75
  - - ">="
75
76
  - !ruby/object:Gem::Version
76
- hash: -3572590871769718849
77
+ hash: 4314776129040420778
77
78
  segments:
78
79
  - 0
79
80
  version: "0"