Giter Club home page Giter Club logo

shoes_mvc's Introduction

README for Shoes MVC

This project provides a basic MVC framework on top of the Shoes environment for those of us strange people who have done MVC so long it's extremely difficult to think about applications other ways.

NOTE: this code is highly experimental and an early work in progress. It wouldn't be wise to rely on it right now for anything other than experiments, prototypes and proofs of concept.

Evolution

While this code could well be the basis for something more sophisticated with Shoes, I'm now mostly concentrating on a more generic MVC library for cross-platform Ruby applications that doesn't depend on Shoes: https://github.com/atownley/ruby_mvc

The main reasons for this is that I need more sophisticated GUI control interactions for the types of applications I want to build than are possible with what's currently in Shoes. I still think Shoes is great for a lot of things, but for the immediate needs I have for 2011/2012, Ruby MVC is more appropriate.

If you're interested in expanding on what's here, just fork and send pull requests.

Installation

The normal way to ensure this gem is installed is to add it to the Shoes.setup block, e.g.

Shoes.setup do
	gem 'shoes_mvc'
end

As of version 0.0.0, it's available as a gem from rubygems.org, so this should just work. If you're using the Rails integration, you'll also need to have a version of ActiveRecord installed.

If you're building it manually (because you're hacking on it), then you'll need to install it yourself in the local Shoes gem directory for your user. On MacOS X, you can do it like this:

$ gem build shoes_mvc.gemspec
$ gem install --install-dir $HOME/.shoes/+gem ./*.gem

Known Issues

The following issues are related to getting this gem actually installed and working as expected:

Additional Encoding Hack

With Policeman, the Encoding class doesn't seem to actually be defined completely. As a result, anything to do with Encoding and ActiveRecord chokes fairly hard. The "solution" is to hack the encoding.rb file in activesupport so that it defines #encoding_aware? as false. Neat, huh?

Hopefully, this will all get fixed with the next release of Shoes. :(

shoes_mvc's People

Contributors

atownley avatar

Stargazers

Angus H. avatar  avatar Junfeng Liu avatar  avatar Steve Klabnik avatar

Watchers

 avatar James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.