gimdb 0.0.5 → 0.0.6

Sign up to get free protection for your applications and to get access to all the features.
data/.gitignore CHANGED
@@ -19,3 +19,5 @@ rdoc
19
19
  pkg
20
20
 
21
21
  ## PROJECT::SPECIFIC
22
+ deb
23
+ *.deb
data/README.rdoc CHANGED
@@ -60,18 +60,26 @@ Avaiable options are:
60
60
 
61
61
  == Install
62
62
 
63
- * sudo apt-get install ruby1.8-dev
64
- * sudo apt-get install libxml2-dev
65
- * sudo apt-get install libxslt1-dev
66
- * sudo apt-get install libsqlite3-dev
67
- * sudo apt-get install rubygems
68
- * sudo gem install gimdb
69
-
70
- Remember also to add rubygems bin path to your PATH env variable.
63
+ sudo apt-get install ruby1.8-dev
64
+ sudo apt-get install libxml2-dev
65
+ sudo apt-get install libxslt1-dev
66
+ sudo apt-get install libsqlite3-dev
67
+ sudo apt-get install rubygems
68
+ sudo gem install gimdb
69
+
70
+ remember also to add rubygems bin path to your PATH env variable.
71
71
  Edit <tt>~/.bashrc</tt> and add the follow line:
72
72
 
73
73
  PATH=$PATH:/var/lib/gems/1.8/bin
74
74
 
