crowd_fund 1.1.1 → 1.1.3
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/bin/crowd_fund +12 -10
- data/spec/crowd_fund/project_spec.rb +2 -2
- 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: 20c4a2dfacf07d619d60c3c2af2e784d42ba0f8333d33be52a3824e3e07b888a
|
4
|
+
data.tar.gz: 3579b43b3e840aa5dd2cea4f3d972ab341b42f372ada83e64fc6af2e3f076f2f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8dbf253faffc841dfdbe31f82834c830920dac119565092adaca1c30aeeaf92000c07f1bca10f93277ba5e017df52ad1d2335696343b5f5ed141a0f09c394b36
|
7
|
+
data.tar.gz: 6c059acc30c7132bd379c739caf73101bcab89e9c2d750210e08ccbcb015c2bb606308bff52443825cc824e61a7501c7efdbd0b018e0637f1b29d49ff7987ed9
|
data/bin/crowd_fund
CHANGED
@@ -1,19 +1,21 @@
|
|
1
1
|
#!/usr/bin/env ruby
|
2
2
|
|
3
|
-
require_relative 'project'
|
4
|
-
require_relative 'pledge_pool'
|
5
|
-
require_relative 'specialized_behavior'
|
3
|
+
require_relative '../lib/crowd_fund/project'
|
4
|
+
require_relative '../lib/crowd_fund/pledge_pool'
|
5
|
+
require_relative '../lib/crowd_fund/specialized_behavior'
|
6
6
|
|
7
7
|
|
8
|
-
project1 = Project.new("Project ABC", 5000, 1000)
|
9
|
-
project2 = Project.new("Project LMN", 3000, 500)
|
10
|
-
project3 = Project.new("Project XYZ", 75, 25)
|
8
|
+
project1 = CrowdFund::Project.new("Project ABC", 5000, 1000)
|
9
|
+
project2 = CrowdFund::Project.new("Project LMN", 3000, 500)
|
10
|
+
project3 = CrowdFund::Project.new("Project XYZ", 75, 25)
|
11
11
|
|
12
|
-
projects = FundRequest.new("VC-Friendly Start-up Projects")
|
13
|
-
|
12
|
+
projects = CrowdFund::FundRequest.new("VC-Friendly Start-up Projects")
|
13
|
+
default_player_file =
|
14
|
+
File.join(File.dirname(__FILE__), 'user_input.csv')
|
15
|
+
projects.load_funding(ARGV.shift || default_player_file)
|
14
16
|
|
15
|
-
specializedbehavior = SpecializedBehavior.new("green", 1000)
|
16
|
-
projects.add_funds
|
17
|
+
#specializedbehavior = SpecializedBehavior.new("green", 1000)
|
18
|
+
#projects.add_funds
|
17
19
|
|
18
20
|
loop do
|
19
21
|
puts "\nHow many project rounds? ('quit' to exit)"
|
@@ -47,7 +47,7 @@ module CrowdFund
|
|
47
47
|
end
|
48
48
|
|
49
49
|
it "is fully funded" do
|
50
|
-
@project.
|
50
|
+
expect(@project).to be_fully_funded
|
51
51
|
end
|
52
52
|
end
|
53
53
|
|
@@ -57,7 +57,7 @@ module CrowdFund
|
|
57
57
|
end
|
58
58
|
|
59
59
|
it "is under-funded" do
|
60
|
-
@project.
|
60
|
+
expect(@project).not_to be_fully_funded
|
61
61
|
end
|
62
62
|
|
63
63
|
it "computes pledges as the sum of all pledges" do
|