yore 0.1.2 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- data/Rakefile +2 -0
- data/VERSION +1 -1
- data/bin/yore +3 -0
- data/lib/yore/yore_core.rb +6 -1
- data/yore.gemspec +8 -2
- metadata +22 -2
data/Rakefile
CHANGED
@@ -13,6 +13,8 @@ begin
|
|
13
13
|
gem.rubyforge_project = "buzzware"
|
14
14
|
gem.add_dependency('cmdparse', '>= 2.0.2')
|
15
15
|
gem.add_dependency('buzzcore', '>= 0.2.6')
|
16
|
+
gem.add_dependency('nokogiri', '>= 1.3.3')
|
17
|
+
gem.add_dependency('buzzcore', '>= 0.2.6')
|
16
18
|
gem.add_dependency('aws-s3', '>= 0.6.2')
|
17
19
|
gem.add_development_dependency "thoughtbot-shoulda"
|
18
20
|
#gem.files.include %w(
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.
|
1
|
+
0.2.0
|
data/bin/yore
CHANGED
data/lib/yore/yore_core.rb
CHANGED
@@ -1,5 +1,6 @@
|
|
1
1
|
require 'rubygems'
|
2
2
|
gem 'buzzcore'; require 'buzzcore';
|
3
|
+
require 'buzzcore/extra/xml_utils2'
|
3
4
|
|
4
5
|
require 'fileutils'
|
5
6
|
require 'net/smtp'
|
@@ -232,7 +233,9 @@ module YoreCore
|
|
232
233
|
aConfig = File.expand_path(aConfig)
|
233
234
|
logger.info "Job file: #{aConfig}"
|
234
235
|
op = {:basepath => File.dirname(aConfig)}
|
235
|
-
|
236
|
+
xmlString = MiscUtils.string_from_file(aConfig)
|
237
|
+
xmlString = XmlUtils2.clean_data(xmlString)
|
238
|
+
xml = XmlUtils.get_xml_root(xmlString)
|
236
239
|
return configure(xml,aCmdOptions,op)
|
237
240
|
end
|
238
241
|
|
@@ -467,6 +470,7 @@ module YoreCore
|
|
467
470
|
sourceFound = false
|
468
471
|
|
469
472
|
if aSourcesXml
|
473
|
+
#aSourcesXml.elements['Source'].each do |xmlSource|
|
470
474
|
REXML::XPath.each(aSourcesXml,'Source') do |xmlSource|
|
471
475
|
case xmlSource.attributes['Type']
|
472
476
|
when 'File' then
|
@@ -537,6 +541,7 @@ module YoreCore
|
|
537
541
|
def save_internal(aFilename)
|
538
542
|
FileUtils.mkdir_p(files_path = File.join(temp_path,'files'))
|
539
543
|
filelist = collect_file_list(XmlUtils.single_node(config.xmlRoot,'/Yore/Sources'),files_path)
|
544
|
+
logger.info "files collected:\n "+filelist.join("\n ")
|
540
545
|
compress(filelist,aFilename)
|
541
546
|
end
|
542
547
|
|
data/yore.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{yore}
|
8
|
-
s.version = "0.
|
8
|
+
s.version = "0.2.0"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["buzzware"]
|
12
|
-
s.date = %q{
|
12
|
+
s.date = %q{2010-01-15}
|
13
13
|
s.default_executable = %q{yore}
|
14
14
|
s.description = %q{yore (as in "days of yore") is a user data management utility for web applications.}
|
15
15
|
s.email = %q{contact@buzzware.com.au}
|
@@ -65,17 +65,23 @@ Gem::Specification.new do |s|
|
|
65
65
|
if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
|
66
66
|
s.add_runtime_dependency(%q<cmdparse>, [">= 2.0.2"])
|
67
67
|
s.add_runtime_dependency(%q<buzzcore>, [">= 0.2.6"])
|
68
|
+
s.add_runtime_dependency(%q<nokogiri>, [">= 1.3.3"])
|
69
|
+
s.add_runtime_dependency(%q<buzzcore>, [">= 0.2.6"])
|
68
70
|
s.add_runtime_dependency(%q<aws-s3>, [">= 0.6.2"])
|
69
71
|
s.add_development_dependency(%q<thoughtbot-shoulda>, [">= 0"])
|
70
72
|
else
|
71
73
|
s.add_dependency(%q<cmdparse>, [">= 2.0.2"])
|
72
74
|
s.add_dependency(%q<buzzcore>, [">= 0.2.6"])
|
75
|
+
s.add_dependency(%q<nokogiri>, [">= 1.3.3"])
|
76
|
+
s.add_dependency(%q<buzzcore>, [">= 0.2.6"])
|
73
77
|
s.add_dependency(%q<aws-s3>, [">= 0.6.2"])
|
74
78
|
s.add_dependency(%q<thoughtbot-shoulda>, [">= 0"])
|
75
79
|
end
|
76
80
|
else
|
77
81
|
s.add_dependency(%q<cmdparse>, [">= 2.0.2"])
|
78
82
|
s.add_dependency(%q<buzzcore>, [">= 0.2.6"])
|
83
|
+
s.add_dependency(%q<nokogiri>, [">= 1.3.3"])
|
84
|
+
s.add_dependency(%q<buzzcore>, [">= 0.2.6"])
|
79
85
|
s.add_dependency(%q<aws-s3>, [">= 0.6.2"])
|
80
86
|
s.add_dependency(%q<thoughtbot-shoulda>, [">= 0"])
|
81
87
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: yore
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- buzzware
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date:
|
12
|
+
date: 2010-01-15 00:00:00 +08:00
|
13
13
|
default_executable: yore
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
@@ -32,6 +32,26 @@ dependencies:
|
|
32
32
|
- !ruby/object:Gem::Version
|
33
33
|
version: 0.2.6
|
34
34
|
version:
|
35
|
+
- !ruby/object:Gem::Dependency
|
36
|
+
name: nokogiri
|
37
|
+
type: :runtime
|
38
|
+
version_requirement:
|
39
|
+
version_requirements: !ruby/object:Gem::Requirement
|
40
|
+
requirements:
|
41
|
+
- - ">="
|
42
|
+
- !ruby/object:Gem::Version
|
43
|
+
version: 1.3.3
|
44
|
+
version:
|
45
|
+
- !ruby/object:Gem::Dependency
|
46
|
+
name: buzzcore
|
47
|
+
type: :runtime
|
48
|
+
version_requirement:
|
49
|
+
version_requirements: !ruby/object:Gem::Requirement
|
50
|
+
requirements:
|
51
|
+
- - ">="
|
52
|
+
- !ruby/object:Gem::Version
|
53
|
+
version: 0.2.6
|
54
|
+
version:
|
35
55
|
- !ruby/object:Gem::Dependency
|
36
56
|
name: aws-s3
|
37
57
|
type: :runtime
|