Project
Reverse Dependencies for rspec
The projects listed here declare rspec as a runtime or development dependency
0.0
Pry-based enhancements for both Rails 3 & 4 debugging. A compilation of opinionated pry packages to improve the debugging environment
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
Activity
0.0
Validates databags of crowbar.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
Activity
0.0
A simple rest client for Crowd
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
Activity
0.0
# crowd_fund
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
Activity
0.0
BASIC INSTRUCTIONS
This gem funds and defunds your projects at random via die roll.
The final list of projects is then exported to your current directory after the program has finished ('quit' to exit).
TO RUN DEFAULT CSV SHEET (Three example projects))):
crowdfund
TO RUN A CSV FILE FROM YOUR CURRENT DIRECTORY:
crowdfund your_file_name.csv
NOTE: All CSV files must be formatted appropriately with:
No header or other text at the top!
Column 1: lists all project titles in plain text.
Column 2: lists integer values for initial project funding amounts (A blank field by default initializes a project with $0 in funding.)
Column 3: lists integer values for the project's target goal in funding (A blank field by default initializes a project with $10,000 in funding.)
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
Activity
0.0
This gem is the result of exercises as part of the Ruby Tutorial from PragmaticStudio.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
Activity
0.0
# Crowdfund (Alec)
Ferramenta de linha de comando e biblioteca Ruby para simular um programa de **arrecadação de fundos** com rodadas, promessas (pledges) e diferentes tipos de projetos (básico, com *matching*, e *grant*).
## Instalação
```bash
gem install crowdfund_alec
```
Ou rode a partir do código-fonte:
```bash
ruby bin/crowdfund
```
## Como funciona
- Você carrega projetos via CSV (nome, fundos_iniciais, meta).
- Em cada rodada, um dado é rolado para **adicionar** (+25) ou **remover** (–15) fundos do projeto.
- Em paralelo, o projeto recebe **pledges** aleatórios: bronze ($50), silver ($75), gold ($100).
- Projetos podem ter comportamento especial:
- **MatchingProject**: quando chega a 50% da meta, cada `add_fund` passa a dobrar (+50).
- **GrantProject**: nunca perde fundos em `remove_fund`.
- Ao sair, o relatório salva os **subfinanciados** em `needmoremoney.txt` e imprime estatÃsticas.
## Uso (CLI)
```bash
# (1) CSV padrão (bin/projects.csv)
ruby bin/crowdfund
# (2) Informando um CSV customizado
ruby bin/crowdfund caminho/para/projetos.csv
```
Durante a execução:
- Digite um número para a quantidade de rodadas.
- Digite `q` ou `e` para sair e ver o relatório final.
### Formato do CSV
```
NomeDoProjeto,fundos_iniciais,meta
BuyaBoat,5,10000
TraveltoVictoriaIsland,5,3000
GetaPuppy,5,300
```
## SaÃda esperada
- Resumo por rodada dos fundos e pledges recebidos.
- Arquivo `needmoremoney.txt` contendo:
- TÃtulo do relatório.
- Projetos totalmente financiados.
- Projetos subfinanciados ordenados por **quanto falta**.
- Snapshot CSV de todos os projetos.
## API (uso como biblioteca)
Requerendo as classes principais:
```ruby
require 'crowdfund/project'
require 'crowdfund/fund_request'
```
Criando projetos e executando rodadas:
```ruby
project = Project.new("My App", 500, 2000)
funding = FundRequest.new("Startup do Alec")
funding.add_project(project)
funding.request_funding(5)
funding.print_results
```
### Classes principais
- `Project`
- Atributos: `name`, `fund_amount`, `target_fund_amount`
- Métodos: `add_fund`, `remove_fund`, `funds_needed`, `funded?`, `received_pledge`, `pledges`, `total_funds`, `each_received_pledge`, `to_csv`, `status`
- `FundRequest`
- Gerencia lista de projetos, executa rodadas, imprime e salva relatórios.
- `MatchingProject < Project`
- Dobra `add_fund` quando `halfway_funded?` (>= 50% da meta).
- `GrantProject < Project`
- Sobrescreve `remove_fund` para nunca diminuir fundos.
- `Pledgesmod`
- Constante `PLEDGES` e `.random` para escolher bronze/silver/gold.
- `FundingRound`
- Regras de uma rodada: rola `Die`, aplica `add/remove`, atribui pledge.
- `Fundable` (mixin)
- Implementa `add_fund`, `remove_fund`, `funds_needed`, `funded?`.
- `Die`
- D6 simples com `roll`.
## Testes
Rodar todos os testes:
```bash
rspec
```
Principais cenários cobertos:
- Regras de `add_fund`/`remove_fund`.
- Comportamento de `MatchingProject` e `GrantProject`.
- Integração de `FundingRound` e `Pledgesmod`.
- Geração do relatório em `FundRequest`.
## Licença
MIT — consulte o arquivo `LICENSE`.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
Activity
0.0
Crowdfunding project
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
Activity
0.0
A console-based funding program written in Ruby.
This program is the outcome of bonus exercise work for the excellent Ruby course by Mike and Nicole Clark of The Pragmatic Studio.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
0.0
# Crowdfunder
This is a crowdfunding app built in ruby. It can be integrated into any
ruby application and framework.
## Introduction
Crowdfunder allows for various projects be created and funded through funding rounds.
Projects will have funds added or deducted at random. Projects can also receive pledges
from 3 pledge categories to make up for additional funding.
### Technologies
* Ruby 3
* Rspec 3
## Setup
To run this gem, download then install it locally.
$ gem install crowdfunder-1.0.1.gem
You have the option to load projects from the command line in a CSV file. Additionally
a default projects.csv file is packaged in the gem.
## Sources
This app was inspired by Mike and Nicole of The Pragmatic Studio.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
Activity
0.0
A crowd-funding platform parser
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
Activity
0.0
A funding app for startups!
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
Activity
0.0
Please readme:)
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
Activity
0.0
This was my bonus project for the Ruby course at pragmaticstudio.com.
The program tracks projects that have funds randomly added or removed.
The randomness is driven by Coin class since funding is either added
or removed from the project during each funding round.
The program runs with either a default projects file, or one can be
specified at the command line as a file with
title,target_funding,initial_funding. See the default projects.csv file
for examples.
Enjoy!
PeterPiper
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
Activity
0.0
This is an example application used in The Pragmatic Studio's
Ruby Programming course, as described at
http://pragmaticstudio.com
This code is Copyright 2012 The Pragmatic Studio. See the LICENSE file.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
Activity
0.0
This is my second program, this is a program from pragmatic_studio to learn the Ruby language.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
Activity
0.0
A simple, text-based crowdfunding simulator. Run a group of projects through a
series of funding rounds, in which they either receive or lose funds, or are
skipped. They also receive a random pledge. Grant projects never lose funds.
Match projects have all future funding matched after they reach half-funding.
Statistics are printed to the console at the end of the simulation.
The normal projects can be specified in a '.csv' file that is given as a command
line argument when loading the program, or the default projects can be used. The
format for 'csv' entries is Project Name,Goal,Initial_funding with a comma and
no spaces between entries and underscores in place of commas within larger
numbers (e.g. Your Project,10_000,0).
The option is given to save a list of underfunded projects upon exiting the
program. The list is saved in 'underfunded.txt' in the top-level folder of the
application.
Created as a bonus project while completing the Pragmatic Studio Ruby
Programming course.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
Activity
0.0
With ActsAsTaggableOn, you can tag a single model on several contexts, such as skills, interests, and awards. It also provides other advanced functionality. Do not remove old tags after creating a new tag
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
0.0
Fixes scope: nil >> Official GitHub strategy for OmniAuth.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
0.0
A flat API client that sits atop the CrowdFlower API
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
Activity