Skip to content
Browse files

remove deprecated examples

  • Loading branch information...
1 parent 4bb7ea5 commit 04b2113e0ee718fb3408a70b2908f273bbf86def @ddollar committed Jun 12, 2008
Showing with 0 additions and 50 deletions.
  1. +0 −14 examples/autosave.rb
  2. +0 −9 examples/filename.rb
  3. +0 −12 examples/helper.rb
  4. +0 −15 examples/load_save.rb
View
14 examples/autosave.rb
@@ -1,14 +0,0 @@
-#!/usr/bin/env ruby
-
-require 'helper.rb'
-
-preferences = Preferences::Manager.new :preferences_test, {:autosave => true}
-preferences[:foo] = 'barnoo'
-preferences[:fred] = ['barney', 'rubble']
-preferences[:alice] = { :owner => 'bob' }
-pp preferences
-
-preferences_test = Preferences::Manager.new :preferences_test
-pp preferences_test
-
-puts (preferences_test == preferences) ? "OK" : "FAIL"
View
9 examples/filename.rb
@@ -1,9 +0,0 @@
-#!/usr/bin/env ruby
-
-require 'helper.rb'
-
-preferences = Preferences::Manager.new :preferences_test, true
-puts "GLOBAL : #{preferences.filename}"
-
-preferences = Preferences::Manager.new :preferences_test, false
-puts "USER : #{preferences.filename}"
View
12 examples/helper.rb
@@ -1,12 +0,0 @@
-#!/usr/bin/env ruby
-
-require 'rubygems'
-require 'pp'
-
-if ARGV.length > 0 && ARGV[0] == 'gem'
- require 'preferences'
-else
- $:.push('../lib')
- require 'rubygems'
- require 'preferences.rb'
-end
View
15 examples/load_save.rb
@@ -1,15 +0,0 @@
-#!/usr/bin/env ruby
-
-require 'helper.rb'
-
-preferences = Preferences::Manager.new :preferences_test
-preferences[:foo] = 'bar'
-preferences[:fred] = ['barney', 'rubble']
-preferences[:alice] = { :owner => 'bob' }
-preferences.save
-pp preferences
-
-preferences_test = Preferences::Manager.new :preferences_test
-pp preferences_test
-
-puts (preferences_test == preferences) ? "OK" : "FAIL"

0 comments on commit 04b2113

Please sign in to comment.
Something went wrong with that request. Please try again.