vidibus-helpers 0.0.3 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile CHANGED
@@ -1,6 +1,8 @@
1
- source "http://gemcutter.org"
2
- gem "bundler", "~> 1.0.0"
1
+ source :rubygems
3
2
  gem "activesupport", "~> 3.0.0"
4
3
  gem "actionpack", "~> 3.0.0"
5
- gem "rspec", "~> 2.0.0.beta.20"
6
- gem "relevance-rcov"
4
+
5
+ group :development do
6
+ gem "rspec", "~> 2.0.0.beta.20"
7
+ gem "relevance-rcov"
8
+ end
data/Gemfile.lock CHANGED
@@ -1,43 +1,43 @@
1
1
  GEM
2
- remote: http://gemcutter.org/
2
+ remote: http://rubygems.org/
3
3
  specs:
4
4
  abstract (1.0.0)
5
- actionpack (3.0.0)
6
- activemodel (= 3.0.0)
7
- activesupport (= 3.0.0)
5
+ actionpack (3.0.3)
6
+ activemodel (= 3.0.3)
7
+ activesupport (= 3.0.3)
8
8
  builder (~> 2.1.2)
9
9
  erubis (~> 2.6.6)
10
- i18n (~> 0.4.1)
10
+ i18n (~> 0.4)
11
11
  rack (~> 1.2.1)
12
- rack-mount (~> 0.6.12)
13
- rack-test (~> 0.5.4)
12
+ rack-mount (~> 0.6.13)
13
+ rack-test (~> 0.5.6)
14
14
  tzinfo (~> 0.3.23)
15
- activemodel (3.0.0)
16
- activesupport (= 3.0.0)
15
+ activemodel (3.0.3)
16
+ activesupport (= 3.0.3)
17
17
  builder (~> 2.1.2)
18
- i18n (~> 0.4.1)
19
- activesupport (3.0.0)
18
+ i18n (~> 0.4)
19
+ activesupport (3.0.3)
20
20
  builder (2.1.2)
21
21
  diff-lcs (1.1.2)
22
22
  erubis (2.6.6)
23
23
  abstract (>= 1.0.0)
24
- i18n (0.4.1)
24
+ i18n (0.5.0)
25
25
  rack (1.2.1)
26
26
  rack-mount (0.6.13)
27
27
  rack (>= 1.0.0)
28
28
  rack-test (0.5.6)
29
29
  rack (>= 1.0)
30
30
  relevance-rcov (0.9.2.1)
31
- rspec (2.0.0.beta.22)
32
- rspec-core (= 2.0.0.beta.22)
33
- rspec-expectations (= 2.0.0.beta.22)
34
- rspec-mocks (= 2.0.0.beta.22)
35
- rspec-core (2.0.0.beta.22)
36
- rspec-expectations (2.0.0.beta.22)
31
+ rspec (2.0.1)
32
+ rspec-core (~> 2.0.1)
33
+ rspec-expectations (~> 2.0.1)
34
+ rspec-mocks (~> 2.0.1)
35
+ rspec-core (2.0.1)
36
+ rspec-expectations (2.0.1)
37
37
  diff-lcs (>= 1.1.2)
38
- rspec-mocks (2.0.0.beta.22)
39
- rspec-core (= 2.0.0.beta.22)
40
- rspec-expectations (= 2.0.0.beta.22)
38
+ rspec-mocks (2.0.1)
39
+ rspec-core (~> 2.0.1)
40
+ rspec-expectations (~> 2.0.1)
41
41
  tzinfo (0.3.23)
42
42
 
43
43
  PLATFORMS
@@ -46,6 +46,5 @@ PLATFORMS
46
46
  DEPENDENCIES
47
47
  actionpack (~> 3.0.0)
48
48
  activesupport (~> 3.0.0)
49
- bundler (~> 1.0.0)
50
49
  relevance-rcov
51
50
  rspec (~> 2.0.0.beta.20)
data/Rakefile CHANGED
@@ -13,8 +13,6 @@ begin
13
13
  gem.email = "andre@vidibus.com"
14
14
  gem.homepage = "http://github.com/vidibus/vidibus-helpers"
15
15
  gem.authors = ["Andre Pankratz"]
