cedar 0.2.77.pre → 0.2.79.pre

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b63877f8b178af1ed5069637495d6aeb9006e933
4
- data.tar.gz: f03d617296b6bd81a5947174b11cf0fa38294763
3
+ metadata.gz: 38a0a1e27655d8ec921b31b1cd3ff0469d55b41b
4
+ data.tar.gz: bd1412cabfd36a16e7dfc57b1ab0581fce665e05
5
5
  SHA512:
6
- metadata.gz: 8e4763372fb260e068e9372900311372b5c1f4bdbb856a19658b7946959c84f20a49b27ad1e2eb0d276364601d658aec76e57ce3e327a22058117e7c2fe42537
7
- data.tar.gz: d62a6ace3bac056ee9517f046e389fbb73c401732615f81f7bf31afefcc95bdc43e2a45acd892fec9223a424d9de906c264171846caf80100a8bf78eefb1b09d
6
+ metadata.gz: 89ec91efe2906fb121395d1690f6c1b9cf5e7812a6959b46fcdc33459d77c907d0127ede79c4bd8c64cfb8e331a18bbe2a50f0bebb198c52d4ce808a2e5325d4
7
+ data.tar.gz: 3fce8c872709c1b8a81b84c3cf701aa064d3ab5dd48f635e85a6bb9b38acefc78885878c73dcc1506c7e245f22f62cee6187a5ea2ea7cd43b836217d9573f538
@@ -4,6 +4,6 @@ window.Cedar.config.server = "<%= Cedar.config.server %>"
4
4
  window.Cedar.config.debug = <%= Cedar.config.debug %>
5
5
  window.Cedar.config.wait = <%= Cedar.config.wait %>
6
6
  window.Cedar.config.fetch = <%= Cedar.config.fetch %>
7
- window.Cedar.config.forceHttps = <%= Cedar.config.force_https %>
7
+ window.Cedar.config.allowUnsecured = <%= Cedar.config.allow_unsecured %>
8
8
  window.Cedar.config.objectNameFilter = "<%= Cedar.config.object_name_filter %>"
9
9
  window.Cedar.config.liveMode = <%= Cedar.config.live_mode %>
@@ -35,11 +35,6 @@ Cedar.debug = function(msg) {
35
35
  *
36
36
  * Application object for initializing and setting global values
37
37
  *
38
- * @param <Array> options
39
- * - server : 'test.cdr.plyinc.com' - *required
40
- * - debug : true | false
41
- * - fetch : true | false
42
- * - forceHttps : true | false
43
38
  */
44
39
  Cedar.Application = function(options) {
45
40
  if ( Cedar.initialized ) {
@@ -50,7 +45,7 @@ Cedar.Application = function(options) {
50
45
  debug: false,
51
46
  fetch: true,
52
47
  wait: false,
53
- forceHttps: false,
48
+ allowUnsecured: false,
54
49
  objectNameFilter: '',
55
50
  liveMode: true
56
51
  };
@@ -106,10 +101,10 @@ Cedar.Application.prototype.initializeHTML = function() {
106
101
  };
107
102
 
108
103
  Cedar.Application.prototype.getProtocol = function() {
109
- if (this.options.forceHttps || window.location.protocol === 'https:') {
110
- return 'https://';
111
- } else {
104
+ if (this.options.allowUnsecured && window.location.protocol === 'http:') {
112
105
  return 'http://';
106
+ } else {
107
+ return 'https://';
113
108
  }
114
109
  };
115
110
 
@@ -5,14 +5,14 @@
5
5
 
6
6
  module Cedar
7
7
  class Config
8
- attr_accessor :server, :debug, :wait, :fetch, :force_https, :object_name_filter, :live_mode
8
+ attr_accessor :server, :debug, :wait, :fetch, :allow_unsecured, :object_name_filter, :live_mode
9
9
 
10
10
  def initialize
11
11
  @server = ''
12
12
  @debug = false
13
13
  @wait = false
14
14
  @fetch = true
15
- @force_https = false
15
+ @allow_unsecured = false
16
16
  @object_name_filter = ''
17
17
  @live_mode = true
18
18
  end
@@ -1,3 +1,3 @@
1
1
  module Cedar
2
- VERSION = "0.2.77.pre"
2
+ VERSION = "0.2.79.pre"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cedar
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.77.pre
4
+ version: 0.2.79.pre
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jed Murdock