panoramic 0.0.4 → 0.0.6
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 +2 -0
- data/.travis.yml +3 -4
- data/Gemfile +1 -1
- data/Gemfile.lock +124 -111
- data/README.md +26 -9
- data/Rakefile +18 -1
- data/gemfiles/active_record.gemfile +5 -0
- data/lib/panoramic/orm/active_record.rb +3 -3
- data/lib/panoramic/resolver.rb +8 -5
- data/panoramic.gemspec +3 -3
- data/spec/controllers/rendering_spec.rb +7 -7
- data/spec/dummy/Rakefile +1 -2
- data/spec/dummy/app/controllers/application_controller.rb +3 -1
- data/spec/dummy/app/models/.keep +0 -0
- data/spec/dummy/app/views/layouts/application.html.erb +3 -1
- data/spec/dummy/bin/bundle +3 -0
- data/spec/dummy/bin/rails +4 -0
- data/spec/dummy/bin/rake +4 -0
- data/spec/dummy/bin/setup +29 -0
- data/spec/dummy/config.ru +2 -2
- data/spec/dummy/config/application.rb +7 -21
- data/spec/dummy/config/boot.rb +4 -9
- data/spec/dummy/config/database.yml +11 -8
- data/spec/dummy/config/environment.rb +3 -3
- data/spec/dummy/config/environments/development.rb +28 -13
- data/spec/dummy/config/environments/production.rb +58 -28
- data/spec/dummy/config/environments/test.rb +22 -15
- data/spec/dummy/config/initializers/assets.rb +11 -0
- data/spec/dummy/config/initializers/cookies_serializer.rb +3 -0
- data/spec/dummy/config/initializers/filter_parameter_logging.rb +4 -0
- data/spec/dummy/config/initializers/inflections.rb +9 -3
- data/spec/dummy/config/initializers/mime_types.rb +0 -1
- data/spec/dummy/config/initializers/session_store.rb +1 -6
- data/spec/dummy/config/initializers/wrap_parameters.rb +14 -0
- data/spec/dummy/config/locales/en.yml +20 -2
- data/spec/dummy/config/routes.rb +1 -1
- data/spec/dummy/config/secrets.yml +22 -0
- data/spec/orm/active_record_spec.rb +26 -26
- data/spec/resolver_spec.rb +36 -8
- metadata +77 -46
@@ -0,0 +1,11 @@
|
|
1
|
+
# Be sure to restart your server when you modify this file.
|
2
|
+
|
3
|
+
# Version of your assets, change this if you want to expire all your assets.
|
4
|
+
Rails.application.config.assets.version = '1.0'
|
5
|
+
|
6
|
+
# Add additional assets to the asset load path
|
7
|
+
# Rails.application.config.assets.paths << Emoji.images_path
|
8
|
+
|
9
|
+
# Precompile additional assets.
|
10
|
+
# application.js, application.css, and all non-JS/CSS in app/assets folder are already added.
|
11
|
+
# Rails.application.config.assets.precompile += %w( search.js )
|
@@ -1,10 +1,16 @@
|
|
1
1
|
# Be sure to restart your server when you modify this file.
|
2
2
|
|
3
|
-
# Add new inflection rules using the following format
|
4
|
-
#
|
5
|
-
#
|
3
|
+
# Add new inflection rules using the following format. Inflections
|
4
|
+
# are locale specific, and you may define rules for as many different
|
5
|
+
# locales as you wish. All of these examples are active by default:
|
6
|
+
# ActiveSupport::Inflector.inflections(:en) do |inflect|
|
6
7
|
# inflect.plural /^(ox)$/i, '\1en'
|
7
8
|
# inflect.singular /^(ox)en/i, '\1'
|
8
9
|
# inflect.irregular 'person', 'people'
|
9
10
|
# inflect.uncountable %w( fish sheep )
|
10
11
|
# end
|
12
|
+
|
13
|
+
# These inflection rules are supported but not enabled by default:
|
14
|
+
# ActiveSupport::Inflector.inflections(:en) do |inflect|
|
15
|
+
# inflect.acronym 'RESTful'
|
16
|
+
# end
|
@@ -1,8 +1,3 @@
|
|
1
1
|
# Be sure to restart your server when you modify this file.
|
2
2
|
|
3
|
-
|
4
|
-
|
5
|
-
# Use the database for sessions instead of the cookie-based default,
|
6
|
-
# which shouldn't be used to store highly confidential information
|
7
|
-
# (create the session table with "rails generate session_migration")
|
8
|
-
# Dummy::Application.config.session_store :active_record_store
|
3
|
+
Rails.application.config.session_store :cookie_store, key: '_dummy_session'
|
@@ -0,0 +1,14 @@
|
|
1
|
+
# Be sure to restart your server when you modify this file.
|
2
|
+
|
3
|
+
# This file contains settings for ActionController::ParamsWrapper which
|
4
|
+
# is enabled by default.
|
5
|
+
|
6
|
+
# Enable parameter wrapping for JSON. You can disable this by setting :format to an empty array.
|
7
|
+
ActiveSupport.on_load(:action_controller) do
|
8
|
+
wrap_parameters format: [:json] if respond_to?(:wrap_parameters)
|
9
|
+
end
|
10
|
+
|
11
|
+
# To enable root element in JSON for ActiveRecord objects.
|
12
|
+
# ActiveSupport.on_load(:active_record) do
|
13
|
+
# self.include_root_in_json = true
|
14
|
+
# end
|
@@ -1,5 +1,23 @@
|
|
1
|
-
#
|
2
|
-
#
|
1
|
+
# Files in the config/locales directory are used for internationalization
|
2
|
+
# and are automatically loaded by Rails. If you want to use locales other
|
3
|
+
# than English, add the necessary files in this directory.
|
4
|
+
#
|
5
|
+
# To use the locales, use `I18n.t`:
|
6
|
+
#
|
7
|
+
# I18n.t 'hello'
|
8
|
+
#
|
9
|
+
# In views, this is aliased to just `t`:
|
10
|
+
#
|
11
|
+
# <%= t('hello') %>
|
12
|
+
#
|
13
|
+
# To use a different locale, set it with `I18n.locale`:
|
14
|
+
#
|
15
|
+
# I18n.locale = :es
|
16
|
+
#
|
17
|
+
# This would use the information in config/locales/es.yml.
|
18
|
+
#
|
19
|
+
# To learn more, please read the Rails Internationalization guide
|
20
|
+
# available at http://guides.rubyonrails.org/i18n.html.
|
3
21
|
|
4
22
|
en:
|
5
23
|
hello: "Hello world"
|
data/spec/dummy/config/routes.rb
CHANGED
@@ -0,0 +1,22 @@
|
|
1
|
+
# Be sure to restart your server when you modify this file.
|
2
|
+
|
3
|
+
# Your secret key is used for verifying the integrity of signed cookies.
|
4
|
+
# If you change this key, all old signed cookies will become invalid!
|
5
|
+
|
6
|
+
# Make sure the secret is at least 30 characters and all random,
|
7
|
+
# no regular words or you'll be exposed to dictionary attacks.
|
8
|
+
# You can use `rake secret` to generate a secure secret key.
|
9
|
+
|
10
|
+
# Make sure the secrets in this file are kept private
|
11
|
+
# if you're sharing your code publicly.
|
12
|
+
|
13
|
+
development:
|
14
|
+
secret_key_base: 54877071639f591ceae3604d3816d0a2e525c2def764ecf760f94f42d055ef968eafaa915fb152caca417edbe1a5019c6692ff1590d69396ff1cbe7e2a676e1e
|
15
|
+
|
16
|
+
test:
|
17
|
+
secret_key_base: e4e03f1c7167d75bbf4be4ff3353c5cf607ca1d84cd27f7937a5c0d175a201d9c30810f691365f5c9ca20cf92442eb05f3b43dfa2cb38d152148bfefc8dc7b42
|
18
|
+
|
19
|
+
# Do not keep production secrets in the repository,
|
20
|
+
# instead read values from the environment.
|
21
|
+
production:
|
22
|
+
secret_key_base: <%= ENV["SECRET_KEY_BASE"] %>
|
@@ -1,48 +1,48 @@
|
|
1
1
|
require 'spec_helper'
|
2
2
|
|
3
|
-
describe Panoramic::Orm::ActiveRecord do
|
4
|
-
|
5
|
-
let(:template) { FactoryGirl.build :database_template }
|
3
|
+
describe Panoramic::Orm::ActiveRecord, type: :model do
|
4
|
+
let(:template) { FactoryGirl.build :database_template }
|
6
5
|
|
6
|
+
context "validations" do
|
7
7
|
it "has body present" do
|
8
8
|
template.body = nil
|
9
|
-
template.
|
9
|
+
expect(template).to_not be_valid
|
10
|
+
expect(template.errors[:body].size).to eq(1)
|
10
11
|
end
|
11
12
|
|
12
13
|
context "MIME format" do
|
13
14
|
it "is valid" do
|
14
15
|
template.format = 'notknown'
|
15
|
-
template.
|
16
|
+
expect(template).to_not be_valid
|
17
|
+
expect(template.errors[:format].size).to eq(1)
|
16
18
|
end
|
17
19
|
|
18
20
|
it "is present" do
|
19
21
|
template.format = nil
|
20
|
-
template.
|
22
|
+
expect(template).to_not be_valid
|
23
|
+
expect(template.errors[:format].size).to eq(1)
|
21
24
|
end
|
22
25
|
end
|
23
26
|
|
24
27
|
context "locale" do
|
25
|
-
it "is valid" do
|
26
|
-
template.locale = 'notknown'
|
27
|
-
template.should have(1).errors_on(:locale)
|
28
|
-
end
|
29
|
-
|
30
|
-
it "is present" do
|
28
|
+
it "is valid even if not present" do
|
31
29
|
template.locale = nil
|
32
|
-
template.
|
30
|
+
expect(template).to be_valid
|
33
31
|
end
|
34
32
|
end
|
33
|
+
end
|
35
34
|
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
35
|
+
context "handler" do
|
36
|
+
it "is valid" do
|
37
|
+
template.handler = 'notknown'
|
38
|
+
expect(template).to_not be_valid
|
39
|
+
expect(template.errors[:handler].size).to eq(1)
|
40
|
+
end
|
41
41
|
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
42
|
+
it "is present" do
|
43
|
+
template.handler = nil
|
44
|
+
expect(template).to_not be_valid
|
45
|
+
expect(template.errors[:handler].size).to eq(1)
|
46
46
|
end
|
47
47
|
end
|
48
48
|
|
@@ -60,24 +60,24 @@ describe Panoramic::Orm::ActiveRecord do
|
|
60
60
|
details = { :formats => [:html], :locale => [:en], :handlers => [:erb] }
|
61
61
|
|
62
62
|
template = resolver.find_all("some_list", "foo", false, details, cache_key).first
|
63
|
-
template.source.
|
63
|
+
expect(template.source).to match(/Listing something/)
|
64
64
|
|
65
65
|
db_template.update_attributes(:body => "New body for template")
|
66
66
|
|
67
67
|
template = resolver.find_all("some_list", "foo", false, details, cache_key).first
|
68
|
-
template.source.
|
68
|
+
expect(template.source).to match(/New body for template/)
|
69
69
|
end
|
70
70
|
end
|
71
71
|
|
72
72
|
context "#resolver" do
|
73
73
|
it "#returns a Resolver instance" do
|
74
|
-
DatabaseTemplate.resolver.
|
74
|
+
expect(DatabaseTemplate.resolver).to be_a(Panoramic::Resolver)
|
75
75
|
end
|
76
76
|
end
|
77
77
|
|
78
78
|
context "ActiveRecord::Base" do
|
79
79
|
it "responds to store_templates" do
|
80
|
-
ActiveRecord::Base.
|
80
|
+
expect(ActiveRecord::Base).to respond_to(:store_templates)
|
81
81
|
end
|
82
82
|
end
|
83
83
|
end
|
data/spec/resolver_spec.rb
CHANGED
@@ -4,10 +4,38 @@ describe Panoramic::Resolver do
|
|
4
4
|
let(:resolver) { Panoramic::Resolver.using(DatabaseTemplate) }
|
5
5
|
|
6
6
|
context ".find_templates" do
|
7
|
-
it "
|
7
|
+
it "should lookup templates for given params" do
|
8
8
|
template = FactoryGirl.create(:database_template, :path => 'foo/example')
|
9
9
|
details = { :formats => [:html], :locale => [:en], :handlers => [:erb] }
|
10
|
-
resolver.find_templates('example', 'foo', false, details).first.
|
10
|
+
expect(resolver.find_templates('example', 'foo', false, details).first).to_not be_nil
|
11
|
+
end
|
12
|
+
|
13
|
+
it "should lookup locale agnostic templates for given params" do
|
14
|
+
template = FactoryGirl.create(:database_template, :path => 'foo/example', :locale => nil)
|
15
|
+
details = { :formats => [:html], :locale => [:en], :handlers => [:erb] }
|
16
|
+
expect(resolver.find_templates('example', 'foo', false, details).first).to_not be_nil
|
17
|
+
end
|
18
|
+
|
19
|
+
it "should lookup templates for given params and prefixes" do
|
20
|
+
resolver = Panoramic::Resolver.using(DatabaseTemplate, :only => 'foo')
|
21
|
+
details = { :formats => [:html], :locale => [:en], :handlers => [:erb] }
|
22
|
+
|
23
|
+
template = FactoryGirl.create(:database_template, :path => 'bar/example')
|
24
|
+
expect(resolver.find_templates('example', 'bar', false, details).first).to be_nil
|
25
|
+
|
26
|
+
template = FactoryGirl.create(:database_template, :path => 'foo/example')
|
27
|
+
expect(resolver.find_templates('example', 'foo', false, details).first).to_not be_nil
|
28
|
+
end
|
29
|
+
|
30
|
+
it "should lookup multiple templates" do
|
31
|
+
resolver = Panoramic::Resolver.using(DatabaseTemplate, :only => 'foo')
|
32
|
+
details = { :formats => [:html,:text], :locale => [:en], :handlers => [:erb] }
|
33
|
+
details[:formats].each do |format|
|
34
|
+
FactoryGirl.create(:database_template, :path => 'foo/example', :format => format.to_s)
|
35
|
+
end
|
36
|
+
templates = resolver.find_templates('example', 'foo', false, details)
|
37
|
+
expect(templates.length).to be >= 2
|
38
|
+
expect(templates.map(&:formats).flatten.uniq).to eq([:html, :text])
|
11
39
|
end
|
12
40
|
end
|
13
41
|
end
|
@@ -17,17 +45,17 @@ describe_private Panoramic::Resolver, '(private methods)' do
|
|
17
45
|
|
18
46
|
context "#build_path" do
|
19
47
|
it "returns prefix/name if prefix is passed" do
|
20
|
-
resolver.build_path('path', 'prefix').
|
48
|
+
expect(resolver.build_path('path', 'prefix')).to eq('prefix/path')
|
21
49
|
end
|
22
50
|
|
23
51
|
it "returns name if prefix is nil" do
|
24
|
-
resolver.build_path('path',nil).
|
52
|
+
expect(resolver.build_path('path',nil)).to eq('path')
|
25
53
|
end
|
26
54
|
end
|
27
55
|
|
28
56
|
context "#normalize_array" do
|
29
57
|
it "converts all symbols to strings" do
|
30
|
-
resolver.normalize_array([:something, 'that', :matters]).
|
58
|
+
expect(resolver.normalize_array([:something, 'that', :matters])).to eq(['something','that','matters'])
|
31
59
|
end
|
32
60
|
end
|
33
61
|
|
@@ -35,17 +63,17 @@ describe_private Panoramic::Resolver, '(private methods)' do
|
|
35
63
|
let(:template) { FactoryGirl.create :database_template }
|
36
64
|
|
37
65
|
it "initializes an ActionView::Template object" do
|
38
|
-
resolver.initialize_template(template).
|
66
|
+
expect(resolver.initialize_template(template)).to be_a(ActionView::Template)
|
39
67
|
end
|
40
68
|
end
|
41
69
|
|
42
70
|
context "#virtual_path" do
|
43
71
|
it "returns 'path' if is not a partial" do
|
44
|
-
resolver.virtual_path('path',false).
|
72
|
+
expect(resolver.virtual_path('path',false)).to eq('path')
|
45
73
|
end
|
46
74
|
|
47
75
|
it "returns '_path' if is a partial" do
|
48
|
-
resolver.virtual_path('path',true).
|
76
|
+
expect(resolver.virtual_path('path',true)).to eq('_path')
|
49
77
|
end
|
50
78
|
end
|
51
79
|
|
metadata
CHANGED
@@ -1,112 +1,99 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: panoramic
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
5
|
-
prerelease:
|
4
|
+
version: 0.0.6
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- Andrea Pavoni
|
9
8
|
autorequire:
|
10
9
|
bindir: bin
|
11
10
|
cert_chain: []
|
12
|
-
date:
|
11
|
+
date: 2016-02-24 00:00:00.000000000 Z
|
13
12
|
dependencies:
|
14
13
|
- !ruby/object:Gem::Dependency
|
15
14
|
name: rails
|
16
15
|
requirement: !ruby/object:Gem::Requirement
|
17
|
-
none: false
|
18
16
|
requirements:
|
19
|
-
- -
|
17
|
+
- - ">="
|
20
18
|
- !ruby/object:Gem::Version
|
21
19
|
version: 3.0.7
|
22
20
|
type: :runtime
|
23
21
|
prerelease: false
|
24
22
|
version_requirements: !ruby/object:Gem::Requirement
|
25
|
-
none: false
|
26
23
|
requirements:
|
27
|
-
- -
|
24
|
+
- - ">="
|
28
25
|
- !ruby/object:Gem::Version
|
29
26
|
version: 3.0.7
|
30
27
|
- !ruby/object:Gem::Dependency
|
31
28
|
name: capybara
|
32
29
|
requirement: !ruby/object:Gem::Requirement
|
33
|
-
none: false
|
34
30
|
requirements:
|
35
|
-
- - ~>
|
31
|
+
- - "~>"
|
36
32
|
- !ruby/object:Gem::Version
|
37
|
-
version:
|
33
|
+
version: 2.5.0
|
38
34
|
type: :development
|
39
35
|
prerelease: false
|
40
36
|
version_requirements: !ruby/object:Gem::Requirement
|
41
|
-
none: false
|
42
37
|
requirements:
|
43
|
-
- - ~>
|
38
|
+
- - "~>"
|
44
39
|
- !ruby/object:Gem::Version
|
45
|
-
version:
|
40
|
+
version: 2.5.0
|
46
41
|
- !ruby/object:Gem::Dependency
|
47
42
|
name: factory_girl
|
48
43
|
requirement: !ruby/object:Gem::Requirement
|
49
|
-
none: false
|
50
44
|
requirements:
|
51
|
-
- -
|
45
|
+
- - ">="
|
52
46
|
- !ruby/object:Gem::Version
|
53
47
|
version: '0'
|
54
48
|
type: :development
|
55
49
|
prerelease: false
|
56
50
|
version_requirements: !ruby/object:Gem::Requirement
|
57
|
-
none: false
|
58
51
|
requirements:
|
59
|
-
- -
|
52
|
+
- - ">="
|
60
53
|
- !ruby/object:Gem::Version
|
61
54
|
version: '0'
|
62
55
|
- !ruby/object:Gem::Dependency
|
63
56
|
name: simplecov
|
64
57
|
requirement: !ruby/object:Gem::Requirement
|
65
|
-
none: false
|
66
58
|
requirements:
|
67
|
-
- -
|
59
|
+
- - ">="
|
68
60
|
- !ruby/object:Gem::Version
|
69
61
|
version: '0'
|
70
62
|
type: :development
|
71
63
|
prerelease: false
|
72
64
|
version_requirements: !ruby/object:Gem::Requirement
|
73
|
-
none: false
|
74
65
|
requirements:
|
75
|
-
- -
|
66
|
+
- - ">="
|
76
67
|
- !ruby/object:Gem::Version
|
77
68
|
version: '0'
|
78
69
|
- !ruby/object:Gem::Dependency
|
79
70
|
name: sqlite3
|
80
71
|
requirement: !ruby/object:Gem::Requirement
|
81
|
-
none: false
|
82
72
|
requirements:
|
83
|
-
- -
|
73
|
+
- - ">="
|
84
74
|
- !ruby/object:Gem::Version
|
85
75
|
version: '0'
|
86
76
|
type: :development
|
87
77
|
prerelease: false
|
88
78
|
version_requirements: !ruby/object:Gem::Requirement
|
89
|
-
none: false
|
90
79
|
requirements:
|
91
|
-
- -
|
80
|
+
- - ">="
|
92
81
|
- !ruby/object:Gem::Version
|
93
82
|
version: '0'
|
94
83
|
- !ruby/object:Gem::Dependency
|
95
84
|
name: rspec-rails
|
96
85
|
requirement: !ruby/object:Gem::Requirement
|
97
|
-
none: false
|
98
86
|
requirements:
|
99
|
-
- - ~>
|
87
|
+
- - "~>"
|
100
88
|
- !ruby/object:Gem::Version
|
101
|
-
version:
|
89
|
+
version: '3.0'
|
102
90
|
type: :development
|
103
91
|
prerelease: false
|
104
92
|
version_requirements: !ruby/object:Gem::Requirement
|
105
|
-
none: false
|
106
93
|
requirements:
|
107
|
-
- - ~>
|
94
|
+
- - "~>"
|
108
95
|
- !ruby/object:Gem::Version
|
109
|
-
version:
|
96
|
+
version: '3.0'
|
110
97
|
description: Stores rails views on database
|
111
98
|
email:
|
112
99
|
- andrea.pavoni@gmail.com
|
@@ -114,13 +101,14 @@ executables: []
|
|
114
101
|
extensions: []
|
115
102
|
extra_rdoc_files: []
|
116
103
|
files:
|
117
|
-
- .gitignore
|
118
|
-
- .travis.yml
|
104
|
+
- ".gitignore"
|
105
|
+
- ".travis.yml"
|
119
106
|
- Gemfile
|
120
107
|
- Gemfile.lock
|
121
108
|
- MIT-LICENSE
|
122
109
|
- README.md
|
123
110
|
- Rakefile
|
111
|
+
- gemfiles/active_record.gemfile
|
124
112
|
- lib/panoramic.rb
|
125
113
|
- lib/panoramic/orm/active_record.rb
|
126
114
|
- lib/panoramic/resolver.rb
|
@@ -130,8 +118,13 @@ files:
|
|
130
118
|
- spec/dummy/app/controllers/application_controller.rb
|
131
119
|
- spec/dummy/app/controllers/foo_controller.rb
|
132
120
|
- spec/dummy/app/helpers/application_helper.rb
|
121
|
+
- spec/dummy/app/models/.keep
|
133
122
|
- spec/dummy/app/models/database_template.rb
|
134
123
|
- spec/dummy/app/views/layouts/application.html.erb
|
124
|
+
- spec/dummy/bin/bundle
|
125
|
+
- spec/dummy/bin/rails
|
126
|
+
- spec/dummy/bin/rake
|
127
|
+
- spec/dummy/bin/setup
|
135
128
|
- spec/dummy/config.ru
|
136
129
|
- spec/dummy/config/application.rb
|
137
130
|
- spec/dummy/config/boot.rb
|
@@ -140,13 +133,18 @@ files:
|
|
140
133
|
- spec/dummy/config/environments/development.rb
|
141
134
|
- spec/dummy/config/environments/production.rb
|
142
135
|
- spec/dummy/config/environments/test.rb
|
136
|
+
- spec/dummy/config/initializers/assets.rb
|
143
137
|
- spec/dummy/config/initializers/backtrace_silencers.rb
|
138
|
+
- spec/dummy/config/initializers/cookies_serializer.rb
|
139
|
+
- spec/dummy/config/initializers/filter_parameter_logging.rb
|
144
140
|
- spec/dummy/config/initializers/inflections.rb
|
145
141
|
- spec/dummy/config/initializers/mime_types.rb
|
146
142
|
- spec/dummy/config/initializers/secret_token.rb
|
147
143
|
- spec/dummy/config/initializers/session_store.rb
|
144
|
+
- spec/dummy/config/initializers/wrap_parameters.rb
|
148
145
|
- spec/dummy/config/locales/en.yml
|
149
146
|
- spec/dummy/config/routes.rb
|
147
|
+
- spec/dummy/config/secrets.yml
|
150
148
|
- spec/dummy/db/migrate/20110526132353_create_database_templates.rb
|
151
149
|
- spec/dummy/db/schema.rb
|
152
150
|
- spec/dummy/script/rails
|
@@ -157,32 +155,65 @@ files:
|
|
157
155
|
- spec/support/factories.rb
|
158
156
|
homepage: http://github.com/apeacox/panoramic
|
159
157
|
licenses: []
|
158
|
+
metadata: {}
|
160
159
|
post_install_message:
|
161
160
|
rdoc_options: []
|
162
161
|
require_paths:
|
163
162
|
- lib
|
164
163
|
required_ruby_version: !ruby/object:Gem::Requirement
|
165
|
-
none: false
|
166
164
|
requirements:
|
167
|
-
- -
|
165
|
+
- - ">="
|
168
166
|
- !ruby/object:Gem::Version
|
169
167
|
version: '0'
|
170
|
-
segments:
|
171
|
-
- 0
|
172
|
-
hash: -106334275974701259
|
173
168
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
174
|
-
none: false
|
175
169
|
requirements:
|
176
|
-
- -
|
170
|
+
- - ">="
|
177
171
|
- !ruby/object:Gem::Version
|
178
172
|
version: '0'
|
179
|
-
segments:
|
180
|
-
- 0
|
181
|
-
hash: -106334275974701259
|
182
173
|
requirements: []
|
183
174
|
rubyforge_project:
|
184
|
-
rubygems_version:
|
175
|
+
rubygems_version: 2.4.5.1
|
185
176
|
signing_key:
|
186
|
-
specification_version:
|
177
|
+
specification_version: 4
|
187
178
|
summary: Stores rails views on database
|
188
|
-
test_files:
|
179
|
+
test_files:
|
180
|
+
- spec/controllers/rendering_spec.rb
|
181
|
+
- spec/dummy/Rakefile
|
182
|
+
- spec/dummy/app/controllers/application_controller.rb
|
183
|
+
- spec/dummy/app/controllers/foo_controller.rb
|
184
|
+
- spec/dummy/app/helpers/application_helper.rb
|
185
|
+
- spec/dummy/app/models/.keep
|
186
|
+
- spec/dummy/app/models/database_template.rb
|
187
|
+
- spec/dummy/app/views/layouts/application.html.erb
|
188
|
+
- spec/dummy/bin/bundle
|
189
|
+
- spec/dummy/bin/rails
|
190
|
+
- spec/dummy/bin/rake
|
191
|
+
- spec/dummy/bin/setup
|
192
|
+
- spec/dummy/config.ru
|
193
|
+
- spec/dummy/config/application.rb
|
194
|
+
- spec/dummy/config/boot.rb
|
195
|
+
- spec/dummy/config/database.yml
|
196
|
+
- spec/dummy/config/environment.rb
|
197
|
+
- spec/dummy/config/environments/development.rb
|
198
|
+
- spec/dummy/config/environments/production.rb
|
199
|
+
- spec/dummy/config/environments/test.rb
|
200
|
+
- spec/dummy/config/initializers/assets.rb
|
201
|
+
- spec/dummy/config/initializers/backtrace_silencers.rb
|
202
|
+
- spec/dummy/config/initializers/cookies_serializer.rb
|
203
|
+
- spec/dummy/config/initializers/filter_parameter_logging.rb
|
204
|
+
- spec/dummy/config/initializers/inflections.rb
|
205
|
+
- spec/dummy/config/initializers/mime_types.rb
|
206
|
+
- spec/dummy/config/initializers/secret_token.rb
|
207
|
+
- spec/dummy/config/initializers/session_store.rb
|
208
|
+
- spec/dummy/config/initializers/wrap_parameters.rb
|
209
|
+
- spec/dummy/config/locales/en.yml
|
210
|
+
- spec/dummy/config/routes.rb
|
211
|
+
- spec/dummy/config/secrets.yml
|
212
|
+
- spec/dummy/db/migrate/20110526132353_create_database_templates.rb
|
213
|
+
- spec/dummy/db/schema.rb
|
214
|
+
- spec/dummy/script/rails
|
215
|
+
- spec/orm/active_record_spec.rb
|
216
|
+
- spec/resolver_spec.rb
|
217
|
+
- spec/spec_helper.rb
|
218
|
+
- spec/support/describe_private.rb
|
219
|
+
- spec/support/factories.rb
|