16
- gem.add_dependency "activesupport", "~> 3.0.0"
17
- # gem is a Gem::Specification... see http://www.rubygems.org/read/chapter/20 for additional settings
18
16
  end
19
17
  Jeweler::GemcutterTasks.new
20
18
  rescue LoadError
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.3
1
+ 0.0.4
@@ -5,13 +5,20 @@ module Vidibus
5
5
  extend ActiveSupport::Concern
6
6
 
7
7
  included do
8
- helper_method :current_host
8
+ helper_method :current_host, :current_url
9
9
  end
10
10
 
11
11
  # Returns current hostname with protocol.
12
12
  def current_host
13
13
  @current_host ||= "#{request.protocol}#{request.host_with_port}"
14
14
  end
15
+
16
+ # Returns the current url.
17
+ # Provide :params => true to include request params.
18
+ def current_url(options = {})
19
+ path = (options[:params] == true) ? request.fullpath : request.path
20
+ "#{current_host}#{path}"
21
+ end
15
22
  end
16
23
  end
17
24
  end
@@ -1,48 +1,46 @@
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{vidibus-helpers}
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
11
  s.authors = ["Andre Pankratz"]
12
- s.date = %q{2010-10-04}
12
+ s.date = %q{2010-12-08}
13
13
  s.description = %q{A collections of application helpers.}
14
14
  s.email = %q{andre@vidibus.com}
15
15
  s.extra_rdoc_files = [
16
16
  "LICENSE",
17
- "README.rdoc"
17
+ "README.rdoc"
18
18
  ]
19
19
  s.files = [
20
20
  ".document",
21
- ".gitignore",
22
- ".rspec",
23
- "Gemfile",
24
- "Gemfile.lock",
25
- "LICENSE",
26
- "README.rdoc",
27
- "Rakefile",
28
- "VERSION",
29
- "lib/vidibus-helpers.rb",
30
- "lib/vidibus/helpers.rb",
31
- "lib/vidibus/helpers/extensions.rb",
32
- "lib/vidibus/helpers/extensions/controller.rb",
33
- "lib/vidibus/helpers/extensions/view.rb",
34
- "spec/spec_helper.rb",
35
- "spec/vidibus/helpers/action_view_spec.rb",
36
- "vidibus-helpers.gemspec"
21
+ ".rspec",
22
+ "Gemfile",
23
+ "Gemfile.lock",
24
+ "LICENSE",
25
+ "README.rdoc",
26
+ "Rakefile",
27
+ "VERSION",
28
+ "lib/vidibus-helpers.rb",
29
+ "lib/vidibus/helpers.rb",
30
+ "lib/vidibus/helpers/extensions.rb",
31
+ "lib/vidibus/helpers/extensions/controller.rb",
32
+ "lib/vidibus/helpers/extensions/view.rb",
33
+ "spec/spec_helper.rb",
34
+ "spec/vidibus/helpers/action_view_spec.rb",
35
+ "vidibus-helpers.gemspec"
37
36
  ]
