mirador_rails 0.2.0 → 0.2.1
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/README.md +17 -0
- data/lib/mirador_rails/version.rb +1 -1
- data/vendor/assets/stylesheets/mirador.css +1 -6
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 2d8457aacdac506db891360e5a10d0173052cbc4
|
|
4
|
+
data.tar.gz: 461e540aeb11328913a11e1b28dcab1f722a4479
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 5a0bf069a789b6004fb9552c66727dfdfd0d8df8a9803c11345d3abe7ebabf12bb040c0d133f4e3ccdaceac30942ec7cfe4ce0811a67886e94af013dcf52748b
|
|
7
|
+
data.tar.gz: c43e01515ffb2e0bb9e16b675ec62264e70c33ddd1e7763556d44d035e3277492e9b58d6bda81e235baf12255816b07d60d5f523bc90b8d083a134ce1619e8a5
|
data/README.md
CHANGED
|
@@ -38,6 +38,23 @@ And the css
|
|
|
38
38
|
|
|
39
39
|
You may not want to do this in your application.js, as the JavaScript by itself may add over 1.8MB to your application.js payload.
|
|
40
40
|
|
|
41
|
+
### Initialize mirador in a view
|
|
42
|
+
|
|
43
|
+
```erb
|
|
44
|
+
<%= mirador_tag() %>
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
The `mirador_tag` method takes several arguments which allow for customization of the mirador view.
|
|
48
|
+
|
|
49
|
+
```ruby
|
|
50
|
+
# @param [String] id
|
|
51
|
+
# @param [String] height
|
|
52
|
+
# @param [String] width
|
|
53
|
+
# @param [String] position
|
|
54
|
+
# @param [String] display
|
|
55
|
+
# @param [Hash] options Mirador settings
|
|
56
|
+
```
|
|
57
|
+
|
|
41
58
|
## Development
|
|
42
59
|
|
|
43
60
|
After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: mirador_rails
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.2.
|
|
4
|
+
version: 0.2.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Jack Reed
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2017-02-
|
|
11
|
+
date: 2017-02-27 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: font-awesome-rails
|