concerto_iframe 0.0.9 → 0.1.0
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 +4 -4
- data/app/models/iframe.rb +1 -1
- data/lib/concerto_iframe/version.rb +1 -1
- metadata +21 -21
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: f95b2523af2c3a83803fd4f47d82ac389535a4ae
|
|
4
|
+
data.tar.gz: c9fb9c50aea40c94b6cfd5f06feb2196863ebdb3
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 646d40b3c58933759fbac833fbee5de281dfe378dff00578d1887d8820b52b00965a4d7b3dbd39ef3213c3a4650b443105081a5ff671e7416d34dc49c120517a
|
|
7
|
+
data.tar.gz: f0de13b6860881d8db80bbe65c9b48f9e48054eaa2e38814b1103a3b220a9f6f99623964047138f16aa76873ef2b04461a8740f01aeb7ae8c957d2a8160cafd2
|
data/app/models/iframe.rb
CHANGED
|
@@ -46,7 +46,7 @@ class Iframe < Content
|
|
|
46
46
|
end
|
|
47
47
|
|
|
48
48
|
def url_must_exist
|
|
49
|
-
if config['url'].empty? || (config['url'] =~ /[a-z]+\:\/\/.+/).nil?
|
|
49
|
+
if config['url'].empty? || (config['url'] =~ /[a-z]+\:\/\/.+/).nil? && !config['url'].starts_with?("data:text/html")
|
|
50
50
|
errors.add(:url, 'an absolute Url must be specified')
|
|
51
51
|
end
|
|
52
52
|
end
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: concerto_iframe
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0
|
|
4
|
+
version: 0.1.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Marvin Frederickson
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2017-12-31 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rails
|
|
@@ -105,41 +105,41 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
105
105
|
version: '0'
|
|
106
106
|
requirements: []
|
|
107
107
|
rubyforge_project:
|
|
108
|
-
rubygems_version: 2.
|
|
108
|
+
rubygems_version: 2.5.2
|
|
109
109
|
signing_key:
|
|
110
110
|
specification_version: 4
|
|
111
111
|
summary: custom iframe support for Concerto 2
|
|
112
112
|
test_files:
|
|
113
|
-
- test/
|
|
113
|
+
- test/unit/concerto_iframe/iframe_test.rb
|
|
114
|
+
- test/dummy/app/controllers/application_controller.rb
|
|
115
|
+
- test/dummy/app/views/layouts/application.html.erb
|
|
114
116
|
- test/dummy/app/assets/javascripts/application.js
|
|
115
117
|
- test/dummy/app/assets/stylesheets/application.css
|
|
116
|
-
- test/dummy/app/controllers/application_controller.rb
|
|
117
118
|
- test/dummy/app/helpers/application_helper.rb
|
|
118
|
-
- test/dummy/
|
|
119
|
-
- test/dummy/config/
|
|
120
|
-
- test/dummy/config/boot.rb
|
|
121
|
-
- test/dummy/config/database.yml
|
|
122
|
-
- test/dummy/config/environment.rb
|
|
123
|
-
- test/dummy/config/environments/development.rb
|
|
119
|
+
- test/dummy/config/routes.rb
|
|
120
|
+
- test/dummy/config/locales/en.yml
|
|
124
121
|
- test/dummy/config/environments/production.rb
|
|
122
|
+
- test/dummy/config/environments/development.rb
|
|
125
123
|
- test/dummy/config/environments/test.rb
|
|
124
|
+
- test/dummy/config/environment.rb
|
|
125
|
+
- test/dummy/config/application.rb
|
|
126
|
+
- test/dummy/config/database.yml
|
|
127
|
+
- test/dummy/config/boot.rb
|
|
126
128
|
- test/dummy/config/initializers/backtrace_silencers.rb
|
|
127
|
-
- test/dummy/config/initializers/inflections.rb
|
|
128
129
|
- test/dummy/config/initializers/mime_types.rb
|
|
129
|
-
- test/dummy/config/initializers/secret_token.rb
|
|
130
130
|
- test/dummy/config/initializers/session_store.rb
|
|
131
131
|
- test/dummy/config/initializers/wrap_parameters.rb
|
|
132
|
-
- test/dummy/config/
|
|
133
|
-
- test/dummy/config/
|
|
132
|
+
- test/dummy/config/initializers/secret_token.rb
|
|
133
|
+
- test/dummy/config/initializers/inflections.rb
|
|
134
134
|
- test/dummy/config.ru
|
|
135
|
-
- test/dummy/
|
|
135
|
+
- test/dummy/script/rails
|
|
136
|
+
- test/dummy/Rakefile
|
|
137
|
+
- test/dummy/public/favicon.ico
|
|
136
138
|
- test/dummy/public/422.html
|
|
137
139
|
- test/dummy/public/500.html
|
|
138
|
-
- test/dummy/public/
|
|
139
|
-
- test/dummy/Rakefile
|
|
140
|
+
- test/dummy/public/404.html
|
|
140
141
|
- test/dummy/README.rdoc
|
|
141
|
-
- test/dummy/script/rails
|
|
142
|
-
- test/fixtures/concerto_iframe/iframes.yml
|
|
143
142
|
- test/integration/navigation_test.rb
|
|
143
|
+
- test/concerto_iframe_test.rb
|
|
144
|
+
- test/fixtures/concerto_iframe/iframes.yml
|
|
144
145
|
- test/test_helper.rb
|
|
145
|
-
- test/unit/concerto_iframe/iframe_test.rb
|