dune-admin 1.2.1 → 1.2.3

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: 6fa04380b0e2263a7cbb2272f23e28458f7dec68
4
- data.tar.gz: 4c9ffcfd72f62d3f24fb31d3c016a9be80193205
3
+ metadata.gz: d9f280b75ac2d26e88d1a3e4beb090ed0d2a46b2
4
+ data.tar.gz: d86c90f2ccac1b299acd58861584fe30669d071a
5
5
  SHA512:
6
- metadata.gz: 73db16284698916d784c9fa2c5776c9d922971fe39c1ee529718f51e0ed1840ca043a337e953ab127b0505dc9c03f95a4b483d2baf1bd36b93c6108d2108fb38
7
- data.tar.gz: 1a1df7016832b3cefe288ee8933597ac5cf4e2e5fbaa93f6bcf83b268f0684b83649020bbd0e131c372722d9f7f3aaedcca28384aff9d39cb196dd331e4582f4
6
+ metadata.gz: e6a68d768b2999406d3ed82bce8c06cebbdafcdbee8c8ca46a36874143743e57ac788f9a13c50c8ca7ab1e274e82650183b0251c8e629d8c27c3f4d8d22ed53d
7
+ data.tar.gz: 521833bf538b346d74bcb0469fb27a9ec25827705f63d6ae26db5c541baa8dd9118ccad2a831bd517ac0f4e7de703e7368c6f86a8de0906501076ecf774bd57b
data/CHANGELOG.md CHANGED
@@ -1,24 +1,5 @@
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
-
20
3
  ## 1.0.0
