dyn_meta 0.0.3 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.3
1
+ 0.0.4
Binary file
data/dyn_meta.gemspec CHANGED
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{dyn_meta}
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 = ["Mike Nelson"]
12
- s.date = %q{2011-10-05}
12
+ s.date = %q{2011-10-25}
13
13
  s.description = %q{Automate the lookup of page meta information based on the current request context. Meta information such as page titles and descriptions can be stored in a translations file rather than floating around in controllers or views.}
14
14
  s.email = %q{mike@mikeonrails.com}
15
15
  s.extra_rdoc_files = [
@@ -39,7 +39,7 @@ Gem::Specification.new do |s|
39
39
  s.homepage = %q{http://github.com/mnelson/dyn_meta}
40
40
  s.licenses = ["MIT"]
41
41
  s.require_paths = ["lib"]
42
- s.rubygems_version = %q{1.3.7}
42
+ s.rubygems_version = %q{1.3.6}
43
43
  s.summary = %q{Automate the lookup of page meta information based on the current request context}
44
44
  s.test_files = [
45
45
  "spec/dyn_meta_spec.rb",
@@ -50,7 +50,7 @@ Gem::Specification.new do |s|
50
50
  current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
51
51
  s.specification_version = 3
52
52
 
53
- if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
53
+ if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
54
54
  s.add_runtime_dependency(%q<rails>, [">= 0"])
55
55
  s.add_development_dependency(%q<rspec>, ["~> 2.1.0"])
56
56
  s.add_development_dependency(%q<cucumber>, [">= 0"])
@@ -13,7 +13,7 @@ module DynMeta
13
13
  return instance_variable_set(in_name, val) if val.present?
14
14
  return instance_variable_get(in_name) if instance_variable_get(in_name)
15
15
 
16
- trans = I18n.translate("meta.#{name.to_s.pluralize}") || {}
16
+ trans = I18n.translate("meta")[name.to_s.pluralize] || {}
17
17
  hash = trans
18
18
  [:controller, :action, :id].each do |p|
19
19
  val = params[p] && hash[params[p].to_s.to_sym] || nil
metadata CHANGED
@@ -1,13 +1,12 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dyn_meta
3
3
  version: !ruby/object:Gem::Version
4
- hash: 25
5
4
  prerelease: false
6
5
  segments:
7
6
  - 0
8
7
  - 0
9
- - 3
10
- version: 0.0.3
8
+ - 4
9
+ version: 0.0.4
11
10
  platform: ruby
12
11
  authors:
13
12
  - Mike Nelson
@@ -15,115 +14,101 @@ autorequire:
15
14
  bindir: bin
16
15
  cert_chain: []
17
16
 
18
- date: 2011-10-05 00:00:00 -07:00
17
+ date: 2011-10-25 00:00:00 -04:00
19
18
  default_executable:
20
19
  dependencies:
21
20
  - !ruby/object:Gem::Dependency
22
- requirement: &id001 !ruby/object:Gem::Requirement
23
- none: false
21
+ version_requirements: &id001 !ruby/object:Gem::Requirement
24
22
  requirements:
25
23
  - - ">="
26
24
  - !ruby/object:Gem::Version
27
- hash: 3
28
25
  segments:
29
26
  - 0
30
27
  version: "0"
28
+ requirement: *id001
31
29
  name: rails
32
30
  prerelease: false
33
31
  type: :runtime
34
- version_requirements: *id001
35
32
  - !ruby/object:Gem::Dependency
36
- requirement: &id002 !ruby/object:Gem::Requirement
37
- none: false
33
+ version_requirements: &id002 !ruby/object:Gem::Requirement
38
34
  requirements:
39
35
  - - ~>
40
36
  - !ruby/object:Gem::Version
41
- hash: 11
42
37
  segments:
43
38
  - 2
44
39
  - 1
45
40
  - 0
46
41
  version: 2.1.0
42
+ requirement: *id002
47
43
  name: rspec
48
44
  prerelease: false
49
45
  type: :development
50
- version_requirements: *id002
51
46
  - !ruby/object:Gem::Dependency
52
- requirement: &id003 !ruby/object:Gem::Requirement
53
- none: false
47
+ version_requirements: &id003 !ruby/object:Gem::Requirement
54
48
  requirements:
55
49
  - - ">="
56
50
  - !ruby/object:Gem::Version
57
- hash: 3
58
51
  segments:
59
52
  - 0
60
53
  version: "0"
54
+ requirement: *id003
61
55
  name: cucumber
62
56
  prerelease: false
63
57
  type: :development
64
- version_requirements: *id003
65
58
  - !ruby/object:Gem::Dependency
66
- requirement: &id004 !ruby/object:Gem::Requirement
67
- none: false
59
+ version_requirements: &id004 !ruby/object:Gem::Requirement
68
60
  requirements:
69
61
  - - ~>
70
62
  - !ruby/object:Gem::Version
71
- hash: 23
72
63
  segments:
73
64
  - 1
74
65
  - 0
75
66
  - 0
76
67
  version: 1.0.0
68
+ requirement: *id004
77
69
  name: bundler
78
70
  prerelease: false
79
71
  type: :development
80
- version_requirements: *id004
81
72
  - !ruby/object:Gem::Dependency
82
- requirement: &id005 !ruby/object:Gem::Requirement
83
- none: false
73
+ version_requirements: &id005 !ruby/object:Gem::Requirement
84
74
  requirements:
85
75
  - - ~>
86
76
  - !ruby/object:Gem::Version
87
- hash: 1
88
77
  segments:
89
78
  - 1
90
79
  - 5
91
80
  - 1
92
81
  version: 1.5.1
82
+ requirement: *id005
93
83
  name: jeweler
94
84
  prerelease: false
95
85
  type: :development
96
- version_requirements: *id005
97
86
  - !ruby/object:Gem::Dependency
98
- requirement: &id006 !ruby/object:Gem::Requirement
99
- none: false
87
+ version_requirements: &id006 !ruby/object:Gem::Requirement
100
88
  requirements:
101
89
  - - ">="
102
90
  - !ruby/object:Gem::Version
103
- hash: 3
104
91
  segments:
105
92
  - 2
106
93
  - 0
107
94
  version: "2.0"
95
+ requirement: *id006
108
96
  name: rails
109
97
  prerelease: false
110
98
  type: :runtime
111
- version_requirements: *id006
112
99
  - !ruby/object:Gem::Dependency
113
- requirement: &id007 !ruby/object:Gem::Requirement
114
- none: false
100
+ version_requirements: &id007 !ruby/object:Gem::Requirement
115
101
  requirements:
116
102
  - - ">"
117
103
  - !ruby/object:Gem::Version
118
- hash: 11
119
104
  segments:
120
105
  - 0
121
106
  - 0
122
107
  version: "0.0"
108
+ requirement: *id007
123
109
  name: i18n
124
110
  prerelease: false
125
111
  type: :runtime
126
- version_requirements: *id007
127
112
  description: Automate the lookup of page meta information based on the current request context. Meta information such as page titles and descriptions can be stored in a translations file rather than floating around in controllers or views.
128
113
  email: mike@mikeonrails.com
129
114
  executables: []
@@ -162,27 +147,23 @@ rdoc_options: []
162
147
  require_paths:
163
148
  - lib
164
149
  required_ruby_version: !ruby/object:Gem::Requirement
165
- none: false
166
150
  requirements:
167
151
  - - ">="
168
152
  - !ruby/object:Gem::Version
169
- hash: 3
170
153
  segments:
171
154
  - 0
172
155
  version: "0"
173
156
  required_rubygems_version: !ruby/object:Gem::Requirement
174
- none: false
175
157
  requirements:
176
158
  - - ">="
177
159
  - !ruby/object:Gem::Version
178
- hash: 3
179
160
  segments:
180
161
  - 0
181
162
  version: "0"
182
163
  requirements: []
183
164
 
184
165
  rubyforge_project:
185
- rubygems_version: 1.3.7
166
+ rubygems_version: 1.3.6
186
167
  signing_key:
187
168
  specification_version: 3
188
169
  summary: Automate the lookup of page meta information based on the current request context