iron-spect 0.0.4 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
- data/iron-spect.gemspec +1 -1
- data/lib/iron-spect/version.rb +1 -1
- data/lib/iron-spect/writers/solution_file_writer.rb +42 -0
- metadata +5 -4
data/iron-spect.gemspec
CHANGED
@@ -14,7 +14,7 @@ Gem::Specification.new do |gem|
|
|
14
14
|
gem.license = 'Apache2'
|
15
15
|
|
16
16
|
gem.files = `git ls-files`.split($/)
|
17
|
-
gem.executables = gem.files.grep(%r{^bin/}) { |f| File.basename(f) }
|
17
|
+
#gem.executables = gem.files.grep(%r{^bin/}) { |f| File.basename(f) }
|
18
18
|
gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
|
19
19
|
gem.require_paths = %w(lib)
|
20
20
|
|
data/lib/iron-spect/version.rb
CHANGED
@@ -0,0 +1,42 @@
|
|
1
|
+
module IronSpect
|
2
|
+
module Writers
|
3
|
+
|
4
|
+
class SolutionFileWriter
|
5
|
+
|
6
|
+
def initialize(parsed_sln)
|
7
|
+
@parsed_sln = parsed_sln
|
8
|
+
end
|
9
|
+
|
10
|
+
def write(directory, name)
|
11
|
+
file = File.open("#{directory}/#{name}.sln", 'w')
|
12
|
+
file.write("#{version[:sln_type]} Solution File, Format Version #{version[:sln_version]}\n")
|
13
|
+
projects.each do |project|
|
14
|
+
file.write("project(\"#{project[:guid]}\") = \"#{project[:assembly_info][:name]}\", \"#{project[:assembly_info][:path]}\", \"#{project[:assembly_info][:guid]}\"\nEndProject\n")
|
15
|
+
end
|
16
|
+
file.write("Global\n")
|
17
|
+
globals.each do |global|
|
18
|
+
file.write("\tGlobalSection(#{global[:property_tag]}) = #{global[:property_step]}\n")
|
19
|
+
global[:properties].each do |property|
|
20
|
+
file.write("\t\t#{property[:key]} = #{property[:value]}\n")
|
21
|
+
end
|
22
|
+
file.write("\tEndGlobalSection\n")
|
23
|
+
end
|
24
|
+
file.write('EndGlobal')
|
25
|
+
end
|
26
|
+
|
27
|
+
private
|
28
|
+
|
29
|
+
def version
|
30
|
+
@parsed_sln[:version_info]
|
31
|
+
end
|
32
|
+
|
33
|
+
def projects
|
34
|
+
@parsed_sln[:projects]
|
35
|
+
end
|
36
|
+
|
37
|
+
def globals
|
38
|
+
@parsed_sln[:global]
|
39
|
+
end
|
40
|
+
end
|
41
|
+
end
|
42
|
+
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: iron-spect
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.5
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-07-
|
12
|
+
date: 2013-07-10 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: xml-simple
|
@@ -125,6 +125,7 @@ files:
|
|
125
125
|
- lib/iron-spect/parsers/project_file_parser.rb
|
126
126
|
- lib/iron-spect/parsers/solution_file_parser.rb
|
127
127
|
- lib/iron-spect/version.rb
|
128
|
+
- lib/iron-spect/writers/solution_file_writer.rb
|
128
129
|
homepage: https://github.com/nterry/iron-spect
|
129
130
|
licenses:
|
130
131
|
- Apache2
|
@@ -140,7 +141,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
140
141
|
version: '0'
|
141
142
|
segments:
|
142
143
|
- 0
|
143
|
-
hash: -
|
144
|
+
hash: -455902910519972820
|
144
145
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
145
146
|
none: false
|
146
147
|
requirements:
|
@@ -149,7 +150,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
149
150
|
version: '0'
|
150
151
|
segments:
|
151
152
|
- 0
|
152
|
-
hash: -
|
153
|
+
hash: -455902910519972820
|
153
154
|
requirements: []
|
154
155
|
rubyforge_project:
|
155
156
|
rubygems_version: 1.8.25
|