redis_snippets 0.0.3 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
data/Rakefile CHANGED
@@ -19,10 +19,10 @@ end
19
19
 
20
20
  desc "New release"
21
21
  task :new_release do |t|
22
- # `rake version:bump:patch` # Updates VERSION.
23
- # `rake gemspec`
24
- # `git commit -am "Preparing new release."`
25
- # `rm -f pkg/*`
26
- # `rake build`
22
+ `rake version:bump:patch` # Updates VERSION.
23
+ `rake gemspec`
24
+ `git commit -am "Preparing new release."`
25
+ `rm -f pkg/*`
26
+ `rake build`
27
27
  `rake rubygems:release`
28
28
  end
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.3
1
+ 0.0.4
@@ -2,16 +2,18 @@ module RedisSnippets
2
2
  class Railtie < Rails::Railtie
3
3
  # This shouldn't be required when 3.1 arrives.
4
4
  # https://github.com/drogus/rails_helpers_fix
5
- initializer "redis_snippets.include_railties_helpers_fix" do
6
- helpers_paths = []
7
- Rails.application.railties.all do |r|
8
- if r.config.respond_to?(:paths) && r.config.paths.app.helpers
9
- helpers_paths += r.config.paths.app.helpers.to_a
5
+ if Rails.version < "3.1.0"
6
+ initializer "redis_snippets.include_railties_helpers_fix" do
7
+ helpers_paths = []
8
+ Rails.application.railties.all do |r|
9
+ if r.config.respond_to?(:paths) && r.config.paths.app.helpers
10
+ helpers_paths += r.config.paths.app.helpers.to_a
11
+ end
10
12
  end
11
- end
12
13
 
13
- ActiveSupport.on_load(:action_controller) do
14
- config.helpers_path += helpers_paths
14
+ ActiveSupport.on_load(:action_controller) do
15
+ config.helpers_path += helpers_paths
16
+ end
15
17
  end
16
18
  end
17
19
  end
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{redis_snippets}
8
- s.version = "0.0.3"
8
+ s.version = "0.0.4"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
- s.authors = ["Martin Moen Wulffeld"]
12
- s.date = %q{2011-05-24}
11
+ s.authors = [%q{Martin Moen Wulffeld}]
12
+ s.date = %q{2011-07-21}
13
13
  s.description = %q{}
14
14
  s.email = %q{martin@wulffeld.org}
15
15
  s.extra_rdoc_files = [
@@ -29,8 +29,8 @@ Gem::Specification.new do |s|
29
29
  "lib/redis_snippets/redis.rb",
30
30
  "redis_snippets.gemspec"
31
31
  ]
32
- s.require_paths = ["lib"]
33
- s.rubygems_version = %q{1.7.2}
32
+ s.require_paths = [%q{lib}]
33
+ s.rubygems_version = %q{1.8.5}
34
34
  s.summary = %q{View snippets held in Redis storage.}
35
35
 
36
36
  if s.respond_to? :specification_version then
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: redis_snippets
3
3
  version: !ruby/object:Gem::Version
4
- hash: 25
4
+ hash: 23
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 3
10
- version: 0.0.3
9
+ - 4
10
+ version: 0.0.4
11
11
  platform: ruby
12
12
  authors:
13
13
  - Martin Moen Wulffeld
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-05-24 00:00:00 Z
18
+ date: 2011-07-21 00:00:00 Z
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
21
21
  name: redis
@@ -95,7 +95,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
95
95
  requirements: []
96
96
 
97
97
  rubyforge_project:
98
- rubygems_version: 1.7.2
98
+ rubygems_version: 1.8.5
99
99
  signing_key:
100
100
  specification_version: 3
101
101
  summary: View snippets held in Redis storage.