muck-engine 0.1.20 → 0.1.21

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/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.20
1
+ 0.1.21
@@ -64,7 +64,18 @@ module ActionController
64
64
  nil
65
65
  end
66
66
  end
67
-
67
+
68
+ # **********************************************
69
+ # SSL method
70
+ # only require ssl if we are in production
71
+ def ssl_required?
72
+ return false unless GlobalConfig.enable_ssl
73
+ return ENV['SSL'] == 'on' ? true : false if defined? ENV['SSL']
74
+ return false if local_request?
75
+ return false if RAILS_ENV == 'test'
76
+ ((self.class.read_inheritable_attribute(:ssl_required_actions) || []).include?(action_name.to_sym)) && (RAILS_ENV == 'production' || RAILS_ENV == 'staging')
77
+ end
78
+
68
79
  # **********************************************
69
80
  # Paging methods
70
81
  def setup_paging
@@ -76,8 +87,8 @@ module ActionController
76
87
  def set_will_paginate_string
77
88
  # Because I18n.locale are dynamically determined in ApplicationController,
78
89
  # it should not put in config/initializers/will_paginate.rb
79
- WillPaginate::ViewHelpers.pagination_options[:previous_label] = t('common.previous_page')
80
- WillPaginate::ViewHelpers.pagination_options[:next_label] = t('common.next_page')
90
+ WillPaginate::ViewHelpers.pagination_options[:previous_label] = t('muck.general.previous')
91
+ WillPaginate::ViewHelpers.pagination_options[:next_label] = t('muck.general.next')
81
92
  end
82
93
 
83
94
  # **********************************************
@@ -16,6 +16,8 @@ en:
16
16
  settings_saved: Settings have been saved.
17
17
  delete: Delete
18
18
  update: Update
19
+ previous: '« Previous'
20
+ next: 'Next »'
19
21
  engine:
20
22
  choose_country: "Choose Country"
21
23
  select_country_prompt: "Please select a country"
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{muck-engine}
5
- s.version = "0.1.20"
5
+ s.version = "0.1.21"
6
6
 
7
7
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
8
8
  s.authors = ["Justin Ball"]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: muck-engine
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.20
4
+ version: 0.1.21
5
5
  platform: ruby
6
6
  authors:
7
7
  - Justin Ball