pruebaa 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (5) hide show
  1. checksums.yaml +7 -0
  2. data/bin/MyClass.rb +15 -0
  3. data/bin/glade/MyClass.glade +45 -0
  4. data/pruebaa +14 -0
  5. metadata +89 -0
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 3469504fdcf1d55b04b615c979262477573b6ade
4
+ data.tar.gz: 7ded61872203e82494752a4bdbda1cca8e348044
5
+ SHA512:
6
+ metadata.gz: e769eefdba5338565a5d1368ac5ebbc64fd9a7f895253a33f615c0c23cd0692564d1ff80aff7cf50f1b42af1bd466618a29e993326d39c74c90d8da3b4fe45f1
7
+ data.tar.gz: d76c00bb6bfa24b76f2c2407f8def39886a35a616d36749b3d36304e616dd3b5ad49a2f37bbafc2347c54743e1afd209d2fa19391bed303156184f71ac6b70e4
data/bin/MyClass.rb ADDED
@@ -0,0 +1,15 @@
1
+
2
+ class MyClass #(change name)
3
+
4
+ include GladeGUI
5
+
6
+ def before_show()
7
+ @button1 = "Hello World"
8
+ end
9
+
10
+ def button1__clicked(*args)
11
+ @builder["button1"].label = @builder["button1"].label == "Hello World" ? "Goodbye World" : "Hello World"
12
+ end
13
+
14
+ end
15
+
@@ -0,0 +1,45 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <interface>
3
+ <requires lib="gtk+" version="2.16"/>
4
+ <!-- interface-naming-policy project-wide -->
5
+ <object class="GtkWindow" id="window1">
6
+ <property name="visible">True</property>
7
+ <property name="can_focus">False</property>
8
+ <property name="modal">True</property>
9
+ <property name="window_position">center-always</property>
10
+ <property name="default_width">300</property>
11
+ <property name="default_height">200</property>
12
+ <signal name="destroy" handler="destroy_window" swapped="no"/>
13
+ <child>
14
+ <object class="GtkVBox" id="vbox1">
15
+ <property name="visible">True</property>
16
+ <property name="can_focus">False</property>
17
+ <child>
18
+ <object class="GtkHButtonBox" id="hbuttonbox1">
19
+ <property name="visible">True</property>
20
+ <property name="can_focus">False</property>
21
+ <child>
22
+ <object class="GtkButton" id="button1">
23
+ <property name="label" translatable="yes">button</property>
24
+ <property name="visible">True</property>
25
+ <property name="can_focus">True</property>
26
+ <property name="receives_default">True</property>
27
+ <property name="use_action_appearance">False</property>
28
+ </object>
29
+ <packing>
30
+ <property name="expand">False</property>
31
+ <property name="fill">False</property>
32
+ <property name="position">0</property>
33
+ </packing>
34
+ </child>
35
+ </object>
36
+ <packing>
37
+ <property name="expand">True</property>
38
+ <property name="fill">True</property>
39
+ <property name="position">0</property>
40
+ </packing>
41
+ </child>
42
+ </object>
43
+ </child>
44
+ </object>
45
+ </interface>
data/pruebaa ADDED
@@ -0,0 +1,14 @@
1
+ #!/usr/bin/ruby
2
+
3
+ require 'vrlib'
4
+
5
+ #make program output in real time so errors visible in VR.
6
+ STDOUT.sync = true
7
+ STDERR.sync = true
8
+
9
+ #everything in these directories will be included
10
+ my_path = File.expand_path(File.dirname(__FILE__))
11
+ require_all Dir.glob(my_path + "/bin/**/*.rb")
12
+
13
+ MyClass.new.show
14
+
metadata ADDED
@@ -0,0 +1,89 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: pruebaa
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ platform: ruby
6
+ authors:
7
+ - Your Name
8
+ autorequire:
9
+ bindir:
10
+ - "."
11
+ cert_chain: []
12
+ date: 2014-09-29 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: vrlib
16
+ requirement: !ruby/object:Gem::Requirement
17
+ requirements:
18
+ - - ">="
19
+ - !ruby/object:Gem::Version
20
+ version: 0.0.1
21
+ type: :runtime
22
+ prerelease: false
23
+ version_requirements: !ruby/object:Gem::Requirement
24
+ requirements:
25
+ - - ">="
26
+ - !ruby/object:Gem::Version
27
+ version: 0.0.1
28
+ - !ruby/object:Gem::Dependency
29
+ name: gtk2
30
+ requirement: !ruby/object:Gem::Requirement
31
+ requirements:
32
+ - - ">="
33
+ - !ruby/object:Gem::Version
34
+ version: 0.0.1
35
+ type: :runtime
36
+ prerelease: false
37
+ version_requirements: !ruby/object:Gem::Requirement
38
+ requirements:
39
+ - - ">="
40
+ - !ruby/object:Gem::Version
41
+ version: 0.0.1
42
+ - !ruby/object:Gem::Dependency
43
+ name: require_all
44
+ requirement: !ruby/object:Gem::Requirement
45
+ requirements:
46
+ - - ">="
47
+ - !ruby/object:Gem::Version
48
+ version: 0.0.1
49
+ type: :runtime
50
+ prerelease: false
51
+ version_requirements: !ruby/object:Gem::Requirement
52
+ requirements:
53
+ - - ">="
54
+ - !ruby/object:Gem::Version
55
+ version: 0.0.1
56
+ description: Full description here
57
+ email: you@yoursite.com
58
+ executables:
59
+ - pruebaa
60
+ extensions: []
61
+ extra_rdoc_files: []
62
+ files:
63
+ - "./pruebaa"
64
+ - bin/MyClass.rb
65
+ - bin/glade/MyClass.glade
66
+ homepage: http://www.yoursite.org/
67
+ licenses: []
68
+ metadata: {}
69
+ post_install_message:
70
+ rdoc_options: []
71
+ require_paths:
72
+ - "."
73
+ required_ruby_version: !ruby/object:Gem::Requirement
74
+ requirements:
75
+ - - ">="
76
+ - !ruby/object:Gem::Version
77
+ version: '0'
78
+ required_rubygems_version: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - ">="
81
+ - !ruby/object:Gem::Version
82
+ version: '0'
83
+ requirements: []
84
+ rubyforge_project: nowarning
85
+ rubygems_version: 2.2.2
86
+ signing_key:
87
+ specification_version: 4
88
+ summary: Short Description Here.
89
+ test_files: []