etvnet-seek 0.7.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (40) hide show
  1. data/CHANGES +26 -0
  2. data/Gemfile +14 -0
  3. data/README +20 -0
  4. data/Rakefile +59 -0
  5. data/VERSION +1 -0
  6. data/bin/etvnet-seek +27 -0
  7. data/bin/etvnet-seek.bat +6 -0
  8. data/etvnet-seek.gemspec +98 -0
  9. data/lib/etvnet_seek/commander.rb +105 -0
  10. data/lib/etvnet_seek/cookie_helper.rb +107 -0
  11. data/lib/etvnet_seek/core/access_page.rb +19 -0
  12. data/lib/etvnet_seek/core/base_page.rb +43 -0
  13. data/lib/etvnet_seek/core/browse_media_item.rb +41 -0
  14. data/lib/etvnet_seek/core/catalog_item.rb +38 -0
  15. data/lib/etvnet_seek/core/catalog_page.rb +29 -0
  16. data/lib/etvnet_seek/core/channel_media_item.rb +17 -0
  17. data/lib/etvnet_seek/core/channels_page.rb +29 -0
  18. data/lib/etvnet_seek/core/group_media_item.rb +7 -0
  19. data/lib/etvnet_seek/core/group_page.rb +42 -0
  20. data/lib/etvnet_seek/core/home_page.rb +18 -0
  21. data/lib/etvnet_seek/core/login_page.rb +49 -0
  22. data/lib/etvnet_seek/core/media_info.rb +31 -0
  23. data/lib/etvnet_seek/core/media_item.rb +52 -0
  24. data/lib/etvnet_seek/core/media_page.rb +41 -0
  25. data/lib/etvnet_seek/core/new_item.rb +9 -0
  26. data/lib/etvnet_seek/core/new_items_page.rb +20 -0
  27. data/lib/etvnet_seek/core/page.rb +19 -0
  28. data/lib/etvnet_seek/core/page_factory.rb +51 -0
  29. data/lib/etvnet_seek/core/search_page.rb +42 -0
  30. data/lib/etvnet_seek/core/service_call.rb +32 -0
  31. data/lib/etvnet_seek/easy_auth.rb +52 -0
  32. data/lib/etvnet_seek/etvnet_seek.rb +10 -0
  33. data/lib/etvnet_seek/link_info.rb +37 -0
  34. data/lib/etvnet_seek/main.rb +180 -0
  35. data/lib/etvnet_seek/user_selection.rb +26 -0
  36. data/lib/media_converter.rb +85 -0
  37. data/lib/progressbar.rb +237 -0
  38. data/lib/runglish.rb +131 -0
  39. data/spec/etvnet_seek_spec.rb +28 -0
  40. metadata +200 -0
