instedd-rails 0.0.15 → 0.0.16

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/README.markdown CHANGED
@@ -84,3 +84,11 @@ To render tabs in the view:
84
84
  <%= tab "Overview", overview_path %>
85
85
  <%= tab "Settings", settings_path %>
86
86
  </ul>
87
+
88
+ Using a different URL for the theme
89
+ -----------------------------------
90
+
91
+ You can use the INSTEDD\_THEME environment variable to use a different
92
+ url for the theme. For example:
93
+
94
+ INSTEDD\_THEME=http://localhost rails s
@@ -9,8 +9,8 @@
9
9
  <%= javascript_include_tag "application" %>
10
10
  <%= csrf_meta_tags %>
11
11
  <% end %>
12
- <%= stylesheet_link_tag 'http://theme.instedd.org/theme/stylesheets/theme.css' %>
13
- <%= javascript_include_tag 'http://theme.instedd.org/theme/javascripts/theme.js' %>
12
+ <%= stylesheet_link_tag "#{InsteddRails.url}/theme/stylesheets/theme.css" %>
13
+ <%= javascript_include_tag "#{InsteddRails.url}/theme/javascripts/theme.js" %>
14
14
  <% if Rails::version < '3.1' %>
15
15
  <%= stylesheet_link_tag "/stylesheets/#{application_name.underscore}.css" %>
16
16
  <% else %>
@@ -1,7 +1,7 @@
1
1
  <%= body do %>
2
2
  <%= header do %>
3
- <img src="http://theme.instedd.org/theme/images/header/logos/<%= application_name.underscore %>.png"/>
4
- <img src="http://theme.instedd.org/theme/images/header/shadow_small.png"/>
3
+ <img src="<%= InsteddRails.url %>/theme/images/header/logos/<%= application_name.underscore %>.png"/>
4
+ <img src="<%= InsteddRails.url %>/theme/images/header/shadow_small.png"/>
5
5
  <% end %>
6
6
  <%= content do %>
7
7
  <%= yield %>
@@ -15,4 +15,4 @@
15
15
  <% end %>
16
16
  </p>
17
17
  <% end %>
18
- <% end %>
18
+ <% end %>
data/lib/instedd-rails.rb CHANGED
@@ -12,5 +12,7 @@ require "instedd_rails/routes"
12
12
  # require "mailer_helper"
13
13
 
14
14
  module InsteddRails
15
-
15
+ def self.url
16
+ ENV["INSTEDD_THEME"] || "http://theme.instedd.org"
17
+ end
16
18
  end
@@ -10,7 +10,7 @@ module ActionDispatch
10
10
  rescue
11
11
  render_exception_without_template(env, exception)
12
12
  end
13
-
13
+
14
14
  alias_method_chain :render_exception, :template
15
15
  end
16
- end
16
+ end
@@ -1,3 +1,3 @@
1
1
  module InsteddRails
2
- VERSION = "0.0.15"
2
+ VERSION = "0.0.16"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: instedd-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.15
4
+ version: 0.0.16
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-02-22 00:00:00.000000000 Z
12
+ date: 2012-04-20 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails
16
- requirement: &70182992866460 !ruby/object:Gem::Requirement
16
+ requirement: &70281596116000 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: '3.0'
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *70182992866460
24
+ version_requirements: *70281596116000
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: breadcrumbs_on_rails
27
- requirement: &70182992866040 !ruby/object:Gem::Requirement
27
+ requirement: &70281596115580 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ! '>='
@@ -32,7 +32,7 @@ dependencies:
32
32
  version: '0'
33
33
  type: :runtime
34
34
  prerelease: false
35
- version_requirements: *70182992866040
35
+ version_requirements: *70281596115580
36
36
  description: This gem unifies all the helpers and common views used by all Instedd
37
37
  applications
38
38
  email: