gimdb 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/.gitignore +21 -0
- data/LICENSE +674 -0
- data/README.rdoc +81 -0
- data/Rakefile +46 -0
- data/VERSION +1 -0
- data/bin/gimdb +9 -0
- data/data/gimdb.glade +1122 -0
- data/data/icons/favourites.png +0 -0
- data/data/icons/imdb.png +0 -0
- data/data/icons/imdb_icon.png +0 -0
- data/data/icons/no_poster.png +0 -0
- data/data/icons/seen.png +0 -0
- data/data/icons/spinner16x16.gif +0 -0
- data/data/icons/to_see.png +0 -0
- data/data/icons/users.png +0 -0
- data/data/icons/users_edit.png +0 -0
- data/data/locale/it/LC_MESSAGES/gimdb.mo +0 -0
- data/gimdb.gemspec +73 -0
- data/lib/imdb.rb +104 -0
- data/po/gimdb.pot +217 -0
- data/po/it/gimdb.po +233 -0
- data/src/controller.rb +50 -0
- data/src/gimdb.rb +379 -0
- data/src/model.rb +135 -0
- data/src/movie_box.rb +110 -0
- metadata +109 -0
data/README.rdoc
ADDED
@@ -0,0 +1,81 @@
|
|
1
|
+
= GIMDB
|
2
|
+
|
3
|
+
GTK graphical interface for the Internet Movie DataBase.
|
4
|
+
|
5
|
+
== Description
|
6
|
+
|
7
|
+
_gimdb_ is a program that can browse the {Internet Movie DataBase}[http://www.imdb.com/] of Amazon.
|
8
|
+
It is write in Ruby programming language and use the graphics library GTK[http://www.gtk.org/].
|
9
|
+
_gimdb_ download the movies info that you request and save them in a local sqlite3[http://www.sqlite.org/] database.
|
10
|
+
|
11
|
+
You can create users and save for each of them the movies to see, movies seen and favourites movies.
|
12
|
+
_gimdb_ can also work in offline mode searching movies in the local database.
|
13
|
+
|
14
|
+
{Screenshot}[http://cloud.github.com/downloads/pioz/gimdb/screenshot-GIMDB.png]
|
15
|
+
|
16
|
+
_gimdb_ may be useful if you don't know what movie see.
|
17
|
+
|
18
|
+
|
19
|
+
== imdb.rb
|
20
|
+
|
21
|
+
For your purposes, you can use the IMDB class.
|
22
|
+
|
23
|
+
require 'rubygems'
|
24
|
+
require 'imdb'
|
25
|
+
require 'pp'
|
26
|
+
|
27
|
+
# Get a IMDB object to perform queries
|
28
|
+
searcher = IMDB.new
|
29
|
+
|
30
|
+
# Query the database
|
31
|
+
results = searcher.get_list()
|
32
|
+
|
33
|
+
# Query the database with options
|
34
|
+
results = searcher.get_list(:release_date => '2007,2010', :user_rating => '7,10')
|
35
|
+
|
36
|
+
# Print the results
|
37
|
+
pp results
|
38
|
+
|
39
|
+
# Get more movies with same query
|
40
|
+
results = searcher.next
|
41
|
+
|
42
|
+
Avaiable options are:
|
43
|
+
|
44
|
+
* title
|
45
|
+
* release_date
|
46
|
+
* user_rating
|
47
|
+
* num_votes
|
48
|
+
* genres
|
49
|
+
* sort
|
50
|
+
* start
|
51
|
+
|
52
|
+
== Requirements
|
53
|
+
|
54
|
+
* ruby
|
55
|
+
* activerecord
|
56
|
+
* sqlite3-ruby[http://github.com/jamis/sqlite3-ruby]
|
57
|
+
* nokogiri[http://github.com/tenderlove/nokogiri]
|
58
|
+
* libgnome2 <tt>(sudo apt-get install libgnome2-ruby)</tt>
|
59
|
+
* libglade2 <tt>(sudo apt-get install libglade2-ruby)</tt>
|
60
|
+
|
61
|
+
== Install
|
62
|
+
|
63
|
+
* sudo gem install gimdb
|
64
|
+
|
65
|
+
== Support
|
66
|
+
|
67
|
+
You can use this email address for any questions or help: mailto:enrico@megiston.it.
|
68
|
+
|
69
|
+
== Note on Patches/Pull Requests
|
70
|
+
|
71
|
+
* Fork the project.
|
72
|
+
* Make your feature addition or bug fix.
|
73
|
+
* Add tests for it. This is important so I don't break it in a
|
74
|
+
future version unintentionally.
|
75
|
+
* Commit, do not mess with rakefile, version, or history.
|
76
|
+
(if you want to have your own version, that is fine but bump version in a commit by itself I can ignore when I pull)
|
77
|
+
* Send me a pull request. Bonus points for topic branches.
|
78
|
+
|
79
|
+
== Copyright
|
80
|
+
|
81
|
+
Copyright (c) 2010 Enrico Pilotto. See LICENSE[http://github.com/pioz/gimdb/blob/master/LICENSE] for details.
|
data/Rakefile
ADDED
@@ -0,0 +1,46 @@
|
|
1
|
+
require 'rubygems'
|
2
|
+
require 'rake'
|
3
|
+
|
4
|
+
begin
|
5
|
+
require 'jeweler'
|
6
|
+
Jeweler::Tasks.new do |gem|
|
7
|
+
gem.name = 'gimdb'
|
8
|
+
gem.summary = 'GTK graphical interface for Internet Movie DataBase'
|
9
|
+
gem.description = 'GTK graphical interface for Internet Movie DataBase. You can create users and save for each of them the movies to see, movies seen and favourites movies in a sqlite3 database.'
|
10
|
+
gem.email = 'enrico@megiston.it'
|
11
|
+
gem.homepage = 'http://github.com/pioz/gimdb'
|
12
|
+
gem.authors = [ 'Enrico Pilotto' ]
|
13
|
+
gem.add_dependency 'nokogiri'
|
14
|
+
gem.add_dependency 'activerecord'
|
15
|
+
gem.add_dependency 'sqlite3-ruby'
|
16
|
+
end
|
17
|
+
Jeweler::GemcutterTasks.new
|
18
|
+
rescue LoadError
|
19
|
+
puts 'Jeweler (or a dependency) not available. Install it with: gem install jeweler'
|
20
|
+
end
|
21
|
+
|
22
|
+
task :test => :check_dependencies
|
23
|
+
|
24
|
+
task :default => :test
|
25
|
+
|
26
|
+
require 'rake/rdoctask'
|
27
|
+
Rake::RDocTask.new do |rdoc|
|
28
|
+
version = File.exist?('VERSION') ? File.read('VERSION') : ''
|
29
|
+
rdoc.rdoc_dir = 'rdoc'
|
30
|
+
rdoc.title = "gimdb #{version}"
|
31
|
+
rdoc.rdoc_files.include('README*')
|
32
|
+
end
|
33
|
+
|
34
|
+
namespace :gettext do
|
35
|
+
desc "Update pot/po files"
|
36
|
+
task :updatepo do
|
37
|
+
require 'gettext/tools'
|
38
|
+
GetText.update_pofiles('gimdb', Dir.glob("{.,lib,bin}/**/*.rb"), 'gimdb')
|
39
|
+
end
|
40
|
+
|
41
|
+
desc "Create mo-files"
|
42
|
+
task :makemo do
|
43
|
+
require 'gettext/tools'
|
44
|
+
GetText.create_mofiles
|
45
|
+
end
|
46
|
+
end
|
data/VERSION
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
0.0.1
|