dune-admin 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/.gitignore +17 -0
- data/.gitmodules +3 -0
- data/.rspec +2 -0
- data/.travis.yml +18 -0
- data/CHANGELOG.md +5 -0
- data/Gemfile +14 -0
- data/LICENSE.txt +22 -0
- data/README.md +74 -0
- data/Rakefile +14 -0
- data/app/assets/images/dune/admin/.gitkip +0 -0
- data/app/assets/javascripts/dune-admin.js +2 -0
- data/app/assets/javascripts/dune/admin/admin.js.coffee +11 -0
- data/app/assets/javascripts/dune/admin/channels/new.js.coffee +14 -0
- data/app/assets/javascripts/dune/admin/modules/sort.js.coffee +44 -0
- data/app/assets/stylesheets/dune/admin/.gitkip +0 -0
- data/app/assets/stylesheets/dune/admin/admin.sass +37 -0
- data/app/assets/stylesheets/neighborly-admin.sass +1 -0
- data/app/controllers/dune/admin/base_controller.rb +25 -0
- data/app/controllers/dune/admin/channels/members_controller.rb +46 -0
- data/app/controllers/dune/admin/channels_controller.rb +49 -0
- data/app/controllers/dune/admin/contacts_controller.rb +9 -0
- data/app/controllers/dune/admin/contributions_controller.rb +33 -0
- data/app/controllers/dune/admin/dashboard_controller.rb +8 -0
- data/app/controllers/dune/admin/financials_controller.rb +33 -0
- data/app/controllers/dune/admin/press_assets_controller.rb +26 -0
- data/app/controllers/dune/admin/projects_controller.rb +80 -0
- data/app/controllers/dune/admin/reports/base_controller.rb +8 -0
- data/app/controllers/dune/admin/reports/contribution_reports_controller.rb +8 -0
- data/app/controllers/dune/admin/reports/funding_raised_per_project_reports_controller.rb +4 -0
- data/app/controllers/dune/admin/reports/statistics_controller.rb +5 -0
- data/app/controllers/dune/admin/tags_controller.rb +35 -0
- data/app/controllers/dune/admin/users_controller.rb +27 -0
- data/app/models/dune/admin/.gitkip +0 -0
- data/app/models/dune/admin/contribution_concern.rb +23 -0
- data/app/models/dune/admin/funding_raised_per_project_report.rb +5 -0
- data/app/models/dune/admin/project_concern.rb +41 -0
- data/app/models/dune/admin/statistics.rb +5 -0
- data/app/models/dune/admin/user_concern.rb +13 -0
- data/app/policies/dune/admin/admin_policy.rb +7 -0
- data/app/views/dune/admin/.gitkip +0 -0
- data/app/views/dune/admin/channels/_form.html.slim +98 -0
- data/app/views/dune/admin/channels/edit.html.slim +7 -0
- data/app/views/dune/admin/channels/index.html.slim +58 -0
- data/app/views/dune/admin/channels/members/index.html.slim +38 -0
- data/app/views/dune/admin/channels/members/new.html.slim +11 -0
- data/app/views/dune/admin/channels/new.html.slim +7 -0
- data/app/views/dune/admin/contacts/index.html.slim +32 -0
- data/app/views/dune/admin/contacts/show.html.slim +34 -0
- data/app/views/dune/admin/contributions/index.html.slim +138 -0
- data/app/views/dune/admin/dashboard/index.html.slim +65 -0
- data/app/views/dune/admin/financials/index.html.slim +88 -0
- data/app/views/dune/admin/layouts/_menu.html.slim +11 -0
- data/app/views/dune/admin/press_assets/_form.html.slim +11 -0
- data/app/views/dune/admin/press_assets/edit.html.slim +9 -0
- data/app/views/dune/admin/press_assets/index.html.slim +32 -0
- data/app/views/dune/admin/press_assets/new.html.slim +9 -0
- data/app/views/dune/admin/projects/index.html.slim +151 -0
- data/app/views/dune/admin/projects/populate_contribution.html.slim +48 -0
- data/app/views/dune/admin/tags/_form.html.slim +4 -0
- data/app/views/dune/admin/tags/edit.html.slim +7 -0
- data/app/views/dune/admin/tags/index.html.slim +44 -0
- data/app/views/dune/admin/tags/new.html.slim +7 -0
- data/app/views/dune/admin/users/index.html.slim +68 -0
- data/bin/rails +8 -0
- data/config/locales/en.yml +274 -0
- data/config/routes.rb +47 -0
- data/db/migrate/20141005184741_create_dune_admin_funding_raised_per_project_reports.rb +21 -0
- data/db/migrate/20141005191509_create_dune_admin_statistics.rb +55 -0
- data/dune-admin.gemspec +27 -0
- data/lib/dune/admin.rb +10 -0
- data/lib/dune/admin/engine.rb +13 -0
- data/lib/dune/admin/version.rb +5 -0
- data/spec/controllers/dune/admin/channels/members_controller_spec.rb +119 -0
- data/spec/controllers/dune/admin/channels_controller_spec.rb +161 -0
- data/spec/controllers/dune/admin/contacts_controller_spec.rb +23 -0
- data/spec/controllers/dune/admin/cotributions_controller_spec.rb +130 -0
- data/spec/controllers/dune/admin/dasboard_controller_spec.rb +18 -0
- data/spec/controllers/dune/admin/financials_controller_spec.rb +45 -0
- data/spec/controllers/dune/admin/press_assets_controller_spec.rb +138 -0
- data/spec/controllers/dune/admin/projects_controller_spec.rb +201 -0
- data/spec/controllers/dune/admin/tags_controller_spec.rb +137 -0
- data/spec/controllers/dune/admin/users_controller_spec.rb +30 -0
- data/spec/models/dune/admin/contribution_concern_spec.rb +19 -0
- data/spec/models/dune/admin/project_concern_spec.rb +56 -0
- data/spec/models/dune/admin/user_concern_spec.rb +65 -0
- data/spec/policies/dune/admin/admin_policy_spec.rb +22 -0
- data/spec/spec_helper.rb +40 -0
- metadata +237 -0
|
@@ -0,0 +1,137 @@
|
|
|
1
|
+
require 'spec_helper'
|
|
2
|
+
|
|
3
|
+
describe Dune::Admin::TagsController do
|
|
4
|
+
routes { Dune::Admin::Engine.routes }
|
|
5
|
+
subject{ response }
|
|
6
|
+
let(:admin) { create(:user, admin: true) }
|
|
7
|
+
let(:current_user){ admin }
|
|
8
|
+
|
|
9
|
+
before do
|
|
10
|
+
controller.stub(:current_user).and_return(current_user)
|
|
11
|
+
end
|
|
12
|
+
|
|
13
|
+
describe "GET index" do
|
|
14
|
+
context "when I'm not logged in" do
|
|
15
|
+
let(:current_user){ nil }
|
|
16
|
+
before do
|
|
17
|
+
get :index
|
|
18
|
+
end
|
|
19
|
+
it{ should redirect_to '/login' }
|
|
20
|
+
end
|
|
21
|
+
|
|
22
|
+
context "when I'm logged as admin" do
|
|
23
|
+
before do
|
|
24
|
+
get :index
|
|
25
|
+
end
|
|
26
|
+
its(:status){ should == 200 }
|
|
27
|
+
end
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
describe "GET edit" do
|
|
31
|
+
let(:tag) { create(:tag) }
|
|
32
|
+
context "when I'm not logged in" do
|
|
33
|
+
let(:current_user){ nil }
|
|
34
|
+
before do
|
|
35
|
+
get :edit, id: tag
|
|
36
|
+
end
|
|
37
|
+
it{ should redirect_to '/login' }
|
|
38
|
+
end
|
|
39
|
+
|
|
40
|
+
context "when I'm logged as admin" do
|
|
41
|
+
before do
|
|
42
|
+
get :edit, id: tag
|
|
43
|
+
end
|
|
44
|
+
its(:status){ should == 200 }
|
|
45
|
+
|
|
46
|
+
it 'should assigns the correct resource' do
|
|
47
|
+
expect(assigns(:tag)).to eq tag
|
|
48
|
+
end
|
|
49
|
+
end
|
|
50
|
+
end
|
|
51
|
+
|
|
52
|
+
describe "PUT update" do
|
|
53
|
+
let(:tag) { create(:tag) }
|
|
54
|
+
|
|
55
|
+
context "when I'm not logged in" do
|
|
56
|
+
let(:current_user){ nil }
|
|
57
|
+
before do
|
|
58
|
+
put :update, id: tag
|
|
59
|
+
end
|
|
60
|
+
it{ should redirect_to '/login' }
|
|
61
|
+
end
|
|
62
|
+
|
|
63
|
+
context "when I'm logged as admin" do
|
|
64
|
+
before do
|
|
65
|
+
put :update, id: tag, tag: { name: 'updated name!' }
|
|
66
|
+
end
|
|
67
|
+
|
|
68
|
+
it{ should redirect_to tags_path }
|
|
69
|
+
|
|
70
|
+
it 'should update tag name' do
|
|
71
|
+
expect(tag.reload.name).to eq 'updated name!'
|
|
72
|
+
end
|
|
73
|
+
end
|
|
74
|
+
end
|
|
75
|
+
|
|
76
|
+
describe "GET new" do
|
|
77
|
+
context "when I'm not logged in" do
|
|
78
|
+
let(:current_user){ nil }
|
|
79
|
+
before do
|
|
80
|
+
get :new
|
|
81
|
+
end
|
|
82
|
+
it{ should redirect_to '/login' }
|
|
83
|
+
end
|
|
84
|
+
|
|
85
|
+
context "when I'm logged as admin" do
|
|
86
|
+
before do
|
|
87
|
+
get :new
|
|
88
|
+
end
|
|
89
|
+
its(:status){ should == 200 }
|
|
90
|
+
end
|
|
91
|
+
end
|
|
92
|
+
|
|
93
|
+
describe "POST create" do
|
|
94
|
+
context "when I'm not logged in" do
|
|
95
|
+
let(:current_user){ nil }
|
|
96
|
+
before do
|
|
97
|
+
post :create
|
|
98
|
+
end
|
|
99
|
+
it{ should redirect_to '/login' }
|
|
100
|
+
end
|
|
101
|
+
|
|
102
|
+
context "when I'm logged as admin" do
|
|
103
|
+
before do
|
|
104
|
+
post :create, tag: build(:tag).attributes
|
|
105
|
+
end
|
|
106
|
+
|
|
107
|
+
it{ should redirect_to tags_path }
|
|
108
|
+
|
|
109
|
+
it 'should create a new tag' do
|
|
110
|
+
expect(Tag.all).to have(1).tag
|
|
111
|
+
end
|
|
112
|
+
end
|
|
113
|
+
end
|
|
114
|
+
|
|
115
|
+
describe "DELETE destroy" do
|
|
116
|
+
let(:tag) { create(:tag) }
|
|
117
|
+
|
|
118
|
+
context "when I'm not logged in" do
|
|
119
|
+
let(:current_user){ nil }
|
|
120
|
+
before do
|
|
121
|
+
delete :destroy, id: tag
|
|
122
|
+
end
|
|
123
|
+
it{ should redirect_to '/login' }
|
|
124
|
+
end
|
|
125
|
+
|
|
126
|
+
context "when I'm logged as admin" do
|
|
127
|
+
before { delete :destroy, id: tag }
|
|
128
|
+
|
|
129
|
+
it{ should redirect_to tags_path }
|
|
130
|
+
|
|
131
|
+
it 'should destroy the tag' do
|
|
132
|
+
expect{ tag.reload }.to raise_error(ActiveRecord::RecordNotFound)
|
|
133
|
+
end
|
|
134
|
+
end
|
|
135
|
+
end
|
|
136
|
+
end
|
|
137
|
+
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
require 'spec_helper'
|
|
2
|
+
|
|
3
|
+
describe Dune::Admin::UsersController do
|
|
4
|
+
routes { Dune::Admin::Engine.routes }
|
|
5
|
+
subject{ response }
|
|
6
|
+
let(:admin) { create(:user, admin: true) }
|
|
7
|
+
let(:current_user){ admin }
|
|
8
|
+
before do
|
|
9
|
+
controller.stub(:current_user).and_return(current_user)
|
|
10
|
+
end
|
|
11
|
+
|
|
12
|
+
describe "GET index" do
|
|
13
|
+
context "when I'm not logged in" do
|
|
14
|
+
let(:current_user){ nil }
|
|
15
|
+
before do
|
|
16
|
+
get :index, :locale => :pt
|
|
17
|
+
end
|
|
18
|
+
it{ should redirect_to '/login' }
|
|
19
|
+
end
|
|
20
|
+
|
|
21
|
+
context "when I'm logged as admin" do
|
|
22
|
+
before do
|
|
23
|
+
get :index, :locale => :pt
|
|
24
|
+
end
|
|
25
|
+
its(:status){ should == 200 }
|
|
26
|
+
end
|
|
27
|
+
end
|
|
28
|
+
|
|
29
|
+
end
|
|
30
|
+
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
require 'spec_helper'
|
|
2
|
+
|
|
3
|
+
describe Dune::Admin::ContributionConcern do
|
|
4
|
+
describe '.between_values' do
|
|
5
|
+
let(:start_at) { 10 }
|
|
6
|
+
let(:ends_at) { 20 }
|
|
7
|
+
subject { Contribution.between_values(start_at, ends_at) }
|
|
8
|
+
|
|
9
|
+
before do
|
|
10
|
+
create(:contribution, value: 10)
|
|
11
|
+
create(:contribution, value: 15)
|
|
12
|
+
create(:contribution, value: 20)
|
|
13
|
+
create(:contribution, value: 21)
|
|
14
|
+
end
|
|
15
|
+
|
|
16
|
+
it { should have(3).itens }
|
|
17
|
+
end
|
|
18
|
+
end
|
|
19
|
+
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
require 'spec_helper'
|
|
2
|
+
|
|
3
|
+
describe Dune::Admin::ProjectConcern do
|
|
4
|
+
subject { Project }
|
|
5
|
+
|
|
6
|
+
describe '.by_progress' do
|
|
7
|
+
subject { Project.by_progress(20) }
|
|
8
|
+
|
|
9
|
+
before do
|
|
10
|
+
@project_01 = create(:project, goal: 100)
|
|
11
|
+
@project_02 = create(:project, goal: 100)
|
|
12
|
+
@project_03 = create(:project, goal: 100)
|
|
13
|
+
|
|
14
|
+
create(:contribution, value: 10, project: @project_01)
|
|
15
|
+
create(:contribution, value: 10, project: @project_01)
|
|
16
|
+
create(:contribution, value: 30, project: @project_02)
|
|
17
|
+
create(:contribution, value: 10, project: @project_03)
|
|
18
|
+
end
|
|
19
|
+
|
|
20
|
+
it { should have(2).itens }
|
|
21
|
+
end
|
|
22
|
+
|
|
23
|
+
describe '.goal_between' do
|
|
24
|
+
let(:start_at) { 100 }
|
|
25
|
+
let(:ends_at) { 200 }
|
|
26
|
+
subject { Project.goal_between(start_at, ends_at).order('goal asc') }
|
|
27
|
+
|
|
28
|
+
before do
|
|
29
|
+
@project_01 = create(:project, goal: 100)
|
|
30
|
+
@project_02 = create(:project, goal: 200)
|
|
31
|
+
@project_03 = create(:project, created_at: 300)
|
|
32
|
+
end
|
|
33
|
+
|
|
34
|
+
it { expect(subject.to_a).to eq [@project_01, @project_02] }
|
|
35
|
+
end
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
describe '.between_expires_at' do
|
|
39
|
+
let(:start_at) { '17/01/2013' }
|
|
40
|
+
let(:ends_at) { '21/01/2013' }
|
|
41
|
+
subject { Project.between_expires_at(start_at, ends_at).order("id desc") }
|
|
42
|
+
|
|
43
|
+
let(:project_01) { create(:project) }
|
|
44
|
+
let(:project_02) { create(:project) }
|
|
45
|
+
let(:project_03) { create(:project) }
|
|
46
|
+
|
|
47
|
+
before do
|
|
48
|
+
project_01.update_attributes({ online_date: '17/01/2013'.to_time, online_days: 0 })
|
|
49
|
+
project_02.update_attributes({ online_date: '21/01/2013'.to_time, online_days: 0 })
|
|
50
|
+
project_03.update_attributes({ online_date: '23/01/2013'.to_time, online_days: 0 })
|
|
51
|
+
end
|
|
52
|
+
|
|
53
|
+
it { should == [project_02, project_01] }
|
|
54
|
+
end
|
|
55
|
+
|
|
56
|
+
end
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
require 'spec_helper'
|
|
2
|
+
|
|
3
|
+
describe Dune::Admin::UserConcern do
|
|
4
|
+
subject { User }
|
|
5
|
+
|
|
6
|
+
describe ".by_email" do
|
|
7
|
+
before do
|
|
8
|
+
@u = create(:user, email: 'foo@bar.com')
|
|
9
|
+
create(:user, email: 'another_email@bar.com')
|
|
10
|
+
end
|
|
11
|
+
subject{ User.by_email 'foo@bar' }
|
|
12
|
+
it{ should == [@u] }
|
|
13
|
+
end
|
|
14
|
+
|
|
15
|
+
describe ".by_name" do
|
|
16
|
+
before do
|
|
17
|
+
@u = create(:user, name: 'Foo Bar')
|
|
18
|
+
create(:user, name: 'Baz Qux')
|
|
19
|
+
end
|
|
20
|
+
subject{ User.by_name 'Bar' }
|
|
21
|
+
it{ should == [@u] }
|
|
22
|
+
end
|
|
23
|
+
|
|
24
|
+
describe ".by_id" do
|
|
25
|
+
before do
|
|
26
|
+
@u = create(:user)
|
|
27
|
+
create(:user)
|
|
28
|
+
end
|
|
29
|
+
subject{ User.by_id @u.id }
|
|
30
|
+
it{ should == [@u] }
|
|
31
|
+
end
|
|
32
|
+
|
|
33
|
+
describe ".by_key" do
|
|
34
|
+
before do
|
|
35
|
+
b = create(:contribution)
|
|
36
|
+
@u = b.user
|
|
37
|
+
b.key = 'abc'
|
|
38
|
+
b.save!
|
|
39
|
+
b = create(:contribution, user: @u)
|
|
40
|
+
b.key = 'abcde'
|
|
41
|
+
b.save!
|
|
42
|
+
b = create(:contribution)
|
|
43
|
+
b.key = 'def'
|
|
44
|
+
b.save!
|
|
45
|
+
end
|
|
46
|
+
subject{ User.by_key 'abc' }
|
|
47
|
+
it{ should == [@u] }
|
|
48
|
+
end
|
|
49
|
+
|
|
50
|
+
describe ".has_credits" do
|
|
51
|
+
subject{ User.has_credits }
|
|
52
|
+
let(:failed_project){ create(:project, state: 'online') }
|
|
53
|
+
let(:successful_project){ create(:project, state: 'online') }
|
|
54
|
+
|
|
55
|
+
context "when he has credits in the user_total" do
|
|
56
|
+
before do
|
|
57
|
+
b = create(:contribution, state: 'confirmed', value: 100, project: failed_project)
|
|
58
|
+
failed_project.update_attributes state: 'failed'
|
|
59
|
+
@u = b.user
|
|
60
|
+
b = create(:contribution, state: 'confirmed', value: 100, project: successful_project)
|
|
61
|
+
end
|
|
62
|
+
it{ should == [@u] }
|
|
63
|
+
end
|
|
64
|
+
end
|
|
65
|
+
end
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
require 'spec_helper'
|
|
2
|
+
|
|
3
|
+
describe Dune::Admin::AdminPolicy do
|
|
4
|
+
subject { described_class }
|
|
5
|
+
|
|
6
|
+
permissions :access? do
|
|
7
|
+
it 'denies access if user is nil' do
|
|
8
|
+
expect(subject).not_to permit(nil, Dune::Admin)
|
|
9
|
+
end
|
|
10
|
+
|
|
11
|
+
it 'denies access if user is not admin' do
|
|
12
|
+
expect(subject).not_to permit(User.new, Dune::Admin)
|
|
13
|
+
end
|
|
14
|
+
|
|
15
|
+
it 'permits access if user is admin' do
|
|
16
|
+
user = User.new
|
|
17
|
+
user.admin = true
|
|
18
|
+
expect(subject).to permit(user, Dune::Admin)
|
|
19
|
+
end
|
|
20
|
+
end
|
|
21
|
+
end
|
|
22
|
+
|
data/spec/spec_helper.rb
ADDED
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
# Configure Rails Envinronment
|
|
2
|
+
ENV["RAILS_ENV"] = "test"
|
|
3
|
+
|
|
4
|
+
require File.expand_path("../dummy/config/environment.rb", __FILE__)
|
|
5
|
+
require 'rspec/rails'
|
|
6
|
+
require 'sidekiq/testing'
|
|
7
|
+
require 'pundit/rspec'
|
|
8
|
+
|
|
9
|
+
ENGINE_RAILS_ROOT=File.join(File.dirname(__FILE__), '../')
|
|
10
|
+
|
|
11
|
+
# Requires supporting ruby files with custom matchers and macros, etc,
|
|
12
|
+
# in spec/support/ and its subdirectories.
|
|
13
|
+
Dir[File.join(ENGINE_RAILS_ROOT, "spec/support/**/*.rb")].each {|f| require f }
|
|
14
|
+
|
|
15
|
+
RSpec.configure do |config|
|
|
16
|
+
config.use_transactional_fixtures = true
|
|
17
|
+
config.include FactoryGirl::Syntax::Methods
|
|
18
|
+
|
|
19
|
+
# Stubs and configuration
|
|
20
|
+
config.before(:each) do
|
|
21
|
+
result = OpenStruct.new 'latitude' => 40.7143528,
|
|
22
|
+
'longitude' => -74.0059731,
|
|
23
|
+
'address' => 'New York, NY, USA',
|
|
24
|
+
'state' => 'New York',
|
|
25
|
+
'state_code' => 'NY',
|
|
26
|
+
'country' => 'United States',
|
|
27
|
+
'country_code' => 'US'
|
|
28
|
+
Geocoder.stub :search => [Geocoder::Result::Base.stub(:new).and_return(result)]
|
|
29
|
+
Geocoder.stub :coordinates => [result.latitude, result.longitude]
|
|
30
|
+
|
|
31
|
+
User.any_instance.stub(:subscribe_to_newsletter_list).and_return(true)
|
|
32
|
+
User.any_instance.stub(:unsubscribe_to_newsletter_list).and_return(true)
|
|
33
|
+
Project.any_instance.stub(:store_image_url).and_return('http://www.store_image_url.com')
|
|
34
|
+
ProjectObserver.any_instance.stub(:after_create)
|
|
35
|
+
UserObserver.any_instance.stub(:after_create)
|
|
36
|
+
Project.any_instance.stub(:download_video_thumbnail)
|
|
37
|
+
Notification.stub(:notify)
|
|
38
|
+
Notification.stub(:notify_once)
|
|
39
|
+
end
|
|
40
|
+
end
|
metadata
ADDED
|
@@ -0,0 +1,237 @@
|
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
|
2
|
+
name: dune-admin
|
|
3
|
+
version: !ruby/object:Gem::Version
|
|
4
|
+
version: 1.0.0
|
|
5
|
+
platform: ruby
|
|
6
|
+
authors:
|
|
7
|
+
- Pierre Legrand
|
|
8
|
+
autorequire:
|
|
9
|
+
bindir: bin
|
|
10
|
+
cert_chain: []
|
|
11
|
+
date: 2015-02-13 00:00:00.000000000 Z
|
|
12
|
+
dependencies:
|
|
13
|
+
- !ruby/object:Gem::Dependency
|
|
14
|
+
name: rails
|
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
|
16
|
+
requirements:
|
|
17
|
+
- - "~>"
|
|
18
|
+
- !ruby/object:Gem::Version
|
|
19
|
+
version: '4.0'
|
|
20
|
+
type: :runtime
|
|
21
|
+
prerelease: false
|
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
23
|
+
requirements:
|
|
24
|
+
- - "~>"
|
|
25
|
+
- !ruby/object:Gem::Version
|
|
26
|
+
version: '4.0'
|
|
27
|
+
- !ruby/object:Gem::Dependency
|
|
28
|
+
name: best_in_place
|
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
|
30
|
+
requirements:
|
|
31
|
+
- - "~>"
|
|
32
|
+
- !ruby/object:Gem::Version
|
|
33
|
+
version: 3.0.0.rc1
|
|
34
|
+
type: :runtime
|
|
35
|
+
prerelease: false
|
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
37
|
+
requirements:
|
|
38
|
+
- - "~>"
|
|
39
|
+
- !ruby/object:Gem::Version
|
|
40
|
+
version: 3.0.0.rc1
|
|
41
|
+
- !ruby/object:Gem::Dependency
|
|
42
|
+
name: postgres-copy
|
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
|
44
|
+
requirements:
|
|
45
|
+
- - "~>"
|
|
46
|
+
- !ruby/object:Gem::Version
|
|
47
|
+
version: 0.8.0
|
|
48
|
+
- - ">="
|
|
49
|
+
- !ruby/object:Gem::Version
|
|
50
|
+
version: 0.8.0
|
|
51
|
+
type: :runtime
|
|
52
|
+
prerelease: false
|
|
53
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
54
|
+
requirements:
|
|
55
|
+
- - "~>"
|
|
56
|
+
- !ruby/object:Gem::Version
|
|
57
|
+
version: 0.8.0
|
|
58
|
+
- - ">="
|
|
59
|
+
- !ruby/object:Gem::Version
|
|
60
|
+
version: 0.8.0
|
|
61
|
+
- !ruby/object:Gem::Dependency
|
|
62
|
+
name: rake
|
|
63
|
+
requirement: !ruby/object:Gem::Requirement
|
|
64
|
+
requirements:
|
|
65
|
+
- - "~>"
|
|
66
|
+
- !ruby/object:Gem::Version
|
|
67
|
+
version: '10.2'
|
|
68
|
+
type: :development
|
|
69
|
+
prerelease: false
|
|
70
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
71
|
+
requirements:
|
|
72
|
+
- - "~>"
|
|
73
|
+
- !ruby/object:Gem::Version
|
|
74
|
+
version: '10.2'
|
|
75
|
+
- !ruby/object:Gem::Dependency
|
|
76
|
+
name: rspec-rails
|
|
77
|
+
requirement: !ruby/object:Gem::Requirement
|
|
78
|
+
requirements:
|
|
79
|
+
- - "~>"
|
|
80
|
+
- !ruby/object:Gem::Version
|
|
81
|
+
version: '2.14'
|
|
82
|
+
type: :development
|
|
83
|
+
prerelease: false
|
|
84
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
85
|
+
requirements:
|
|
86
|
+
- - "~>"
|
|
87
|
+
- !ruby/object:Gem::Version
|
|
88
|
+
version: '2.14'
|
|
89
|
+
- !ruby/object:Gem::Dependency
|
|
90
|
+
name: factory_girl_rails
|
|
91
|
+
requirement: !ruby/object:Gem::Requirement
|
|
92
|
+
requirements:
|
|
93
|
+
- - "~>"
|
|
94
|
+
- !ruby/object:Gem::Version
|
|
95
|
+
version: '4.3'
|
|
96
|
+
type: :development
|
|
97
|
+
prerelease: false
|
|
98
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
99
|
+
requirements:
|
|
100
|
+
- - "~>"
|
|
101
|
+
- !ruby/object:Gem::Version
|
|
102
|
+
version: '4.3'
|
|
103
|
+
description: This is the admin of dune-investissement
|
|
104
|
+
email:
|
|
105
|
+
- legrand.work@gmail.com
|
|
106
|
+
executables:
|
|
107
|
+
- rails
|
|
108
|
+
extensions: []
|
|
109
|
+
extra_rdoc_files: []
|
|
110
|
+
files:
|
|
111
|
+
- ".gitignore"
|
|
112
|
+
- ".gitmodules"
|
|
113
|
+
- ".rspec"
|
|
114
|
+
- ".travis.yml"
|
|
115
|
+
- CHANGELOG.md
|
|
116
|
+
- Gemfile
|
|
117
|
+
- LICENSE.txt
|
|
118
|
+
- README.md
|
|
119
|
+
- Rakefile
|
|
120
|
+
- app/assets/images/dune/admin/.gitkip
|
|
121
|
+
- app/assets/javascripts/dune-admin.js
|
|
122
|
+
- app/assets/javascripts/dune/admin/admin.js.coffee
|
|
123
|
+
- app/assets/javascripts/dune/admin/channels/new.js.coffee
|
|
124
|
+
- app/assets/javascripts/dune/admin/modules/sort.js.coffee
|
|
125
|
+
- app/assets/stylesheets/dune/admin/.gitkip
|
|
126
|
+
- app/assets/stylesheets/dune/admin/admin.sass
|
|
127
|
+
- app/assets/stylesheets/neighborly-admin.sass
|
|
128
|
+
- app/controllers/dune/admin/base_controller.rb
|
|
129
|
+
- app/controllers/dune/admin/channels/members_controller.rb
|
|
130
|
+
- app/controllers/dune/admin/channels_controller.rb
|
|
131
|
+
- app/controllers/dune/admin/contacts_controller.rb
|
|
132
|
+
- app/controllers/dune/admin/contributions_controller.rb
|
|
133
|
+
- app/controllers/dune/admin/dashboard_controller.rb
|
|
134
|
+
- app/controllers/dune/admin/financials_controller.rb
|
|
135
|
+
- app/controllers/dune/admin/press_assets_controller.rb
|
|
136
|
+
- app/controllers/dune/admin/projects_controller.rb
|
|
137
|
+
- app/controllers/dune/admin/reports/base_controller.rb
|
|
138
|
+
- app/controllers/dune/admin/reports/contribution_reports_controller.rb
|
|
139
|
+
- app/controllers/dune/admin/reports/funding_raised_per_project_reports_controller.rb
|
|
140
|
+
- app/controllers/dune/admin/reports/statistics_controller.rb
|
|
141
|
+
- app/controllers/dune/admin/tags_controller.rb
|
|
142
|
+
- app/controllers/dune/admin/users_controller.rb
|
|
143
|
+
- app/models/dune/admin/.gitkip
|
|
144
|
+
- app/models/dune/admin/contribution_concern.rb
|
|
145
|
+
- app/models/dune/admin/funding_raised_per_project_report.rb
|
|
146
|
+
- app/models/dune/admin/project_concern.rb
|
|
147
|
+
- app/models/dune/admin/statistics.rb
|
|
148
|
+
- app/models/dune/admin/user_concern.rb
|
|
149
|
+
- app/policies/dune/admin/admin_policy.rb
|
|
150
|
+
- app/views/dune/admin/.gitkip
|
|
151
|
+
- app/views/dune/admin/channels/_form.html.slim
|
|
152
|
+
- app/views/dune/admin/channels/edit.html.slim
|
|
153
|
+
- app/views/dune/admin/channels/index.html.slim
|
|
154
|
+
- app/views/dune/admin/channels/members/index.html.slim
|
|
155
|
+
- app/views/dune/admin/channels/members/new.html.slim
|
|
156
|
+
- app/views/dune/admin/channels/new.html.slim
|
|
157
|
+
- app/views/dune/admin/contacts/index.html.slim
|
|
158
|
+
- app/views/dune/admin/contacts/show.html.slim
|
|
159
|
+
- app/views/dune/admin/contributions/index.html.slim
|
|
160
|
+
- app/views/dune/admin/dashboard/index.html.slim
|
|
161
|
+
- app/views/dune/admin/financials/index.html.slim
|
|
162
|
+
- app/views/dune/admin/layouts/_menu.html.slim
|
|
163
|
+
- app/views/dune/admin/press_assets/_form.html.slim
|
|
164
|
+
- app/views/dune/admin/press_assets/edit.html.slim
|
|
165
|
+
- app/views/dune/admin/press_assets/index.html.slim
|
|
166
|
+
- app/views/dune/admin/press_assets/new.html.slim
|
|
167
|
+
- app/views/dune/admin/projects/index.html.slim
|
|
168
|
+
- app/views/dune/admin/projects/populate_contribution.html.slim
|
|
169
|
+
- app/views/dune/admin/tags/_form.html.slim
|
|
170
|
+
- app/views/dune/admin/tags/edit.html.slim
|
|
171
|
+
- app/views/dune/admin/tags/index.html.slim
|
|
172
|
+
- app/views/dune/admin/tags/new.html.slim
|
|
173
|
+
- app/views/dune/admin/users/index.html.slim
|
|
174
|
+
- bin/rails
|
|
175
|
+
- config/locales/en.yml
|
|
176
|
+
- 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
|
|
179
|
+
- dune-admin.gemspec
|
|
180
|
+
- lib/dune/admin.rb
|
|
181
|
+
- lib/dune/admin/engine.rb
|
|
182
|
+
- lib/dune/admin/version.rb
|
|
183
|
+
- spec/controllers/dune/admin/channels/members_controller_spec.rb
|
|
184
|
+
- spec/controllers/dune/admin/channels_controller_spec.rb
|
|
185
|
+
- spec/controllers/dune/admin/contacts_controller_spec.rb
|
|
186
|
+
- spec/controllers/dune/admin/cotributions_controller_spec.rb
|
|
187
|
+
- spec/controllers/dune/admin/dasboard_controller_spec.rb
|
|
188
|
+
- spec/controllers/dune/admin/financials_controller_spec.rb
|
|
189
|
+
- spec/controllers/dune/admin/press_assets_controller_spec.rb
|
|
190
|
+
- spec/controllers/dune/admin/projects_controller_spec.rb
|
|
191
|
+
- spec/controllers/dune/admin/tags_controller_spec.rb
|
|
192
|
+
- spec/controllers/dune/admin/users_controller_spec.rb
|
|
193
|
+
- spec/models/dune/admin/contribution_concern_spec.rb
|
|
194
|
+
- spec/models/dune/admin/project_concern_spec.rb
|
|
195
|
+
- spec/models/dune/admin/user_concern_spec.rb
|
|
196
|
+
- spec/policies/dune/admin/admin_policy_spec.rb
|
|
197
|
+
- spec/spec_helper.rb
|
|
198
|
+
homepage: https://github.com/FromUte/dune-admin
|
|
199
|
+
licenses:
|
|
200
|
+
- MIT
|
|
201
|
+
metadata: {}
|
|
202
|
+
post_install_message:
|
|
203
|
+
rdoc_options: []
|
|
204
|
+
require_paths:
|
|
205
|
+
- lib
|
|
206
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
|
207
|
+
requirements:
|
|
208
|
+
- - ">="
|
|
209
|
+
- !ruby/object:Gem::Version
|
|
210
|
+
version: '0'
|
|
211
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
212
|
+
requirements:
|
|
213
|
+
- - ">="
|
|
214
|
+
- !ruby/object:Gem::Version
|
|
215
|
+
version: '0'
|
|
216
|
+
requirements: []
|
|
217
|
+
rubyforge_project:
|
|
218
|
+
rubygems_version: 2.2.2
|
|
219
|
+
signing_key:
|
|
220
|
+
specification_version: 4
|
|
221
|
+
summary: Dune Admin.
|
|
222
|
+
test_files:
|
|
223
|
+
- spec/controllers/dune/admin/channels/members_controller_spec.rb
|
|
224
|
+
- spec/controllers/dune/admin/channels_controller_spec.rb
|
|
225
|
+
- spec/controllers/dune/admin/contacts_controller_spec.rb
|
|
226
|
+
- spec/controllers/dune/admin/cotributions_controller_spec.rb
|
|
227
|
+
- spec/controllers/dune/admin/dasboard_controller_spec.rb
|
|
228
|
+
- spec/controllers/dune/admin/financials_controller_spec.rb
|
|
229
|
+
- spec/controllers/dune/admin/press_assets_controller_spec.rb
|
|
230
|
+
- spec/controllers/dune/admin/projects_controller_spec.rb
|
|
231
|
+
- spec/controllers/dune/admin/tags_controller_spec.rb
|
|
232
|
+
- spec/controllers/dune/admin/users_controller_spec.rb
|
|
233
|
+
- spec/models/dune/admin/contribution_concern_spec.rb
|
|
234
|
+
- spec/models/dune/admin/project_concern_spec.rb
|
|
235
|
+
- spec/models/dune/admin/user_concern_spec.rb
|
|
236
|
+
- spec/policies/dune/admin/admin_policy_spec.rb
|
|
237
|
+
- spec/spec_helper.rb
|