sumodev 0.3.9 → 0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/sumodev/commands/project.rb +21 -0
- data/lib/sumodev/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6b5b4d2c3c39ac1b4fb9643b9e560ac7ea483c6d
|
4
|
+
data.tar.gz: a679ec4019b33e1ccee1e2c7d6845a68324fa270
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 41a2410bc0b456503442e81f17cd1e35bf417e99ffd6bb4b5caf99d75c4b142f0d1415454d99a0c2038b6ed7ed7a4fda5d4f2fafbb620c8b5dc99f8e9c56b103
|
7
|
+
data.tar.gz: abd1a911752e98f51893253385cecb7dae4c581fc6a6edd6f3bf3dd14a94def28a248ba7c61b714769cd8e37a7c43ca78fb0fa83b74384858474891311fb5a48
|
@@ -75,7 +75,28 @@ class Sumodev::Commands::Project < Sumodev::Command
|
|
75
75
|
system "cd #{project_path}; cap #{stage} sumodev:files:get"
|
76
76
|
end
|
77
77
|
|
78
|
+
version_path = "#{project_path}/VERSION.md"
|
79
|
+
if File.file?(version_path)
|
80
|
+
content = File.read(version_path)
|
81
|
+
min_version = Gem::Version.new('3.6')
|
82
|
+
project_version = Gem::Version.new(content)
|
83
|
+
|
84
|
+
if project_version > min_version
|
85
|
+
if project_version < Gem::Version.new('3.7')
|
86
|
+
path = "/install/cache/installed.txt"
|
87
|
+
elsif project_version <= Gem::Version.new('3.8')
|
88
|
+
path = "/src/Install/Cache/installed.txt"
|
89
|
+
end
|
90
|
+
|
91
|
+
if path
|
92
|
+
say "Creating installed.txt", :green
|
93
|
+
system "touch #{project_path}#{path}"
|
94
|
+
end
|
95
|
+
end
|
96
|
+
end
|
97
|
+
|
78
98
|
say "Change location to the project", :green
|
99
|
+
say "#{project_path}"
|
79
100
|
Dir.chdir project_path # @todo defv this doesn't work
|
80
101
|
|
81
102
|
say "All done", :green
|
data/lib/sumodev/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sumodev
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: '0.4'
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jan De Poorter
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-09-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|