hackathon_manager 0.5.3 → 0.5.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: 7c04e6bb556860898750dcc103ff9fb126e0d94f
4
- data.tar.gz: 37dc7a23db1da9522c07cc0059e355bf86dd7a79
3
+ metadata.gz: 4796cbf03b673fce2aceda0a1fde64f5d5567b19
4
+ data.tar.gz: 89106ac2a34a1f47cf5612251be8523e62ccfa8d
5
5
  SHA512:
6
- metadata.gz: df65de1e9ecd9f59298436174adcdcc4d1f3cdac8b9f6ba4e62872cc1832045669c42b62d61b5e6f9772fe989a7d314e5b94fd942799c449dd6a66482f77c180
7
- data.tar.gz: 656943183e21e30a5c398818657de969c9be3f263fa2b3826845d9c8c83e712de3423015ff81e96b5c59f3ca72d187bd14c887da2ae90d609d47a72420027a02
6
+ metadata.gz: 3c38f36e6bbac2ce39f4d68128ddc6d24bf468bb553312312e36c1e5d128a51375fe923c7352e708f363b2bb33850f07c0fe759275a7f15e838341a79dd62b99
7
+ data.tar.gz: 7a04bd001bcfd67391e061e1e56430808051c5e902f1512fbbef1a64692b11f6726e9e8961afb120e9fdf0bf55c6fa89b8be571bf9aa7e353781c41f190a5aee
@@ -0,0 +1,3 @@
1
+ GEM_ROOT = File.dirname(File.dirname(File.dirname(__FILE__)))
2
+
3
+ Dir[File.join(GEM_ROOT, 'test', 'factories', '**', '*.rb')].each { |file| require(file) }
@@ -1,3 +1,3 @@
1
1
  module HackathonManager
2
- VERSION = '0.5.3'.freeze
2
+ VERSION = '0.5.4'.freeze
3
3
  end
@@ -0,0 +1,9 @@
1
+ # This will guess the User class
2
+ FactoryBot.define do
3
+ factory :bus_list do
4
+ id 1
5
+ name "Cornell Bus"
6
+ capacity 50
7
+ notes "Notes!"
8
+ end
9
+ end
@@ -0,0 +1,7 @@
1
+ FactoryBot.define do
2
+ factory :fips do
3
+ fips_code "36055"
4
+ city "Rochester"
5
+ state "NY"
6
+ end
7
+ end
@@ -0,0 +1,10 @@
1
+ FactoryBot.define do
2
+ factory :message do
3
+ name "Message Name"
4
+ subject "Message Subject"
5
+ recipients ["all"]
6
+ body "Hello world!"
7
+ queued_at nil
8
+ delivered_at nil
9
+ end
10
+ end
@@ -0,0 +1,25 @@
1
+ FactoryBot.define do
2
+ factory :questionnaire do
3
+ first_name "John"
4
+ last_name "Doe"
5
+ phone "(123) 456-7890"
6
+ international false
7
+ date_of_birth Date.today - 20.years
8
+ experience "first"
9
+ interest "design"
10
+ school_id { create(:school).id }
11
+ shirt_size "Unisex - M"
12
+ dietary_restrictions ""
13
+ special_needs ""
14
+ agreement_accepted true
15
+ code_of_conduct_accepted true
16
+ data_sharing_accepted true
17
+ can_share_info true
18
+ gender "Male"
19
+ major "Computer Science"
20
+ level_of_study "University (Undergraduate)"
21
+ why_attend "This sounds cool"
22
+
23
+ association :user
24
+ end
25
+ end
@@ -0,0 +1,15 @@
1
+ # This will guess the User class
2
+ FactoryBot.define do
3
+ factory :school do
4
+ sequence :id do |n|
5
+ n
6
+ end
7
+ sequence :name do |n|
8
+ "University of Rails #{n}"
9
+ end
10
+ address "123 Fake Street"
11
+ city "Rochester"
12
+ state "NY"
13
+ questionnaire_count 0
14
+ end
15
+ end
@@ -0,0 +1,10 @@
1
+ FactoryBot.define do
2
+ factory :school_name_duplicate do
3
+ sequence :id do |n|
4
+ n
5
+ end
6
+ sequence :name do |n|
7
+ "The University of Rails #{n}"
8
+ end
9
+ end
10
+ end
@@ -0,0 +1,24 @@
1
+ FactoryBot.define do
2
+ factory :user do
3
+ sequence :email do |n|
4
+ "foo#{n}@example.com"
5
+ end
6
+ password "password"
7
+
8
+ factory :admin do
9
+ sequence :email do |n|
10
+ "admin#{n}@example.com"
11
+ end
12
+ admin true
13
+ admin_limited_access false
14
+ end
15
+
16
+ factory :limited_access_admin do
17
+ sequence :email do |n|
18
+ "limited_admin#{n}@example.com"
19
+ end
20
+ admin true
21
+ admin_limited_access true
22
+ end
23
+ end
24
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hackathon_manager
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.3
4
+ version: 0.5.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stuart Olivera
@@ -638,10 +638,18 @@ files:
638
638
  - db/seeds.rb
639
639
  - lib/hackathon_manager.rb
640
640
  - lib/hackathon_manager/engine.rb
641
+ - lib/hackathon_manager/factories.rb
641
642
  - lib/hackathon_manager/version.rb
642
643
  - lib/tasks/coverage.rake
643
644
  - lib/tasks/hackathon_manager_tasks.rake
644
645
  - public/hackathon_manager/us.json
646
+ - test/factories/bus_list.rb
647
+ - test/factories/fips.rb
648
+ - test/factories/message.rb
649
+ - test/factories/questionnaire.rb
650
+ - test/factories/school.rb
651
+ - test/factories/school_name_duplicate.rb
652
+ - test/factories/users.rb
645
653
  homepage: https://github.com/sman591/hackathon_manager
646
654
  licenses:
647
655
  - MIT