glimmer-dsl-gtk 0.0.7 → 0.0.8

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c811aaa03169f5bb7754c7c07721bea6c1084d652878d55c75a9aa28f0fa6e56
4
- data.tar.gz: 5c4ef408d97778f9defaa1f2fdd0df2f83e2d218fa0147317f8d3a68f69205f4
3
+ metadata.gz: f22243974881af0d6bfc0e94582efedfdfaab615b1e803773c071004e338a758
4
+ data.tar.gz: 94ceb10514f79d1b725007ceb7047920e440f0822541cc60c8478f648576c23e
5
5
  SHA512:
6
- metadata.gz: 95e9f024283b4cb606f766f5230436d0caef9b55733ad7347cb45f3ef10e1d7d9555d375b177fe0d5d08091414572804f20b3ba9856f7946df7ccfc894b3428b
7
- data.tar.gz: 0f381c56c69281dcd1bb9e6ec0391f58f101169da99e1c72ef14193425c7c3728b51cdd1b13169ac418d38ea3197c8adcc2c486b9586cd09aff4e07af2f86315
6
+ metadata.gz: 32b587f511b83e138ef64dcf89ec1d23dcd0aec8fdb9b022564eff1deb8bf8c94b5b164734f3d1138413f4e1cb7639c7c919c988754c271f2b1716a738b5fd23
7
+ data.tar.gz: f7351e8a6dcf653a697e57f24bbd1e37da71a6ab389b6fa1189e5ddba8e9c0f521f2962ccdda2ca0d37b2ec8a22a9d7b8768bd7975cd55a59fe21e48827a84a7
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Change Log
2
2
 
3
+ ## 0.0.8
4
+
5
+ - Download `images/breaking-blue-wave.png` from web in Cairo examples that use it (`image.rb`, `clip_image.rb`, `image_gradient.rb`) to avoid bloating Ruby gem
6
+
3
7
  ## 0.0.7
4
8
 
5
9
  - samples/cairo/text.rb
data/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # [<img src="https://raw.githubusercontent.com/AndyObtiva/glimmer/master/images/glimmer-logo-hi-res.png" height=85 />](https://github.com/AndyObtiva/glimmer) Glimmer DSL for GTK 0.0.7
1
+ # [<img src="https://raw.githubusercontent.com/AndyObtiva/glimmer/master/images/glimmer-logo-hi-res.png" height=85 />](https://github.com/AndyObtiva/glimmer) Glimmer DSL for GTK 0.0.8
2
2
  ## Ruby-GNOME Desktop Development GUI Library