@@ -0,0 +1,28 @@
1
+ $LOAD_PATH.unshift File.dirname(__FILE__) + '/lib'
2
+
3
+ require 'rubygems' unless RUBY_VERSION =~ /1.9.*/
4
+
5
+ require 'etvnet/url_seeker'
6
+ require 'runglish'
7
+
8
+ describe UrlSeeker do
9
+
10
+ before :each do
11
+ @client = Main.new
12
+ end
13
+
14
+ it "should return search menu items" do
15
+ keywords = "красная шапочка"
16
+
17
+ items = @client.seek(keywords)
18
+ @client.display_items items
19
+ end
20
+
21
+ end
22
+
23
+ describe Runglish do
24
+ it "should return translation" do
25
+ Runglish::RusToLatConverter.new.transliterate("как дела?").should == "kak dela?"
26
+ Runglish::LatToRusConverter.new.transliterate("krasnaya shapochka").should == "красная шапочка"
27
+ end
28
+ end
metadata ADDED
@@ -0,0 +1,200 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: etvnet-seek
3
+ version: !ruby/object:Gem::Version
4
+ hash: 7
5
+ prerelease: false
6
+ segments:
7
+ - 0
8
+ - 7
9
+ - 2
10
+ version: 0.7.2
11
+ platform: ruby
12
+ authors:
13
+ - Alexander Shvets
14
+ autorequire:
15
+ bindir: bin
16
+ cert_chain: []
17
+
18
+ date: 2010-07-11 00:00:00 -04:00
19
+ default_executable: etvnet-seek
20
+ dependencies:
21
+ - !ruby/object:Gem::Dependency
22
+ name: json_pure
23
+ prerelease: false
24
+ requirement: &id001 !ruby/object:Gem::Requirement
25
+ none: false
26
+ requirements:
27
+ - - ">="
28
+ - !ruby/object:Gem::Version
29
+ hash: 31
30
+ segments:
31
+ - 1
32
+ - 2
33
+ - 0
34
+ version: 1.2.0
35
+ type: :runtime
36
+ version_requirements: *id001
37
+ - !ruby/object:Gem::Dependency
38
+ name: highline
39
+ prerelease: false
40
+ requirement: &id002 !ruby/object:Gem::Requirement
41
+ none: false
42
+ requirements:
43
+ - - ">="
44
+ - !ruby/object:Gem::Version
45
+ hash: 1
46
+ segments:
47
+ - 1
48
+ - 5
49
+ - 1
50
+ version: 1.5.1
51
+ type: :runtime
52
+ version_requirements: *id002
53
+ - !ruby/object:Gem::Dependency
54
+ name: libxml-ruby
55
+ prerelease: false
56
+ requirement: &id003 !ruby/object:Gem::Requirement
57
+ none: false
58
+ requirements:
59
+ - - ">="
60
+ - !ruby/object:Gem::Version
61
+ hash: 21
62
+ segments:
63
+ - 1
64
+ - 1
65
+ - 3
66
+ version: 1.1.3
67
+ type: :runtime
68
+ version_requirements: *id003
69
+ - !ruby/object:Gem::Dependency
70
+ name: nokogiri
71
+ prerelease: false
72
+ requirement: &id004 !ruby/object:Gem::Requirement
73
+ none: false
74
+ requirements:
75
+ - - ">="
76
+ - !ruby/object:Gem::Version
77
+ hash: 5
78
+ segments:
79
+ - 1
80
+ - 4
81
+ - 1
82
+ version: 1.4.1
83
+ type: :runtime
84
+ version_requirements: *id004
85
+ - !ruby/object:Gem::Dependency
86
+ name: rspec
87
+ prerelease: false
88
+ requirement: &id005 !ruby/object:Gem::Requirement
89
+ none: false
90
+ requirements:
91
+ - - ">="
92
+ - !ruby/object:Gem::Version
93
+ hash: 13
94
+ segments:
95
+ - 1
96
+ - 2
97
+ - 9
98
+ version: 1.2.9
99
+ type: :development
100
+ version_requirements: *id005
101
+ - !ruby/object:Gem::Dependency
102
+ name: mocha
103
+ prerelease: false
104
+ requirement: &id006 !ruby/object:Gem::Requirement
105
+ none: false
106
+ requirements:
107
+ - - ">="
108
+ - !ruby/object:Gem::Version
109
+ hash: 53
110
+ segments:
111
+ - 0
112
+ - 9
113
+ - 7
114
+ version: 0.9.7
115
+ type: :development
116
+ version_requirements: *id006
117
+ description: Command line tool for getting mms urls from etvnet service.
118
+ email: alexander.shvets@gmail.com
119
+ executables:
120
+ - etvnet-seek
121
+ extensions: []
122
+
123
+ extra_rdoc_files:
124
+ - README
125
+ files:
126
+ - CHANGES
127
+ - Gemfile
128
+ - README
129
+ - Rakefile
130
+ - VERSION
131
+ - bin/etvnet-seek
132
+ - bin/etvnet-seek.bat
133
+ - etvnet-seek.gemspec
134
+ - lib/etvnet_seek/commander.rb
135
+ - lib/etvnet_seek/cookie_helper.rb
136
+ - lib/etvnet_seek/core/access_page.rb
137
+ - lib/etvnet_seek/core/base_page.rb
138
+ - lib/etvnet_seek/core/browse_media_item.rb
139
+ - lib/etvnet_seek/core/catalog_item.rb
140
+ - lib/etvnet_seek/core/catalog_page.rb
141
+ - lib/etvnet_seek/core/channel_media_item.rb
142
+ - lib/etvnet_seek/core/channels_page.rb
143
+ - lib/etvnet_seek/core/group_media_item.rb
144
+ - lib/etvnet_seek/core/group_page.rb
145
+ - lib/etvnet_seek/core/home_page.rb
146
+ - lib/etvnet_seek/core/login_page.rb
147
+ - lib/etvnet_seek/core/media_info.rb
148
+ - lib/etvnet_seek/core/media_item.rb
149
+ - lib/etvnet_seek/core/media_page.rb
150
+ - lib/etvnet_seek/core/new_item.rb
151
+ - lib/etvnet_seek/core/new_items_page.rb
152
+ - lib/etvnet_seek/core/page.rb
153
+ - lib/etvnet_seek/core/page_factory.rb
154
+ - lib/etvnet_seek/core/search_page.rb
155
+ - lib/etvnet_seek/core/service_call.rb
156
+ - lib/etvnet_seek/easy_auth.rb
157
+ - lib/etvnet_seek/etvnet_seek.rb
158
+ - lib/etvnet_seek/link_info.rb
159
+ - lib/etvnet_seek/main.rb
160
+ - lib/etvnet_seek/user_selection.rb
161
+ - lib/media_converter.rb
162
+ - lib/progressbar.rb
163
+ - lib/runglish.rb
164
+ - spec/etvnet_seek_spec.rb
165
+ has_rdoc: true
166
+ homepage: http://github.com/shvets/etvnet-seek
167
+ licenses: []
168
+
169
+ post_install_message:
170
+ rdoc_options:
171
+ - --charset=UTF-8
172
+ require_paths:
173
+ - lib
174
+ required_ruby_version: !ruby/object:Gem::Requirement
175
+ none: false
176
+ requirements:
177
+ - - ">="
178
+ - !ruby/object:Gem::Version
179
+ hash: 3
180
+ segments:
181
+ - 0
182
+ version: "0"
183
+ required_rubygems_version: !ruby/object:Gem::Requirement
184
+ none: false
185
+ requirements:
186
+ - - ">="
187
+ - !ruby/object:Gem::Version
188
+ hash: 3
189
+ segments:
190
+ - 0
191
+ version: "0"
192
+ requirements:
193
+ - none
194
+ rubyforge_project:
195
+ rubygems_version: 1.3.7
196
+ signing_key:
197
+ specification_version: 3
198
+ summary: Accessing etvnet service from command line.
199
+ test_files:
200
+ - spec/etvnet_seek_spec.rb