youthtree-helpers 0.2.0 → 0.2.1

Sign up to get free protection for your applications and to get access to all the features.
data/Rakefile CHANGED
@@ -15,8 +15,8 @@ begin
15
15
  gem.homepage = "http://github.com/YouthTree/youthtree-helpers"
16
16
  gem.authors = ["Darcy Laycock"]
17
17
  gem.version = YouthTree::Helpers::VERSION
18
- gem.add_dependency "activesupport", "~> 3.0.0.rc"
19
- gem.add_dependency "actionpack", "~> 3.0.0.rc"
18
+ gem.add_dependency "activesupport", "~> 3.0"
19
+ gem.add_dependency "actionpack", "~> 3.0"
20
20
  gem.add_dependency "formtastic", "~> 1.2"
21
21
  gem.add_dependency "youthtree-js"
22
22
  gem.add_dependency "youthtree-settings"
@@ -2,10 +2,10 @@ require 'active_support/concern'
2
2
 
3
3
  module YouthTree
4
4
  module Helpers
5
- VERSION = "0.2.0".freeze
6
-
5
+ VERSION = "0.2.1".freeze
6
+
7
7
  extend ActiveSupport::Autoload
8
-
8
+
9
9
  autoload :GeneralHelper
10
10
  autoload :AnalyticsHelper
11
11
  autoload :AssetsHelper
@@ -13,7 +13,7 @@ module YouthTree
13
13
  autoload :SidebarHelper
14
14
  autoload :UuidTrackerHelper
15
15
  autoload :FormBuilder
16
-
16
+
17
17
  def self.install!
18
18
  ActionView::Base.class_eval do
19
19
  include GeneralHelper
@@ -25,19 +25,19 @@ module YouthTree
25
25
  end
26
26
  FormBuilder.install!
27
27
  end
28
-
28
+
29
29
  if defined?(Rails::Railtie)
30
30
  class Railtie < Rails::Railtie
31
31
  initializer "youthtree-helpers.setup-helpers" do
32
32
  YouthTree::Helpers.install!
33
33
  end
34
-
34
+
35
35
  initializer "youthtree-helpers.setup-i18n" do
36
36
  config.i18n.load_path += Dir[Pathname(__FILE__).dirname.join("locales", "**", "*.{yml,rb}")]
37
37
  end
38
-
38
+
39
39
  end
40
40
  end
41
-
41
+
42
42
  end
43
43
  end
@@ -81,9 +81,9 @@ module YouthTree
81
81
  if now.year == year
82
82
  year.to_s
83
83
  elsif year / 1000 == now.year / 1000 # same century
84
- year.to_s + "&ndash;" + now.year.to_s[-2..3]
84
+ (year.to_s + "&ndash;" + now.year.to_s[-2..3]).html_safe
85
85
  else
86
- year.to_s + "&ndash;" + now.year.to_s
86
+ (year.to_s + "&ndash;" + now.year.to_s).html_safe
87
87
  end
88
88
  end
89
89
 
@@ -130,4 +130,4 @@ module YouthTree
130
130
 
131
131
  end
132
132
  end
133
- end
133
+ end
@@ -1,15 +1,15 @@
1
1
  # Generated by jeweler
2
2
  # DO NOT EDIT THIS FILE DIRECTLY
3
- # Instead, edit Jeweler::Tasks in Rakefile, and run the gemspec command
3
+ # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
4
4
  # -*- encoding: utf-8 -*-
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{youthtree-helpers}
8
- s.version = "0.2.0"
8
+ s.version = "0.2.1"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Darcy Laycock"]
12
- s.date = %q{2010-12-12}
12
+ s.date = %q{2011-06-11}
13
13
  s.description = %q{Helpers to make life easier when coding YT-specific apps. see the code..}
14
14
  s.email = %q{sutto@sutto.net}
15
15
  s.extra_rdoc_files = [
@@ -35,29 +35,28 @@ Gem::Specification.new do |s|
35
35
  ]