3
3
  [![Gem Version](https://badge.fury.io/rb/glimmer-dsl-gtk.svg)](http://badge.fury.io/rb/glimmer-dsl-gtk)
4
4
  [![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)
@@ -80,7 +80,7 @@ gem install glimmer-dsl-gtk
80
80
 
81
81
  Add the following to `Gemfile`:
82
82
  ```
83
- gem 'glimmer-dsl-gtk', '~> 0.0.7'
83
+ gem 'glimmer-dsl-gtk', '~> 0.0.8'
84
84
  ```
85
85
 
86
86
  And, then run:
@@ -311,6 +311,11 @@ window {
311
311
 
312
312
  ```ruby
313
313
  require 'glimmer-dsl-gtk'
314
+ require 'net/http'
315
+
316
+ image_content = Net::HTTP.get(URI('https://raw.githubusercontent.com/AndyObtiva/glimmer-dsl-gtk/master/images/breaking-blue-wave.png'))
317
+ image_file = File.join(Dir.home, 'breaking-blue-wave.png')
318
+ File.write(image_file, image_content)
314
319
 
315
320
  include Glimmer
316
321
 
@@ -329,7 +334,7 @@ window {
329
334
  # Source image is from:
330
335
  # - https://www.publicdomainpictures.net/en/view-image.php?image=7683&picture=breaking-blue-wave
331
336
  # Converted to PNG before using it
332
- image = Cairo::ImageSurface.from_png(File.expand_path(File.join('..', '..', 'images', 'breaking-blue-wave.png'), __dir__))
337
+ image = Cairo::ImageSurface.from_png(image_file)
333
338
  w = image.width
334
339
  h = image.height
335
340
 
@@ -574,6 +579,11 @@ window {
574
579
 
575
580
  ```ruby
576
581
  require 'glimmer-dsl-gtk'
582
+ require 'net/http'
583
+
584
+ image_content = Net::HTTP.get(URI('https://raw.githubusercontent.com/AndyObtiva/glimmer-dsl-gtk/master/images/breaking-blue-wave.png'))
585
+ image_file = File.join(Dir.home, 'breaking-blue-wave.png')
586
+ File.write(image_file, image_content)
577
587
 
578
588
  include Glimmer
579
589
 
@@ -584,7 +594,7 @@ window {
584
594
  drawing_area {
585
595
  paint 242.25, 242.25, 242.25
586
596
 
587
- image = Cairo::ImageSurface.from_png(File.expand_path(File.join('..', '..', 'images', 'breaking-blue-wave.png'), __dir__))
597
+ image = Cairo::ImageSurface.from_png(image_file)
588
598
  w = image.width
589
599
  h = image.height
590
600
 
@@ -606,6 +616,11 @@ window {
606
616
 
607
617
  ```ruby
608
618
  require 'glimmer-dsl-gtk'
619
+ require 'net/http'
620
+
621
+ image_content = Net::HTTP.get(URI('https://raw.githubusercontent.com/AndyObtiva/glimmer-dsl-gtk/master/images/breaking-blue-wave.png'))
622
+ image_file = File.join(Dir.home, 'breaking-blue-wave.png')
623
+ File.write(image_file, image_content)
609
624
 
610
625
  include Glimmer
611
626
 
@@ -616,7 +631,7 @@ window {
616
631
  drawing_area {
617
632
  paint 242.25, 242.25, 242.25
618
633
 
619
- image = Cairo::ImageSurface.from_png(File.expand_path(File.join('..', '..', 'images', 'breaking-blue-wave.png'), __dir__))
634
+ image = Cairo::ImageSurface.from_png(image_file)
620
635
  w = image.width
621
636
  h = image.height
622
637
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.7
1
+ 0.0.8
Binary file
@@ -1,4 +1,9 @@
1
1
  require 'glimmer-dsl-gtk'
2
+ require 'net/http'
3
+
4
+ image_content = Net::HTTP.get(URI('https://raw.githubusercontent.com/AndyObtiva/glimmer-dsl-gtk/master/images/breaking-blue-wave.png'))
5
+ image_file = File.join(Dir.home, 'breaking-blue-wave.png')
6
+ File.write(image_file, image_content)
2
7
 
3
8
  include Glimmer
4
9
 
@@ -17,7 +22,7 @@ window {
17
22
  # Source image is from:
18
23
  # - https://www.publicdomainpictures.net/en/view-image.php?image=7683&picture=breaking-blue-wave
19
24
  # Converted to PNG before using it
20
- image = Cairo::ImageSurface.from_png(File.expand_path(File.join('..', '..', 'images', 'breaking-blue-wave.png'), __dir__))
25
+ image = Cairo::ImageSurface.from_png(image_file)
21
26
  w = image.width
22
27
  h = image.height
23
28
 
@@ -1,4 +1,9 @@
1
1
  require 'glimmer-dsl-gtk'
2
+ require 'net/http'
3
+
4
+ image_content = Net::HTTP.get(URI('https://raw.githubusercontent.com/AndyObtiva/glimmer-dsl-gtk/master/images/breaking-blue-wave.png'))
5
+ image_file = File.join(Dir.home, 'breaking-blue-wave.png')
6
+ File.write(image_file, image_content)
2
7
 
3
8
  include Glimmer
4
9
 
@@ -9,7 +14,7 @@ window {
9
14
  drawing_area {
10
15
  paint 242.25, 242.25, 242.25
11
16
 
12
- image = Cairo::ImageSurface.from_png(File.expand_path(File.join('..', '..', 'images', 'breaking-blue-wave.png'), __dir__))
17
+ image = Cairo::ImageSurface.from_png(image_file)
13
18
  w = image.width
14
19
  h = image.height
15
20
 
@@ -1,4 +1,9 @@
1
1
  require 'glimmer-dsl-gtk'
2
+ require 'net/http'
3
+
4
+ image_content = Net::HTTP.get(URI('https://raw.githubusercontent.com/AndyObtiva/glimmer-dsl-gtk/master/images/breaking-blue-wave.png'))
5
+ image_file = File.join(Dir.home, 'breaking-blue-wave.png')
6
+ File.write(image_file, image_content)
2
7
 
3
8
  include Glimmer
4
9
 
@@ -9,7 +14,7 @@ window {
9
14
  drawing_area {
10
15
  paint 242.25, 242.25, 242.25
11
16
 
12
- image = Cairo::ImageSurface.from_png(File.expand_path(File.join('..', '..', 'images', 'breaking-blue-wave.png'), __dir__))
17
+ image = Cairo::ImageSurface.from_png(image_file)
13
18
  w = image.width
14
19
  h = image.height
15
20
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: glimmer-dsl-gtk
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.7
4
+ version: 0.0.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andy Maleh
@@ -160,7 +160,6 @@ files:
160
160
  - bin/girb
161
161
  - bin/girb_runner.rb
162
162
  - glimmer-dsl-gtk.gemspec
163
- - images/breaking-blue-wave.png
164
163
  - lib/glimmer-dsl-gtk.rb
165
164
  - lib/glimmer/dsl/gtk/dsl.rb
166
165
  - lib/glimmer/dsl/gtk/observe_expression.rb
Binary file