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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5037c603babf77dcf4934b43e50a304982d7e278
4
- data.tar.gz: ac2dda771e58a8f02dfc394b6aba5800ab642f35
3
+ metadata.gz: 6b5b4d2c3c39ac1b4fb9643b9e560ac7ea483c6d
4
+ data.tar.gz: a679ec4019b33e1ccee1e2c7d6845a68324fa270
5
5
  SHA512:
6
- metadata.gz: 2bbe551af619f2f7969f471ed631848fc1bfd1e30c5bcb6334791405d937df5b4b7c266f65b54a9a54827e17df58f26c549f6755df75ba42762786f00266348f
7
- data.tar.gz: c48c7e8867f4fb27b9ad18a5a0ed977d8bda2ba8e69dce461347b7859a41b6c453157d6d76c3b25dcfb0d546ea561ab0782bf04fae48dc810657d3db5911d92e
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
@@ -1,3 +1,3 @@
1
1
  module Sumodev
2
- VERSION = "0.3.9"
2
+ VERSION = "0.4"
3
3
  end
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.3.9
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-05-20 00:00:00.000000000 Z
11
+ date: 2014-09-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport