xamplr 1.9.10 → 1.9.11

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/VERSION.yml CHANGED
@@ -1,5 +1,5 @@
1
1
  ---
2
2
  :major: 1
3
3
  :minor: 9
4
- :patch: 10
4
+ :patch: 11
5
5
  :build:
@@ -243,28 +243,21 @@ module Xampl
243
243
  @last_sync_time = Time.now
244
244
  #raise XamplException.new(:live_across_rollback) if @rolled_back
245
245
  begin
246
- # puts "#{ __FILE__ }:#{ __LINE__ } [#{__method__}] SYNC changed: #{@changed.size}" if 0 < @changed.size
247
- # @changed.each do | key, value |
248
- # puts "#{ __FILE__ }:#{ __LINE__ } [#{__method__}] key: #{key.class.name}, pid: #{key.get_the_index}"
249
- # end
250
- #
251
- # if 0 < @changed.size then
246
+ if 0 < @changed.size then
252
247
  # puts "#{ __FILE__ }:#{ __LINE__ } [#{__method__}] SYNC changed: #{@changed.size}"
248
+ # @changed.each do | key, value |
249
+ # puts " key: #{key.class.name}, pid: #{key.get_the_index}"
250
+ # end
251
+
253
252
  # caller(0).each do | trace |
254
253
  # next if /xamplr/ =~ trace
255
254
  # puts " #{trace}"
256
255
  # break if /actionpack/ =~ trace
257
256
  # end
258
- # end
259
- #
260
- # puts "#{ __FILE__ }:#{ __LINE__ } [#{__method__}] SYNC changed: #{@changed.size}"
261
- if 0 < @changed.size then
257
+
258
+ duration = Time.now
262
259
  begin
263
- # puts "#{ __FILE__ }:#{ __LINE__ } [#{__method__}] SYNC changed: #{@changed.size}"
264
260
  busy(true)
265
- # if @syncing then
266
- # puts "\n\n\n\n#{ __FILE__ }:#{ __LINE__ } [#{__method__}] SYNCING IS ALREADY TRUE!!!!!!\n\n\n"
267
- # end
268
261
  @syncing = true
269
262
 
270
263
  start_sync_write
@@ -273,8 +266,14 @@ module Xampl
273
266
  done_sync_write
274
267
  @syncing = false
275
268
  end
276
- else
277
- # puts "#{ __FILE__ }:#{ __LINE__ } [#{__method__}] SYNC, noting changed"
269
+
270
+ duration = Time.now - duration
271
+ if 0.25 < duration.to_f then
272
+ puts "#{ __FILE__ }:#{ __LINE__ } [#{__method__}] SLOW SYNC(#{ duration.to_f }s), changed: #{ @changed.size }"
273
+ @changed.each do | key, value |
274
+ puts " key: #{ key.class.name }, pid: #{ key.get_the_index }"
275
+ end
276
+ end
278
277
  end
279
278
 
280
279
  @changed = {}
@@ -670,6 +670,18 @@ module Xampl
670
670
 
671
671
  return representation
672
672
  end
673
+
674
+ def backup(base_path)
675
+
676
+ dir_path = "#{ base_path }/#{ @root_dir }/"
677
+ path = "#{ dir_path }/repo.tct"
678
+
679
+ FileUtils.mkdir_p(dir_path)
680
+
681
+ note_errors("TC[[#{ dir_path }]]:: backup error: %s\n") do
682
+ @tc_db.copy(path)
683
+ end
684
+ end
673
685
  end
674
686
 
675
687
  #
data/xamplr.gemspec CHANGED
@@ -1,15 +1,15 @@
1
1
  # Generated by jeweler
2
2
  # DO NOT EDIT THIS FILE DIRECTLY
3
- # Instead, edit Jeweler::Tasks in Rakefile, and run the gemspec command
3
+ # Instead, edit Jeweler::Tasks in rakefile, and run the gemspec command
4
4
  # -*- encoding: utf-8 -*-
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{xamplr}
8
- s.version = "1.9.10"
8
+ s.version = "1.9.11"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Bob Hutchison"]
12
- s.date = %q{2010-03-18}
12
+ s.date = %q{2010-04-26}
13
13
  s.description = %q{xamplr is the ruby version of xampl.}
14
14
  s.email = %q{hutch@recursive.ca}
15
15
  s.extra_rdoc_files = [
@@ -115,7 +115,7 @@ Gem::Specification.new do |s|
115
115
  s.homepage = %q{http://github.com/hutch/xamplr}
116
116
  s.rdoc_options = ["--charset=UTF-8"]
117
117
  s.require_paths = ["lib"]
118
- s.rubygems_version = %q{1.3.5}
118
+ s.rubygems_version = %q{1.3.6}
119
119
  s.summary = %q{xamplr is the ruby version of xampl}
120
120
 
121
121
  if s.respond_to? :specification_version then
metadata CHANGED
@@ -1,7 +1,12 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: xamplr
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.9.10
4
+ prerelease: false
5
+ segments:
6
+ - 1
7
+ - 9
8
+ - 11
9
+ version: 1.9.11
5
10
  platform: ruby
6
11
  authors:
7
12
  - Bob Hutchison
@@ -9,29 +14,37 @@ autorequire:
9
14
  bindir: bin
10
15
  cert_chain: []
11
16
 
12
- date: 2010-03-18 00:00:00 -04:00
17
+ date: 2010-04-26 00:00:00 -04:00
13
18
  default_executable:
14
19
  dependencies:
15
20
  - !ruby/object:Gem::Dependency
16
21
  name: xamplr-pp
17
- type: :runtime
18
- version_requirement:
19
- version_requirements: !ruby/object:Gem::Requirement
22
+ prerelease: false
23
+ requirement: &id001 !ruby/object:Gem::Requirement
20
24
  requirements:
21
25
  - - ">="
22
26
  - !ruby/object:Gem::Version
27
+ segments:
28
+ - 1
29
+ - 2
30
+ - 0
23
31
  version: 1.2.0
24
- version:
32
+ type: :runtime
33
+ version_requirements: *id001
25
34
  - !ruby/object:Gem::Dependency
26
35
  name: libxml-ruby
27
- type: :runtime
28
- version_requirement:
29
- version_requirements: !ruby/object:Gem::Requirement
36
+ prerelease: false
37
+ requirement: &id002 !ruby/object:Gem::Requirement
30
38
  requirements:
31
39
  - - ">="
32
40
  - !ruby/object:Gem::Version
41
+ segments:
42
+ - 1
43
+ - 1
44
+ - 3
33
45
  version: 1.1.3
34
- version:
46
+ type: :runtime
47
+ version_requirements: *id002
35
48
  description: xamplr is the ruby version of xampl.
36
49
  email: hutch@recursive.ca
37
50
  executables: []
@@ -149,18 +162,20 @@ required_ruby_version: !ruby/object:Gem::Requirement
149
162
  requirements:
150
163
  - - ">="
151
164
  - !ruby/object:Gem::Version
165
+ segments:
166
+ - 0
152
167
  version: "0"
153
- version:
154
168
  required_rubygems_version: !ruby/object:Gem::Requirement
155
169
  requirements:
156
170
  - - ">="
157
171
  - !ruby/object:Gem::Version
172
+ segments:
173
+ - 0
158
174
  version: "0"
159
- version:
160
175
  requirements: []
161
176
 
162
177
  rubyforge_project:
163
- rubygems_version: 1.3.5
178
+ rubygems_version: 1.3.6
164
179
  signing_key:
165
180
  specification_version: 3
166
181
  summary: xamplr is the ruby version of xampl