openseadragon 0.0.4 → 0.0.5
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/.gitignore +1 -0
- data/README.md +62 -11
- data/app/assets/javascripts/openseadragon/rails.js +42 -0
- data/app/helpers/openseadragon/openseadragon_helper.rb +104 -86
- data/app/models/openseadragon/{info.rb → open_street_map.rb} +4 -5
- data/lib/openseadragon/version.rb +1 -1
- data/openseadragon.gemspec +1 -0
- data/spec/helpers/openseadragon_helper_spec.rb +79 -145
- data/spec/models/openseadragon/open_street_map.rb +11 -0
- metadata +20 -113
- data/spec/internal/.generated_engine_cart +0 -1
- data/spec/internal/.gitignore +0 -16
- data/spec/internal/Gemfile +0 -46
- data/spec/internal/README.rdoc +0 -28
- data/spec/internal/Rakefile +0 -6
- data/spec/internal/app/assets/images/.keep +0 -0
- data/spec/internal/app/assets/javascripts/application.js +0 -16
- data/spec/internal/app/assets/stylesheets/application.css +0 -13
- data/spec/internal/app/controllers/application_controller.rb +0 -5
- data/spec/internal/app/controllers/concerns/.keep +0 -0
- data/spec/internal/app/helpers/application_helper.rb +0 -2
- data/spec/internal/app/mailers/.keep +0 -0
- data/spec/internal/app/models/.keep +0 -0
- data/spec/internal/app/models/concerns/.keep +0 -0
- data/spec/internal/app/views/layouts/application.html.erb +0 -14
- data/spec/internal/bin/bundle +0 -3
- data/spec/internal/bin/rails +0 -4
- data/spec/internal/bin/rake +0 -4
- data/spec/internal/config.ru +0 -4
- data/spec/internal/config/application.rb +0 -23
- data/spec/internal/config/boot.rb +0 -4
- data/spec/internal/config/database.yml +0 -25
- data/spec/internal/config/environment.rb +0 -5
- data/spec/internal/config/environments/development.rb +0 -29
- data/spec/internal/config/environments/production.rb +0 -80
- data/spec/internal/config/environments/test.rb +0 -36
- data/spec/internal/config/initializers/backtrace_silencers.rb +0 -7
- data/spec/internal/config/initializers/filter_parameter_logging.rb +0 -4
- data/spec/internal/config/initializers/inflections.rb +0 -16
- data/spec/internal/config/initializers/mime_types.rb +0 -5
- data/spec/internal/config/initializers/secret_token.rb +0 -12
- data/spec/internal/config/initializers/session_store.rb +0 -3
- data/spec/internal/config/initializers/wrap_parameters.rb +0 -14
- data/spec/internal/config/locales/en.yml +0 -23
- data/spec/internal/config/routes.rb +0 -56
- data/spec/internal/db/schema.rb +0 -16
- data/spec/internal/db/seeds.rb +0 -7
- data/spec/internal/lib/assets/.keep +0 -0
- data/spec/internal/lib/tasks/.keep +0 -0
- data/spec/internal/log/.keep +0 -0
- data/spec/internal/public/404.html +0 -58
- data/spec/internal/public/422.html +0 -58
- data/spec/internal/public/500.html +0 -57
- data/spec/internal/public/favicon.ico +0 -0
- data/spec/internal/public/robots.txt +0 -5
- data/spec/internal/test/controllers/.keep +0 -0
- data/spec/internal/test/fixtures/.keep +0 -0
- data/spec/internal/test/helpers/.keep +0 -0
- data/spec/internal/test/integration/.keep +0 -0
- data/spec/internal/test/mailers/.keep +0 -0
- data/spec/internal/test/models/.keep +0 -0
- data/spec/internal/test/test_helper.rb +0 -15
- data/spec/internal/vendor/assets/javascripts/.keep +0 -0
- data/spec/internal/vendor/assets/stylesheets/.keep +0 -0
- data/spec/models/openseadragon/info_spec.rb +0 -6
@@ -0,0 +1,11 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
describe Openseadragon::OpenStreetMap do
|
4
|
+
subject { Openseadragon::OpenStreetMap.new }
|
5
|
+
|
6
|
+
describe "#to_tilesource" do
|
7
|
+
it "should have an id, width and height" do
|
8
|
+
expect(subject.to_tilesource[:type]).to eq 'openstreetmaps'
|
9
|
+
end
|
10
|
+
end
|
11
|
+
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: openseadragon
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Justin Coyne
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2014-
|
12
|
+
date: 2014-04-10 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: bundler
|
@@ -67,6 +67,20 @@ dependencies:
|
|
67
67
|
- - ">="
|
68
68
|
- !ruby/object:Gem::Version
|
69
69
|
version: '0'
|
70
|
+
- !ruby/object:Gem::Dependency
|
71
|
+
name: capybara
|
72
|
+
requirement: !ruby/object:Gem::Requirement
|
73
|
+
requirements:
|
74
|
+
- - ">="
|
75
|
+
- !ruby/object:Gem::Version
|
76
|
+
version: '0'
|
77
|
+
type: :development
|
78
|
+
prerelease: false
|
79
|
+
version_requirements: !ruby/object:Gem::Requirement
|
80
|
+
requirements:
|
81
|
+
- - ">="
|
82
|
+
- !ruby/object:Gem::Version
|
83
|
+
version: '0'
|
70
84
|
- !ruby/object:Gem::Dependency
|
71
85
|
name: sqlite3
|
72
86
|
requirement: !ruby/object:Gem::Requirement
|
@@ -109,70 +123,17 @@ files:
|
|
109
123
|
- LICENSE.txt
|
110
124
|
- README.md
|
111
125
|
- Rakefile
|
126
|
+
- app/assets/javascripts/openseadragon/rails.js
|
112
127
|
- app/helpers/openseadragon/openseadragon_helper.rb
|
113
128
|
- app/models/openseadragon/image.rb
|
114
|
-
- app/models/openseadragon/
|
129
|
+
- app/models/openseadragon/open_street_map.rb
|
115
130
|
- lib/openseadragon.rb
|
116
131
|
- lib/openseadragon/engine.rb
|
117
132
|
- lib/openseadragon/version.rb
|
118
133
|
- openseadragon.gemspec
|
119
134
|
- spec/helpers/openseadragon_helper_spec.rb
|
120
|
-
- spec/internal/.generated_engine_cart
|
121
|
-
- spec/internal/.gitignore
|
122
|
-
- spec/internal/Gemfile
|
123
|
-
- spec/internal/README.rdoc
|
124
|
-
- spec/internal/Rakefile
|
125
|
-
- spec/internal/app/assets/images/.keep
|
126
|
-
- spec/internal/app/assets/javascripts/application.js
|
127
|
-
- spec/internal/app/assets/stylesheets/application.css
|
128
|
-
- spec/internal/app/controllers/application_controller.rb
|
129
|
-
- spec/internal/app/controllers/concerns/.keep
|
130
|
-
- spec/internal/app/helpers/application_helper.rb
|
131
|
-
- spec/internal/app/mailers/.keep
|
132
|
-
- spec/internal/app/models/.keep
|
133
|
-
- spec/internal/app/models/concerns/.keep
|
134
|
-
- spec/internal/app/views/layouts/application.html.erb
|
135
|
-
- spec/internal/bin/bundle
|
136
|
-
- spec/internal/bin/rails
|
137
|
-
- spec/internal/bin/rake
|
138
|
-
- spec/internal/config.ru
|
139
|
-
- spec/internal/config/application.rb
|
140
|
-
- spec/internal/config/boot.rb
|
141
|
-
- spec/internal/config/database.yml
|
142
|
-
- spec/internal/config/environment.rb
|
143
|
-
- spec/internal/config/environments/development.rb
|
144
|
-
- spec/internal/config/environments/production.rb
|
145
|
-
- spec/internal/config/environments/test.rb
|
146
|
-
- spec/internal/config/initializers/backtrace_silencers.rb
|
147
|
-
- spec/internal/config/initializers/filter_parameter_logging.rb
|
148
|
-
- spec/internal/config/initializers/inflections.rb
|
149
|
-
- spec/internal/config/initializers/mime_types.rb
|
150
|
-
- spec/internal/config/initializers/secret_token.rb
|
151
|
-
- spec/internal/config/initializers/session_store.rb
|
152
|
-
- spec/internal/config/initializers/wrap_parameters.rb
|
153
|
-
- spec/internal/config/locales/en.yml
|
154
|
-
- spec/internal/config/routes.rb
|
155
|
-
- spec/internal/db/schema.rb
|
156
|
-
- spec/internal/db/seeds.rb
|
157
|
-
- spec/internal/lib/assets/.keep
|
158
|
-
- spec/internal/lib/tasks/.keep
|
159
|
-
- spec/internal/log/.keep
|
160
|
-
- spec/internal/public/404.html
|
161
|
-
- spec/internal/public/422.html
|
162
|
-
- spec/internal/public/500.html
|
163
|
-
- spec/internal/public/favicon.ico
|
164
|
-
- spec/internal/public/robots.txt
|
165
|
-
- spec/internal/test/controllers/.keep
|
166
|
-
- spec/internal/test/fixtures/.keep
|
167
|
-
- spec/internal/test/helpers/.keep
|
168
|
-
- spec/internal/test/integration/.keep
|
169
|
-
- spec/internal/test/mailers/.keep
|
170
|
-
- spec/internal/test/models/.keep
|
171
|
-
- spec/internal/test/test_helper.rb
|
172
|
-
- spec/internal/vendor/assets/javascripts/.keep
|
173
|
-
- spec/internal/vendor/assets/stylesheets/.keep
|
174
135
|
- spec/models/openseadragon/image_spec.rb
|
175
|
-
- spec/models/openseadragon/
|
136
|
+
- spec/models/openseadragon/open_street_map.rb
|
176
137
|
- spec/spec_helper.rb
|
177
138
|
- vendor/assets/images/openseadragon/fullpage_grouphover.png
|
178
139
|
- vendor/assets/images/openseadragon/fullpage_hover.png
|
@@ -225,60 +186,6 @@ specification_version: 4
|
|
225
186
|
summary: OpenSeadragon assets and helpers for Rails. http://openseadragon.github.io/
|
226
187
|
test_files:
|
227
188
|
- spec/helpers/openseadragon_helper_spec.rb
|
228
|
-
- spec/internal/.generated_engine_cart
|
229
|
-
- spec/internal/.gitignore
|
230
|
-
- spec/internal/Gemfile
|
231
|
-
- spec/internal/README.rdoc
|
232
|
-
- spec/internal/Rakefile
|
233
|
-
- spec/internal/app/assets/images/.keep
|
234
|
-
- spec/internal/app/assets/javascripts/application.js
|
235
|
-
- spec/internal/app/assets/stylesheets/application.css
|
236
|
-
- spec/internal/app/controllers/application_controller.rb
|
237
|
-
- spec/internal/app/controllers/concerns/.keep
|
238
|
-
- spec/internal/app/helpers/application_helper.rb
|
239
|
-
- spec/internal/app/mailers/.keep
|
240
|
-
- spec/internal/app/models/.keep
|
241
|
-
- spec/internal/app/models/concerns/.keep
|
242
|
-
- spec/internal/app/views/layouts/application.html.erb
|
243
|
-
- spec/internal/bin/bundle
|
244
|
-
- spec/internal/bin/rails
|
245
|
-
- spec/internal/bin/rake
|
246
|
-
- spec/internal/config.ru
|
247
|
-
- spec/internal/config/application.rb
|
248
|
-
- spec/internal/config/boot.rb
|
249
|
-
- spec/internal/config/database.yml
|
250
|
-
- spec/internal/config/environment.rb
|
251
|
-
- spec/internal/config/environments/development.rb
|
252
|
-
- spec/internal/config/environments/production.rb
|
253
|
-
- spec/internal/config/environments/test.rb
|
254
|
-
- spec/internal/config/initializers/backtrace_silencers.rb
|
255
|
-
- spec/internal/config/initializers/filter_parameter_logging.rb
|
256
|
-
- spec/internal/config/initializers/inflections.rb
|
257
|
-
- spec/internal/config/initializers/mime_types.rb
|
258
|
-
- spec/internal/config/initializers/secret_token.rb
|
259
|
-
- spec/internal/config/initializers/session_store.rb
|
260
|
-
- spec/internal/config/initializers/wrap_parameters.rb
|
261
|
-
- spec/internal/config/locales/en.yml
|
262
|
-
- spec/internal/config/routes.rb
|
263
|
-
- spec/internal/db/schema.rb
|
264
|
-
- spec/internal/db/seeds.rb
|
265
|
-
- spec/internal/lib/assets/.keep
|
266
|
-
- spec/internal/lib/tasks/.keep
|
267
|
-
- spec/internal/log/.keep
|
268
|
-
- spec/internal/public/404.html
|
269
|
-
- spec/internal/public/422.html
|
270
|
-
- spec/internal/public/500.html
|
271
|
-
- spec/internal/public/favicon.ico
|
272
|
-
- spec/internal/public/robots.txt
|
273
|
-
- spec/internal/test/controllers/.keep
|
274
|
-
- spec/internal/test/fixtures/.keep
|
275
|
-
- spec/internal/test/helpers/.keep
|
276
|
-
- spec/internal/test/integration/.keep
|
277
|
-
- spec/internal/test/mailers/.keep
|
278
|
-
- spec/internal/test/models/.keep
|
279
|
-
- spec/internal/test/test_helper.rb
|
280
|
-
- spec/internal/vendor/assets/javascripts/.keep
|
281
|
-
- spec/internal/vendor/assets/stylesheets/.keep
|
282
189
|
- spec/models/openseadragon/image_spec.rb
|
283
|
-
- spec/models/openseadragon/
|
190
|
+
- spec/models/openseadragon/open_street_map.rb
|
284
191
|
- spec/spec_helper.rb
|
@@ -1 +0,0 @@
|
|
1
|
-
true
|
data/spec/internal/.gitignore
DELETED
@@ -1,16 +0,0 @@
|
|
1
|
-
# See https://help.github.com/articles/ignoring-files for more about ignoring files.
|
2
|
-
#
|
3
|
-
# If you find yourself ignoring temporary files generated by your text editor
|
4
|
-
# or operating system, you probably want to add a global ignore instead:
|
5
|
-
# git config --global core.excludesfile '~/.gitignore_global'
|
6
|
-
|
7
|
-
# Ignore bundler config.
|
8
|
-
/.bundle
|
9
|
-
|
10
|
-
# Ignore the default SQLite database.
|
11
|
-
/db/*.sqlite3
|
12
|
-
/db/*.sqlite3-journal
|
13
|
-
|
14
|
-
# Ignore all logfiles and tempfiles.
|
15
|
-
/log/*.log
|
16
|
-
/tmp
|
data/spec/internal/Gemfile
DELETED
@@ -1,46 +0,0 @@
|
|
1
|
-
source 'https://rubygems.org'
|
2
|
-
|
3
|
-
# Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
|
4
|
-
gem 'rails', '4.0.3'
|
5
|
-
|
6
|
-
# Use sqlite3 as the database for Active Record
|
7
|
-
gem 'sqlite3'
|
8
|
-
|
9
|
-
# Use SCSS for stylesheets
|
10
|
-
gem 'sass-rails', '~> 4.0.0'
|
11
|
-
|
12
|
-
# Use Uglifier as compressor for JavaScript assets
|
13
|
-
gem 'uglifier', '>= 1.3.0'
|
14
|
-
|
15
|
-
# Use CoffeeScript for .js.coffee assets and views
|
16
|
-
gem 'coffee-rails', '~> 4.0.0'
|
17
|
-
|
18
|
-
# See https://github.com/sstephenson/execjs#readme for more supported runtimes
|
19
|
-
# gem 'therubyracer', platforms: :ruby
|
20
|
-
|
21
|
-
# Use jquery as the JavaScript library
|
22
|
-
gem 'jquery-rails'
|
23
|
-
|
24
|
-
# Turbolinks makes following links in your web application faster. Read more: https://github.com/rails/turbolinks
|
25
|
-
gem 'turbolinks'
|
26
|
-
|
27
|
-
# Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder
|
28
|
-
gem 'jbuilder', '~> 1.2'
|
29
|
-
|
30
|
-
group :doc do
|
31
|
-
# bundle exec rake doc:rails generates the API under doc/api.
|
32
|
-
gem 'sdoc', require: false
|
33
|
-
end
|
34
|
-
|
35
|
-
# Use ActiveModel has_secure_password
|
36
|
-
# gem 'bcrypt-ruby', '~> 3.1.2'
|
37
|
-
|
38
|
-
# Use unicorn as the app server
|
39
|
-
# gem 'unicorn'
|
40
|
-
|
41
|
-
# Use Capistrano for deployment
|
42
|
-
# gem 'capistrano', group: :development
|
43
|
-
|
44
|
-
# Use debugger
|
45
|
-
# gem 'debugger', group: [:development, :test]
|
46
|
-
gem 'openseadragon', :path => '/Users/justin/workspace/openseadragon'
|
data/spec/internal/README.rdoc
DELETED
@@ -1,28 +0,0 @@
|
|
1
|
-
== README
|
2
|
-
|
3
|
-
This README would normally document whatever steps are necessary to get the
|
4
|
-
application up and running.
|
5
|
-
|
6
|
-
Things you may want to cover:
|
7
|
-
|
8
|
-
* Ruby version
|
9
|
-
|
10
|
-
* System dependencies
|
11
|
-
|
12
|
-
* Configuration
|
13
|
-
|
14
|
-
* Database creation
|
15
|
-
|
16
|
-
* Database initialization
|
17
|
-
|
18
|
-
* How to run the test suite
|
19
|
-
|
20
|
-
* Services (job queues, cache servers, search engines, etc.)
|
21
|
-
|
22
|
-
* Deployment instructions
|
23
|
-
|
24
|
-
* ...
|
25
|
-
|
26
|
-
|
27
|
-
Please feel free to use a different markup language if you do not plan to run
|
28
|
-
<tt>rake doc:app</tt>.
|
data/spec/internal/Rakefile
DELETED
File without changes
|
@@ -1,16 +0,0 @@
|
|
1
|
-
// This is a manifest file that'll be compiled into application.js, which will include all the files
|
2
|
-
// listed below.
|
3
|
-
//
|
4
|
-
// Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts,
|
5
|
-
// or vendor/assets/javascripts of plugins, if any, can be referenced here using a relative path.
|
6
|
-
//
|
7
|
-
// It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the
|
8
|
-
// compiled file.
|
9
|
-
//
|
10
|
-
// Read Sprockets README (https://github.com/sstephenson/sprockets#sprockets-directives) for details
|
11
|
-
// about supported directives.
|
12
|
-
//
|
13
|
-
//= require jquery
|
14
|
-
//= require jquery_ujs
|
15
|
-
//= require turbolinks
|
16
|
-
//= require_tree .
|
@@ -1,13 +0,0 @@
|
|
1
|
-
/*
|
2
|
-
* This is a manifest file that'll be compiled into application.css, which will include all the files
|
3
|
-
* listed below.
|
4
|
-
*
|
5
|
-
* Any CSS and SCSS file within this directory, lib/assets/stylesheets, vendor/assets/stylesheets,
|
6
|
-
* or vendor/assets/stylesheets of plugins, if any, can be referenced here using a relative path.
|
7
|
-
*
|
8
|
-
* You're free to add application-wide styles to this file and they'll appear at the top of the
|
9
|
-
* compiled file, but it's generally better to create a new file per style scope.
|
10
|
-
*
|
11
|
-
*= require_self
|
12
|
-
*= require_tree .
|
13
|
-
*/
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
@@ -1,14 +0,0 @@
|
|
1
|
-
<!DOCTYPE html>
|
2
|
-
<html>
|
3
|
-
<head>
|
4
|
-
<title>Internal</title>
|
5
|
-
<%= stylesheet_link_tag "application", media: "all", "data-turbolinks-track" => true %>
|
6
|
-
<%= javascript_include_tag "application", "data-turbolinks-track" => true %>
|
7
|
-
<%= csrf_meta_tags %>
|
8
|
-
</head>
|
9
|
-
<body>
|
10
|
-
|
11
|
-
<%= yield %>
|
12
|
-
|
13
|
-
</body>
|
14
|
-
</html>
|
data/spec/internal/bin/bundle
DELETED
data/spec/internal/bin/rails
DELETED
data/spec/internal/bin/rake
DELETED
data/spec/internal/config.ru
DELETED
@@ -1,23 +0,0 @@
|
|
1
|
-
require File.expand_path('../boot', __FILE__)
|
2
|
-
|
3
|
-
require 'rails/all'
|
4
|
-
|
5
|
-
# Require the gems listed in Gemfile, including any gems
|
6
|
-
# you've limited to :test, :development, or :production.
|
7
|
-
Bundler.require(:default, Rails.env)
|
8
|
-
|
9
|
-
module Internal
|
10
|
-
class Application < Rails::Application
|
11
|
-
# Settings in config/environments/* take precedence over those specified here.
|
12
|
-
# Application configuration should go into files in config/initializers
|
13
|
-
# -- all .rb files in that directory are automatically loaded.
|
14
|
-
|
15
|
-
# Set Time.zone default to the specified zone and make Active Record auto-convert to this zone.
|
16
|
-
# Run "rake -D time" for a list of tasks for finding time zone names. Default is UTC.
|
17
|
-
# config.time_zone = 'Central Time (US & Canada)'
|
18
|
-
|
19
|
-
# The default locale is :en and all translations from config/locales/*.rb,yml are auto loaded.
|
20
|
-
# config.i18n.load_path += Dir[Rails.root.join('my', 'locales', '*.{rb,yml}').to_s]
|
21
|
-
# config.i18n.default_locale = :de
|
22
|
-
end
|
23
|
-
end
|
@@ -1,25 +0,0 @@
|
|
1
|
-
# SQLite version 3.x
|
2
|
-
# gem install sqlite3
|
3
|
-
#
|
4
|
-
# Ensure the SQLite 3 gem is defined in your Gemfile
|
5
|
-
# gem 'sqlite3'
|
6
|
-
development:
|
7
|
-
adapter: sqlite3
|
8
|
-
database: db/development.sqlite3
|
9
|
-
pool: 5
|
10
|
-
timeout: 5000
|
11
|
-
|
12
|
-
# Warning: The database defined as "test" will be erased and
|
13
|
-
# re-generated from your development database when you run "rake".
|
14
|
-
# Do not set this db to the same as development or production.
|
15
|
-
test:
|
16
|
-
adapter: sqlite3
|
17
|
-
database: db/test.sqlite3
|
18
|
-
pool: 5
|
19
|
-
timeout: 5000
|
20
|
-
|
21
|
-
production:
|
22
|
-
adapter: sqlite3
|
23
|
-
database: db/production.sqlite3
|
24
|
-
pool: 5
|
25
|
-
timeout: 5000
|