csproj 0.1.0 → 0.1.1
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.
- checksums.yaml +4 -4
- data/lib/csproj/detect_values.rb +14 -8
- data/lib/csproj/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 23ef7f977ea9b0e6566f895132f4f537af33d163e713649dc40b526b75a0768e
|
4
|
+
data.tar.gz: 6185389645ef0ef84e9e442b01b2e7cfcfe38a422de8f8ca2eebeb31d44aee26
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0b6a5f7fa15da21a9f8561a3db35b05587e331fdf7d2a90f6fb4518b2f429581889459c6439bd34425f29f441b52dbe382d91e5206966018713ee91d35901f3e
|
7
|
+
data.tar.gz: 60a0137166a5e55f7053a44117e65e545963d95d61f83e1e95f05575338a706b345e4294c6d8b6538907e54c196cb5049bb394b7fa4284c2e4cfadd19640302a
|
data/lib/csproj/detect_values.rb
CHANGED
@@ -95,14 +95,18 @@ module CsProj
|
|
95
95
|
def self.detect_info_plist
|
96
96
|
return if CsProj.config[:plist_path] || (CsProj.config[:platform] != Platform::IOS)
|
97
97
|
|
98
|
-
plist_path = find_file("
|
98
|
+
plist_path = abs_project_path find_file("Info.plist", 1)
|
99
99
|
|
100
100
|
unless plist_path
|
101
|
-
|
102
|
-
|
101
|
+
plist_path = abs_project_path "Info.plist"
|
102
|
+
|
103
|
+
unless File.exist? plist_path
|
104
|
+
puts "Not able to find Info.plist automatically, try to specify it via `plist_path` parameter."
|
105
|
+
exit
|
106
|
+
end
|
103
107
|
end
|
104
108
|
|
105
|
-
CsProj.config[:plist_path] =
|
109
|
+
CsProj.config[:plist_path] = plist_path
|
106
110
|
end
|
107
111
|
|
108
112
|
def self.detect_assembly_name(doc_csproj)
|
@@ -147,16 +151,18 @@ module CsProj
|
|
147
151
|
end
|
148
152
|
|
149
153
|
def self.abs_project_path(path)
|
154
|
+
return nil if path.nil?
|
155
|
+
|
150
156
|
path = path.tr('\\', "/")
|
151
157
|
platform_path = CsProj.config[:project_path]
|
152
|
-
|
153
|
-
path
|
158
|
+
"#{File.dirname(platform_path)}/#{path}"
|
154
159
|
end
|
155
160
|
|
156
161
|
def self.abs_path(path)
|
162
|
+
return nil if path.nil?
|
163
|
+
|
157
164
|
path = path.tr('\\', "/")
|
158
|
-
|
159
|
-
path
|
165
|
+
File.expand_path(path)
|
160
166
|
end
|
161
167
|
end
|
162
168
|
end
|
data/lib/csproj/version.rb
CHANGED