raport 0.1.2.pre → 0.1.3.pre
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 +4 -4
- data/Rakefile +11 -23
- data/app/uploaders/raport/file_uploader.rb +20 -18
- data/lib/generators/raport/config_generator.rb +13 -0
- data/lib/generators/raport/templates/initializer.rb +3 -0
- data/lib/raport/configuration.rb +9 -0
- data/lib/raport/engine.rb +7 -0
- data/lib/raport/gem_version.rb +1 -1
- data/lib/raport.rb +13 -1
- data/spec/raport/configuration_spec.rb +25 -0
- data/spec/raport/models/report_spec.rb +7 -0
- data/spec/spec_helper.rb +34 -0
- data/{test/dummy/public/favicon.ico → spec/support/shared_examples/models_shared.rb} +0 -0
- metadata +64 -92
- data/README.rdoc +0 -3
- data/test/dummy/README.rdoc +0 -28
- data/test/dummy/Rakefile +0 -6
- data/test/dummy/app/assets/javascripts/application.js +0 -13
- data/test/dummy/app/assets/stylesheets/application.css +0 -15
- data/test/dummy/app/controllers/application_controller.rb +0 -5
- data/test/dummy/app/helpers/application_helper.rb +0 -2
- data/test/dummy/app/views/layouts/application.html.erb +0 -14
- data/test/dummy/bin/bundle +0 -3
- data/test/dummy/bin/rails +0 -4
- data/test/dummy/bin/rake +0 -4
- data/test/dummy/bin/setup +0 -29
- data/test/dummy/config/application.rb +0 -26
- data/test/dummy/config/boot.rb +0 -5
- data/test/dummy/config/database.yml +0 -25
- data/test/dummy/config/environment.rb +0 -5
- data/test/dummy/config/environments/development.rb +0 -41
- data/test/dummy/config/environments/production.rb +0 -79
- data/test/dummy/config/environments/test.rb +0 -42
- data/test/dummy/config/initializers/assets.rb +0 -11
- data/test/dummy/config/initializers/backtrace_silencers.rb +0 -7
- data/test/dummy/config/initializers/cookies_serializer.rb +0 -3
- data/test/dummy/config/initializers/filter_parameter_logging.rb +0 -4
- data/test/dummy/config/initializers/inflections.rb +0 -16
- data/test/dummy/config/initializers/mime_types.rb +0 -4
- data/test/dummy/config/initializers/session_store.rb +0 -3
- data/test/dummy/config/initializers/wrap_parameters.rb +0 -14
- data/test/dummy/config/locales/en.yml +0 -23
- data/test/dummy/config/routes.rb +0 -56
- data/test/dummy/config/secrets.yml +0 -22
- data/test/dummy/config.ru +0 -4
- data/test/dummy/db/schema.rb +0 -34
- data/test/dummy/public/404.html +0 -67
- data/test/dummy/public/422.html +0 -67
- data/test/dummy/public/500.html +0 -66
- data/test/fixtures/raport/reports.yml +0 -11
- data/test/integration/navigation_test.rb +0 -10
- data/test/models/raport/report_test.rb +0 -7
- data/test/raport_test.rb +0 -7
- data/test/test_helper.rb +0 -19
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1959b0fcbd94bfc3c4f37b9d07c850a14f1003c6
|
4
|
+
data.tar.gz: ecd0d447f5080fe3f83482e004c212b06aeff403
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a576ae95ee2bd8620908997074f96fe4f8f44011fef5e56b340a76479c6d6145646205c825b4706f5b5f108e88b10b5abd879e937c23a11d79143d0ec304a843
|
7
|
+
data.tar.gz: d42ca04e0f7c5ce396d16a000083b81fd32f3fb06fe699f6de07ffe517c1b0cdb1f744c96b352fd1864ece0371636cfc0ff953597d53dfe90ea6420b7ca6315b
|
data/Rakefile
CHANGED
@@ -1,37 +1,25 @@
|
|
1
|
+
#!/usr/bin/env rake
|
2
|
+
|
1
3
|
begin
|
2
4
|
require 'bundler/setup'
|
3
5
|
rescue LoadError
|
4
6
|
puts 'You must `gem install bundler` and `bundle install` to run rake tasks'
|
5
|
-
end
|
6
7
|
|
7
|
-
require 'rdoc/task'
|
8
|
-
|
9
|
-
RDoc::Task.new(:rdoc) do |rdoc|
|
10
|
-
rdoc.rdoc_dir = 'rdoc'
|
11
|
-
rdoc.title = 'Raport'
|
12
|
-
rdoc.options << '--line-numbers'
|
13
|
-
rdoc.rdoc_files.include('README.rdoc')
|
14
|
-
rdoc.rdoc_files.include('lib/**/*.rb')
|
15
8
|
end
|
16
9
|
|
17
|
-
APP_RAKEFILE = File.expand_path("../
|
18
|
-
load 'rails/tasks/engine.rake'
|
19
|
-
|
20
|
-
|
21
|
-
load 'rails/tasks/statistics.rake'
|
22
|
-
|
10
|
+
# APP_RAKEFILE = File.expand_path("../spec/dummy/Rakefile", __FILE__)
|
23
11
|
|
12
|
+
# load 'rails/tasks/engine.rake'
|
24
13
|
|
25
14
|
Bundler::GemHelper.install_tasks
|
26
15
|
|
27
|
-
|
16
|
+
Dir[File.join(File.dirname(__FILE__), 'tasks/**/*.rake')].each {|f| load f }
|
28
17
|
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
t.verbose = false
|
34
|
-
end
|
18
|
+
require 'rspec/core'
|
19
|
+
require 'rspec/core/rake_task'
|
20
|
+
|
21
|
+
desc "Run all specs in spec directory (excluding plugin specs)"
|
35
22
|
|
23
|
+
RSpec::Core::RakeTask.new(spec: 'app:db:test:prepare')
|
36
24
|
|
37
|
-
task default: :
|
25
|
+
task default: :spec
|
@@ -1,27 +1,29 @@
|
|
1
|
-
|
1
|
+
module Raport
|
2
|
+
class FileUploader < CarrierWave::Uploader::Base
|
2
3
|
|
3
|
-
|
4
|
+
include CarrierWave::MiniMagick
|
4
5
|
|
5
|
-
|
6
|
+
storage Raport.config.storage
|
6
7
|
|
7
|
-
|
8
|
-
|
9
|
-
|
8
|
+
def store_dir
|
9
|
+
"uploads/#{model.class.to_s.underscore}/#{mounted_as}/#{model.id}"
|
10
|
+
end
|
10
11
|
|
11
|
-
|
12
|
+
process :set_content_type
|
12
13
|
|
13
|
-
|
14
|
-
|
14
|
+
def set_content_type
|
15
|
+
new_content_type = 'binary/octet-stream'
|
15
16
|
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
17
|
+
if file.respond_to?(:content_type=)
|
18
|
+
file.content_type = new_content_type
|
19
|
+
else
|
20
|
+
file.instance_variable_set(:@content_type, new_content_type)
|
21
|
+
end
|
20
22
|
end
|
21
|
-
end
|
22
23
|
|
23
|
-
|
24
|
-
|
25
|
-
|
24
|
+
def filename
|
25
|
+
model.respond_to?(:filename) ? model.filename : super
|
26
|
+
end
|
26
27
|
|
27
|
-
end
|
28
|
+
end
|
29
|
+
end
|
@@ -0,0 +1,13 @@
|
|
1
|
+
require 'rails/generators'
|
2
|
+
|
3
|
+
module Raport
|
4
|
+
module Generators
|
5
|
+
class ConfigGenerator < ::Rails::Generators::Base
|
6
|
+
source_root File.expand_path("../templates", __FILE__)
|
7
|
+
|
8
|
+
def copy_initializer_file
|
9
|
+
copy_file "initializer.rb", "config/initializers/raport.rb"
|
10
|
+
end
|
11
|
+
end
|
12
|
+
end
|
13
|
+
end
|
data/lib/raport/engine.rb
CHANGED
data/lib/raport/gem_version.rb
CHANGED
data/lib/raport.rb
CHANGED
@@ -1,4 +1,16 @@
|
|
1
|
-
require
|
1
|
+
require 'raport/engine'
|
2
|
+
require 'raport/configuration'
|
2
3
|
|
3
4
|
module Raport
|
5
|
+
class << self
|
6
|
+
def configure
|
7
|
+
yield(configuration)
|
8
|
+
end
|
9
|
+
|
10
|
+
def configuration
|
11
|
+
@configuration ||= Configuration.new
|
12
|
+
end
|
13
|
+
|
14
|
+
alias :config :configuration
|
15
|
+
end
|
4
16
|
end
|
@@ -0,0 +1,25 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
require 'raport/configuration'
|
3
|
+
|
4
|
+
RSpec.describe Raport::Configuration do
|
5
|
+
|
6
|
+
let(:config) { described_class.new }
|
7
|
+
|
8
|
+
describe '#storage' do
|
9
|
+
context 'when storage is set through setter' do
|
10
|
+
subject(:resource) do
|
11
|
+
config.storage = :fog
|
12
|
+
config
|
13
|
+
end
|
14
|
+
it 'returns the setted storage' do
|
15
|
+
expect(resource.storage).to eq :fog
|
16
|
+
end
|
17
|
+
end
|
18
|
+
|
19
|
+
context 'when storage is not set' do
|
20
|
+
it 'returns the default storage' do
|
21
|
+
expect(config.storage).to eq :file
|
22
|
+
end
|
23
|
+
end
|
24
|
+
end
|
25
|
+
end
|
data/spec/spec_helper.rb
ADDED
@@ -0,0 +1,34 @@
|
|
1
|
+
ENV['RAILS_ENV'] ||= 'test'
|
2
|
+
# require File.expand_path("../dummy/config/environment.rb", __FILE__)
|
3
|
+
|
4
|
+
require 'coveralls'
|
5
|
+
Coveralls.wear!
|
6
|
+
|
7
|
+
require 'rubygems'
|
8
|
+
require 'bundler/setup'
|
9
|
+
require 'rspec'
|
10
|
+
require 'rspec/autorun'
|
11
|
+
# require "rails/all"
|
12
|
+
# require 'rspec/rails'
|
13
|
+
# require 'rspec/active_job'
|
14
|
+
# require 'factory_girl_rails'
|
15
|
+
require 'simplecov'
|
16
|
+
|
17
|
+
SimpleCov.start
|
18
|
+
Bundler.setup
|
19
|
+
|
20
|
+
require 'carrierwave'
|
21
|
+
require 'state_machines-activerecord'
|
22
|
+
require 'inherited_resources'
|
23
|
+
require 'delayed_job_active_record'
|
24
|
+
|
25
|
+
Rails.backtrace_cleaner.remove_silencers!
|
26
|
+
# Load support files
|
27
|
+
Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f }
|
28
|
+
|
29
|
+
RSpec.configure do |config|
|
30
|
+
config.mock_with :rspec
|
31
|
+
# config.use_transactional_fixtures = true
|
32
|
+
# config.infer_base_class_for_anonymous_controllers = false
|
33
|
+
config.order = "random"
|
34
|
+
end
|
File without changes
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: raport
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.3.pre
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Michael Rüffer
|
@@ -82,35 +82,77 @@ dependencies:
|
|
82
82
|
- !ruby/object:Gem::Version
|
83
83
|
version: 1.6.0
|
84
84
|
- !ruby/object:Gem::Dependency
|
85
|
-
name:
|
85
|
+
name: delayed_job_active_record
|
86
86
|
requirement: !ruby/object:Gem::Requirement
|
87
87
|
requirements:
|
88
88
|
- - "~>"
|
89
89
|
- !ruby/object:Gem::Version
|
90
|
-
version:
|
90
|
+
version: 4.0.3
|
91
91
|
type: :runtime
|
92
92
|
prerelease: false
|
93
93
|
version_requirements: !ruby/object:Gem::Requirement
|
94
94
|
requirements:
|
95
95
|
- - "~>"
|
96
96
|
- !ruby/object:Gem::Version
|
97
|
-
version:
|
97
|
+
version: 4.0.3
|
98
98
|
- !ruby/object:Gem::Dependency
|
99
|
-
name:
|
99
|
+
name: pg
|
100
100
|
requirement: !ruby/object:Gem::Requirement
|
101
101
|
requirements:
|
102
|
-
- - "
|
102
|
+
- - ">="
|
103
103
|
- !ruby/object:Gem::Version
|
104
|
-
version:
|
105
|
-
type: :
|
104
|
+
version: '0'
|
105
|
+
type: :development
|
106
106
|
prerelease: false
|
107
107
|
version_requirements: !ruby/object:Gem::Requirement
|
108
108
|
requirements:
|
109
|
-
- - "
|
109
|
+
- - ">="
|
110
110
|
- !ruby/object:Gem::Version
|
111
|
-
version:
|
111
|
+
version: '0'
|
112
112
|
- !ruby/object:Gem::Dependency
|
113
|
-
name:
|
113
|
+
name: rspec
|
114
|
+
requirement: !ruby/object:Gem::Requirement
|
115
|
+
requirements:
|
116
|
+
- - ">="
|
117
|
+
- !ruby/object:Gem::Version
|
118
|
+
version: '0'
|
119
|
+
type: :development
|
120
|
+
prerelease: false
|
121
|
+
version_requirements: !ruby/object:Gem::Requirement
|
122
|
+
requirements:
|
123
|
+
- - ">="
|
124
|
+
- !ruby/object:Gem::Version
|
125
|
+
version: '0'
|
126
|
+
- !ruby/object:Gem::Dependency
|
127
|
+
name: rspec-rails
|
128
|
+
requirement: !ruby/object:Gem::Requirement
|
129
|
+
requirements:
|
130
|
+
- - ">="
|
131
|
+
- !ruby/object:Gem::Version
|
132
|
+
version: '0'
|
133
|
+
type: :development
|
134
|
+
prerelease: false
|
135
|
+
version_requirements: !ruby/object:Gem::Requirement
|
136
|
+
requirements:
|
137
|
+
- - ">="
|
138
|
+
- !ruby/object:Gem::Version
|
139
|
+
version: '0'
|
140
|
+
- !ruby/object:Gem::Dependency
|
141
|
+
name: rspec-activejob
|
142
|
+
requirement: !ruby/object:Gem::Requirement
|
143
|
+
requirements:
|
144
|
+
- - ">="
|
145
|
+
- !ruby/object:Gem::Version
|
146
|
+
version: '0'
|
147
|
+
type: :development
|
148
|
+
prerelease: false
|
149
|
+
version_requirements: !ruby/object:Gem::Requirement
|
150
|
+
requirements:
|
151
|
+
- - ">="
|
152
|
+
- !ruby/object:Gem::Version
|
153
|
+
version: '0'
|
154
|
+
- !ruby/object:Gem::Dependency
|
155
|
+
name: factory_girl_rails
|
114
156
|
requirement: !ruby/object:Gem::Requirement
|
115
157
|
requirements:
|
116
158
|
- - ">="
|
@@ -133,7 +175,6 @@ extensions: []
|
|
133
175
|
extra_rdoc_files: []
|
134
176
|
files:
|
135
177
|
- MIT-LICENSE
|
136
|
-
- README.rdoc
|
137
178
|
- Rakefile
|
138
179
|
- app/assets/images/raport/ajax-loader.gif
|
139
180
|
- |-
|
@@ -148,52 +189,19 @@ files:
|
|
148
189
|
- config/locales/de.yml
|
149
190
|
- config/routes.rb
|
150
191
|
- db/migrate/20151022084502_create_raport_reports.rb
|
192
|
+
- lib/generators/raport/config_generator.rb
|
193
|
+
- lib/generators/raport/templates/initializer.rb
|
151
194
|
- lib/raport.rb
|
152
195
|
- lib/raport/concerns/controllers/reportify.rb
|
196
|
+
- lib/raport/configuration.rb
|
153
197
|
- lib/raport/engine.rb
|
154
198
|
- lib/raport/gem_version.rb
|
155
199
|
- lib/raport/version.rb
|
156
200
|
- lib/tasks/raport_tasks.rake
|
157
|
-
-
|
158
|
-
-
|
159
|
-
-
|
160
|
-
-
|
161
|
-
- test/dummy/app/controllers/application_controller.rb
|
162
|
-
- test/dummy/app/helpers/application_helper.rb
|
163
|
-
- test/dummy/app/views/layouts/application.html.erb
|
164
|
-
- test/dummy/bin/bundle
|
165
|
-
- test/dummy/bin/rails
|
166
|
-
- test/dummy/bin/rake
|
167
|
-
- test/dummy/bin/setup
|
168
|
-
- test/dummy/config.ru
|
169
|
-
- test/dummy/config/application.rb
|
170
|
-
- test/dummy/config/boot.rb
|
171
|
-
- test/dummy/config/database.yml
|
172
|
-
- test/dummy/config/environment.rb
|
173
|
-
- test/dummy/config/environments/development.rb
|
174
|
-
- test/dummy/config/environments/production.rb
|
175
|
-
- test/dummy/config/environments/test.rb
|
176
|
-
- test/dummy/config/initializers/assets.rb
|
177
|
-
- test/dummy/config/initializers/backtrace_silencers.rb
|
178
|
-
- test/dummy/config/initializers/cookies_serializer.rb
|
179
|
-
- test/dummy/config/initializers/filter_parameter_logging.rb
|
180
|
-
- test/dummy/config/initializers/inflections.rb
|
181
|
-
- test/dummy/config/initializers/mime_types.rb
|
182
|
-
- test/dummy/config/initializers/session_store.rb
|
183
|
-
- test/dummy/config/initializers/wrap_parameters.rb
|
184
|
-
- test/dummy/config/locales/en.yml
|
185
|
-
- test/dummy/config/routes.rb
|
186
|
-
- test/dummy/config/secrets.yml
|
187
|
-
- test/dummy/db/schema.rb
|
188
|
-
- test/dummy/public/404.html
|
189
|
-
- test/dummy/public/422.html
|
190
|
-
- test/dummy/public/500.html
|
191
|
-
- test/dummy/public/favicon.ico
|
192
|
-
- test/fixtures/raport/reports.yml
|
193
|
-
- test/integration/navigation_test.rb
|
194
|
-
- test/models/raport/report_test.rb
|
195
|
-
- test/raport_test.rb
|
196
|
-
- test/test_helper.rb
|
201
|
+
- spec/raport/configuration_spec.rb
|
202
|
+
- spec/raport/models/report_spec.rb
|
203
|
+
- spec/spec_helper.rb
|
204
|
+
- spec/support/shared_examples/models_shared.rb
|
197
205
|
- vendor/assets/javascripts/raport.js.coffee
|
198
206
|
- vendor/assets/javascripts/raport/periodic.js
|
199
207
|
homepage: https://github.com/HitFox/raport
|
@@ -221,43 +229,7 @@ signing_key:
|
|
221
229
|
specification_version: 4
|
222
230
|
summary: Report engine
|
223
231
|
test_files:
|
224
|
-
-
|
225
|
-
-
|
226
|
-
-
|
227
|
-
-
|
228
|
-
- test/dummy/app/views/layouts/application.html.erb
|
229
|
-
- test/dummy/bin/bundle
|
230
|
-
- test/dummy/bin/rails
|
231
|
-
- test/dummy/bin/rake
|
232
|
-
- test/dummy/bin/setup
|
233
|
-
- test/dummy/config/application.rb
|
234
|
-
- test/dummy/config/boot.rb
|
235
|
-
- test/dummy/config/database.yml
|
236
|
-
- test/dummy/config/environment.rb
|
237
|
-
- test/dummy/config/environments/development.rb
|
238
|
-
- test/dummy/config/environments/production.rb
|
239
|
-
- test/dummy/config/environments/test.rb
|
240
|
-
- test/dummy/config/initializers/assets.rb
|
241
|
-
- test/dummy/config/initializers/backtrace_silencers.rb
|
242
|
-
- test/dummy/config/initializers/cookies_serializer.rb
|
243
|
-
- test/dummy/config/initializers/filter_parameter_logging.rb
|
244
|
-
- test/dummy/config/initializers/inflections.rb
|
245
|
-
- test/dummy/config/initializers/mime_types.rb
|
246
|
-
- test/dummy/config/initializers/session_store.rb
|
247
|
-
- test/dummy/config/initializers/wrap_parameters.rb
|
248
|
-
- test/dummy/config/locales/en.yml
|
249
|
-
- test/dummy/config/routes.rb
|
250
|
-
- test/dummy/config/secrets.yml
|
251
|
-
- test/dummy/config.ru
|
252
|
-
- test/dummy/db/schema.rb
|
253
|
-
- test/dummy/public/404.html
|
254
|
-
- test/dummy/public/422.html
|
255
|
-
- test/dummy/public/500.html
|
256
|
-
- test/dummy/public/favicon.ico
|
257
|
-
- test/dummy/Rakefile
|
258
|
-
- test/dummy/README.rdoc
|
259
|
-
- test/fixtures/raport/reports.yml
|
260
|
-
- test/integration/navigation_test.rb
|
261
|
-
- test/models/raport/report_test.rb
|
262
|
-
- test/raport_test.rb
|
263
|
-
- test/test_helper.rb
|
232
|
+
- spec/raport/configuration_spec.rb
|
233
|
+
- spec/raport/models/report_spec.rb
|
234
|
+
- spec/spec_helper.rb
|
235
|
+
- spec/support/shared_examples/models_shared.rb
|
data/README.rdoc
DELETED
data/test/dummy/README.rdoc
DELETED
@@ -1,28 +0,0 @@
|
|
1
|
-
== README
|
2
|
-
|
3
|
-
This README would normally document whatever steps are necessary to get the
|
4
|
-
application up and running.
|
5
|
-
|
6
|
-
Things you may want to cover:
|
7
|
-
|
8
|
-
* Ruby version
|
9
|
-
|
10
|
-
* System dependencies
|
11
|
-
|
12
|
-
* Configuration
|
13
|
-
|
14
|
-
* Database creation
|
15
|
-
|
16
|
-
* Database initialization
|
17
|
-
|
18
|
-
* How to run the test suite
|
19
|
-
|
20
|
-
* Services (job queues, cache servers, search engines, etc.)
|
21
|
-
|
22
|
-
* Deployment instructions
|
23
|
-
|
24
|
-
* ...
|
25
|
-
|
26
|
-
|
27
|
-
Please feel free to use a different markup language if you do not plan to run
|
28
|
-
<tt>rake doc:app</tt>.
|
data/test/dummy/Rakefile
DELETED
@@ -1,13 +0,0 @@
|
|
1
|
-
// This is a manifest file that'll be compiled into application.js, which will include all the files
|
2
|
-
// listed below.
|
3
|
-
//
|
4
|
-
// Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts,
|
5
|
-
// or any plugin's vendor/assets/javascripts directory can be referenced here using a relative path.
|
6
|
-
//
|
7
|
-
// It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the
|
8
|
-
// compiled file.
|
9
|
-
//
|
10
|
-
// Read Sprockets README (https://github.com/rails/sprockets#sprockets-directives) for details
|
11
|
-
// about supported directives.
|
12
|
-
//
|
13
|
-
//= require_tree .
|
@@ -1,15 +0,0 @@
|
|
1
|
-
/*
|
2
|
-
* This is a manifest file that'll be compiled into application.css, which will include all the files
|
3
|
-
* listed below.
|
4
|
-
*
|
5
|
-
* Any CSS and SCSS file within this directory, lib/assets/stylesheets, vendor/assets/stylesheets,
|
6
|
-
* or any plugin's vendor/assets/stylesheets directory can be referenced here using a relative path.
|
7
|
-
*
|
8
|
-
* You're free to add application-wide styles to this file and they'll appear at the bottom of the
|
9
|
-
* compiled file so the styles you add here take precedence over styles defined in any styles
|
10
|
-
* defined in the other CSS/SCSS files in this directory. It is generally better to create a new
|
11
|
-
* file per style scope.
|
12
|
-
*
|
13
|
-
*= require_tree .
|
14
|
-
*= require_self
|
15
|
-
*/
|
@@ -1,14 +0,0 @@
|
|
1
|
-
<!DOCTYPE html>
|
2
|
-
<html>
|
3
|
-
<head>
|
4
|
-
<title>Dummy</title>
|
5
|
-
<%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track' => true %>
|
6
|
-
<%= javascript_include_tag 'application', 'data-turbolinks-track' => true %>
|
7
|
-
<%= csrf_meta_tags %>
|
8
|
-
</head>
|
9
|
-
<body>
|
10
|
-
|
11
|
-
<%= yield %>
|
12
|
-
|
13
|
-
</body>
|
14
|
-
</html>
|
data/test/dummy/bin/bundle
DELETED
data/test/dummy/bin/rails
DELETED
data/test/dummy/bin/rake
DELETED
data/test/dummy/bin/setup
DELETED
@@ -1,29 +0,0 @@
|
|
1
|
-
#!/usr/bin/env ruby
|
2
|
-
require 'pathname'
|
3
|
-
|
4
|
-
# path to your application root.
|
5
|
-
APP_ROOT = Pathname.new File.expand_path('../../', __FILE__)
|
6
|
-
|
7
|
-
Dir.chdir APP_ROOT do
|
8
|
-
# This script is a starting point to setup your application.
|
9
|
-
# Add necessary setup steps to this file:
|
10
|
-
|
11
|
-
puts "== Installing dependencies =="
|
12
|
-
system "gem install bundler --conservative"
|
13
|
-
system "bundle check || bundle install"
|
14
|
-
|
15
|
-
# puts "\n== Copying sample files =="
|
16
|
-
# unless File.exist?("config/database.yml")
|
17
|
-
# system "cp config/database.yml.sample config/database.yml"
|
18
|
-
# end
|
19
|
-
|
20
|
-
puts "\n== Preparing database =="
|
21
|
-
system "bin/rake db:setup"
|
22
|
-
|
23
|
-
puts "\n== Removing old logs and tempfiles =="
|
24
|
-
system "rm -f log/*"
|
25
|
-
system "rm -rf tmp/cache"
|
26
|
-
|
27
|
-
puts "\n== Restarting application server =="
|
28
|
-
system "touch tmp/restart.txt"
|
29
|
-
end
|
@@ -1,26 +0,0 @@
|
|
1
|
-
require File.expand_path('../boot', __FILE__)
|
2
|
-
|
3
|
-
require 'rails/all'
|
4
|
-
|
5
|
-
Bundler.require(*Rails.groups)
|
6
|
-
require "raport"
|
7
|
-
|
8
|
-
module Dummy
|
9
|
-
class Application < Rails::Application
|
10
|
-
# Settings in config/environments/* take precedence over those specified here.
|
11
|
-
# Application configuration should go into files in config/initializers
|
12
|
-
# -- all .rb files in that directory are automatically loaded.
|
13
|
-
|
14
|
-
# Set Time.zone default to the specified zone and make Active Record auto-convert to this zone.
|
15
|
-
# Run "rake -D time" for a list of tasks for finding time zone names. Default is UTC.
|
16
|
-
# config.time_zone = 'Central Time (US & Canada)'
|
17
|
-
|
18
|
-
# The default locale is :en and all translations from config/locales/*.rb,yml are auto loaded.
|
19
|
-
# config.i18n.load_path += Dir[Rails.root.join('my', 'locales', '*.{rb,yml}').to_s]
|
20
|
-
# config.i18n.default_locale = :de
|
21
|
-
|
22
|
-
# Do not swallow errors in after_commit/after_rollback callbacks.
|
23
|
-
config.active_record.raise_in_transactional_callbacks = true
|
24
|
-
end
|
25
|
-
end
|
26
|
-
|
data/test/dummy/config/boot.rb
DELETED