dune-admin 1.0.0 → 1.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +20 -1
- data/README.md +7 -8
- data/app/assets/javascripts/dune/admin/admin.js.coffee +5 -5
- data/app/assets/javascripts/dune/admin/channels/new.js.coffee +7 -7
- data/db/migrate/{20141005184741_create_dune_admin_funding_raised_per_project_reports.rb → 20141005184741_create_neighbor_admin_funding_raised_per_project_reports.rb} +3 -3
- data/db/migrate/{20141005191509_create_dune_admin_statistics.rb → 20141005191509_create_neighborly_admin_statistics.rb} +3 -3
- data/dune-admin.gemspec +1 -1
- data/lib/dune/admin.rb +2 -2
- data/lib/dune/admin/version.rb +1 -1
- metadata +5 -11
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5a437c8177d1b662eab7cd7be8078976ad8d8de8
|
4
|
+
data.tar.gz: 293db61d21a0c32ac401482f5e17f17697b0cc04
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 021a8fc850e72c5369918d655c5d36c8fa1adf99f35cae4a4e28ba0376bcacd88cad7bb6bdcc8cbc872decd575a7cbd9ed7bbd518eeb641afebd4e2e960a6fce
|
7
|
+
data.tar.gz: 5ebfce888bbe37051340b4fb7279885b310ffefae13bce8161618488fd755e75176e03dcba021189db0be4141fcb4900876663a4820343a2bdb1501269511588
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,24 @@
|
|
1
1
|
# CHANGELOG
|
2
2
|
|
3
|
+
## 1.2.0
|
4
|
+
|
5
|
+
* Import Statistics from the main app
|
6
|
+
* Import funding raised per project report from the main app
|
7
|
+
* Use neighborly/crowdfunding as dummy app
|
8
|
+
|
9
|
+
|
10
|
+
## 1.1.1
|
11
|
+
|
12
|
+
* Fix by_progress filter on project
|
13
|
+
|
14
|
+
## 1.1.0
|
15
|
+
|
16
|
+
* Import some code from the main app
|
17
|
+
* Upgrade to ruby 2.1.2
|
18
|
+
* Bug fixes
|
19
|
+
|
3
20
|
## 1.0.0
|
4
21
|
|
5
|
-
*
|
22
|
+
* Transformed the admin from single Rails application to a Rails Engine.
|
23
|
+
* Imported controllers, views, policies, javascripts, styles and locales from the [old admin](https://github.com/neighborly/neighborly/pull/47).
|
24
|
+
* Specs running with Neighbor.ly's code as dummy app.
|
data/README.md
CHANGED
@@ -1,11 +1,10 @@
|
|
1
|
-
#
|
2
|
-
|
1
|
+
# Neighborly::Admin
|
3
2
|
|
3
|
+
[![Build Status](https://travis-ci.org/neighborly/neighborly-admin.png?branch=master)](https://travis-ci.org/neighborly/neighborly-admin) [![Code Climate](https://codeclimate.com/github/neighborly/neighborly-admin.png)](https://codeclimate.com/github/neighborly/neighborly-admin)
|
4
4
|
|
5
5
|
## What
|
6
6
|
|
7
|
-
This is the admin of [
|
8
|
-
Originally create by neighborly developper
|
7
|
+
This is the admin of [Neighborly](https://github.com/luminopolis/neighborly), a Civic Crowdfunding platform.
|
9
8
|
|
10
9
|
## How
|
11
10
|
|
@@ -22,16 +21,16 @@ And install the migrations:
|
|
22
21
|
$ bundle exec rake railties:install:migrations db:migrate
|
23
22
|
```
|
24
23
|
|
25
|
-
|
24
|
+
Neighborly::Admin is a Rails Engine, integrating with your (Neighborly) Rails application with very little of effort. To turn the engine on, mount it in an appropriate route:
|
26
25
|
|
27
26
|
```ruby
|
28
27
|
# config/routes.rb
|
29
|
-
mount
|
28
|
+
mount Neighborly::Admin::Engine => '/admin/', as: :neighborly_admin
|
30
29
|
```
|
31
30
|
And load our JavaScript:
|
32
31
|
|
33
32
|
```
|
34
|
-
//= require
|
33
|
+
//= require neighborly-admin
|
35
34
|
```
|
36
35
|
|
37
36
|
## Contributing
|
@@ -46,7 +45,7 @@ And load our JavaScript:
|
|
46
45
|
|
47
46
|
We prize for our test suite and coverage, so it would be great if you could run the specs to ensure that your patch is not breaking the existing codebase.
|
48
47
|
|
49
|
-
When running specs for the first time, you'll need to download
|
48
|
+
When running specs for the first time, you'll need to download Neighborly's source code to be tested against your version of the gem. The following command will install the dummy app in `spec/dummy`.
|
50
49
|
|
51
50
|
```
|
52
51
|
$ git submodule init
|
@@ -1,10 +1,10 @@
|
|
1
|
-
|
2
|
-
|
1
|
+
Neighborly.Neighborly ?= {}
|
2
|
+
Neighborly.Neighborly.Admin ?= {}
|
3
3
|
|
4
|
-
|
5
|
-
|
4
|
+
Neighborly.Neighborly.Admin.modules =-> [Neighborly.Neighborly.Admin.Common,
|
5
|
+
Neighborly.Neighborly.Admin.Modules.Sort]
|
6
6
|
|
7
|
-
|
7
|
+
Neighborly.Neighborly.Admin.Common = Backbone.View.extend
|
8
8
|
el: '.admin'
|
9
9
|
|
10
10
|
initialize: ->
|
@@ -1,14 +1,14 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
1
|
+
Neighborly.Neighborly ?= {}
|
2
|
+
Neighborly.Neighborly.Admin ?= {}
|
3
|
+
Neighborly.Neighborly.Admin.Channels ?= {}
|
4
4
|
|
5
|
-
|
5
|
+
Neighborly.Neighborly.Admin.Channels.New =
|
6
6
|
init: Backbone.View.extend
|
7
7
|
el: '.admin'
|
8
8
|
|
9
9
|
initialize: ->
|
10
|
-
this.$('.markdown-editor').markItUp(
|
10
|
+
this.$('.markdown-editor').markItUp(Neighborly.markdownSettings)
|
11
11
|
|
12
12
|
|
13
|
-
|
14
|
-
modules: -> [
|
13
|
+
Neighborly.Neighborly.Admin.Channels.Edit =
|
14
|
+
modules: -> [Neighborly.Neighborly.Admin.Channels.New]
|
@@ -1,7 +1,7 @@
|
|
1
|
-
class
|
1
|
+
class CreateNeighborAdminFundingRaisedPerProjectReports < ActiveRecord::Migration
|
2
2
|
def up
|
3
3
|
execute <<-SQL
|
4
|
-
CREATE OR REPLACE VIEW
|
4
|
+
CREATE OR REPLACE VIEW neighborly_admin_funding_raised_per_project_reports AS
|
5
5
|
SELECT
|
6
6
|
project.id AS project_id,
|
7
7
|
project.name AS project_name,
|
@@ -16,6 +16,6 @@ class CreateDuneAdminFundingRaisedPerProjectReports < ActiveRecord::Migration
|
|
16
16
|
end
|
17
17
|
|
18
18
|
def down
|
19
|
-
drop_view :
|
19
|
+
drop_view :neighborly_admin_funding_raised_per_project_reports
|
20
20
|
end
|
21
21
|
end
|
@@ -1,7 +1,7 @@
|
|
1
|
-
class
|
1
|
+
class CreateNeighborlyAdminStatistics < ActiveRecord::Migration
|
2
2
|
def up
|
3
3
|
execute <<-SQL
|
4
|
-
CREATE OR REPLACE VIEW
|
4
|
+
CREATE OR REPLACE VIEW neighborly_admin_statistics AS
|
5
5
|
SELECT
|
6
6
|
( SELECT count(*) AS count FROM users) AS total_users,
|
7
7
|
( SELECT count(*) AS count FROM users WHERE profile_type::text = 'organization'::text ) AS total_organization_users,
|
@@ -49,7 +49,7 @@ class CreateDuneAdminStatistics < ActiveRecord::Migration
|
|
49
49
|
|
50
50
|
def down
|
51
51
|
execute <<-SQL
|
52
|
-
DROP VIEW
|
52
|
+
DROP VIEW neighborly_admin_statistics;
|
53
53
|
SQL
|
54
54
|
end
|
55
55
|
end
|
data/dune-admin.gemspec
CHANGED
@@ -20,7 +20,7 @@ Gem::Specification.new do |spec|
|
|
20
20
|
|
21
21
|
spec.add_dependency 'rails', '~> 4.0'
|
22
22
|
spec.add_dependency 'best_in_place', '~> 3.0.0.rc1'
|
23
|
-
spec.add_dependency 'postgres-copy', '~> 0.8.0'
|
23
|
+
spec.add_dependency 'postgres-copy', '~> 0.8.0'
|
24
24
|
spec.add_development_dependency 'rake', '~> 10.2'
|
25
25
|
spec.add_development_dependency 'rspec-rails', '~> 2.14'
|
26
26
|
spec.add_development_dependency 'factory_girl_rails', '~> 4.3'
|
data/lib/dune/admin.rb
CHANGED
data/lib/dune/admin/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dune-admin
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Pierre Legrand
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-02-
|
11
|
+
date: 2015-02-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -45,9 +45,6 @@ dependencies:
|
|
45
45
|
- - "~>"
|
46
46
|
- !ruby/object:Gem::Version
|
47
47
|
version: 0.8.0
|
48
|
-
- - ">="
|
49
|
-
- !ruby/object:Gem::Version
|
50
|
-
version: 0.8.0
|
51
48
|
type: :runtime
|
52
49
|
prerelease: false
|
53
50
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -55,9 +52,6 @@ dependencies:
|
|
55
52
|
- - "~>"
|
56
53
|
- !ruby/object:Gem::Version
|
57
54
|
version: 0.8.0
|
58
|
-
- - ">="
|
59
|
-
- !ruby/object:Gem::Version
|
60
|
-
version: 0.8.0
|
61
55
|
- !ruby/object:Gem::Dependency
|
62
56
|
name: rake
|
63
57
|
requirement: !ruby/object:Gem::Requirement
|
@@ -174,8 +168,8 @@ files:
|
|
174
168
|
- bin/rails
|
175
169
|
- config/locales/en.yml
|
176
170
|
- config/routes.rb
|
177
|
-
- db/migrate/
|
178
|
-
- db/migrate/
|
171
|
+
- db/migrate/20141005184741_create_neighbor_admin_funding_raised_per_project_reports.rb
|
172
|
+
- db/migrate/20141005191509_create_neighborly_admin_statistics.rb
|
179
173
|
- dune-admin.gemspec
|
180
174
|
- lib/dune/admin.rb
|
181
175
|
- lib/dune/admin/engine.rb
|
@@ -215,7 +209,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
215
209
|
version: '0'
|
216
210
|
requirements: []
|
217
211
|
rubyforge_project:
|
218
|
-
rubygems_version: 2.
|
212
|
+
rubygems_version: 2.4.3
|
219
213
|
signing_key:
|
220
214
|
specification_version: 4
|
221
215
|
summary: Dune Admin.
|