vex 0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (114) hide show
  1. data/Manifest +112 -0
  2. data/Rakefile +53 -0
  3. data/VERSION +1 -0
  4. data/config/README +2 -0
  5. data/config/dependencies.rb +10 -0
  6. data/config/gem.yml +7 -0
  7. data/init.rb +36 -0
  8. data/lib/nokogiri/nokogiri_ext.rb +96 -0
  9. data/lib/vex.rb +5 -0
  10. data/lib/vex/action_controller.rb +4 -0
  11. data/lib/vex/action_controller/verify_action.rb +97 -0
  12. data/lib/vex/action_controller/whitelisted_actions.rb +45 -0
  13. data/lib/vex/active_record.rb +3 -0
  14. data/lib/vex/active_record/__init__.rb +0 -0
  15. data/lib/vex/active_record/advisory_lock.rb +11 -0
  16. data/lib/vex/active_record/advisory_lock/mysql_adapter.rb +16 -0
  17. data/lib/vex/active_record/advisory_lock/sqlite_adapter.rb +78 -0
  18. data/lib/vex/active_record/belongs_to_many.rb +143 -0
  19. data/lib/vex/active_record/find_by_extension.rb +70 -0
  20. data/lib/vex/active_record/gem.rb +8 -0
  21. data/lib/vex/active_record/lite_table.rb +139 -0
  22. data/lib/vex/active_record/lite_view.rb +140 -0
  23. data/lib/vex/active_record/mass_load.rb +65 -0
  24. data/lib/vex/active_record/mysql_backup.rb +21 -0
  25. data/lib/vex/active_record/plugins/default_value_for/LICENSE.TXT +19 -0
  26. data/lib/vex/active_record/plugins/default_value_for/README.rdoc +421 -0
  27. data/lib/vex/active_record/plugins/default_value_for/Rakefile +6 -0
  28. data/lib/vex/active_record/plugins/default_value_for/init.rb +91 -0
  29. data/lib/vex/active_record/plugins/default_value_for/test.rb +279 -0
  30. data/lib/vex/active_record/plugins/default_value_for/test.sqlite3 +0 -0
  31. data/lib/vex/active_record/random_id.rb +56 -0
  32. data/lib/vex/active_record/resolver.rb +49 -0
  33. data/lib/vex/active_record/serialize_hash.rb +125 -0
  34. data/lib/vex/active_record/to_html.rb +53 -0
  35. data/lib/vex/active_record/validate.rb +76 -0
  36. data/lib/vex/active_record/validation_error_ext.rb +68 -0
  37. data/lib/vex/base.rb +2 -0
  38. data/lib/vex/base/app.rb +75 -0
  39. data/lib/vex/base/array/at_random.rb +17 -0
  40. data/lib/vex/base/array/cross.rb +26 -0
  41. data/lib/vex/base/array/each_batch.rb +32 -0
  42. data/lib/vex/base/array/parallel_map.rb +98 -0
  43. data/lib/vex/base/deprecation.rb +41 -0
  44. data/lib/vex/base/enumerable/deep.rb +95 -0
  45. data/lib/vex/base/enumerable/enumerable_ext.rb +59 -0
  46. data/lib/vex/base/enumerable/progress.rb +71 -0
  47. data/lib/vex/base/filesystem/fast_copy.rb +61 -0
  48. data/lib/vex/base/filesystem/grep.rb +34 -0
  49. data/lib/vex/base/filesystem/lock.rb +43 -0
  50. data/lib/vex/base/filesystem/lock.rb.test.lck +0 -0
  51. data/lib/vex/base/filesystem/lock.rb.test.pid +1 -0
  52. data/lib/vex/base/filesystem/make_dirs.rb +94 -0
  53. data/lib/vex/base/filesystem/parse_filename.rb +36 -0
  54. data/lib/vex/base/filesystem/tmp_file.rb +87 -0
  55. data/lib/vex/base/filesystem/write.rb +43 -0
  56. data/lib/vex/base/hash/compact.rb +38 -0
  57. data/lib/vex/base/hash/cross.rb +117 -0
  58. data/lib/vex/base/hash/easy_access.rb +141 -0
  59. data/lib/vex/base/hash/ensure_keys.rb +18 -0
  60. data/lib/vex/base/hash/extract.rb +71 -0
  61. data/lib/vex/base/hash/extras.rb +62 -0
  62. data/lib/vex/base/hash/inspect.rb +17 -0
  63. data/lib/vex/base/hash/simple_access_methods.rb +74 -0
  64. data/lib/vex/base/invalid_argument/invalid_argument.rb +97 -0
  65. data/lib/vex/base/local_conf.rb +35 -0
  66. data/lib/vex/base/net/http_ext.rb +227 -0
  67. data/lib/vex/base/net/socket_ext.rb +43 -0
  68. data/lib/vex/base/object/insp.rb +123 -0
  69. data/lib/vex/base/object/multiple_attributes.rb +58 -0
  70. data/lib/vex/base/object/singleton_methods.rb +23 -0
  71. data/lib/vex/base/object/with_benchmark.rb +110 -0
  72. data/lib/vex/base/range_array.rb +40 -0
  73. data/lib/vex/base/range_ext.rb +28 -0
  74. data/lib/vex/base/safe_token.rb +156 -0
  75. data/lib/vex/base/string/string_ext.rb +136 -0
  76. data/lib/vex/base/thread/deferred.rb +52 -0
  77. data/lib/vex/base/thread/sleep.rb +11 -0
  78. data/lib/vex/base/time/date_ext.rb +12 -0
  79. data/lib/vex/boot.rb +40 -0
  80. data/lib/vex/boot/array.rb +22 -0
  81. data/lib/vex/boot/blank.rb +41 -0
  82. data/lib/vex/boot/string.rb +60 -0
  83. data/migration/create_request_log.rb +28 -0
  84. data/r.rb +35 -0
  85. data/script/console +19 -0
  86. data/script/rebuild +7 -0
  87. data/tasks/echoe.rake +52 -0
  88. data/tasks/validate_db.rake +14 -0
  89. data/test/ar.rb +30 -0
  90. data/test/auto.rb +31 -0
  91. data/test/base-tests/local_conf.rb +25 -0
  92. data/test/base.rb +2 -0
  93. data/test/boot.rb +3 -0
  94. data/test/config/local.defaults.yml +4 -0
  95. data/test/config/local.yml +8 -0
  96. data/test/test.sqlite3 +0 -0
  97. data/test/test.sqlite3.Class#create.lck +0 -0
  98. data/test/test.sqlite3.Class#create.lck.lck +0 -0
  99. data/test/test.sqlite3.Class#create.lck.pid +1 -0
  100. data/test/test.sqlite3.Class#create.pid +1 -0
  101. data/test/test.sqlite3.LiteView.make.holders__view_dummy.lck +0 -0
  102. data/test/test.sqlite3.LiteView.make.holders__view_dummy.lck.lck +0 -0
  103. data/test/test.sqlite3.LiteView.make.holders__view_dummy.lck.pid +1 -0
  104. data/test/test.sqlite3.LiteView.make.holders__view_dummy.pid +1 -0
  105. data/test/test.sqlite3.vex.lck +0 -0
  106. data/test/test_helper.rb +49 -0
  107. data/test/tmp/copy.dat +1 -0
  108. data/test/tmp/lock.sqlite3 +0 -0
  109. data/test/tmp/lock.sqlite3.etest.lck +0 -0
  110. data/test/tmp/lock.sqlite3.etest.pid +1 -0
  111. data/test/tmp/somedata.dat +61 -0
  112. data/vex.gemspec +49 -0
  113. data/vex.tmproj +186 -0
  114. metadata +305 -0
