vex 0.4.2 → 0.4.4

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/Manifest CHANGED
@@ -1,105 +0,0 @@
1
- CHANGELOG
2
- Manifest
3
- NOTICE.txt
4
- Rakefile
5
- VERSION
6
- config/README
7
- config/dependencies.rb
8
- config/gem.yml
9
- init.rb
10
- lib/nokogiri/nokogiri_ext.rb
11
- lib/vex.rb
12
- lib/vex/action_controller.rb
13
- lib/vex/action_controller/error.rb
14
- lib/vex/action_controller/output_logging.rb
15
- lib/vex/action_controller/partial_helper.rb
16
- lib/vex/action_controller/verify_action.rb
17
- lib/vex/action_controller/verify_hostname.rb
18
- lib/vex/action_controller/whitelisted_actions.rb
19
- lib/vex/active_record.rb
20
- lib/vex/active_record/__init__.rb
21
- lib/vex/active_record/advisory_lock.rb
22
- lib/vex/active_record/advisory_lock/mysql_adapter.rb
23
- lib/vex/active_record/advisory_lock/sqlite_adapter.rb
24
- lib/vex/active_record/belongs_to_many.rb
25
- lib/vex/active_record/custom_validations.rb
26
- lib/vex/active_record/find_by_extension.rb
27
- lib/vex/active_record/gem.rb
28
- lib/vex/active_record/lite_table.rb
29
- lib/vex/active_record/lite_view.rb
30
- lib/vex/active_record/mass_load.rb
31
- lib/vex/active_record/mysql_backup.rb
32
- lib/vex/active_record/plugins/default_value_for/LICENSE.TXT
33
- lib/vex/active_record/plugins/default_value_for/README.rdoc
34
- lib/vex/active_record/plugins/default_value_for/Rakefile
35
- lib/vex/active_record/plugins/default_value_for/init.rb
36
- lib/vex/active_record/plugins/default_value_for/test.rb
37
- lib/vex/active_record/random_id.rb
38
- lib/vex/active_record/resolver.rb
39
- lib/vex/active_record/serialize_hash.rb
40
- lib/vex/active_record/to_html.rb
41
- lib/vex/active_record/validate.rb
42
- lib/vex/active_record/validation_error_ext.rb
43
- lib/vex/base.rb
44
- lib/vex/base/app.rb
45
- lib/vex/base/argv.rb
46
- lib/vex/base/array/at_random.rb
47
- lib/vex/base/array/avg.rb
48
- lib/vex/base/array/cross.rb
49
- lib/vex/base/array/each_batch.rb
50
- lib/vex/base/array/parallel_map.rb
51
- lib/vex/base/deprecation.rb
52
- lib/vex/base/enumerable/deep.rb
53
- lib/vex/base/enumerable/enumerable_ext.rb
54
- lib/vex/base/enumerable/progress.rb
55
- lib/vex/base/filesystem/fast_copy.rb
56
- lib/vex/base/filesystem/grep.rb
57
- lib/vex/base/filesystem/lock.rb
58
- lib/vex/base/filesystem/lock.rb.test.lck
59
- lib/vex/base/filesystem/lock.rb.test.pid
60
- lib/vex/base/filesystem/make_dirs.rb
61
- lib/vex/base/filesystem/parse_filename.rb
62
- lib/vex/base/filesystem/tmp_file.rb
63
- lib/vex/base/filesystem/write.rb
64
- lib/vex/base/hash/compact.rb
65
- lib/vex/base/hash/cross.rb
66
- lib/vex/base/hash/ensure_keys.rb
67
- lib/vex/base/hash/extract.rb
68
- lib/vex/base/hash/extras.rb
69
- lib/vex/base/hash/inspect.rb
70
- lib/vex/base/hash/slop.rb
71
- lib/vex/base/invalid_argument/invalid_argument.rb
72
- lib/vex/base/local_conf.rb
73
- lib/vex/base/net/http_ext.rb
74
- lib/vex/base/net/socket_ext.rb
75
- lib/vex/base/object/in.rb
76
- lib/vex/base/object/insp.rb
77
- lib/vex/base/object/multiple_attributes.rb
78
- lib/vex/base/object/singleton_methods.rb
79
- lib/vex/base/object/with_benchmark.rb
80
- lib/vex/base/range_array.rb
81
- lib/vex/base/range_ext.rb
82
- lib/vex/base/safe_token.rb
83
- lib/vex/base/string/iconvert.rb
84
- lib/vex/base/string/string_ext.rb
85
- lib/vex/base/system.rb
86
- lib/vex/base/thread/deferred.rb
87
- lib/vex/base/thread/sleep.rb
88
- lib/vex/base/time/date_ext.rb
89
- lib/vex/boot.rb
90
- lib/vex/boot/array.rb
91
- lib/vex/boot/blank.rb
92
- lib/vex/boot/string.rb
93
- migration/create_request_log.rb
94
- script/console
95
- script/rebuild
96
- tasks/echoe.rake
97
- tasks/validate_db.rake
98
- test/ar.rb
99
- test/auto.rb
100
- test/base-tests/local_conf.rb
101
- test/base.rb
102
- test/boot.rb
103
- test/config/local.defaults.yml
104
- test/config/local.yml
105
- test/test_helper.rb
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.4.2
1
+ 0.4.4
@@ -1,8 +1,10 @@
1
1
  #