21
4
 
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.
5
+ * Import from neighborly-admin
data/README.md CHANGED
@@ -1,10 +1,11 @@
1
- # Neighborly::Admin
1
+ # Dune::Admin
2
+
2
3
 
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 [Neighborly](https://github.com/luminopolis/neighborly), a Civic Crowdfunding platform.
7
+ This is the admin of [Dune](https://github.com/FromUte/dune), a Civic Crowdfunding platform.
8
+ Originally create by neighborly developper
8
9
 
9
10
  ## How
10
11
 
@@ -12,7 +13,7 @@ Include this gem as dependency of your project, adding the following line in you
12
13
 
13
14
  ```ruby
14
15
  # Gemfile
15
- gem 'neighborly-admin'
16
+ gem 'dune-admin'
16
17
  ```
17
18
 
18
19
  And install the migrations:
@@ -21,16 +22,16 @@ And install the migrations:
21
22
  $ bundle exec rake railties:install:migrations db:migrate
22
23
  ```
23
24
 
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:
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:
25
26
 
26
27
  ```ruby
27
28
  # config/routes.rb
28
- mount Neighborly::Admin::Engine => '/admin/', as: :neighborly_admin
29
+ mount Dune::Admin::Engine => '/admin/', as: :dune_admin
29
30
  ```
30
31
  And load our JavaScript:
31
32
 
32
33
  ```
33
- //= require neighborly-admin
34
+ //= require dune-admin
34
35
  ```
35
36
 
36
37
  ## Contributing
@@ -45,7 +46,7 @@ And load our JavaScript:
45
46
 
46
47
  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.
47
48
 
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`.
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`.
49
50
 
50
51
  ```
51
52
  $ git submodule init
@@ -1,10 +1,10 @@
1
- Neighborly.Neighborly ?= {}
2
- Neighborly.Neighborly.Admin ?= {}
1
+ Dune.Dune ?= {}
2
+ Dune.Dune.Admin ?= {}
3
3
 
4
- Neighborly.Neighborly.Admin.modules =-> [Neighborly.Neighborly.Admin.Common,
5
- Neighborly.Neighborly.Admin.Modules.Sort]
4
+ Dune.Dune.Admin.modules =-> [Dune.Dune.Admin.Common,
5
+ Dune.Dune.Admin.Modules.Sort]
6
6
 
7
- Neighborly.Neighborly.Admin.Common = Backbone.View.extend
7
+ Dune.Dune.Admin.Common = Backbone.View.extend
8
8
  el: '.admin'
9
9
 
10
10
  initialize: ->
@@ -1,14 +1,14 @@
1
- Neighborly.Neighborly ?= {}
2
- Neighborly.Neighborly.Admin ?= {}
3
- Neighborly.Neighborly.Admin.Channels ?= {}
1
+ Dune.Dune ?= {}
2
+ Dune.Dune.Admin ?= {}
3
+ Dune.Dune.Admin.Channels ?= {}
4
4
 
5
- Neighborly.Neighborly.Admin.Channels.New =
5
+ Dune.Dune.Admin.Channels.New =
6
6
  init: Backbone.View.extend
7
7
  el: '.admin'
8
8
 
9
9
  initialize: ->
10
- this.$('.markdown-editor').markItUp(Neighborly.markdownSettings)
10
+ this.$('.markdown-editor').markItUp(Dune.markdownSettings)
11
11
 
12
12
 
13
- Neighborly.Neighborly.Admin.Channels.Edit =
14
- modules: -> [Neighborly.Neighborly.Admin.Channels.New]
13
+ Dune.Dune.Admin.Channels.Edit =
14
+ modules: -> [Dune.Dune.Admin.Channels.New]
@@ -41,7 +41,7 @@
41
41
  .text-right
42
42
  = link_to t('.edit'), edit_channel_path(channel), class: 'button tiny'
43
43
  |  
44
- = link_to t('.destroy'), channel_path(channel), method: :delete, confirm: t('neighborly.admin.confirm_dialog'), class: 'button tiny alert'
44
+ = link_to t('.destroy'), channel_path(channel), method: :delete, confirm: t('dune.admin.confirm_dialog'), class: 'button tiny alert'
45
45
  |    
46
46
  = link_to 'javascript:void(0);', class: 'button tiny secondary', data: {dropdown: "dropdown-#{channel.id}"} do
47
47
  i.icon-et-down-dir
@@ -32,7 +32,7 @@
32
32
  td = member.email
33
33
  td
34
34
  .text-right
35
- = link_to t('.destroy'), channel_member_path(parent, member), method: :delete, confirm: t('neighborly.admin.confirm_dialog'), class: 'button tiny alert'
35
+ = link_to t('.destroy'), channel_member_path(parent, member), method: :delete, confirm: t('dune.admin.confirm_dialog'), class: 'button tiny alert'
36
36
 
37
37
  = paginate @members
38
38
 
@@ -1,11 +1,11 @@
1
1
  nav.tabs
2
2
  ul
3
- li = tab_link_to t('neighborly.admin.dashboard.index.menu'), root_path
3
+ li = tab_link_to t('dune.admin.dashboard.index.menu'), root_path
4
4
  li = tab_link_to t('dune.admin.projects.index.menu'), projects_path
5
5
  li = tab_link_to t('dune.admin.contributions.index.menu'), contributions_path
6
6
  li = tab_link_to t('dune.admin.users.index.menu'), users_path
7
7
  li = tab_link_to t('dune.admin.channels.index.menu'), channels_path
8
- li = tab_link_to t('neighborly.admin.tags.index.menu'), tags_path
8
+ li = tab_link_to t('dune.admin.tags.index.menu'), tags_path
9
9
  li = tab_link_to t('dune.admin.press_assets.index.menu'), press_assets_path
10
10
  li = tab_link_to t('dune.admin.financials.index.menu'), financials_path
11
- li = tab_link_to t('neighborly.admin.contacts.index.menu'), contacts_path
11
+ li = tab_link_to t('dune.admin.contacts.index.menu'), contacts_path
@@ -144,7 +144,7 @@
144
144
 
145
145
  - if project.can_push_to_trash?
146
146
  li
147
- = link_to project_path(project), method: :delete, data: {confirm: t('neighborly.admin.confirm_dialog')} do
147
+ = link_to project_path(project), method: :delete, data: {confirm: t('dune.admin.confirm_dialog')} do
148
148
  = t('.send_to_trash')
149
149
  = paginate @projects
150
150
 
@@ -39,6 +39,6 @@
39
39
  .text-right
40
40
  = link_to t('.edit'), edit_tag_path(tag), class: 'button tiny'
41
41
  |  
42
- = link_to t('.destroy'), tag_path(tag), method: :delete, confirm: t('neighborly.admin.confirm_dialog'), class: 'button tiny alert'
42
+ = link_to t('.destroy'), tag_path(tag), method: :delete, confirm: t('dune.admin.confirm_dialog'), class: 'button tiny alert'
43
43
 
44
44
  = paginate @tags
@@ -1,5 +1,5 @@
1
1
  en:
2
- neighborly:
2
+ dune:
3
3
  admin:
4
4
  confirm_dialog: 'You are sure?'
5
5
  dashboard:
@@ -1,7 +1,7 @@
1
- class CreateNeighborAdminFundingRaisedPerProjectReports < ActiveRecord::Migration
1
+ class CreateDuneAdminFundingRaisedPerProjectReports < ActiveRecord::Migration
2
2
  def up
3
3
  execute <<-SQL
4
- CREATE OR REPLACE VIEW neighborly_admin_funding_raised_per_project_reports AS
4
+ CREATE OR REPLACE VIEW dune_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 CreateNeighborAdminFundingRaisedPerProjectReports < ActiveRecord::Migratio
16
16
  end
17
17
 
18
18
  def down
19
- drop_view :neighborly_admin_funding_raised_per_project_reports
19
+ drop_view :dune_admin_funding_raised_per_project_reports
20
20
  end
21
21
  end
@@ -1,7 +1,7 @@
1
- class CreateNeighborlyAdminStatistics < ActiveRecord::Migration
1
+ class CreateDuneAdminStatistics < ActiveRecord::Migration
2
2
  def up
3
3
  execute <<-SQL
4
- CREATE OR REPLACE VIEW neighborly_admin_statistics AS
4
+ CREATE OR REPLACE VIEW dune_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 CreateNeighborlyAdminStatistics < ActiveRecord::Migration
49
49
 
50
50
  def down
51
51
  execute <<-SQL
52
- DROP VIEW neighborly_admin_statistics;
52
+ DROP VIEW dune_admin_statistics;
53
53
  SQL
54
54
  end
55
55
  end
@@ -1,5 +1,5 @@
1
1
  module Dune
2
2
  module Admin
3
- VERSION = '1.2.1'
3
+ VERSION = '1.2.3'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,103 +1,103 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dune-admin
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.1
4
+ version: 1.2.3
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-12 00:00:00.000000000 Z
11
+ date: 2015-02-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - "~>"
17
+ - - ~>
18
18
  - !ruby/object:Gem::Version
19
19
  version: '4.0'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - "~>"
24
+ - - ~>
25
25
  - !ruby/object:Gem::Version
26
26
  version: '4.0'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: best_in_place
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - "~>"
31
+ - - ~>
32
32
  - !ruby/object:Gem::Version
33
33
  version: 3.0.0.rc1
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - "~>"
38
+ - - ~>
39
39
  - !ruby/object:Gem::Version
40
40
  version: 3.0.0.rc1
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: postgres-copy
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - "~>"
45
+ - - ~>
46
46
  - !ruby/object:Gem::Version
47
47
  version: 0.8.0
48
- - - ">="
48
+ - - '>='
49
49
  - !ruby/object:Gem::Version
50
50
  version: 0.8.0
51
51
  type: :runtime
52
52
  prerelease: false
53
53
  version_requirements: !ruby/object:Gem::Requirement
54
54
  requirements:
55
- - - "~>"
55
+ - - ~>
56
56
  - !ruby/object:Gem::Version
57
57
  version: 0.8.0
58
- - - ">="
58
+ - - '>='
59
59
  - !ruby/object:Gem::Version
60
60
  version: 0.8.0
61
61
  - !ruby/object:Gem::Dependency
62
62
  name: rake
63
63
  requirement: !ruby/object:Gem::Requirement
64
64
  requirements:
65
- - - "~>"
65
+ - - ~>
66
66
  - !ruby/object:Gem::Version
67
67
  version: '10.2'
68
68
  type: :development
69
69
  prerelease: false
70
70
  version_requirements: !ruby/object:Gem::Requirement
71
71
  requirements:
72
- - - "~>"
72
+ - - ~>
73
73
  - !ruby/object:Gem::Version
74
74
  version: '10.2'
75
75
  - !ruby/object:Gem::Dependency
76
76
  name: rspec-rails
77
77
  requirement: !ruby/object:Gem::Requirement
78
78
  requirements:
79
- - - "~>"
79
+ - - ~>
80
80
  - !ruby/object:Gem::Version
81
81
  version: '2.14'
82
82
  type: :development
83
83
  prerelease: false
84
84
  version_requirements: !ruby/object:Gem::Requirement
85
85
  requirements:
86
- - - "~>"
86
+ - - ~>
87
87
  - !ruby/object:Gem::Version
88
88
  version: '2.14'
89
89
  - !ruby/object:Gem::Dependency
90
90
  name: factory_girl_rails
91
91
  requirement: !ruby/object:Gem::Requirement
92
92
  requirements:
93
- - - "~>"
93
+ - - ~>
94
94
  - !ruby/object:Gem::Version
95
95
  version: '4.3'
96
96
  type: :development
97
97
  prerelease: false
98
98
  version_requirements: !ruby/object:Gem::Requirement
99
99
  requirements:
100
- - - "~>"
100
+ - - ~>
101
101
  - !ruby/object:Gem::Version
102
102
  version: '4.3'
103
103
  description: This is the admin of dune-investissement
@@ -108,10 +108,10 @@ executables:
108
108
  extensions: []
109
109
  extra_rdoc_files: []
110
110
  files:
111
- - ".gitignore"
112
- - ".gitmodules"
113
- - ".rspec"
114
- - ".travis.yml"
111
+ - .gitignore
112
+ - .gitmodules
113
+ - .rspec
114
+ - .travis.yml
115
115
  - CHANGELOG.md
116
116
  - Gemfile
117
117
  - LICENSE.txt
@@ -122,9 +122,9 @@ files:
122
122
  - app/assets/javascripts/dune/admin/admin.js.coffee
123
123
  - app/assets/javascripts/dune/admin/channels/new.js.coffee
124
124
  - app/assets/javascripts/dune/admin/modules/sort.js.coffee
125
+ - app/assets/stylesheets/dune-admin.sass
125
126
  - app/assets/stylesheets/dune/admin/.gitkip
126
127
  - app/assets/stylesheets/dune/admin/admin.sass
127
- - app/assets/stylesheets/neighborly-admin.sass
128
128
  - app/controllers/dune/admin/base_controller.rb
129
129
  - app/controllers/dune/admin/channels/members_controller.rb
130
130
  - app/controllers/dune/admin/channels_controller.rb
@@ -174,8 +174,8 @@ files:
174
174
  - bin/rails
175
175
  - config/locales/en.yml
176
176
  - config/routes.rb
177
- - db/migrate/20141005184741_create_neighbor_admin_funding_raised_per_project_reports.rb
178
- - db/migrate/20141005191509_create_neighborly_admin_statistics.rb
177
+ - db/migrate/20141005184741_create_dune_admin_funding_raised_per_project_reports.rb
178
+ - db/migrate/20141005191509_create_dune_admin_statistics.rb
179
179
  - dune-admin.gemspec
180
180
  - lib/dune/admin.rb
181
181
  - lib/dune/admin/engine.rb
@@ -205,17 +205,17 @@ require_paths:
205
205
  - lib
206
206
  required_ruby_version: !ruby/object:Gem::Requirement
207
207
  requirements:
208
- - - ">="
208
+ - - '>='
209
209
  - !ruby/object:Gem::Version
210
210
  version: '0'
211
211
  required_rubygems_version: !ruby/object:Gem::Requirement
212
212
  requirements:
213
- - - ">="
213
+ - - '>='
214
214
  - !ruby/object:Gem::Version
215
215
  version: '0'
216
216
  requirements: []
217
217
  rubyforge_project:
218
- rubygems_version: 2.2.2
218
+ rubygems_version: 2.0.14
219
219
  signing_key:
220
220
  specification_version: 4
221
221
  summary: Dune Admin.