merb_app_config 1.0.4 → 1.0.5

Sign up to get free protection for your applications and to get access to all the features.
data/Rakefile CHANGED
@@ -5,7 +5,7 @@ require 'merb-core'
5
5
  require 'merb-core/tasks/merb'
6
6
 
7
7
  GEM_NAME = "merb_app_config"
8
- GEM_VERSION = "1.0.4"
8
+ GEM_VERSION = "1.0.5"
9
9
  AUTHOR = "Jacques Crocker"
10
10
  EMAIL = "merbjedi@gmail.com"
11
11
  HOMEPAGE = "http://www.merbjedi.com/"
@@ -2,7 +2,7 @@ module ApplicationConfig
2
2
  module ViewHelpers
3
3
  def javascripts_from_config(options = {})
4
4
  html = ""
5
- only = [options.delete(:only)].flatten.compact
5
+ only = [options.delete(:only)].flatten.compact.map{|i| i.to_s}
6
6
  if defined?(AppConfig) and AppConfig.javascripts
7
7
  AppConfig.javascripts.each do |javascript|
8
8
  if javascript.is_a?(OpenStruct)
@@ -11,7 +11,7 @@ module ApplicationConfig
11
11
 
12
12
  if javascript.is_a? Hash
13
13
  javascript.each do |key, val|
14
- next unless only.empty? || only.include?(key)
14
+ next unless only.empty? || only.include?(key.to_s)
15
15
 
16
16
  args = [val].flatten
17
17
  args = args.map{|s| s.gsub("javascripts/", AppConfig.javascript_path)} if AppConfig.javascript_path
@@ -41,7 +41,7 @@ module ApplicationConfig
41
41
 
42
42
  def stylesheets_from_config(options = {})
43
43
  html = ""
44
- only = [options.delete(:only)].flatten.compact
44
+ only = [options.delete(:only)].flatten.compact.map{|i| i.to_s}
45
45
  if defined?(AppConfig) and AppConfig.stylesheets
46
46
  AppConfig.stylesheets.each do |stylesheet|
47
47
  if stylesheet.is_a?(OpenStruct)
@@ -50,7 +50,7 @@ module ApplicationConfig
50
50
 
51
51
  if stylesheet.is_a? Hash
52
52
  stylesheet.each do |key, val|
53
- next unless only.empty? || only.include?(key)
53
+ next unless only.empty? || only.include?(key.to_s)
54
54
 
55
55
  args = [val].flatten
56
56
  args = args.map{|s| s.gsub("stylesheets/", AppConfig.stylesheet_path)} if AppConfig.stylesheet_path
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: merb_app_config
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.4
4
+ version: 1.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jacques Crocker
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-04-06 00:00:00 -07:00
12
+ date: 2009-05-23 00:00:00 -07:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
@@ -35,13 +35,14 @@ files:
35
35
  - LICENSE
36
36
  - README
37
37
  - Rakefile
38
- - lib/application_config
39
38
  - lib/application_config/config_builder.rb
40
39
  - lib/application_config/view_helpers.rb
41
40
  - lib/merb_app_config.rb
42
41
  - lib/merbtasks.rb
43
42
  has_rdoc: true
44
43
  homepage: http://www.merbjedi.com/
44
+ licenses: []
45
+
45
46
  post_install_message:
46
47
  rdoc_options: []
47
48
 
@@ -62,9 +63,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
62
63
  requirements: []
63
64
 
64
65
  rubyforge_project: merb
65
- rubygems_version: 1.3.1
66
+ rubygems_version: 1.3.2
66
67
  signing_key:
67
- specification_version: 2
68
+ specification_version: 3
68
69
  summary: Merb plugin that provides easy to use Application Configurations via YAML
69
70
  test_files: []
70
71