2
2
  # require all dependent gems
3
- require 'nokogiri'
3
+ require 'nokogiri' unless defined?(Nokogiri)
4
4
 
5
- require 'sanitize'
6
- require 'htmlentities'
7
- require 'json'
5
+ require 'sanitize' unless defined?(Sanitize)
6
+ require 'htmlentities' unless defined?(HtmlEntities)
7
+ require 'json' unless defined?(Json)
8
+
9
+ require 'etest' unless defined?(Etest)
8
10
 
@@ -32,6 +32,18 @@ module ActionController::PartialHelper
32
32
  opts[:collection] = locals[:collection]
33
33
  end
34
34
 
35
+ #
36
+ # set up localite??
37
+ if defined?(Localite) && !(scope = File.basename(partial).gsub(/\..*/, "")).blank?
38
+ Localite.scope(scope) do
39
+ render_vex_partial(opts)
40
+ end
41
+ else
42
+ render_vex_partial(opts)
43
+ end
44
+ end
45
+
46
+ def render_vex_partial(opts)
35
47
  if self.is_a?(ActionController::Base)
36
48
  render_to_string(opts)
37
49
  else
@@ -48,3 +60,15 @@ module ActionController::PartialHelper
48
60
  end
49
61
 
50
62
  ActionController::Base.helper ActionController::PartialHelper
63
+
64
+ class ActionController::Base
65
+ def render_vex_partial(opts)
66
+ render_to_string(opts)
67
+ end
68
+ end
69
+
70
+ class ActionView::Base
71
+ def render_vex_partial(opts)
72
+ render(opts)
73
+ end
74
+ end
@@ -4,8 +4,12 @@ module ActiveRecord::AdvisoryLock
4
4
  TIMEOUT=10
5
5
  end
6
6
 
7
+ #
8
+ # The concrete implementations are in the advisory_lock directory.
9
+ # They will be loaded by the init script, so we don't load them
10
+ # here again.
7
11
  # --- load advisory lock extensions -----------------------------------
8
12
 
9
- load "#{File.dirname(__FILE__)}/advisory_lock/mysql_adapter.rb"
13
+ # load "#{File.dirname(__FILE__)}/advisory_lock/mysql_adapter.rb"
10
14
  # load "#{File.dirname(__FILE__)}/advisory_lock/postgresql_adapter.rb"
11
- load "#{File.dirname(__FILE__)}/advisory_lock/sqlite_adapter.rb"
15
+ # load "#{File.dirname(__FILE__)}/advisory_lock/sqlite_adapter.rb"
@@ -38,7 +38,7 @@ module ActiveRecord::FindByExtension
38
38
  return models if requested.length == models.length
39
39
 
40
40
  # TODO: Check locking
41
- connection.locked("#{self.class.name}#create") do
41
+ connection.locked("#{self.name}#create") do
42
42
  models = find_all_by(args)
