glimmer-cw-video 0.1.1 → 0.1.2

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 +23 -8
  3. data/lib/glimmer-cw-video.rb +3 -2
  4. metadata +77 -9
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0c15498ab56b767193268748e705611542a401826f5448f20522dc5e6cc37649
4
- data.tar.gz: ac5d6d6d77348ef9ff8dfa4037527368c09c39d9e6512ab00437d49bf2298c0d
3
+ metadata.gz: 5d630fdc9f34e8936afcfde3c173371f0364e38de1ee7f827eb4ab7158c85f4e
4
+ data.tar.gz: dc966e4bcc7acd835019ff2ee2e15abfba21f916a00c567dc53abd87904d8d7e
5
5
  SHA512:
6
- metadata.gz: ae626276c23e4d0869c425030b7eb2f31815b7c9e180a293d736984fc630176d4aa64944638e9b38350123fc507c1a596b8891d59383fc7c6c0f953a828edff0
7
- data.tar.gz: ad663c5163bc63ef35db6bc95c5a83baae5763c1b81c4ced82413f229dd503a46cb337149fcca6a27fbba7137a32955a2aa43c768f397283e212ac2f68bd99ba
6
+ metadata.gz: be6b3b1893cade4d2614574324dae81187739d0759a87e087cc75aed877a2380adc1fc8f08c435de6557dcaaec00e5b8d6050fafce85f2346a2a905ef98f6b5e
7
+ data.tar.gz: a252ca302f5067bdc95c90bf34dc09a3e39918c32269db1d1bdb92fa64b1cc8109a2f49f87003bfcf87887e6cdd6f087b520d2553a169a408b249d8d42706ffb
data/README.md CHANGED
@@ -1,9 +1,20 @@
1
- # Video 0.1.1 - Glimmer Custom Widget
1
+ # Video 0.1.2
2
+ ## [Glimmer Custom Widget](https://github.com/AndyObtiva/glimmer#custom-widget-gem)
2
3
  [![Gem Version](https://badge.fury.io/rb/glimmer-cw-video.svg)](http://badge.fury.io/rb/glimmer-cw-video)
4
+ [![Travis CI](https://travis-ci.com/AndyObtiva/glimmer-cw-video.svg?branch=master)](https://travis-ci.com/github/AndyObtiva/glimmer-cw-video)
5
+ [![Coverage Status](https://coveralls.io/repos/github/AndyObtiva/glimmer-cw-video/badge.svg?branch=master)](https://coveralls.io/github/AndyObtiva/glimmer-cw-video?branch=master)
6
+ [![Maintainability](https://api.codeclimate.com/v1/badges/b46ff4b09463b86aa7aa/maintainability)](https://codeclimate.com/github/AndyObtiva/glimmer-cw-video/maintainability)
7
+ [![Join the chat at https://gitter.im/AndyObtiva/glimmer](https://badges.gitter.im/AndyObtiva/glimmer.svg)](https://gitter.im/AndyObtiva/glimmer?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
3
8
 
4
9
  ![Video Widget](images/glimmer-video-widget.png)
5
10
 
6
- Glimmer custom widget for video used via `video` keyword.
11
+ Video is a [Glimmer Custom Widget](https://github.com/AndyObtiva/glimmer#custom-widget-gem) for playing videos via the `video` [Glimmer DSL](https://github.com/AndyObtiva/glimmer#glimmer-dsl-syntax) keyword.
12
+
13
+ ## Platforms
14
+
15
+ This has been tested and confirmed to be working on:
16
+ - Mac
17
+ - Windows
7
18
 
8
19
  ## Pre-requisites
9
20
 
@@ -18,7 +29,7 @@ Glimmer custom widget for video used via `video` keyword.
18
29
  Add the following to a Glimmer application `Gemfile`:
19
30
 
20
31
  ```ruby
21
- gem 'glimmer-cw-video', '0.1.1'
32
+ gem 'glimmer-cw-video', '0.1.2'
22
33
  ```
23
34
 
24
35
  Run:
@@ -31,17 +42,16 @@ jruby -S bundle
31
42
 
32
43
  ### Glimmer Custom Shell or Glimmer Custom Widget
33
44
 
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:
45
+ 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:
35
46
 
36
47
  ```ruby
37
- require 'glimmer'
38
48
  require 'glimmer-cw-video'
39
49
  # ... more require statements follow
40
50
  ```
41
51
 
42
52
  ## Options
43
53
 
44
- Passed in an options hash as arguments to `video` widget:
54
+ Here are the options to pass in as hash arguments to the `video` widget keyword (see in [Examples](#examples)):
45
55
  - `autoplay` (true [default] or false): plays video automatically as soon as loaded
46
56
  - `controls` (true [default] or false): displays controls
47
57
  - `looped` (true or false [default]): plays video in looped mode
@@ -64,7 +74,7 @@ Passed in an options hash as arguments to `video` widget:
64
74
  - `#paused?`: returns true when video is not playing
65
75
  - `#ended?`: returns true when video has reached the end (position == duration)
66
76
 
67
- ## Observer Events:
77
+ ## Observer Events (see in [Examples](#examples)):
68
78
 
69
79
  - `on_loaded`: invoked when video `#loaded?` becomes true
70
80
  - `on_ended`: invoked when video `#ended?` becomes true
@@ -124,6 +134,7 @@ end
124
134
 
125
135
  ## Change Log
126
136
 
137
+ - 0.1.2: Upgraded to the glimmer-dsl-swt 0.4.1, glimmer-dsl-xml 0.1.0, and glimmer-dsl-css 0.1.0
127
138
  - 0.1.1: Upgraded to Glimmer 0.8.0 with a relaxed version requirement
128
139
  - 0.1.0: Initial version
129
140
 
@@ -139,5 +150,9 @@ end
139
150
 
140
151
  ## Copyright
141
152
 
142
- Copyright (c) 2020 Andy Maleh. See LICENSE.txt for
153
+ Copyright (c) 2020 - Andy Maleh. See [LICENSE.txt](LICENSE.txt) for
143
154
  further details.
155
+
156
+ --
157
+
158
+ [<img src="https://raw.githubusercontent.com/AndyObtiva/glimmer/master/images/glimmer-logo-hi-res.png" height=40 />](https://github.com/AndyObtiva/glimmer) Built for [Glimmer](https://github.com/AndyObtiva/glimmer) (Ruby Desktop Development GUI Library).
@@ -1,5 +1,6 @@
1
1
  $LOAD_PATH.unshift(File.expand_path('..', __FILE__))
2
2
 
3
- require 'bundler/setup'
4
- Bundler.require(:default)
3
+ require 'glimmer-dsl-swt'
4
+ require 'glimmer-dsl-xml'
5
+ require 'glimmer-dsl-css'
5
6
  require 'views/glimmer/video'
metadata CHANGED
@@ -1,32 +1,72 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: glimmer-cw-video
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
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-06-02 00:00:00.000000000 Z
11
+ date: 2020-07-21 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
17
  - !ruby/object:Gem::Version
18
- version: 0.8.0
18
+ version: 0.4.1
19
19
  - - "<"
20
20
  - !ruby/object:Gem::Version
21
21
  version: 2.0.0
22
- name: glimmer
22
+ name: glimmer-dsl-swt
23
23
  type: :runtime
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
26
26
  requirements:
27
27
  - - ">="
28
28
  - !ruby/object:Gem::Version
29
- version: 0.8.0
29
+ version: 0.4.1
30
+ - - "<"
31
+ - !ruby/object:Gem::Version
32
+ version: 2.0.0
33
+ - !ruby/object:Gem::Dependency
34
+ requirement: !ruby/object:Gem::Requirement
35
+ requirements:
36
+ - - ">="
37
+ - !ruby/object:Gem::Version
38
+ version: 0.1.0
39
+ - - "<"
40
+ - !ruby/object:Gem::Version
41
+ version: 2.0.0
42
+ name: glimmer-dsl-xml
43
+ type: :runtime
44
+ prerelease: false
45
+ version_requirements: !ruby/object:Gem::Requirement
46
+ requirements:
47
+ - - ">="
48
+ - !ruby/object:Gem::Version
49
+ version: 0.1.0
50
+ - - "<"
51
+ - !ruby/object:Gem::Version
52
+ version: 2.0.0
53
+ - !ruby/object:Gem::Dependency
54
+ requirement: !ruby/object:Gem::Requirement
55
+ requirements:
56
+ - - ">="
57
+ - !ruby/object:Gem::Version
58
+ version: 0.1.0
59
+ - - "<"
60
+ - !ruby/object:Gem::Version
61
+ version: 2.0.0
62
+ name: glimmer-dsl-css
63
+ type: :runtime
64
+ prerelease: false
65
+ version_requirements: !ruby/object:Gem::Requirement
66
+ requirements:
67
+ - - ">="
68
+ - !ruby/object:Gem::Version
69
+ version: 0.1.0
30
70
  - - "<"
31
71
  - !ruby/object:Gem::Version
32
72
  version: 2.0.0
@@ -64,7 +104,7 @@ dependencies:
64
104
  - - ">="
65
105
  - !ruby/object:Gem::Version
66
106
  version: '0'
67
- name: simplecov
107
+ name: glimmer-cs-gladiator
68
108
  type: :development
69
109
  prerelease: false
70
110
  version_requirements: !ruby/object:Gem::Requirement
@@ -72,20 +112,48 @@ dependencies:
72
112
  - - ">="
73
113
  - !ruby/object:Gem::Version
74
114
  version: '0'
115
+ - !ruby/object:Gem::Dependency
116
+ requirement: !ruby/object:Gem::Requirement
117
+ requirements:
118
+ - - '='
119
+ - !ruby/object:Gem::Version
120
+ version: 0.8.23
121
+ name: coveralls
122
+ type: :development
123
+ prerelease: false
124
+ version_requirements: !ruby/object:Gem::Requirement
125
+ requirements:
126
+ - - '='
127
+ - !ruby/object:Gem::Version
128
+ version: 0.8.23
75
129
  - !ruby/object:Gem::Dependency
76
130
  requirement: !ruby/object:Gem::Requirement
77
131
  requirements:
78
132
  - - "~>"
79
133
  - !ruby/object:Gem::Version
80
- version: 0.1.7
81
- name: glimmer-cs-gladiator
134
+ version: 0.16.1
135
+ name: simplecov
136
+ type: :development
137
+ prerelease: false
138
+ version_requirements: !ruby/object:Gem::Requirement
139
+ requirements:
140
+ - - "~>"
141
+ - !ruby/object:Gem::Version
142
+ version: 0.16.1
143
+ - !ruby/object:Gem::Dependency
144
+ requirement: !ruby/object:Gem::Requirement
145
+ requirements:
146
+ - - "~>"
147
+ - !ruby/object:Gem::Version
148
+ version: 0.7.0
149
+ name: simplecov-lcov
82
150
  type: :development
83
151
  prerelease: false
84
152
  version_requirements: !ruby/object:Gem::Requirement
85
153
  requirements:
86
154
  - - "~>"
87
155
  - !ruby/object:Gem::Version
88
- version: 0.1.7
156
+ version: 0.7.0
89
157
  description: Glimmer video widget with basic functionality like play, pause, loop,
90
158
  and reload. Support mp4, webm, and ogg. Works with both local files and web URLs.
91
159
  email: andy.am@gmail.com