ignition 2.0.0 → 2.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/app/controllers/ignition/pages_controller.rb +0 -1
- data/config/routes.rb +0 -1
- data/lib/ignition/config.rb +0 -1
- data/lib/ignition/engine.rb +0 -22
- data/lib/ignition/routing.rb +0 -1
- data/lib/ignition.rb +0 -1
- data/test/dummy/app/controllers/application_controller.rb +0 -1
- data/test/dummy/config/application.rb +6 -2
- data/test/dummy/config/initializers/secret_token.rb +1 -2
- data/test/dummy/config/initializers/session_store.rb +0 -1
- data/test/routing_test.rb +1 -2
- data/test/test_helper.rb +0 -1
- data/test/url_helpers_test.rb +0 -1
- metadata +30 -33
- data/test/dummy/config/environments/test.rb +0 -35
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 962b9d59c35f9196c24d194993e29a60cab42a21
|
4
|
+
data.tar.gz: 0c8f42c7b49362cab4e86ff580147d4a79944c92
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 158cdf2639491679c9f1f1ce2a4dfb903db9d5a6137d39679d206133d563c6e840e79c114aed41923d155f8001a838402b77393dbe5c09305fcc5ae8f096d6a5
|
7
|
+
data.tar.gz: 920759f5bf15ae390b381644963bcba70c59f6aa0b52b841c5f8a5c61b4afc1d2f6e6da02c72530d3a0f448dc6ed9c1f43de9e1b3d3f8a36ad40d52a13381969
|
data/config/routes.rb
CHANGED
data/lib/ignition/config.rb
CHANGED
data/lib/ignition/engine.rb
CHANGED
@@ -6,25 +6,3 @@ module Ignition
|
|
6
6
|
config.ignition = Ignition::Configuration.new
|
7
7
|
end
|
8
8
|
end
|
9
|
-
|
10
|
-
# this hack allows URLs to be generated correctly if the engine is mounted at /
|
11
|
-
class ActionDispatch::Routing::Mapper
|
12
|
-
private
|
13
|
-
def define_generate_prefix(app, name)
|
14
|
-
return unless app.respond_to?(:routes) && app.routes.respond_to?(:define_mounted_helper)
|
15
|
-
|
16
|
-
_route = @set.named_routes.routes[name.to_sym]
|
17
|
-
_routes = @set
|
18
|
-
app.routes.define_mounted_helper(name)
|
19
|
-
app.routes.class_eval do
|
20
|
-
define_method :_generate_prefix do |options|
|
21
|
-
prefix_options = options.slice(*_route.segment_keys)
|
22
|
-
# we must actually delete prefix segment keys to avoid passing them to next url_for
|
23
|
-
_route.segment_keys.each { |k| options.delete(k) }
|
24
|
-
prefix = _routes.url_helpers.send("#{name}_path", prefix_options)
|
25
|
-
return prefix == '/' ? '' : prefix
|
26
|
-
end
|
27
|
-
end
|
28
|
-
end
|
29
|
-
end
|
30
|
-
|
data/lib/ignition/routing.rb
CHANGED
data/lib/ignition.rb
CHANGED
@@ -10,7 +10,11 @@ Bundler.require(:default, Rails.env) if defined?(Bundler)
|
|
10
10
|
module Dummy
|
11
11
|
class Application < Rails::Application
|
12
12
|
config.encoding = "utf-8"
|
13
|
-
|
13
|
+
|
14
|
+
# Don't eagerly load classes at startup
|
15
|
+
config.eager_load = false
|
16
|
+
|
17
|
+
# Raise exceptions instead of rendering exception templates
|
18
|
+
config.action_dispatch.show_exceptions = false
|
14
19
|
end
|
15
20
|
end
|
16
|
-
|
@@ -1,2 +1 @@
|
|
1
|
-
Dummy::Application.config.
|
2
|
-
|
1
|
+
Dummy::Application.config.secret_key_base = 'b8c7d7f6773273ac789b6420905283a8dc6215d3fed4b4964e3eacaab1f322ea360c118921c35503554332e54cf1c95e705e0841f376770c5f10e4a287a791e0'
|
data/test/routing_test.rb
CHANGED
data/test/test_helper.rb
CHANGED
data/test/url_helpers_test.rb
CHANGED
metadata
CHANGED
@@ -1,28 +1,29 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ignition
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
5
|
-
prerelease:
|
4
|
+
version: 2.1.0
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- Graham Edgecombe
|
9
8
|
autorequire:
|
10
9
|
bindir: bin
|
11
10
|
cert_chain: []
|
12
|
-
date:
|
13
|
-
default_executable:
|
11
|
+
date: 2014-04-09 00:00:00.000000000 Z
|
14
12
|
dependencies:
|
15
13
|
- !ruby/object:Gem::Dependency
|
16
14
|
name: rails
|
17
|
-
requirement:
|
18
|
-
none: false
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
19
16
|
requirements:
|
20
|
-
- -
|
17
|
+
- - "~>"
|
21
18
|
- !ruby/object:Gem::Version
|
22
|
-
version:
|
19
|
+
version: '4.0'
|
23
20
|
type: :runtime
|
24
21
|
prerelease: false
|
25
|
-
version_requirements:
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '4.0'
|
26
27
|
description: An engine for Rails 3 applications which allows easy management and caching
|
27
28
|
of static pages.
|
28
29
|
email: grahamedgecombe@gmail.com
|
@@ -32,62 +33,58 @@ extra_rdoc_files: []
|
|
32
33
|
files:
|
33
34
|
- app/controllers/ignition/pages_controller.rb
|
34
35
|
- config/routes.rb
|
36
|
+
- lib/ignition.rb
|
35
37
|
- lib/ignition/config.rb
|
36
38
|
- lib/ignition/engine.rb
|
37
39
|
- lib/ignition/routing.rb
|
38
|
-
- lib/ignition.rb
|
39
|
-
- test/routing_test.rb
|
40
|
-
- test/url_helpers_test.rb
|
41
|
-
- test/dummy/config/initializers/session_store.rb
|
42
|
-
- test/dummy/config/initializers/secret_token.rb
|
43
|
-
- test/dummy/config/environment.rb
|
44
|
-
- test/dummy/config/boot.rb
|
45
|
-
- test/dummy/config/environments/test.rb
|
46
|
-
- test/dummy/config/application.rb
|
47
|
-
- test/dummy/config/routes.rb
|
48
|
-
- test/dummy/app/helpers/application_helper.rb
|
49
40
|
- test/dummy/app/controllers/application_controller.rb
|
50
41
|
- test/dummy/app/controllers/time_controller.rb
|
51
|
-
- test/
|
42
|
+
- test/dummy/app/helpers/application_helper.rb
|
52
43
|
- test/dummy/config.ru
|
53
|
-
|
44
|
+
- test/dummy/config/application.rb
|
45
|
+
- test/dummy/config/boot.rb
|
46
|
+
- test/dummy/config/environment.rb
|
47
|
+
- test/dummy/config/initializers/secret_token.rb
|
48
|
+
- test/dummy/config/initializers/session_store.rb
|
49
|
+
- test/dummy/config/routes.rb
|
50
|
+
- test/routing_test.rb
|
51
|
+
- test/test_helper.rb
|
52
|
+
- test/url_helpers_test.rb
|
54
53
|
homepage: http://grahamedgecombe.com/projects/ignition
|
55
54
|
licenses:
|
56
55
|
- MIT
|
56
|
+
metadata: {}
|
57
57
|
post_install_message:
|
58
58
|
rdoc_options: []
|
59
59
|
require_paths:
|
60
60
|
- lib
|
61
61
|
required_ruby_version: !ruby/object:Gem::Requirement
|
62
|
-
none: false
|
63
62
|
requirements:
|
64
|
-
- -
|
63
|
+
- - ">="
|
65
64
|
- !ruby/object:Gem::Version
|
66
65
|
version: 1.9.2
|
67
66
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
68
|
-
none: false
|
69
67
|
requirements:
|
70
|
-
- -
|
68
|
+
- - ">="
|
71
69
|
- !ruby/object:Gem::Version
|
72
70
|
version: '0'
|
73
71
|
requirements: []
|
74
72
|
rubyforge_project:
|
75
|
-
rubygems_version:
|
73
|
+
rubygems_version: 2.2.2
|
76
74
|
signing_key:
|
77
|
-
specification_version:
|
75
|
+
specification_version: 4
|
78
76
|
summary: Static pages for Rails 3.
|
79
77
|
test_files:
|
80
|
-
- test/routing_test.rb
|
81
78
|
- test/url_helpers_test.rb
|
79
|
+
- test/dummy/config/boot.rb
|
82
80
|
- test/dummy/config/initializers/session_store.rb
|
83
81
|
- test/dummy/config/initializers/secret_token.rb
|
84
82
|
- test/dummy/config/environment.rb
|
85
|
-
- test/dummy/config/boot.rb
|
86
|
-
- test/dummy/config/environments/test.rb
|
87
|
-
- test/dummy/config/application.rb
|
88
83
|
- test/dummy/config/routes.rb
|
84
|
+
- test/dummy/config/application.rb
|
89
85
|
- test/dummy/app/helpers/application_helper.rb
|
90
|
-
- test/dummy/app/controllers/application_controller.rb
|
91
86
|
- test/dummy/app/controllers/time_controller.rb
|
87
|
+
- test/dummy/app/controllers/application_controller.rb
|
92
88
|
- test/test_helper.rb
|
89
|
+
- test/routing_test.rb
|
93
90
|
- test/dummy/config.ru
|
@@ -1,35 +0,0 @@
|
|
1
|
-
Dummy::Application.configure do
|
2
|
-
# Settings specified here will take precedence over those in config/environment.rb
|
3
|
-
|
4
|
-
# The test environment is used exclusively to run your application's
|
5
|
-
# test suite. You never need to work with it otherwise. Remember that
|
6
|
-
# your test database is "scratch space" for the test suite and is wiped
|
7
|
-
# and recreated between test runs. Don't rely on the data there!
|
8
|
-
config.cache_classes = true
|
9
|
-
|
10
|
-
# Log error messages when you accidentally call methods on nil.
|
11
|
-
config.whiny_nils = true
|
12
|
-
|
13
|
-
# Show full error reports and disable caching
|
14
|
-
config.consider_all_requests_local = true
|
15
|
-
config.action_controller.perform_caching = false
|
16
|
-
|
17
|
-
# Raise exceptions instead of rendering exception templates
|
18
|
-
config.action_dispatch.show_exceptions = false
|
19
|
-
|
20
|
-
# Disable request forgery protection in test environment
|
21
|
-
config.action_controller.allow_forgery_protection = false
|
22
|
-
|
23
|
-
# Tell Action Mailer not to deliver emails to the real world.
|
24
|
-
# The :test delivery method accumulates sent emails in the
|
25
|
-
# ActionMailer::Base.deliveries array.
|
26
|
-
# config.action_mailer.delivery_method = :test
|
27
|
-
|
28
|
-
# Use SQL instead of Active Record's schema dumper when creating the test database.
|
29
|
-
# This is necessary if your schema can't be completely dumped by the schema dumper,
|
30
|
-
# like if you have constraints or database-specific column types
|
31
|
-
# config.active_record.schema_format = :sql
|
32
|
-
|
33
|
-
# Print deprecation notices to the stderr
|
34
|
-
config.active_support.deprecation = :stderr
|
35
|
-
end
|