36
36
  s.homepage = %q{http://github.com/YouthTree/youthtree-helpers}
37
37
  s.require_paths = ["lib"]
38
- s.rubygems_version = %q{1.3.7}
38
+ s.rubygems_version = %q{1.6.2}
39
39
  s.summary = %q{A exceedingly simple set of helpers used across Youth Tree web applications.}
40
40
 
41
41
  if s.respond_to? :specification_version then
42
- current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
43
42
  s.specification_version = 3
44
43
 
45
44
  if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
46
- s.add_runtime_dependency(%q<activesupport>, ["~> 3.0.0.rc"])
47
- s.add_runtime_dependency(%q<actionpack>, ["~> 3.0.0.rc"])
45
+ s.add_runtime_dependency(%q<activesupport>, ["~> 3.0"])
46
+ s.add_runtime_dependency(%q<actionpack>, ["~> 3.0"])
48
47
  s.add_runtime_dependency(%q<formtastic>, ["~> 1.2"])
49
48
  s.add_runtime_dependency(%q<youthtree-js>, [">= 0"])
50
49
  s.add_runtime_dependency(%q<youthtree-settings>, [">= 0"])
51
50
  else
52
- s.add_dependency(%q<activesupport>, ["~> 3.0.0.rc"])
53
- s.add_dependency(%q<actionpack>, ["~> 3.0.0.rc"])
51
+ s.add_dependency(%q<activesupport>, ["~> 3.0"])
52
+ s.add_dependency(%q<actionpack>, ["~> 3.0"])
54
53
  s.add_dependency(%q<formtastic>, ["~> 1.2"])
55
54
  s.add_dependency(%q<youthtree-js>, [">= 0"])
56
55
  s.add_dependency(%q<youthtree-settings>, [">= 0"])
57
56
  end
58
57
  else
59
- s.add_dependency(%q<activesupport>, ["~> 3.0.0.rc"])
60
- s.add_dependency(%q<actionpack>, ["~> 3.0.0.rc"])
58
+ s.add_dependency(%q<activesupport>, ["~> 3.0"])
59
+ s.add_dependency(%q<actionpack>, ["~> 3.0"])
61
60
  s.add_dependency(%q<formtastic>, ["~> 1.2"])
62
61
  s.add_dependency(%q<youthtree-js>, [">= 0"])
63
62
  s.add_dependency(%q<youthtree-settings>, [">= 0"])
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: youthtree-helpers
3
3
  version: !ruby/object:Gem::Version
4
- hash: 23
5
- prerelease: false
4
+ hash: 21
5
+ prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 2
9
- - 0
10
- version: 0.2.0
9
+ - 1
10
+ version: 0.2.1
11
11
  platform: ruby
12
12
  authors:
13
13
  - Darcy Laycock
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2010-12-12 00:00:00 +08:00
18
+ date: 2011-06-11 00:00:00 +08:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency
@@ -26,13 +26,11 @@ dependencies:
26
26
  requirements:
27
27
  - - ~>
28
28
  - !ruby/object:Gem::Version
29
- hash: 7712042
29
+ hash: 7
30
30
  segments:
31
31
  - 3
32
32
  - 0
33
- - 0
34
- - rc
35
- version: 3.0.0.rc
33
+ version: "3.0"
36
34
  type: :runtime
37
35
  version_requirements: *id001
38
36
  - !ruby/object:Gem::Dependency
@@ -43,13 +41,11 @@ dependencies:
43
41
  requirements:
44
42
  - - ~>
45
43
  - !ruby/object:Gem::Version
46
- hash: 7712042
44
+ hash: 7
47
45
  segments:
48
46
  - 3
49
47
  - 0
50
- - 0
51
- - rc
52
- version: 3.0.0.rc
48
+ version: "3.0"
53
49
  type: :runtime
54
50
  version_requirements: *id002
55
51
  - !ruby/object:Gem::Dependency
@@ -150,7 +146,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
150
146
  requirements: []
151
147
 
152
148
  rubyforge_project:
153
- rubygems_version: 1.3.7
149
+ rubygems_version: 1.6.2
154
150
  signing_key:
155
151
  specification_version: 3
156
152
  summary: A exceedingly simple set of helpers used across Youth Tree web applications.