minimum_viable_product 0.2.4 → 0.2.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/mvp +9 -4
- data/config/routes.rb +0 -2
- data/lib/minimum_viable_product/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: 006ff4ccff41d10f39cbc8e363dcaea28d80d877
|
4
|
+
data.tar.gz: 588bbd31f340fbb2a5053266320f51c91ccfb6ed
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 12cb622bd179c2dd07ead085f0686eef71cc48845482071723031565d977fb44b79bd69e5f079bfd2c5ca14aaffd4a0f02a09bc3ecf9a4b23f8a3903c133ed89
|
7
|
+
data.tar.gz: b65d8b0375c386e96000d274cf22e61f1497979132c5c1075d24c052225d1df7b0a9ba9ee842477e64e508c87a9b680e49d6ce912784c47d22af4344c00205ca
|
data/bin/mvp
CHANGED
@@ -30,11 +30,16 @@ when 'new'
|
|
30
30
|
puts "\n== Initializing Project =="
|
31
31
|
files = Dir.glob("#{slug}/**/*").select { |f| File.file?(f) }
|
32
32
|
files.each do |file_name|
|
33
|
-
|
34
|
-
|
35
|
-
|
33
|
+
begin
|
34
|
+
puts "Replacing #{file_name}"
|
35
|
+
text = File.read(file_name)
|
36
|
+
new_contents = text.gsub(/__PROJECT_NAME__/, project)
|
37
|
+
.gsub(/__PROJECT_NAME_SLUG__/, slug)
|
36
38
|
|
37
|
-
|
39
|
+
File.open(file_name, "w") {|file| file.puts new_contents }
|
40
|
+
rescue
|
41
|
+
|
42
|
+
end
|
38
43
|
end
|
39
44
|
run "cd #{slug} && rm -rf .git && git init"
|
40
45
|
|
data/config/routes.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: minimum_viable_product
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ian Hunter
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-09-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: analytics-ruby
|