43
43
  return models if requested.length == models.length
44
44
 
@@ -77,14 +77,25 @@ module App
77
77
 
78
78
  #
79
79
  # make a sub dir
80
- def subdir(path, *parts)
81
- parts.unshift path
82
- path = "#{root}/#{parts.join("/")}"
83
- return path if File.exists?(path)
84
- dlog "Creating dir #{path}"
85
- FileUtils.mkdir_p(path)
80
+ def self.subdir(path, *parts)
81
+ path = "#{root}/#{path}/#{parts.join("/")}"
82
+ mkdir_and_verify path
83
+ path
86
84
  end
87
85
 
86
+ private
87
+
88
+ def self.mkdir_and_verify(path)
89
+ unless File.exists?(path)
90
+ dlog "Creating dir #{path}"
91
+ FileUtils.mkdir_p(path)
92
+ end
93
+ return if File.directory?(path)
94
+ raise RuntimeError, "#{path} is not a dir"
95
+ end
96
+
97
+ public
98
+
88
99
  def self.local_conf
89
100
  @local_conf = nil if App.env == "development"
90
101
  @local_conf ||= LocalConf.new("local.yml")
@@ -96,7 +107,28 @@ module App::Etest
96
107
  assert_not_nil(App.root)
97
108
  end
98
109
 
99
- def test_app
110
+ def test_revision
100
111
  assert_equal("", App.revision)
101
112
  end
113
+
114
+ def test_subdir
115
+ x = "#{App.root}/test-x"
116
+ FileUtils.rm_rf x
117
+
118
+ path = "#{x}/y"
119
+ path2 = "#{x}/z"
120
+
121
+ assert_equal(path, App.subdir("test-x", :y))
122
+ assert File.directory?(path)
123
+
124
+ #
125
+ # now try the same with an existing link
126
+ FileUtils.symlink path, path2
127
+
128
+ assert_equal(path2, App.subdir("test-x", :z))
129
+ assert File.symlink?(path2)
130
+ assert File.directory?(path2)
131
+
132
+ FileUtils.rm_rf x
133
+ end
102
134
  end if VEX_TEST == "base"
@@ -38,4 +38,11 @@ module Deprecation::Etest
38
38
  Deprecation.report "Hey"
39
39
  Deprecation.report "Hey"
40
40
  end
41
+
42
+ def test_quiet
43
+ STDERR.stubs(:puts) { raise "KJH" }
44
+ Deprecation.quiet do
45
+ Deprecation.report "Hey"
46
+ end
47
+ end
41
48
  end if VEX_TEST == "base"
@@ -47,6 +47,7 @@ module Deep
47
47
  o.inject([]) do |r, v|
48
48
  v = reject(v, mode, &block)
49
49
  r << v unless yield(v)
50
+ r
50
51
  end
51
52
  else
52
53
  o.dup
@@ -81,12 +82,24 @@ module Deep::Etest
81
82
  assert_equal(expected, h.reject_blanks)
82
83
  end
83
84
 
85
+ def test_reject_blanks_w_array
86
+ h = { :a => "a", :b_c => [{ :d => nil}, {:video_test => "video_test "}], "x" => nil, "y" => [] }
87
+ expected = { :a=>"a", :b_c => [{ :video_test => "video_test " }]}
88
+ assert_equal(expected, h.reject_blanks)
89
+ end
90
+
84
91
  def test_camelized_keys
85
92
  h = { :a => "a", :b_c => { :d => "dd", :video_test => "video_test "}}
86
93
  expected = { "A"=>"a", "BC" => { "VideoTest" => "video_test ", "D" => "dd" }}
87
94
  assert_equal(expected, h.camelize)
88
95
  end
89
96
 
97
+ def test_camelized_keys_w_array
98
+ h = { :a => "a", :b_c => [{ :d => "dd"}, {:video_test => "video_test "}]}
99
+ expected = { "A"=>"a", "BC" => [{"D" => "dd" }, { "VideoTest" => "video_test "}]}
100
+ assert_equal(expected, h.camelize)
101
+ end
102
+
90
103
  def test_missin_block
