ebaytool 0.0.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.
- data/bin/MyClass.rb +31 -0
- data/bin/glade/MyClass.glade +102 -0
- data/ebaytool +14 -0
- metadata +97 -0
data/bin/MyClass.rb
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
|
|
2
|
+
class MyClass #(change name)
|
|
3
|
+
|
|
4
|
+
include GladeGUI
|
|
5
|
+
|
|
6
|
+
def show()
|
|
7
|
+
load_glade(__FILE__) #loads file, glade/MyClass.glade into @builder
|
|
8
|
+
@label1 = "EbayTool"
|
|
9
|
+
set_glade_all() #populates glade controls with insance variables (i.e. Myclass.label1)
|
|
10
|
+
show_window()
|
|
11
|
+
end
|
|
12
|
+
|
|
13
|
+
def button1__clicked(*argv)
|
|
14
|
+
@userid = @builder["entry1"].text
|
|
15
|
+
@userpass = @builder["entry2"].text
|
|
16
|
+
browse(@userid,@userpass)
|
|
17
|
+
end
|
|
18
|
+
|
|
19
|
+
def browse(id,pass)
|
|
20
|
+
browser = Watir::Browser.new :firefox
|
|
21
|
+
browser.goto("http://www.ebay.de/")
|
|
22
|
+
browser.link(:text, "Einloggen").click
|
|
23
|
+
browser.text_field(:id, "userid").set(id)
|
|
24
|
+
browser.text_field(:id, "pass").set(pass)
|
|
25
|
+
browser.checkbox(:id, "signed_in").clear
|
|
26
|
+
browser.button(:value,"Einloggen").click
|
|
27
|
+
browser.link(:text, "Verkaufen").click
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
end
|
|
31
|
+
|
|
@@ -0,0 +1,102 @@
|
|
|
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
|
+
<signal name="destroy" handler="destroy_window" swapped="no"/>
|
|
11
|
+
<child>
|
|
12
|
+
<object class="GtkVBox" id="vbox2">
|
|
13
|
+
<property name="visible">True</property>
|
|
14
|
+
<property name="can_focus">False</property>
|
|
15
|
+
<child>
|
|
16
|
+
<object class="GtkVBox" id="vbox1">
|
|
17
|
+
<property name="visible">True</property>
|
|
18
|
+
<property name="can_focus">False</property>
|
|
19
|
+
<child>
|
|
20
|
+
<object class="GtkLabel" id="label1">
|
|
21
|
+
<property name="visible">True</property>
|
|
22
|
+
<property name="can_focus">False</property>
|
|
23
|
+
<property name="label" translatable="yes">label</property>
|
|
24
|
+
</object>
|
|
25
|
+
<packing>
|
|
26
|
+
<property name="expand">True</property>
|
|
27
|
+
<property name="fill">True</property>
|
|
28
|
+
<property name="position">0</property>
|
|
29
|
+
</packing>
|
|
30
|
+
</child>
|
|
31
|
+
<child>
|
|
32
|
+
<placeholder/>
|
|
33
|
+
</child>
|
|
34
|
+
<child>
|
|
35
|
+
<object class="GtkHBox" id="hbox1">
|
|
36
|
+
<property name="visible">True</property>
|
|
37
|
+
<property name="can_focus">False</property>
|
|
38
|
+
<child>
|
|
39
|
+
<object class="GtkEntry" id="entry1">
|
|
40
|
+
<property name="visible">True</property>
|
|
41
|
+
<property name="can_focus">True</property>
|
|
42
|
+
<property name="invisible_char">•</property>
|
|
43
|
+
<property name="primary_icon_activatable">False</property>
|
|
44
|
+
<property name="secondary_icon_activatable">False</property>
|
|
45
|
+
<property name="primary_icon_sensitive">True</property>
|
|
46
|
+
<property name="secondary_icon_sensitive">True</property>
|
|
47
|
+
</object>
|
|
48
|
+
<packing>
|
|
49
|
+
<property name="expand">False</property>
|
|
50
|
+
<property name="fill">False</property>
|
|
51
|
+
<property name="position">0</property>
|
|
52
|
+
</packing>
|
|
53
|
+
</child>
|
|
54
|
+
<child>
|
|
55
|
+
<object class="GtkEntry" id="entry2">
|
|
56
|
+
<property name="visible">True</property>
|
|
57
|
+
<property name="can_focus">True</property>
|
|
58
|
+
<property name="visibility">False</property>
|
|
59
|
+
<property name="invisible_char_set">True</property>
|
|
60
|
+
<property name="primary_icon_activatable">False</property>
|
|
61
|
+
<property name="secondary_icon_activatable">False</property>
|
|
62
|
+
<property name="primary_icon_sensitive">True</property>
|
|
63
|
+
<property name="secondary_icon_sensitive">True</property>
|
|
64
|
+
</object>
|
|
65
|
+
<packing>
|
|
66
|
+
<property name="expand">False</property>
|
|
67
|
+
<property name="fill">False</property>
|
|
68
|
+
<property name="position">1</property>
|
|
69
|
+
</packing>
|
|
70
|
+
</child>
|
|
71
|
+
<child>
|
|
72
|
+
<object class="GtkButton" id="button1">
|
|
73
|
+
<property name="label" translatable="yes">button</property>
|
|
74
|
+
<property name="use_action_appearance">False</property>
|
|
75
|
+
<property name="visible">True</property>
|
|
76
|
+
<property name="can_focus">True</property>
|
|
77
|
+
<property name="receives_default">True</property>
|
|
78
|
+
</object>
|
|
79
|
+
<packing>
|
|
80
|
+
<property name="expand">True</property>
|
|
81
|
+
<property name="fill">True</property>
|
|
82
|
+
<property name="position">2</property>
|
|
83
|
+
</packing>
|
|
84
|
+
</child>
|
|
85
|
+
</object>
|
|
86
|
+
<packing>
|
|
87
|
+
<property name="expand">False</property>
|
|
88
|
+
<property name="fill">True</property>
|
|
89
|
+
<property name="position">2</property>
|
|
90
|
+
</packing>
|
|
91
|
+
</child>
|
|
92
|
+
</object>
|
|
93
|
+
<packing>
|
|
94
|
+
<property name="expand">True</property>
|
|
95
|
+
<property name="fill">True</property>
|
|
96
|
+
<property name="position">0</property>
|
|
97
|
+
</packing>
|
|
98
|
+
</child>
|
|
99
|
+
</object>
|
|
100
|
+
</child>
|
|
101
|
+
</object>
|
|
102
|
+
</interface>
|
data/ebaytool
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
#!/usr/bin/ruby
|
|
2
|
+
|
|
3
|
+
require 'vrlib'
|
|
4
|
+
require 'watir'
|
|
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,97 @@
|
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
|
2
|
+
name: ebaytool
|
|
3
|
+
version: !ruby/object:Gem::Version
|
|
4
|
+
version: 0.0.1
|
|
5
|
+
prerelease:
|
|
6
|
+
platform: ruby
|
|
7
|
+
authors:
|
|
8
|
+
- Kevin Pattberg
|
|
9
|
+
autorequire:
|
|
10
|
+
bindir:
|
|
11
|
+
- .
|
|
12
|
+
cert_chain: []
|
|
13
|
+
date: 2013-04-12 00:00:00.000000000 Z
|
|
14
|
+
dependencies:
|
|
15
|
+
- !ruby/object:Gem::Dependency
|
|
16
|
+
name: vrlib
|
|
17
|
+
requirement: !ruby/object:Gem::Requirement
|
|
18
|
+
none: false
|
|
19
|
+
requirements:
|
|
20
|
+
- - ! '>='
|
|
21
|
+
- !ruby/object:Gem::Version
|
|
22
|
+
version: 0.0.1
|
|
23
|
+
type: :runtime
|
|
24
|
+
prerelease: false
|
|
25
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
26
|
+
none: false
|
|
27
|
+
requirements:
|
|
28
|
+
- - ! '>='
|
|
29
|
+
- !ruby/object:Gem::Version
|
|
30
|
+
version: 0.0.1
|
|
31
|
+
- !ruby/object:Gem::Dependency
|
|
32
|
+
name: gtk2
|
|
33
|
+
requirement: !ruby/object:Gem::Requirement
|
|
34
|
+
none: false
|
|
35
|
+
requirements:
|
|
36
|
+
- - ! '>='
|
|
37
|
+
- !ruby/object:Gem::Version
|
|
38
|
+
version: 0.0.1
|
|
39
|
+
type: :runtime
|
|
40
|
+
prerelease: false
|
|
41
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
42
|
+
none: false
|
|
43
|
+
requirements:
|
|
44
|
+
- - ! '>='
|
|
45
|
+
- !ruby/object:Gem::Version
|
|
46
|
+
version: 0.0.1
|
|
47
|
+
- !ruby/object:Gem::Dependency
|
|
48
|
+
name: require_all
|
|
49
|
+
requirement: !ruby/object:Gem::Requirement
|
|
50
|
+
none: false
|
|
51
|
+
requirements:
|
|
52
|
+
- - ! '>='
|
|
53
|
+
- !ruby/object:Gem::Version
|
|
54
|
+
version: 0.0.1
|
|
55
|
+
type: :runtime
|
|
56
|
+
prerelease: false
|
|
57
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
58
|
+
none: false
|
|
59
|
+
requirements:
|
|
60
|
+
- - ! '>='
|
|
61
|
+
- !ruby/object:Gem::Version
|
|
62
|
+
version: 0.0.1
|
|
63
|
+
description: Full description here
|
|
64
|
+
email: kevin.pattberg@gmail.com
|
|
65
|
+
executables:
|
|
66
|
+
- ebaytool
|
|
67
|
+
extensions: []
|
|
68
|
+
extra_rdoc_files: []
|
|
69
|
+
files:
|
|
70
|
+
- bin/MyClass.rb
|
|
71
|
+
- bin/glade/MyClass.glade
|
|
72
|
+
- ./ebaytool
|
|
73
|
+
homepage: http://www.arduinokevin.wordpress.com/
|
|
74
|
+
licenses: []
|
|
75
|
+
post_install_message:
|
|
76
|
+
rdoc_options: []
|
|
77
|
+
require_paths:
|
|
78
|
+
- .
|
|
79
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
|
80
|
+
none: false
|
|
81
|
+
requirements:
|
|
82
|
+
- - ! '>='
|
|
83
|
+
- !ruby/object:Gem::Version
|
|
84
|
+
version: '0'
|
|
85
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
86
|
+
none: false
|
|
87
|
+
requirements:
|
|
88
|
+
- - ! '>='
|
|
89
|
+
- !ruby/object:Gem::Version
|
|
90
|
+
version: '0'
|
|
91
|
+
requirements: []
|
|
92
|
+
rubyforge_project: nowarning
|
|
93
|
+
rubygems_version: 1.8.25
|
|
94
|
+
signing_key:
|
|
95
|
+
specification_version: 3
|
|
96
|
+
summary: Short Description Here.
|
|
97
|
+
test_files: []
|