38
37
  s.homepage = %q{http://github.com/vidibus/vidibus-helpers}
39
- s.rdoc_options = ["--charset=UTF-8"]
40
38
  s.require_paths = ["lib"]
41
39
  s.rubygems_version = %q{1.3.7}
42
40
  s.summary = %q{Helpers for Vidibus applications.}
43
41
  s.test_files = [
44
42
  "spec/spec_helper.rb",
45
- "spec/vidibus/helpers/action_view_spec.rb"
43
+ "spec/vidibus/helpers/action_view_spec.rb"
46
44
  ]
47
45
 
48
46
  if s.respond_to? :specification_version then
@@ -51,11 +49,20 @@ Gem::Specification.new do |s|
51
49
 
52
50
  if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
53
51
  s.add_runtime_dependency(%q<activesupport>, ["~> 3.0.0"])
52
+ s.add_runtime_dependency(%q<actionpack>, ["~> 3.0.0"])
53
+ s.add_development_dependency(%q<rspec>, ["~> 2.0.0.beta.20"])
54
+ s.add_development_dependency(%q<relevance-rcov>, [">= 0"])
54
55
  else
55
56
  s.add_dependency(%q<activesupport>, ["~> 3.0.0"])
57
+ s.add_dependency(%q<actionpack>, ["~> 3.0.0"])
58
+ s.add_dependency(%q<rspec>, ["~> 2.0.0.beta.20"])
59
+ s.add_dependency(%q<relevance-rcov>, [">= 0"])
56
60
  end
57
61
  else
58
62
  s.add_dependency(%q<activesupport>, ["~> 3.0.0"])
63
+ s.add_dependency(%q<actionpack>, ["~> 3.0.0"])
64
+ s.add_dependency(%q<rspec>, ["~> 2.0.0.beta.20"])
65
+ s.add_dependency(%q<relevance-rcov>, [">= 0"])
59
66
  end
60
67
  end
61
68
 
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vidibus-helpers
3
3
  version: !ruby/object:Gem::Version
4
- hash: 25
4
+ hash: 23
5
5
  prerelease: false
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
  - Andre Pankratz
@@ -15,13 +15,14 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2010-10-04 00:00:00 +02:00
18
+ date: 2010-12-08 00:00:00 +01:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency
22
- name: activesupport
22
+ type: :runtime
23
23
  prerelease: false
24
- requirement: &id001 !ruby/object:Gem::Requirement
24
+ name: activesupport
25
+ version_requirements: &id001 !ruby/object:Gem::Requirement
25
26
  none: false
26
27
  requirements:
27
28
  - - ~>
@@ -32,8 +33,55 @@ dependencies:
32
33
  - 0
33
34
  - 0
34
35
  version: 3.0.0
36
+ requirement: *id001
37
+ - !ruby/object:Gem::Dependency
35
38
  type: :runtime
36
- version_requirements: *id001
39
+ prerelease: false
40
+ name: actionpack
41
+ version_requirements: &id002 !ruby/object:Gem::Requirement
42
+ none: false
43
+ requirements:
44
+ - - ~>
45
+ - !ruby/object:Gem::Version
46
+ hash: 7
47
+ segments:
48
+ - 3
49
+ - 0
50
+ - 0
51
+ version: 3.0.0
52
+ requirement: *id002
53
+ - !ruby/object:Gem::Dependency
54
+ type: :development
55
+ prerelease: false
56
+ name: rspec
57
+ version_requirements: &id003 !ruby/object:Gem::Requirement
58
+ none: false
59
+ requirements:
60
+ - - ~>
61
+ - !ruby/object:Gem::Version
62
+ hash: 62196427
63
+ segments:
64
+ - 2
65
+ - 0
66
+ - 0
67
+ - beta
68
+ - 20
69
+ version: 2.0.0.beta.20
70
+ requirement: *id003
71
+ - !ruby/object:Gem::Dependency
72
+ type: :development
73
+ prerelease: false
74
+ name: relevance-rcov
75
+ version_requirements: &id004 !ruby/object:Gem::Requirement
76
+ none: false
77
+ requirements:
78
+ - - ">="
79
+ - !ruby/object:Gem::Version
80
+ hash: 3
81
+ segments:
82
+ - 0
83
+ version: "0"
84
+ requirement: *id004
37
85
  description: A collections of application helpers.
38
86
  email: andre@vidibus.com
39
87
  executables: []
@@ -45,7 +93,6 @@ extra_rdoc_files:
45
93
  - README.rdoc
46
94
  files:
47
95
  - .document
48
- - .gitignore
49
96
  - .rspec
50
97
  - Gemfile
51
98
  - Gemfile.lock
@@ -66,8 +113,8 @@ homepage: http://github.com/vidibus/vidibus-helpers
66
113
  licenses: []
67
114
 
68
115
  post_install_message:
69
- rdoc_options:
70
- - --charset=UTF-8
116
+ rdoc_options: []
117
+
71
118
  require_paths:
72
119
  - lib
73
120
  required_ruby_version: !ruby/object:Gem::Requirement
data/.gitignore DELETED
@@ -1,22 +0,0 @@
1
- ## MAC OS
2
- .DS_Store
3
-
4
- ## TEXTMATE
5
- *.tmproj
6
- tmtags
7
-
8
- ## EMACS
9
- *~
10
- \#*
11
- .\#*
12
-
13
- ## VIM
14
- *.swp
15
-
16
- ## PROJECT::GENERAL
17
- coverage
18
- rdoc
19
- pkg
20
-
21
- ## PROJECT::SPECIFIC
22
- .bundle