75
+ or download debian package here[http://github.com/downloads/pioz/gimdb/gimdb_0.0.6_all.deb] and install it:
76
+
77
+ sudo dpkg -i gimdb_0.0.6_all.deb
78
+
79
+ == Docs
80
+
81
+ http://rdoc.info/projects/Pioz/gimdb
82
+
75
83
  == Support
76
84
 
77
85
  You can use this email address for any questions or help: mailto:enrico@megiston.it.
data/Rakefile CHANGED
@@ -4,12 +4,13 @@ require 'rake'
4
4
  begin
5
5
  require 'jeweler'
6
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' ]
7
+ $NAME = gem.name = 'gimdb'
8
+ $VERSION = File.exist?('VERSION') ? File.read('VERSION').strip : ''
9
+ $SUMMARY = gem.summary = 'GTK graphical interface for Internet Movie DataBase'
10
+ $DESCRIPTION = 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.'
11
+ $EMAIL = gem.email = 'enrico@megiston.it'
12
+ $HOMEPAGE = gem.homepage = 'http://github.com/pioz/gimdb'
13
+ $AUTHORS = gem.authors = [ 'Enrico Pilotto' ]
13
14
  gem.add_dependency 'nokogiri'
14
15
  gem.add_dependency 'activerecord'
15
16
  gem.add_dependency 'sqlite3-ruby'
@@ -25,9 +26,8 @@ task :default => :test
25
26
 
26
27
  require 'rake/rdoctask'
27
28
  Rake::RDocTask.new do |rdoc|
28
- version = File.exist?('VERSION') ? File.read('VERSION') : ''
29
29
  rdoc.rdoc_dir = 'rdoc'
30
- rdoc.title = "gimdb #{version}"
30
+ rdoc.title = "gimdb #{$VERSION}"
31
31
  rdoc.rdoc_files.include('README*')
32
32
  end
33
33
 
@@ -43,4 +43,74 @@ namespace :gettext do
43
43
  require 'gettext/tools'
44
44
  GetText.create_mofiles
45
45
  end
46
+ end
47
+
48
+ desc 'Generate meta deb package'
49
+ task :build_deb do
50
+ control = <<-EOF
51
+ Package: #{$NAME}
52
+ Version: #{$VERSION}
53
+ Architecture: all
54
+ Maintainer: #{$AUTHORS.first} <#{$EMAIL}>
55
+ Depends: ruby1.8 (>= 1.8.7), ruby1.8-dev (>= 1.8.7), rubygems1.8 (>= 1.3.5), libgtk2-ruby1.8 (>= 0.19.3), libglade2-ruby1.8 (>= 0.19.3), libxml2-dev (>= 2.7.6), libxslt1-dev (>= 1.1.26), libsqlite3-dev (>= 3.6.22)
56
+ Section: misc
57
+ Priority: optional
58
+ Homepage: #{$HOMEPAGE}
59
+ Description: #{$SUMMARY}
60
+ #{$DESCRIPTION.gsub(/(.{1,79})( +|$\n?)|(.{1,79})/, "\\1\\3\n ")[0..-3]}
61
+ EOF
62
+ postinst = <<-EOF
63
+ #!/bin/bash
64
+ gem install #{$NAME} -v #{$VERSION} --no-rdoc --no-ri
65
+ EOF
66
+ prerm = <<-EOF
67
+ #!/bin/bash
68
+ gem uninstall #{$NAME} -v #{$VERSION} -ax
69
+ EOF
70
+ bin = <<-EOF
71
+ #!/bin/bash
72
+ gempath=$(gem environment gempath)
73
+ paths=$(echo $gempath | tr ":", "\n")
74
+ for p in $paths
75
+ do
76
+ if test -x $p/bin/#{$NAME}
77
+ then
78
+ $p/bin/#{$NAME}
79
+ break
80
+ fi
81
+ done
82
+ EOF
83
+ gnome_menu = <<-EOF
84
+ [Desktop Entry]
85
+ Name=#{$NAME.capitalize}
86
+ Version=#{$VERSION}
87
+ Comment=#{$SUMMARY}
88
+ Exec=gimdb
89
+ Terminal=false
90
+ Type=Application
91
+ StartupNotify=true
92
+ Icon=#{$NAME}
93
+ Categories=GTK;GNOME;Network;
94
+ Encoding=UTF-8
95
+ EOF
96
+ md5sums = ''
97
+ Dir['deb/usr/**/*'].each do |f|
98
+ unless File.directory?(f)
99
+ md5sums << `md5sum #{f}`
100
+ end
101
+ end
102
+ `mkdir -p deb`
103
+ `mkdir -p deb/DEBIAN/`
104
+ `mkdir -p deb/usr/bin/`
105
+ `mkdir -p deb/usr/share/applications/`
106
+ `mkdir -p deb/usr/share/pixmaps/`
107
+ File.open('deb/DEBIAN/control', 'w') {|f| f.write(control) }
108
+ File.open('deb/DEBIAN/md5sums', 'w') {|f| f.write(md5sums) }
109
+ File.open('deb/DEBIAN/postinst', 'w') {|f| f.write(postinst) }
110
+ File.open('deb/DEBIAN/prerm', 'w') {|f| f.write(prerm) }
111
+ File.open("deb/usr/bin/#{$NAME}", 'w') {|f| f.write(bin) }
112
+ File.open("deb/usr/share/applications/#{$NAME}.desktop", 'w') {|f| f.write(gnome_menu) }
113
+ `cp 'data/icons/#{$NAME}.png' 'deb/usr/share/pixmaps/'`
114
+ File.chmod(0755, 'deb/DEBIAN/postinst', 'deb/DEBIAN/prerm', "deb/usr/bin/#{$NAME}")
115
+ puts `dpkg-deb -b deb/ '#{$NAME}_#{$VERSION}_all.deb'`
46
116
  end
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.5
1
+ 0.0.6
data/data/gimdb.glade CHANGED
@@ -6,7 +6,7 @@
6
6
  <property name="visible">True</property>
7
7
  <property name="title" translatable="yes">GIMDB</property>
8
8
  <property name="window_position">center</property>
9
- <property name="icon">icons/imdb_icon.png</property>
9
+ <property name="icon">icons/gimdb.png</property>
10
10
  <child>
11
11
  <widget class="GtkVBox" id="vbox1">
12
12
  <property name="visible">True</property>
@@ -1008,10 +1008,12 @@ Year</property>
1008
1008
  <property name="border_width">5</property>
1009
1009
  <property name="title" translatable="yes">Manage users</property>
1010
1010
  <property name="resizable">False</property>
1011
+ <property name="modal">True</property>
1011
1012
  <property name="window_position">center</property>
1012
1013
  <property name="destroy_with_parent">True</property>
1013
- <property name="icon">icons/imdb_icon.png</property>
1014
+ <property name="icon">icons/gimdb.png</property>
1014
1015
  <property name="type_hint">normal</property>
1016
+ <property name="skip_taskbar_hint">True</property>
1015
1017
  <signal name="delete_event" handler="on_close_manage_users_clicked"/>
1016
1018
  <child internal-child="vbox">
1017
1019
  <widget class="GtkVBox" id="dialog-vbox1">
@@ -1065,6 +1067,7 @@ Year</property>
1065
1067
  </child>
1066
1068
  </widget>
1067
1069
  <packing>
1070
+ <property name="expand">False</property>
1068
1071
  <property name="pack_type">end</property>
1069
1072
  <property name="position">0</property>
1070
1073
  </packing>
File without changes
data/gimdb.gemspec CHANGED
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{gimdb}
8
- s.version = "0.0.5"
8
+ s.version = "0.0.6"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Enrico Pilotto"]
12
- s.date = %q{2010-05-13}
12
+ s.date = %q{2010-05-15}
13
13
  s.default_executable = %q{gimdb}
14
14
  s.description = %q{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.}
15
15
  s.email = %q{enrico@megiston.it}
@@ -27,8 +27,8 @@ Gem::Specification.new do |s|
27
27
  "bin/gimdb",
28
28
  "data/gimdb.glade",
29
29
  "data/icons/favourites.png",
30
+ "data/icons/gimdb.png",
30
31
  "data/icons/imdb.png",
31
- "data/icons/imdb_icon.png",
32
32
  "data/icons/no_poster.png",
33
33
  "data/icons/seen.png",
34
34
  "data/icons/spinner16x16.gif",
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gimdb
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Enrico Pilotto
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2010-05-13 00:00:00 +02:00
12
+ date: 2010-05-15 00:00:00 +02:00
13
13
  default_executable: gimdb
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
@@ -60,8 +60,8 @@ files:
60
60
  - bin/gimdb
61
61
  - data/gimdb.glade
62
62
  - data/icons/favourites.png
63
+ - data/icons/gimdb.png
63
64
  - data/icons/imdb.png
64
- - data/icons/imdb_icon.png
65
65
  - data/icons/no_poster.png
66
66
  - data/icons/seen.png
67
67
  - data/icons/spinner16x16.gif