91
104
  assert_raise(LocalJumpError) {
92
105
  Deep.reject(%w(1 2), 3)
@@ -4,7 +4,7 @@ module FileUtils::FastCopy
4
4
  # or not exist at all.
5
5
  def fast_copy(src, dest)
6
6
  src_stat = File.stat(src)
7
- invalid_argument!(src) unless src_stat.file?
7
+ invalid_argument!(src, "This is not a file") unless src_stat.file?
8
8
 
9
9
  dest_stat = begin
10
10
  File.stat(dest)
@@ -31,7 +31,6 @@ FileUtils.extend FileUtils::FastCopy
31
31
 
32
32
  module FileUtils::FastCopy::Etest
33
33
  def test_fast_copy
34
- assert File.exist?(__FILE__)
35
34
  File.unlink("tmp/somedata.dat") if File.exist?("tmp/somedata.dat")
36
35
 
37
36
  assert !File.exist?("tmp/somedata.dat")
@@ -58,4 +57,18 @@ module FileUtils::FastCopy::Etest
58
57
  FileUtils.fast_copy __FILE__, "tmp/nonexisting/dir"
59
58
  }
60
59
  end
60
+
61
+ def test_fast_copy_slow
62
+ File.touch("tmp/somedata.dat")
63
+ assert File.exist?("tmp/somedata.dat")
64
+
65
+ File.stubs(:stat).with(__FILE__).returns({ :file => true, :dev => 1 }.slop)
66
+ File.stubs(:stat).with("tmp/somedata.dat").returns({ :file => true, :dev => 2 }.slop)
67
+
68
+ FileUtils.expects(:copy).with(__FILE__, "tmp/somedata.dat")
69
+ FileUtils.fast_copy __FILE__, "tmp/somedata.dat"
70
+
71
+ File.unlink("tmp/somedata.dat")
72
+ end
73
+
61
74
  end if VEX_TEST == "base"
@@ -1 +1 @@
1
- 41245.106710
1
+ 25983.106710
@@ -1,14 +1,23 @@
1
1
  module File::Write
2
2
  def touch(*files)
3
+ opts = if files.last.is_a?(Hash)
4
+ files.pop
5
+ else
6
+ {}
7
+ end
8
+
3
9
  files.each do |file|
4
- File.open(file, "w") do |f|
10
+ if File.exists?(file)
11
+ File.open(file, "a") {}
12
+ else
13
+ File.write(file, opts[:content])
5
14
  end
6
15
  end
7
16
  end
8
17
 
9
18
  def write(path, data)
10
19
  File.open(path, "w+") do |file|
11
- file.write(data)
20
+ file.write(data) if data
12
21
  end
13
22
  path
14
23
  end
@@ -19,6 +28,14 @@ File.extend File::Write
19
28
  module File::Write::Etest
20
29
  TESTFILE = "#{__FILE__}.test"
21
30
 
31
+ def setup
32
+ File.unlink TESTFILE if File.exist?(TESTFILE)
33
+ end
34
+
35
+ def teardown
36
+ File.unlink TESTFILE if File.exist?(TESTFILE)
37
+ end
38
+
22
39
  def test_touches
23
40
  assert !File.exist?(TESTFILE)
24
41
  File.touch TESTFILE
@@ -28,6 +45,19 @@ module File::Write::Etest
28
45
  File.unlink TESTFILE
29
46
  assert !File.exist?(TESTFILE)
30
47
  end
48
+
49
+ def test_touch_w_content
50
+ assert !File.exist?(TESTFILE)
51
+
52
+ File.touch TESTFILE, :content => "TEST CONTENT"
53
+ assert_equal "TEST CONTENT", File.read(TESTFILE)
54
+
55
+ File.touch TESTFILE, :content => "TEST CONTENT2"
56
+ assert_equal "TEST CONTENT", File.read(TESTFILE)
57
+
58
+ File.unlink TESTFILE
59
+ assert !File.exist?(TESTFILE)
60
+ end
31
61
 
32
62
  def test_writes
33
63
  assert !File.exist?(TESTFILE)