data/test/auto.rb ADDED
@@ -0,0 +1,31 @@
1
+ #
2
+ # set up AR
3
+
4
+ # require "rubygems"
5
+
6
+ require 'rubygems'
7
+ require 'sqlite3'
8
+ require 'active_record'
9
+
10
+ LOGFILE = "log/test.log"
11
+ SQLITE_FILE = ":memory:"
12
+
13
+ #
14
+ # -- set up active record for tests -----------------------------------
15
+ ACTIVE_RECORD = {
16
+ :adapter => "sqlite3",
17
+ :database => ":memory:"
18
+ }
19
+
20
+ ActiveRecord::Base.logger ||= Logger.new $STDERR
21
+
22
+ #
23
+ # setup connection
24
+ ActiveRecord::Base.establish_connection ACTIVE_RECORD
25
+
26
+
27
+ #
28
+ # start tests
29
+ VEX_TEST="active_record"
30
+ VEX_AUTO_TEST=true
31
+ load "#{File.dirname(__FILE__)}/test_helper.rb"
@@ -0,0 +1,25 @@
1
+ # compare config/local.yml and config/local.defaults.yml
2
+ #
3
+
4
+ module LocalConf::Etest
5
+ def test_local_conf
6
+ LocalConf.x = "xx"
7
+ assert_equal("xx", LocalConf.x)
8
+
9
+ LocalConf.x = "yy"
10
+ assert_equal("yy", LocalConf.x)
11
+
12
+ assert_equal("dont_overwrite_me", LocalConf.dont_overwrite_me)
13
+ assert_equal(true, LocalConf.dont_overwrite_me?)
14
+
15
+ assert_equal false, LocalConf.adverts?
16
+
17
+ assert_equal false, LocalConf.ads?
18
+ end
19
+
20
+ def test_w_missing_local_conf
21
+ assert_raise(Errno::ENOENT) {
22
+ LocalConf.new "missing"
23
+ }
24
+ end
25
+ end
data/test/base.rb ADDED
@@ -0,0 +1,2 @@
1
+ VEX_TEST="base"
2
+ load "#{File.dirname(__FILE__)}/test_helper.rb"
data/test/boot.rb ADDED
@@ -0,0 +1,3 @@
1
+ VEX_TEST="boot"
2
+
3
+ load "#{File.dirname(__FILE__)}/test_helper.rb"
@@ -0,0 +1,4 @@
1
+ ads: false
2
+ prototype_url: http://ajax.googleapis.com/ajax/libs/prototype/1.6.0.3
3
+ scriptaculous_url: http://ajax.googleapis.com/ajax/libs/scriptaculous/1.8.2
4
+ dont_overwrite_me: "dont_overwrite_me"
@@ -0,0 +1,8 @@
1
+ development:
2
+ fast_tests: true
3
+
4
+ test:
5
+ fast_tests: false
6
+
7
+ production:
8
+ fast_tests: true
data/test/test.sqlite3 ADDED
Binary file
File without changes
File without changes
@@ -0,0 +1 @@
1
+ 1929.106710
@@ -0,0 +1 @@
1
+ 51615.106710
@@ -0,0 +1 @@
1
+ 51615.106710
File without changes
@@ -0,0 +1,49 @@
1
+ if defined?(VEX_TEST)
2
+
3
+ DIRNAME = File.expand_path File.dirname(__FILE__)
4
+ Dir.chdir(DIRNAME)
5
+
6
+ require "rubygems"
7
+ require "etest"
8
+
9
+ APP_ROOT = DIRNAME
10
+ APP_ENV = "test"
11
+
12
+ # require "active_record"
13
+ #
14
+ # require "#{DIRNAME}/initializers/fake_rails.rb"
15
+
16
+ #
17
+ # initialize the gem and the test runner
18
+ $:.push "#{DIRNAME}/../lib"
19
+
20
+ if defined?(VEX_AUTO_TEST)
21
+ require "vex"
22
+ else
23
+ require "vex/#{VEX_TEST}"
24
+ end
25
+
26
+ Dir.glob("#{DIRNAME}/#{VEX_TEST}-tests/**/*.rb").each do |file|
27
+ load file
28
+ end
29
+
30
+ # ---------------------------------------------------------------------
31
+
32
+ require 'mocha'
33
+ require 'ruby-debug'
34
+
35
+ begin
36
+ require 'minitest-rg'
37
+ rescue MissingSourceFile
38
+ STDERR.puts "'gem install minitest-rg' gives you redgreen minitests"
39
+ require 'minitest/unit'
40
+ end
41
+
42
+ #
43
+ # run tests
44
+ dlog "etest #{::Etest::VERSION}"
45
+
46
+ Etest.autorun if defined?(::Etest)
47
+ # MiniTest::Unit.autorun
48
+
49
+ end
data/test/tmp/copy.dat ADDED
@@ -0,0 +1 @@
1
+ hey
Binary file
File without changes
@@ -0,0 +1 @@
1
+ 2784.20009720
@@ -0,0 +1,61 @@
1
+ module FileUtils::FastCopy
2
+ # fast_copy a file: This hardlinks the source file to the destfile,
3
+ # if possible. src must refer to a file; dest must refer to a file
4
+ # or not exist at all.
5
+ def fast_copy(src, dest)
6
+ src_stat = File.stat(src)
7
+ invalid_argument!(src) unless src_stat.file?
8
+
9
+ dest_stat = begin
10
+ File.stat(dest)
11
+ rescue Errno::ENOENT
12
+ end
13
+
14
+ invalid_argument!(dest) unless !dest_stat || dest_stat.file?
15
+
16
+ dest_dev = dest_stat ? dest_stat.dev : begin
17
+ dest_dir = File.dirname(File.expand_path(dest))
18
+ File.stat(dest_dir).dev
19
+ end
20
+
21
+ if src_stat.dev == dest_dev
22
+ File.unlink(dest) if File.exists?(dest)
23
+ File.link src, dest
24
+ else
25
+ FileUtils.copy src, dest
26
+ end
27
+ end
28
+ end
29
+
30
+ FileUtils.extend FileUtils::FastCopy
31
+
32
+ module FileUtils::FastCopy::Etest
33
+ def test_fast_copy
34
+ assert File.exist?(__FILE__)
35
+ File.unlink("tmp/somedata.dat") if File.exist?("tmp/somedata.dat")
36
+
37
+ assert !File.exist?("tmp/somedata.dat")
38
+ FileUtils.fast_copy __FILE__, "tmp/somedata.dat"
39
+ assert_equal File.read("tmp/somedata.dat"), File.read(__FILE__)
40
+
41
+ File.unlink("tmp/somedata.dat")
42
+ File.touch("tmp/somedata.dat")
43
+ assert_not_equal File.size("tmp/somedata.dat"), File.size(__FILE__)
44
+ FileUtils.fast_copy __FILE__, "tmp/somedata.dat"
45
+ assert_equal File.size("tmp/somedata.dat"), File.size(__FILE__)
46
+ end
47
+
48
+ def test_fast_copy_failures
49
+ assert_raise(Errno::ENOENT) {
50
+ FileUtils.fast_copy "fixtures/somedata.dat.nonexisting", "tmp/somedata.dat"
51
+ }
52
+
53
+ assert_raise(Errno::ENOENT) {
54
+ FileUtils.fast_copy "fixtures/somedata.dat.nonexisting", "tmp"
55
+ }
56
+
57
+ assert_raise(Errno::ENOENT) {
58
+ FileUtils.fast_copy __FILE__, "tmp/nonexisting/dir"
59
+ }
60
+ end
61
+ end if VEX_TEST == "base"
data/vex.gemspec ADDED
@@ -0,0 +1,49 @@
1
+ # -*- encoding: utf-8 -*-
2
+
3
+ Gem::Specification.new do |s|
4
+ s.name = %q{vex}
5
+ s.version = "0.2"
6
+
7
+ s.required_rubygems_version = Gem::Requirement.new(">= 1.2") if s.respond_to? :required_rubygems_version=
8
+ s.authors = ["pboy"]
9
+ s.date = %q{2010-03-05}
10
+ s.description = %q{Vex: some ruby extensions}
11
+ s.email = %q{eno-pboy@open-lab.org}
12
+ s.extra_rdoc_files = ["lib/nokogiri/nokogiri_ext.rb", "lib/vex.rb", "lib/vex/action_controller.rb", "lib/vex/action_controller/verify_action.rb", "lib/vex/action_controller/whitelisted_actions.rb", "lib/vex/active_record.rb", "lib/vex/active_record/__init__.rb", "lib/vex/active_record/advisory_lock.rb", "lib/vex/active_record/advisory_lock/mysql_adapter.rb", "lib/vex/active_record/advisory_lock/sqlite_adapter.rb", "lib/vex/active_record/belongs_to_many.rb", "lib/vex/active_record/find_by_extension.rb", "lib/vex/active_record/gem.rb", "lib/vex/active_record/lite_table.rb", "lib/vex/active_record/lite_view.rb", "lib/vex/active_record/mass_load.rb", "lib/vex/active_record/mysql_backup.rb", "lib/vex/active_record/plugins/default_value_for/LICENSE.TXT", "lib/vex/active_record/plugins/default_value_for/README.rdoc", "lib/vex/active_record/plugins/default_value_for/Rakefile", "lib/vex/active_record/plugins/default_value_for/init.rb", "lib/vex/active_record/plugins/default_value_for/test.rb", "lib/vex/active_record/plugins/default_value_for/test.sqlite3", "lib/vex/active_record/random_id.rb", "lib/vex/active_record/resolver.rb", "lib/vex/active_record/serialize_hash.rb", "lib/vex/active_record/to_html.rb", "lib/vex/active_record/validate.rb", "lib/vex/active_record/validation_error_ext.rb", "lib/vex/base.rb", "lib/vex/base/app.rb", "lib/vex/base/array/at_random.rb", "lib/vex/base/array/cross.rb", "lib/vex/base/array/each_batch.rb", "lib/vex/base/array/parallel_map.rb", "lib/vex/base/deprecation.rb", "lib/vex/base/enumerable/deep.rb", "lib/vex/base/enumerable/enumerable_ext.rb", "lib/vex/base/enumerable/progress.rb", "lib/vex/base/filesystem/fast_copy.rb", "lib/vex/base/filesystem/grep.rb", "lib/vex/base/filesystem/lock.rb", "lib/vex/base/filesystem/lock.rb.test.lck", "lib/vex/base/filesystem/lock.rb.test.pid", "lib/vex/base/filesystem/make_dirs.rb", "lib/vex/base/filesystem/parse_filename.rb", "lib/vex/base/filesystem/tmp_file.rb", "lib/vex/base/filesystem/write.rb", "lib/vex/base/hash/compact.rb", "lib/vex/base/hash/cross.rb", "lib/vex/base/hash/easy_access.rb", "lib/vex/base/hash/ensure_keys.rb", "lib/vex/base/hash/extract.rb", "lib/vex/base/hash/extras.rb", "lib/vex/base/hash/inspect.rb", "lib/vex/base/hash/simple_access_methods.rb", "lib/vex/base/invalid_argument/invalid_argument.rb", "lib/vex/base/local_conf.rb", "lib/vex/base/net/http_ext.rb", "lib/vex/base/net/socket_ext.rb", "lib/vex/base/object/insp.rb", "lib/vex/base/object/multiple_attributes.rb", "lib/vex/base/object/singleton_methods.rb", "lib/vex/base/object/with_benchmark.rb", "lib/vex/base/range_array.rb", "lib/vex/base/range_ext.rb", "lib/vex/base/safe_token.rb", "lib/vex/base/string/string_ext.rb", "lib/vex/base/thread/deferred.rb", "lib/vex/base/thread/sleep.rb", "lib/vex/base/time/date_ext.rb", "lib/vex/boot.rb", "lib/vex/boot/array.rb", "lib/vex/boot/blank.rb", "lib/vex/boot/string.rb", "tasks/echoe.rake", "tasks/validate_db.rake"]
13
+ s.files = ["Manifest", "Rakefile", "VERSION", "config/README", "config/dependencies.rb", "config/gem.yml", "init.rb", "lib/nokogiri/nokogiri_ext.rb", "lib/vex.rb", "lib/vex/action_controller.rb", "lib/vex/action_controller/verify_action.rb", "lib/vex/action_controller/whitelisted_actions.rb", "lib/vex/active_record.rb", "lib/vex/active_record/__init__.rb", "lib/vex/active_record/advisory_lock.rb", "lib/vex/active_record/advisory_lock/mysql_adapter.rb", "lib/vex/active_record/advisory_lock/sqlite_adapter.rb", "lib/vex/active_record/belongs_to_many.rb", "lib/vex/active_record/find_by_extension.rb", "lib/vex/active_record/gem.rb", "lib/vex/active_record/lite_table.rb", "lib/vex/active_record/lite_view.rb", "lib/vex/active_record/mass_load.rb", "lib/vex/active_record/mysql_backup.rb", "lib/vex/active_record/plugins/default_value_for/LICENSE.TXT", "lib/vex/active_record/plugins/default_value_for/README.rdoc", "lib/vex/active_record/plugins/default_value_for/Rakefile", "lib/vex/active_record/plugins/default_value_for/init.rb", "lib/vex/active_record/plugins/default_value_for/test.rb", "lib/vex/active_record/plugins/default_value_for/test.sqlite3", "lib/vex/active_record/random_id.rb", "lib/vex/active_record/resolver.rb", "lib/vex/active_record/serialize_hash.rb", "lib/vex/active_record/to_html.rb", "lib/vex/active_record/validate.rb", "lib/vex/active_record/validation_error_ext.rb", "lib/vex/base.rb", "lib/vex/base/app.rb", "lib/vex/base/array/at_random.rb", "lib/vex/base/array/cross.rb", "lib/vex/base/array/each_batch.rb", "lib/vex/base/array/parallel_map.rb", "lib/vex/base/deprecation.rb", "lib/vex/base/enumerable/deep.rb", "lib/vex/base/enumerable/enumerable_ext.rb", "lib/vex/base/enumerable/progress.rb", "lib/vex/base/filesystem/fast_copy.rb", "lib/vex/base/filesystem/grep.rb", "lib/vex/base/filesystem/lock.rb", "lib/vex/base/filesystem/lock.rb.test.lck", "lib/vex/base/filesystem/lock.rb.test.pid", "lib/vex/base/filesystem/make_dirs.rb", "lib/vex/base/filesystem/parse_filename.rb", "lib/vex/base/filesystem/tmp_file.rb", "lib/vex/base/filesystem/write.rb", "lib/vex/base/hash/compact.rb", "lib/vex/base/hash/cross.rb", "lib/vex/base/hash/easy_access.rb", "lib/vex/base/hash/ensure_keys.rb", "lib/vex/base/hash/extract.rb", "lib/vex/base/hash/extras.rb", "lib/vex/base/hash/inspect.rb", "lib/vex/base/hash/simple_access_methods.rb", "lib/vex/base/invalid_argument/invalid_argument.rb", "lib/vex/base/local_conf.rb", "lib/vex/base/net/http_ext.rb", "lib/vex/base/net/socket_ext.rb", "lib/vex/base/object/insp.rb", "lib/vex/base/object/multiple_attributes.rb", "lib/vex/base/object/singleton_methods.rb", "lib/vex/base/object/with_benchmark.rb", "lib/vex/base/range_array.rb", "lib/vex/base/range_ext.rb", "lib/vex/base/safe_token.rb", "lib/vex/base/string/string_ext.rb", "lib/vex/base/thread/deferred.rb", "lib/vex/base/thread/sleep.rb", "lib/vex/base/time/date_ext.rb", "lib/vex/boot.rb", "lib/vex/boot/array.rb", "lib/vex/boot/blank.rb", "lib/vex/boot/string.rb", "migration/create_request_log.rb", "r.rb", "script/console", "script/rebuild", "tasks/echoe.rake", "tasks/validate_db.rake", "test/ar.rb", "test/auto.rb", "test/base-tests/local_conf.rb", "test/base.rb", "test/boot.rb", "test/config/local.defaults.yml", "test/config/local.yml", "test/test.sqlite3", "test/test.sqlite3.Class#create.lck", "test/test.sqlite3.Class#create.lck.lck", "test/test.sqlite3.Class#create.lck.pid", "test/test.sqlite3.Class#create.pid", "test/test.sqlite3.LiteView.make.holders__view_dummy.lck", "test/test.sqlite3.LiteView.make.holders__view_dummy.lck.lck", "test/test.sqlite3.LiteView.make.holders__view_dummy.lck.pid", "test/test.sqlite3.LiteView.make.holders__view_dummy.pid", "test/test.sqlite3.vex.lck", "test/test_helper.rb", "test/tmp/copy.dat", "test/tmp/lock.sqlite3", "test/tmp/lock.sqlite3.etest.lck", "test/tmp/lock.sqlite3.etest.pid", "test/tmp/somedata.dat", "vex.tmproj", "vex.gemspec"]
14
+ s.homepage = %q{http://github.com/pboy/vex}
15
+ s.rdoc_options = ["--line-numbers", "--inline-source", "--title", "Vex"]
16
+ s.require_paths = ["lib"]
17
+ s.rubyforge_project = %q{vex}
18
+ s.rubygems_version = %q{1.3.5}
19
+ s.summary = %q{Vex: some ruby extensions}
20
+ s.test_files = ["test/test_helper.rb"]
21
+
22
+ if s.respond_to? :specification_version then
23
+ current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
24
+ s.specification_version = 3
25
+
26
+ if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
27
+ s.add_runtime_dependency(%q<nokogiri>, [">= 0"])
28
+ s.add_runtime_dependency(%q<openssl>, [">= 0"])
29
+ s.add_runtime_dependency(%q<etest>, [">= 0"])
30
+ s.add_runtime_dependency(%q<sanitize>, [">= 0"])
31
+ s.add_runtime_dependency(%q<htmlentities>, [">= 0"])
32
+ s.add_runtime_dependency(%q<json>, [">= 0"])
33
+ else
34
+ s.add_dependency(%q<nokogiri>, [">= 0"])
35
+ s.add_dependency(%q<openssl>, [">= 0"])
36
+ s.add_dependency(%q<etest>, [">= 0"])
37
+ s.add_dependency(%q<sanitize>, [">= 0"])
38
+ s.add_dependency(%q<htmlentities>, [">= 0"])
39
+ s.add_dependency(%q<json>, [">= 0"])
40
+ end
41
+ else
42
+ s.add_dependency(%q<nokogiri>, [">= 0"])
43
+ s.add_dependency(%q<openssl>, [">= 0"])
44
+ s.add_dependency(%q<etest>, [">= 0"])
45
+ s.add_dependency(%q<sanitize>, [">= 0"])
46
+ s.add_dependency(%q<htmlentities>, [">= 0"])
47
+ s.add_dependency(%q<json>, [">= 0"])
48
+ end
49
+ end
data/vex.tmproj ADDED
@@ -0,0 +1,186 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3
+ <plist version="1.0">
4
+ <dict>
5
+ <key>currentDocument</key>
6
+ <string>test/test_helper.rb</string>
7
+ <key>documents</key>
8
+ <array>
9
+ <dict>
10
+ <key>expanded</key>
11
+ <true/>
12
+ <key>name</key>
13
+ <string>vex</string>
14
+ <key>regexFolderFilter</key>
15
+ <string>!.*/(\.[^/]*|CVS|coverage|pkg|_darcs|_MTN|\{arch\}|blib|.*~\.nib|.*\.(framework|app|pbproj|pbxproj|xcode(proj)?|bundle))$</string>
16
+ <key>sourceDirectory</key>
17
+ <string></string>
18
+ </dict>
19
+ </array>
20
+ <key>fileHierarchyDrawerWidth</key>
21
+ <integer>339</integer>
22
+ <key>metaData</key>
23
+ <dict>
24
+ <key>lib/vex.rb</key>
25
+ <dict>
26
+ <key>caret</key>
27
+ <dict>
28
+ <key>column</key>
29
+ <integer>0</integer>
30
+ <key>line</key>
31
+ <integer>5</integer>
32
+ </dict>
33
+ <key>firstVisibleColumn</key>
34
+ <integer>0</integer>
35
+ <key>firstVisibleLine</key>
36
+ <integer>0</integer>
37
+ </dict>
38
+ <key>lib/vex/action_controller.rb</key>
39
+ <dict>
40
+ <key>caret</key>
41
+ <dict>
42
+ <key>column</key>
43
+ <integer>0</integer>
44
+ <key>line</key>
45
+ <integer>3</integer>
46
+ </dict>
47
+ <key>firstVisibleColumn</key>
48
+ <integer>0</integer>
49
+ <key>firstVisibleLine</key>
50
+ <integer>0</integer>
51
+ </dict>
52
+ <key>lib/vex/action_controller/verify_action.rb</key>
53
+ <dict>
54
+ <key>caret</key>
55
+ <dict>
56
+ <key>column</key>
57
+ <integer>0</integer>
58
+ <key>line</key>
59
+ <integer>96</integer>
60
+ </dict>
61
+ <key>firstVisibleColumn</key>
62
+ <integer>0</integer>
63
+ <key>firstVisibleLine</key>
64
+ <integer>50</integer>
65
+ </dict>
66
+ <key>lib/vex/action_controller/whitelisted_actions.rb</key>
67
+ <dict>
68
+ <key>caret</key>
69
+ <dict>
70
+ <key>column</key>
71
+ <integer>0</integer>
72
+ <key>line</key>
73
+ <integer>9</integer>
74
+ </dict>
75
+ <key>firstVisibleColumn</key>
76
+ <integer>0</integer>
77
+ <key>firstVisibleLine</key>
78
+ <integer>0</integer>
79
+ </dict>
80
+ <key>lib/vex/active_record.rb</key>
81
+ <dict>
82
+ <key>caret</key>
83
+ <dict>
84
+ <key>column</key>
85
+ <integer>0</integer>
86
+ <key>line</key>
87
+ <integer>3</integer>
88
+ </dict>
89
+ <key>columnSelection</key>
90
+ <false/>
91
+ <key>firstVisibleColumn</key>
92
+ <integer>0</integer>
93
+ <key>firstVisibleLine</key>
94
+ <integer>0</integer>
95
+ <key>selectFrom</key>
96
+ <dict>
97
+ <key>column</key>
98
+ <integer>0</integer>
99
+ <key>line</key>
100
+ <integer>0</integer>
101
+ </dict>
102
+ <key>selectTo</key>
103
+ <dict>
104
+ <key>column</key>
105
+ <integer>0</integer>
106
+ <key>line</key>
107
+ <integer>3</integer>
108
+ </dict>
109
+ </dict>
110
+ <key>lib/vex/active_record/lite_table.rb</key>
111
+ <dict>
112
+ <key>caret</key>
113
+ <dict>
114
+ <key>column</key>
115
+ <integer>19</integer>
116
+ <key>line</key>
117
+ <integer>77</integer>
118
+ </dict>
119
+ <key>columnSelection</key>
120
+ <false/>
121
+ <key>firstVisibleColumn</key>
122
+ <integer>0</integer>
123
+ <key>firstVisibleLine</key>
124
+ <integer>53</integer>
125
+ <key>selectFrom</key>
126
+ <dict>
127
+ <key>column</key>
128
+ <integer>10</integer>
129
+ <key>line</key>
130
+ <integer>77</integer>
131
+ </dict>
132
+ <key>selectTo</key>
133
+ <dict>
134
+ <key>column</key>
135
+ <integer>19</integer>
136
+ <key>line</key>
137
+ <integer>77</integer>
138
+ </dict>
139
+ </dict>
140
+ <key>test/test_helper.rb</key>
141
+ <dict>
142
+ <key>caret</key>
143
+ <dict>
144
+ <key>column</key>
145
+ <integer>25</integer>
146
+ <key>line</key>
147
+ <integer>17</integer>
148
+ </dict>
149
+ <key>columnSelection</key>
150
+ <false/>
151
+ <key>firstVisibleColumn</key>
152
+ <integer>0</integer>
153
+ <key>firstVisibleLine</key>
154
+ <integer>0</integer>
155
+ <key>selectFrom</key>
156
+ <dict>
157
+ <key>column</key>
158
+ <integer>12</integer>
159
+ <key>line</key>
160
+ <integer>17</integer>
161
+ </dict>
162
+ <key>selectTo</key>
163
+ <dict>
164
+ <key>column</key>
165
+ <integer>25</integer>
166
+ <key>line</key>
167
+ <integer>17</integer>
168
+ </dict>
169
+ </dict>
170
+ </dict>
171
+ <key>openDocuments</key>
172
+ <array>
173
+ <string>lib/vex/active_record/lite_table.rb</string>
174
+ <string>lib/vex.rb</string>
175
+ <string>lib/vex/active_record.rb</string>
176
+ <string>lib/vex/action_controller.rb</string>
177
+ <string>lib/vex/action_controller/whitelisted_actions.rb</string>
178
+ <string>lib/vex/action_controller/verify_action.rb</string>
179
+ <string>test/test_helper.rb</string>
180
+ </array>
181
+ <key>showFileHierarchyDrawer</key>
182
+ <true/>
183
+ <key>windowFrame</key>
184
+ <string>{{10, 0}, {927, 1002}}</string>
185
+ </dict>
186
+ </plist>