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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e5a76f9696d4542e0776c2a528caa988cef4d5da
4
- data.tar.gz: 2ca44b916c3f3df91941160f3edd6ccb4d6adfaa
3
+ metadata.gz: 5a437c8177d1b662eab7cd7be8078976ad8d8de8
4
+ data.tar.gz: 293db61d21a0c32ac401482f5e17f17697b0cc04
5
5
  SHA512:
6
- metadata.gz: 193c5e8aa177d5c2313723bf97d866a121933f009f85c4687028115c18bd183b3fa5504b241238c13f40688a162781ecc0550fe9ff85707f52703775ba3ca82d
7
- data.tar.gz: f8af71a5c49c3ba5c94cf96f0c9ee104845c1153064a58b09c2d45f75d03bd623dd7f58d4f70eb23bf963824e1ad21d7893fbd73a7cd97b015e51c3daac92a3f
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
- * Import from neighborly-admin
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
- # Dune::Admin
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 [Dune](https://github.com/FromUte/dune), a Civic Crowdfunding platform.
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
- Dune::Admin is a Rails Engine, integrating with your (Dune) Rails application with very little of effort. To turn the engine on, mount it in an appropriate route:
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 Dune::Admin::Engine => '/admin/', as: :dune_admin
28
+ mount Neighborly::Admin::Engine => '/admin/', as: :neighborly_admin
30
29
  ```
31
30
  And load our JavaScript:
32
31
 
33
32
  ```
34
- //= require dune-admin
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 Dune's source code to be tested against your version of the gem. The following command will install the dummy app in `spec/dummy`.
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
- Dune.Dune ?= {}
2
- Dune.Dune.Admin ?= {}
1
+ Neighborly.Neighborly ?= {}
2
+ Neighborly.Neighborly.Admin ?= {}
3
3
 
4
- Dune.Dune.Admin.modules =-> [Dune.Dune.Admin.Common,
5
- Dune.Dune.Admin.Modules.Sort]
4
+ Neighborly.Neighborly.Admin.modules =-> [Neighborly.Neighborly.Admin.Common,
5
+ Neighborly.Neighborly.Admin.Modules.Sort]
6
6
 
7
- Dune.Dune.Admin.Common = Backbone.View.extend
7
+ Neighborly.Neighborly.Admin.Common = Backbone.View.extend
8
8
  el: '.admin'
9
9
 
10
10
  initialize: ->
@@ -1,14 +1,14 @@
1
- Dune.Dune ?= {}
2
- Dune.Dune.Admin ?= {}
3
- Dune.Dune.Admin.Channels ?= {}
1
+ Neighborly.Neighborly ?= {}
2
+ Neighborly.Neighborly.Admin ?= {}
3
+ Neighborly.Neighborly.Admin.Channels ?= {}
4
4
 
5
- Dune.Dune.Admin.Channels.New =
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(Dune.markdownSettings)
10
+ this.$('.markdown-editor').markItUp(Neighborly.markdownSettings)
11
11
 
12
12
 
13
- Dune.Dune.Admin.Channels.Edit =
14
- modules: -> [Dune.Dune.Admin.Channels.New]
13
+ Neighborly.Neighborly.Admin.Channels.Edit =
14
+ modules: -> [Neighborly.Neighborly.Admin.Channels.New]
@@ -1,7 +1,7 @@
1
- class CreateDuneAdminFundingRaisedPerProjectReports < ActiveRecord::Migration
1
+ class CreateNeighborAdminFundingRaisedPerProjectReports < ActiveRecord::Migration
2
2
  def up
3
3
  execute <<-SQL
4
- CREATE OR REPLACE VIEW dune_admin_funding_raised_per_project_reports AS
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 :dune_admin_funding_raised_per_project_reports
19
+ drop_view :neighborly_admin_funding_raised_per_project_reports
20
20
  end
21
21
  end
@@ -1,7 +1,7 @@
1
- class CreateDuneAdminStatistics < ActiveRecord::Migration
1
+ class CreateNeighborlyAdminStatistics < ActiveRecord::Migration
2
2
  def up
3
3
  execute <<-SQL
4
- CREATE OR REPLACE VIEW dune_admin_statistics AS
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 dune_admin_statistics;
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', '>= 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
@@ -1,5 +1,5 @@
1
- require 'dune/admin/engine'
2
- require 'dune/admin/version'
1
+ require 'neighborly/admin/engine'
2
+ require 'neighborly/admin/version'
3
3
  require 'best_in_place'
4
4
  require 'postgres-copy'
5
5
 
@@ -1,5 +1,5 @@
1
1
  module Dune
2
2
  module Admin
3
- VERSION = '1.0.0'
3
+ VERSION = '1.2.0'
4
4
  end
5
5
  end
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.0.0
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-13 00:00:00.000000000 Z
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/20141005184741_create_dune_admin_funding_raised_per_project_reports.rb
178
- - db/migrate/20141005191509_create_dune_admin_statistics.rb
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.2.2
212
+ rubygems_version: 2.4.3
219
213
  signing_key:
220
214
  specification_version: 4
221
215
  summary: Dune Admin.