@@ -8,13 +8,18 @@ class LocalConf < Hash
8
8
  return if r1 || r2
9
9
 
10
10
  raise Errno::ENOENT,
11
- "Missing configuration file #{App.root}/config/#{file.sub(/\.yml$/, "")}{.defaults}.yml}"
11
+ "Missing configuration file #{fullpath file.sub(/\.yml$/, "")}{.defaults}.yml}"
12
12
  end
13
13
 
14
14
  private
15
15
 
16
+ def fullpath(file)
17
+ return file if file.starts_with?("/")
18
+ "#{App.root}/config/#{file}"
19
+ end
20
+
16
21
  def load(file)
17
- data = YAML::load_file("#{App.root}/config/#{file}")
22
+ data = YAML::load_file(fullpath(file))
18
23
 
19
24
  data.each { |k,v| update k.to_sym => v }
20
25
 
@@ -22,4 +22,4 @@ module Object::InMethod::Etest
22
22
  assert_equal false, 1.in?(%w(1 2 3))
23
23
  assert_equal false, 1.in?([])
24
24
  end
25
- end
25
+ end if VEX_TEST == "base"
@@ -0,0 +1,28 @@
1
+ class CreateRequestLog < ActiveRecord::Migration
2
+ TABLE_NAME = ImprovedLogging::TABLE_NAME
3
+
4
+ def self.up
5
+ create_table TABLE_NAME, :force => true do |t|
6
+ t.integer :user_id # account ID
7
+ t.string :ip # remote IP
8
+ t.integer :xhr # yes/no
9
+ t.string :method # get/post etc.
10
+ t.string :protocol # http:/https:
11
+ t.string :host # host
12
+ t.string :path # path
13
+ t.string :query # query param
14
+ t.string :action # controller + action
15
+ t.string :status # result status
16
+ t.integer :msecs # time needed
17
+ t.integer :queries # of SQL queries needed
18
+ t.integer :sql_select # of SQL queries needed
19
+ t.integer :sql_update # of SQL queries needed
20
+ t.integer :sql_insert # of SQL queries needed
21
+ t.integer :sql_delete # of SQL queries needed
22
+ end
23
+ end
24
+
25
+ def self.down
26
+ drop_table(TABLE_NAME) rescue nil
27
+ end
28
+ end
@@ -40,7 +40,7 @@ if gem_config = YAML.load(File.read("#{GEM_ROOT}/config/gem.yml"))
40
40
  puts "============================================="
41
41
  puts "Installing gem..."
42
42
 
43
- system "gem install #{gem} --no-test --no-ri --no-rdoc > /dev/null 2>&1"
43
+ system "sudo gem install #{gem} --no-test --no-ri --no-rdoc > /dev/null 2>&1"
44
44
 
45
45
  puts ""
46
46
  puts "I built and installed the gem for you. To upload, run "
@@ -2,15 +2,15 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{vex}
5
- s.version = "0.4.2"
5
+ s.version = "0.4.4"
6
6
 
7
7
  s.required_rubygems_version = Gem::Requirement.new(">= 1.2") if s.respond_to? :required_rubygems_version=
8
8
  s.authors = ["pboy"]
9
- s.date = %q{2010-05-23}
9
+ s.date = %q{2010-06-13}
10
10
  s.description = %q{Vex: some ruby extensions}
11
11
  s.email = %q{eno-pboy@open-lab.org}
