glimmer-cw-video 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +21 -3
  3. data/lib/views/glimmer/video.rb +8 -8
  4. metadata +26 -6
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 10a0ed280e12d03b5c9a8a69e696043e208a58b54282d74fa8310bc4602ccbf7
4
- data.tar.gz: 631708906e59bfb0232fd09fd20d673520dce51611fc59e16c8301fe098237d0
3
+ metadata.gz: 0c15498ab56b767193268748e705611542a401826f5448f20522dc5e6cc37649
4
+ data.tar.gz: ac5d6d6d77348ef9ff8dfa4037527368c09c39d9e6512ab00437d49bf2298c0d
5
5
  SHA512:
6
- metadata.gz: f8c79642df581ebef469df2b0993e5f32de0715345307652be76002a31f0ec238871a416797980db539843a5dab521649dea2f3d171dd795244944f9552b66ab
7
- data.tar.gz: d584693154c69b17d1aaf9cd85a501a7dbc5062c787734c8832dc8ff1b6835db5451185faa0bb421d43d301cf361a86db29f5244eeed8e42c74bb23c6b9b9ff8
6
+ metadata.gz: ae626276c23e4d0869c425030b7eb2f31815b7c9e180a293d736984fc630176d4aa64944638e9b38350123fc507c1a596b8891d59383fc7c6c0f953a828edff0
7
+ data.tar.gz: ad663c5163bc63ef35db6bc95c5a83baae5763c1b81c4ced82413f229dd503a46cb337149fcca6a27fbba7137a32955a2aa43c768f397283e212ac2f68bd99ba
data/README.md CHANGED
@@ -1,4 +1,5 @@
1
- # Video 0.1.0 - Glimmer Custom Widget
1
+ # Video 0.1.1 - Glimmer Custom Widget
2
+ [![Gem Version](https://badge.fury.io/rb/glimmer-cw-video.svg)](http://badge.fury.io/rb/glimmer-cw-video)
2
3
 
3
4
  ![Video Widget](images/glimmer-video-widget.png)
4
5
 
@@ -6,16 +7,18 @@ Glimmer custom widget for video used via `video` keyword.
6
7
 
7
8
  ## Pre-requisites
8
9
 
9
- - [Glimmer](https://github.com/AndyObtiva/glimmer) application
10
+ - [Glimmer](https://github.com/AndyObtiva/glimmer) application, [Glimmer](https://github.com/AndyObtiva/glimmer) custom shell, or another [Glimmer](https://github.com/AndyObtiva/glimmer) custom widget
10
11
  - JRuby version required by Glimmer
11
12
  - Java version required by Glimmer
12
13
 
13
14
  ## Setup
14
15
 
16
+ ### Glimmer Application
17
+
15
18
  Add the following to a Glimmer application `Gemfile`:
16
19
 
17
20
  ```ruby
18
- gem 'glimmer-cw-video', '0.1.0'
21
+ gem 'glimmer-cw-video', '0.1.1'
19
22
  ```
20
23
 
21
24
  Run:
@@ -26,6 +29,16 @@ jruby -S bundle
26
29
 
27
30
  (or just `bundle` if using RVM)
28
31
 
32
+ ### Glimmer Custom Shell or Glimmer Custom Widget
33
+
34
+ When reusing video custom widget in a Glimmer custom shell or custom widget, you can follow the same steps for Glimmer application, and then add a require statement to your library file after `glimmer` and before additional library require statements:
35
+
36
+ ```ruby
37
+ require 'glimmer'
38
+ require 'glimmer-cw-video'
39
+ # ... more require statements follow
40
+ ```
41
+
29
42
  ## Options
30
43
 
31
44
  Passed in an options hash as arguments to `video` widget:
@@ -109,6 +122,11 @@ end
109
122
  @shell.open
110
123
  ```
111
124
 
125
+ ## Change Log
126
+
127
+ - 0.1.1: Upgraded to Glimmer 0.8.0 with a relaxed version requirement
128
+ - 0.1.0: Initial version
129
+
112
130
  ## Contributing to glimmer-cw-video
113
131
 
114
132
  - Check out the latest master to make sure the feature hasn't been implemented or the bug hasn't been fixed yet.
@@ -6,14 +6,14 @@ module Glimmer
6
6
  include_package 'org.eclipse.swt.browser'
7
7
 
8
8
  options :file, :url
9
- option :autoplay, true
10
- option :controls, true
11
- option :looped, false
12
- option :background, :white
13
- option :fit_to_width, true
14
- option :fit_to_height, true
15
- option :offset_x, 0
16
- option :offset_y, 0
9
+ option :autoplay, default: true
10
+ option :controls, default: true
11
+ option :looped, default: false
12
+ option :background, default: :white
13
+ option :fit_to_width, default: true
14
+ option :fit_to_height, default: true
15
+ option :offset_x, default: 0
16
+ option :offset_y, default: 0
17
17
 
18
18
  alias autoplay? autoplay
19
19
  alias controls? controls
metadata CHANGED
@@ -1,29 +1,35 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: glimmer-cw-video
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andy Maleh
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-05-03 00:00:00.000000000 Z
11
+ date: 2020-06-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  requirement: !ruby/object:Gem::Requirement
15
15
  requirements:
16
- - - "~>"
16
+ - - ">="
17
+ - !ruby/object:Gem::Version
18
+ version: 0.8.0
19
+ - - "<"
17
20
  - !ruby/object:Gem::Version
18
- version: 0.7.0
21
+ version: 2.0.0
19
22
  name: glimmer
20
23
  type: :runtime
21
24
  prerelease: false
22
25
  version_requirements: !ruby/object:Gem::Requirement
23
26
  requirements:
24
- - - "~>"
27
+ - - ">="
25
28
  - !ruby/object:Gem::Version
26
- version: 0.7.0
29
+ version: 0.8.0
30
+ - - "<"
31
+ - !ruby/object:Gem::Version
32
+ version: 2.0.0
27
33
  - !ruby/object:Gem::Dependency
28
34
  requirement: !ruby/object:Gem::Requirement
29
35
  requirements:
@@ -66,6 +72,20 @@ dependencies:
66
72
  - - ">="
67
73
  - !ruby/object:Gem::Version
68
74
  version: '0'
75
+ - !ruby/object:Gem::Dependency
76
+ requirement: !ruby/object:Gem::Requirement
77
+ requirements:
78
+ - - "~>"
79
+ - !ruby/object:Gem::Version
80
+ version: 0.1.7
81
+ name: glimmer-cs-gladiator
82
+ type: :development
83
+ prerelease: false
84
+ version_requirements: !ruby/object:Gem::Requirement
85
+ requirements:
86
+ - - "~>"
87
+ - !ruby/object:Gem::Version
88
+ version: 0.1.7
69
89
  description: Glimmer video widget with basic functionality like play, pause, loop,
70
90
  and reload. Support mp4, webm, and ogg. Works with both local files and web URLs.
71
91
  email: andy.am@gmail.com