diff --git a/Gemfile b/Gemfile index 1a129d7b..26bd64f6 100644 --- a/Gemfile +++ b/Gemfile @@ -18,6 +18,7 @@ gem 'kaminari' # pagination gem 'uservoice-ruby' gem 'dotenv' gem 'snorlax' +gem 'rack-cors' gem 'httparty' gem 'active_model_serializers', '~> 0.8.1' gem 'delayed_job', '~> 4.0.2' diff --git a/Gemfile.lock b/Gemfile.lock index 6a522642..44873eda 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -160,6 +160,7 @@ GEM quiet_assets (1.1.0) railties (>= 3.1, < 5.0) rack (1.6.4) + rack-cors (0.4.0) rack-test (0.6.3) rack (>= 1.0) rails (4.2.4) @@ -286,6 +287,7 @@ DEPENDENCIES pundit pundit_extra quiet_assets + rack-cors rails (= 4.2.4) rails3-jquery-autocomplete rails_12factor diff --git a/README.md b/README.md index cf871b82..20d8db27 100644 --- a/README.md +++ b/README.md @@ -1,8 +1,8 @@ Metamaps ======= -[![Join the chat at https://gitter.im/metamaps/metamaps_gen002](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/metamaps/metamaps_gen002?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge) -[![Build Status](https://travis-ci.org/metamaps/metamaps_gen002.svg)](https://travis-ci.org/metamaps/metamaps_gen002) +[![Join the chat at https://gitter.im/metamaps/metamaps](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/metamaps/metamaps?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge) +[![Build Status](https://travis-ci.org/metamaps/metamaps.svg)](https://travis-ci.org/metamaps/metamaps) Welcome to the Metamaps GitHub repo. @@ -20,11 +20,11 @@ To get connected with the community interested in Metamaps, join our [Google+ co If you are on Mac or Ubuntu you can use the following instructions to quickly get a local copy of metamaps up and running using a Vagrant virtualbox. Don't be intimidated, it's easy! ``` -git clone git@github.com:metamaps/metamaps_gen002.git +git clone git@github.com:metamaps/metamaps.git ``` Now ensure you have VirtualBox and Vagrant installed on your computer ``` -cd metamaps_gen002 +cd metamaps ./bin/configure.sh ``` This will do all the setup steps to make Metamaps work with a bit of behind the scenes ninja magick. @@ -73,7 +73,7 @@ Copyright (c) 2015 Connor Turland [site-blog]: http://blog.metamaps.cc [site-beta]: http://metamaps.cc [community]: https://plus.google.com/u/0/communities/115060009262157699234 -[license]: https://github.com/metamaps/metamaps_gen002/blob/develop/LICENSE -[contributing]: https://github.com/metamaps/metamaps_gen002/blob/develop/doc/CONTRIBUTING.md -[contributing-issues]: https://github.com/metamaps/metamaps_gen002/blob/develop/doc/CONTRIBUTING.md#reporting-bugs-and-other-issues -[windows-installation]: https://github.com/metamaps/metamaps_gen002/blob/develop/doc/WindowsInstallation.md +[license]: https://github.com/metamaps/metamaps/blob/develop/LICENSE +[contributing]: https://github.com/metamaps/metamaps/blob/develop/doc/CONTRIBUTING.md +[contributing-issues]: https://github.com/metamaps/metamaps/blob/develop/doc/CONTRIBUTING.md#reporting-bugs-and-other-issues +[windows-installation]: https://github.com/metamaps/metamaps/blob/develop/doc/WindowsInstallation.md diff --git a/app/assets/javascripts/src/Metamaps.Debug.js.erb b/app/assets/javascripts/src/Metamaps.Debug.js.erb new file mode 100644 index 00000000..18fcb620 --- /dev/null +++ b/app/assets/javascripts/src/Metamaps.Debug.js.erb @@ -0,0 +1,7 @@ +Metamaps.Debug = function() { + console.debug(Metamaps) + console.debug(`Metamaps Version: ${Metamaps.VERSION}`) +} +Metamaps.debug = function() { + Metamaps.Debug() +} diff --git a/app/assets/javascripts/src/Metamaps.js.erb b/app/assets/javascripts/src/Metamaps.js.erb index c49e6801..231592da 100644 --- a/app/assets/javascripts/src/Metamaps.js.erb +++ b/app/assets/javascripts/src/Metamaps.js.erb @@ -16,11 +16,12 @@ var labelType, useGradients, nativeTextSupport, animate; animate = !(iStuff || !nativeCanvasSupport); })(); -// TODO eliminate these 4 top-level variables +// TODO eliminate these 5 top-level variables Metamaps.panningInt = null; Metamaps.tempNode = null; Metamaps.tempInit = false; Metamaps.tempNode2 = null; +Metamaps.VERSION = '<%= VERSION %>' Metamaps.Settings = { embed: false, // indicates that the app is on a page that is optimized for embedding in iFrames on other web pages diff --git a/app/views/layouts/_head.html.erb b/app/views/layouts/_head.html.erb index 07881bce..e99ec640 100644 --- a/app/views/layouts/_head.html.erb +++ b/app/views/layouts/_head.html.erb @@ -5,7 +5,7 @@ Metamaps.cc is an open source project, and we are always looking for new developers to help contribute to our codebase! To get involved, send an email to team@metamaps.cc or find us on Github at - https://github.com/metamaps/metamaps_gen002. + https://github.com/metamaps/metamaps. --> diff --git a/app/views/layouts/_lightboxes.html.erb b/app/views/layouts/_lightboxes.html.erb index 53e402a9..461366c0 100644 --- a/app/views/layouts/_lightboxes.html.erb +++ b/app/views/layouts/_lightboxes.html.erb @@ -18,7 +18,7 @@

PRIVATE BETA

-

2.8

+

<%= VERSION %>

Mar 26, 2016

@@ -51,7 +51,7 @@
  • - +
    source code
    @@ -205,7 +205,7 @@

    MEMBERS are contributors who act as stewards and guardians of the collective and are responsible for maintaining our culture and purpose. We're working on a set of agreements to formalize what it means to be a member.

    -

    We welcome people of all skillsets to create value within our network. There's open possibilities for designers, researchers, academics, strategists, and facilitators to contribute. If you're a developer, help us advance the code and take a look around our Github.

    +

    We welcome people of all skillsets to create value within our network. There's open possibilities for designers, researchers, academics, strategists, and facilitators to contribute. If you're a developer, help us advance the code and take a look around our Github.

    Thanks for your interest in helping out with Metamaps! Hopefully this gets you pointed in the right direction to get involved. The next step is to read the links on this page and then contribute!

    diff --git a/app/views/main/home.html.erb b/app/views/main/home.html.erb index 6089b7df..062de972 100644 --- a/app/views/main/home.html.erb +++ b/app/views/main/home.html.erb @@ -34,7 +34,7 @@
  • - Fork me on GitHub + Fork me on GitHub