12
12
  s.extra_rdoc_files = ["CHANGELOG", "lib/nokogiri/nokogiri_ext.rb", "lib/vex.rb", "lib/vex/action_controller.rb", "lib/vex/action_controller/error.rb", "lib/vex/action_controller/output_logging.rb", "lib/vex/action_controller/partial_helper.rb", "lib/vex/action_controller/verify_action.rb", "lib/vex/action_controller/verify_hostname.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/custom_validations.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/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/argv.rb", "lib/vex/base/array/at_random.rb", "lib/vex/base/array/avg.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/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/slop.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/in.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/iconvert.rb", "lib/vex/base/string/string_ext.rb", "lib/vex/base/system.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 = ["CHANGELOG", "Manifest", "NOTICE.txt", "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/error.rb", "lib/vex/action_controller/output_logging.rb", "lib/vex/action_controller/partial_helper.rb", "lib/vex/action_controller/verify_action.rb", "lib/vex/action_controller/verify_hostname.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/custom_validations.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/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/argv.rb", "lib/vex/base/array/at_random.rb", "lib/vex/base/array/avg.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/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/slop.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/in.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/iconvert.rb", "lib/vex/base/string/string_ext.rb", "lib/vex/base/system.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", "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_helper.rb", "vex.gemspec"]
13
+ s.files = ["CHANGELOG", "Manifest", "NOTICE.txt", "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/error.rb", "lib/vex/action_controller/output_logging.rb", "lib/vex/action_controller/partial_helper.rb", "lib/vex/action_controller/verify_action.rb", "lib/vex/action_controller/verify_hostname.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/custom_validations.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/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/argv.rb", "lib/vex/base/array/at_random.rb", "lib/vex/base/array/avg.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/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/slop.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/in.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/iconvert.rb", "lib/vex/base/string/string_ext.rb", "lib/vex/base/system.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", "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_helper.rb", "vex.gemspec"]
14
14
  s.homepage = %q{http://github.com/pboy/vex}
15
15
  s.rdoc_options = ["--line-numbers", "--inline-source", "--title", "Vex"]
16
16
  s.require_paths = ["lib"]
@@ -28,16 +28,19 @@ Gem::Specification.new do |s|
28
28
  s.add_runtime_dependency(%q<sanitize>, [">= 0"])
29
29
  s.add_runtime_dependency(%q<htmlentities>, [">= 0"])
30
30
  s.add_runtime_dependency(%q<json>, [">= 0"])
31
+ s.add_runtime_dependency(%q<etest>, [">= 0"])
31
32
  else
32
33
  s.add_dependency(%q<nokogiri>, [">= 0"])
33
34
  s.add_dependency(%q<sanitize>, [">= 0"])
34
35
  s.add_dependency(%q<htmlentities>, [">= 0"])
35
36
  s.add_dependency(%q<json>, [">= 0"])
37
+ s.add_dependency(%q<etest>, [">= 0"])
36
38
  end
37
39
  else
38
40
  s.add_dependency(%q<nokogiri>, [">= 0"])
39
41
  s.add_dependency(%q<sanitize>, [">= 0"])
40
42
  s.add_dependency(%q<htmlentities>, [">= 0"])
41
43
  s.add_dependency(%q<json>, [">= 0"])
44
+ s.add_dependency(%q<etest>, [">= 0"])
42
45
  end
43
46
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vex
3
3
  version: !ruby/object:Gem::Version
4
- hash: 11
4
+ hash: 7
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 4
9
- - 2
10
- version: 0.4.2
9
+ - 4
10
+ version: 0.4.4
11
11
  platform: ruby
12
12
  authors:
13
13
  - pboy
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2010-05-23 00:00:00 +02:00
18
+ date: 2010-06-13 00:00:00 +02:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency
@@ -74,6 +74,20 @@ dependencies:
74
74
  version: "0"
75
75
  type: :runtime
76
76
  version_requirements: *id004
77
+ - !ruby/object:Gem::Dependency
78
+ name: etest
79
+ prerelease: false
80
+ requirement: &id005 !ruby/object:Gem::Requirement
81
+ none: false
82
+ requirements:
83
+ - - ">="
84
+ - !ruby/object:Gem::Version
85
+ hash: 3
86
+ segments:
87
+ - 0
88
+ version: "0"
89
+ type: :runtime
90
+ version_requirements: *id005
77
91
  description: "Vex: some ruby extensions"
78
92
  email: eno-pboy@open-lab.org
79
93
  executables: []
@@ -260,6 +274,7 @@ files:
260
274
  - lib/vex/boot/array.rb
261
275
  - lib/vex/boot/blank.rb
262
276
  - lib/vex/boot/string.rb
277
+ - migration/create_request_log.rb
263
278
  - script/console
264
279
  - script/rebuild
265
280
  - tasks/echoe.rake