npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

pg_rails

v7.0.8-alpha.72

Published

[![CircleCI](https://circleci.com/gh/programandoarg/pg_rails.svg?style=shield)](https://circleci.com/gh/programandoarg/pg_rails) [![Maintainability](https://api.codeclimate.com/v1/badges/2a3081a26ca2ab9feac6/maintainability)](https://codeclimate.com/githu

Downloads

2,556

Readme

CircleCI Maintainability Test Coverage

PgRails

Plugin de Programando para Rails

Installation

Add this line to your application's Gemfile:

gem 'pg_rails', git: 'https://github.com/programandoarg/pg_rails.git', ref: '<commit hash>'

And then execute:

$ bundle

Uso

Asociación creable

f.asociacion_creable(campo, index_url, new_url, opciones)

Opciones:

  • label: Texto para la label o false para que no haya label

Ejemplo:

= pg_form_for(@cosa) do |f|
  = f.asociacion_creable(:categoria_de_cosa, categoria_de_cosas_url, new_categoria_de_cosa_url, crear_asociado: true)

Contributing

Setup

  1. Ingresar a la consola de postgres:
sudo -u postgres psql template1
  1. Crear el rol
create role pgrails password 'pgrails' login superuser;
  1. Ejecutar el script bin/setup. This script will:
  • Check you have the required Ruby version
  • Install dependencies using Bundler
  • Create a .env.development file
  • Create, migrate, and seed the database

Testear y ejecutar

  1. Instalar overcommit: gem install overcommit
  2. Correr los linters con overcommit -r
  3. Correr los tests con bundle exec rspec
  4. Instalar foreman: gem install foreman
  5. cd spec/dummy
  6. foreman start

Acceder a la app en http://localhost:3000/.

Regenerar modelos dummy

cd spec/dummy

  1. bundle exec rails d pg_scaffold Admin/Cosa
  2. bundle exec rails d pg_scaffold Admin/CategoriaDeCosa
  3. Borrar policies
  4. bundle exec rails g pg_scaffold Admin/CategoriaDeCosa nombre:string{required} "tipo:integer{enum,required}" fecha:date tiempo:datetime --model-name=CategoriaDeCosa --discard --activeadmin
  5. bundle exec rails g pg_scaffold Admin/Cosa nombre:string{required} "tipo:integer{enum,required}" categoria_de_cosa:references{required} --model-name=Cosa --discard --activeadmin
  6. Setup asociacion creable en cosas/_form

be rake app:pg_engine_engine:install:migrations

be rails pg_engine_engine:install:migrations

"build": "esbuild pg_rails/js/index.js --bundle --sourcemap --format=esm --outdir=pg_rails/builds --public-path=/assets",
"build:css:compile": "sass ./pg_rails/scss/pg_rails.scss:./pg_rails/builds/application.css --no-source-map --load-path=node_modules",
"build:css:prefix": "postcss ./pg_rails/builds/application.css --use=autoprefixer --output=./pg_rails/builds/application.css",
"build:css": "yarn build:css:compile && yarn build:css:prefix",

ruby-vips pdftoppm

atributos no pueden terminar en _text