stachio 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +9 -0
- data/.rspec +1 -0
- data/.ruby-version +1 -0
- data/.simplecov +21 -0
- data/Gemfile +3 -0
- data/Gemfile.lock +152 -0
- data/MIT-LICENSE +20 -0
- data/README.md +3 -0
- data/Rakefile +50 -0
- data/app/assets/images/stachio/.gitkeep +0 -0
- data/app/assets/javascripts/stachio/application.js +15 -0
- data/app/assets/javascripts/stachio/templates.js +2 -0
- data/app/assets/stylesheets/scaffold.css +56 -0
- data/app/assets/stylesheets/stachio/application.css +13 -0
- data/app/assets/stylesheets/stachio/templates.css +4 -0
- data/app/controllers/stachio/application_controller.rb +4 -0
- data/app/controllers/stachio/templates_controller.rb +87 -0
- data/app/helpers/stachio/application_helper.rb +4 -0
- data/app/helpers/stachio/templates_helper.rb +4 -0
- data/app/models/stachio/template.rb +21 -0
- data/app/views/layouts/stachio/application.html.erb +14 -0
- data/app/views/stachio/templates/_form.html.erb +25 -0
- data/app/views/stachio/templates/edit.html.erb +6 -0
- data/app/views/stachio/templates/index.html.erb +25 -0
- data/app/views/stachio/templates/new.html.erb +5 -0
- data/app/views/stachio/templates/show.html.erb +15 -0
- data/config/routes.rb +4 -0
- data/db/migrate/20130509172418_create_stachio_templates.rb +10 -0
- data/lib/stachio.rb +4 -0
- data/lib/stachio/engine.rb +17 -0
- data/lib/stachio/proxy.rb +20 -0
- data/lib/stachio/version.rb +3 -0
- data/lib/tasks/stachio_tasks.rake +4 -0
- data/script/rails +8 -0
- data/spec/controllers/stachio/templates_controller_spec.rb +167 -0
- data/spec/dummy/.rspec +1 -0
- data/spec/dummy/.ruby-version +1 -0
- data/spec/dummy/README.md +3 -0
- data/spec/dummy/Rakefile +7 -0
- data/spec/dummy/app/assets/javascripts/application.js +15 -0
- data/spec/dummy/app/assets/stylesheets/application.css +13 -0
- data/spec/dummy/app/controllers/application_controller.rb +3 -0
- data/spec/dummy/app/helpers/application_helper.rb +2 -0
- data/spec/dummy/app/mailers/.gitkeep +0 -0
- data/spec/dummy/app/models/.gitkeep +0 -0
- data/spec/dummy/app/views/layouts/application.html.erb +14 -0
- data/spec/dummy/config.ru +4 -0
- data/spec/dummy/config/application.rb +66 -0
- data/spec/dummy/config/boot.rb +10 -0
- data/spec/dummy/config/database.yml +25 -0
- data/spec/dummy/config/environment.rb +5 -0
- data/spec/dummy/config/environments/development.rb +37 -0
- data/spec/dummy/config/environments/production.rb +67 -0
- data/spec/dummy/config/environments/test.rb +37 -0
- data/spec/dummy/config/initializers/backtrace_silencers.rb +7 -0
- data/spec/dummy/config/initializers/inflections.rb +15 -0
- data/spec/dummy/config/initializers/mime_types.rb +5 -0
- data/spec/dummy/config/initializers/secret_token.rb +7 -0
- data/spec/dummy/config/initializers/session_store.rb +8 -0
- data/spec/dummy/config/initializers/wrap_parameters.rb +14 -0
- data/spec/dummy/config/locales/en.yml +5 -0
- data/spec/dummy/config/routes.rb +4 -0
- data/spec/dummy/db/schema.rb +23 -0
- data/spec/dummy/lib/assets/.gitkeep +0 -0
- data/spec/dummy/log/.gitkeep +0 -0
- data/spec/dummy/public/404.html +26 -0
- data/spec/dummy/public/422.html +26 -0
- data/spec/dummy/public/500.html +25 -0
- data/spec/dummy/public/favicon.ico +0 -0
- data/spec/dummy/script/rails +6 -0
- data/spec/helpers/stachio/templates_helper_spec.rb +17 -0
- data/spec/models/stachio/template_spec.rb +54 -0
- data/spec/requests/stachio/stachio_templates_spec.rb +11 -0
- data/spec/routing/stachio/templates_routing_spec.rb +37 -0
- data/spec/spec_helper.rb +50 -0
- data/stachio.gemspec +33 -0
- metadata +374 -0
@@ -0,0 +1,25 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<title>We're sorry, but something went wrong (500)</title>
|
5
|
+
<style type="text/css">
|
6
|
+
body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
|
7
|
+
div.dialog {
|
8
|
+
width: 25em;
|
9
|
+
padding: 0 4em;
|
10
|
+
margin: 4em auto 0 auto;
|
11
|
+
border: 1px solid #ccc;
|
12
|
+
border-right-color: #999;
|
13
|
+
border-bottom-color: #999;
|
14
|
+
}
|
15
|
+
h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
|
16
|
+
</style>
|
17
|
+
</head>
|
18
|
+
|
19
|
+
<body>
|
20
|
+
<!-- This file lives in public/500.html -->
|
21
|
+
<div class="dialog">
|
22
|
+
<h1>We're sorry, but something went wrong.</h1>
|
23
|
+
</div>
|
24
|
+
</body>
|
25
|
+
</html>
|
File without changes
|
@@ -0,0 +1,6 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
# This command will automatically be run when you run "rails" with Rails 3 gems installed from the root of your application.
|
3
|
+
|
4
|
+
APP_PATH = File.expand_path('../../config/application', __FILE__)
|
5
|
+
require File.expand_path('../../config/boot', __FILE__)
|
6
|
+
require 'rails/commands'
|
@@ -0,0 +1,17 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
# Specs in this file have access to a helper object that includes
|
4
|
+
# the TemplatesHelper. For example:
|
5
|
+
#
|
6
|
+
# describe TemplatesHelper do
|
7
|
+
# describe "string concat" do
|
8
|
+
# it "concats two strings with spaces" do
|
9
|
+
# helper.concat_strings("this","that").should == "this that"
|
10
|
+
# end
|
11
|
+
# end
|
12
|
+
# end
|
13
|
+
module Stachio
|
14
|
+
describe TemplatesHelper do
|
15
|
+
pending "add some examples to (or delete) #{__FILE__}"
|
16
|
+
end
|
17
|
+
end
|
@@ -0,0 +1,54 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
module Stachio
|
4
|
+
class MockProxyObject
|
5
|
+
def teapot
|
6
|
+
"TEAPOT"
|
7
|
+
end
|
8
|
+
end
|
9
|
+
|
10
|
+
describe Template do
|
11
|
+
let(:template) do
|
12
|
+
attrs = { :template_name => "my silly teapot",
|
13
|
+
:content => "I am a {{teapot}}",
|
14
|
+
}
|
15
|
+
template = Template.new(attrs)
|
16
|
+
template.proxied = MockProxyObject.new
|
17
|
+
template
|
18
|
+
end
|
19
|
+
|
20
|
+
it "stores templates in the database" do
|
21
|
+
template.save!.should be_true
|
22
|
+
Template.count.should eql(1)
|
23
|
+
Template.first.should == template
|
24
|
+
end
|
25
|
+
|
26
|
+
it "validates the presence of template_name" do
|
27
|
+
template.template_name = ""
|
28
|
+
template.should_not be_valid
|
29
|
+
template.template_name = "but i am a template!"
|
30
|
+
template.should be_valid
|
31
|
+
end
|
32
|
+
|
33
|
+
it "validates the presence of content" do
|
34
|
+
template.content = ""
|
35
|
+
template.should_not be_valid
|
36
|
+
template.content = "but i am a {{teapot}}!"
|
37
|
+
template.should be_valid
|
38
|
+
end
|
39
|
+
|
40
|
+
it "fetches templates from the database using the template name" do
|
41
|
+
template.save!
|
42
|
+
template.should == Template['my silly teapot']
|
43
|
+
end
|
44
|
+
|
45
|
+
it "composes messages using the content of the template" do
|
46
|
+
template.compose.should == "I am a TEAPOT"
|
47
|
+
end
|
48
|
+
|
49
|
+
it "reports an error when it can't compose the message" do
|
50
|
+
template.content = "I am not a valid {{horseradish}}"
|
51
|
+
expect { template.compose }.to raise_error(Mustache::ContextMiss)
|
52
|
+
end
|
53
|
+
end
|
54
|
+
end
|
@@ -0,0 +1,11 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
describe "Templates" do
|
4
|
+
describe "GET /stachio_templates" do
|
5
|
+
it "works! (now write some real specs)" do
|
6
|
+
# Run the generator again with the --webrat flag if you want to use webrat methods/matchers
|
7
|
+
get templates_path
|
8
|
+
response.status.should be(200)
|
9
|
+
end
|
10
|
+
end
|
11
|
+
end
|
@@ -0,0 +1,37 @@
|
|
1
|
+
require "spec_helper"
|
2
|
+
|
3
|
+
module Stachio
|
4
|
+
describe TemplatesController do
|
5
|
+
describe "routing" do
|
6
|
+
|
7
|
+
it "routes to #index" do
|
8
|
+
get("/templates").should route_to("stachio/templates#index")
|
9
|
+
end
|
10
|
+
|
11
|
+
it "routes to #new" do
|
12
|
+
get("/templates/new").should route_to("stachio/templates#new")
|
13
|
+
end
|
14
|
+
|
15
|
+
it "routes to #show" do
|
16
|
+
get("/templates/1").should route_to("stachio/templates#show", :id => "1")
|
17
|
+
end
|
18
|
+
|
19
|
+
it "routes to #edit" do
|
20
|
+
get("/templates/1/edit").should route_to("stachio/templates#edit", :id => "1")
|
21
|
+
end
|
22
|
+
|
23
|
+
it "routes to #create" do
|
24
|
+
post("/templates").should route_to("stachio/templates#create")
|
25
|
+
end
|
26
|
+
|
27
|
+
it "routes to #update" do
|
28
|
+
put("/templates/1").should route_to("stachio/templates#update", :id => "1")
|
29
|
+
end
|
30
|
+
|
31
|
+
it "routes to #destroy" do
|
32
|
+
delete("/templates/1").should route_to("stachio/templates#destroy", :id => "1")
|
33
|
+
end
|
34
|
+
|
35
|
+
end
|
36
|
+
end
|
37
|
+
end
|
data/spec/spec_helper.rb
ADDED
@@ -0,0 +1,50 @@
|
|
1
|
+
# This file is copied to spec/ when you run 'rails generate rspec:install'
|
2
|
+
ENV["RAILS_ENV"] ||= 'test'
|
3
|
+
|
4
|
+
# require File.expand_path("../../config/environment", __FILE__)
|
5
|
+
require File.expand_path("../dummy/config/environment", __FILE__)
|
6
|
+
|
7
|
+
require 'rspec/rails'
|
8
|
+
require 'rspec/autorun'
|
9
|
+
require 'simplecov'
|
10
|
+
require 'pry'
|
11
|
+
|
12
|
+
# Requires supporting ruby files with custom matchers and macros, etc,
|
13
|
+
# in spec/support/ and its subdirectories.
|
14
|
+
Dir[Rails.root.join("spec/support/**/*.rb")].each { |f| require f }
|
15
|
+
|
16
|
+
RSpec.configure do |config|
|
17
|
+
# ## Mock Framework
|
18
|
+
#
|
19
|
+
# If you prefer to use mocha, flexmock or RR, uncomment the appropriate line:
|
20
|
+
#
|
21
|
+
# config.mock_with :mocha
|
22
|
+
# config.mock_with :flexmock
|
23
|
+
# config.mock_with :rr
|
24
|
+
|
25
|
+
# Remove this line if you're not using ActiveRecord or ActiveRecord fixtures
|
26
|
+
config.fixture_path = "#{::Rails.root}/spec/fixtures"
|
27
|
+
|
28
|
+
# If you're not using ActiveRecord, or you'd prefer not to run each of your
|
29
|
+
# examples within a transaction, remove the following line or assign false
|
30
|
+
# instead of true.
|
31
|
+
config.use_transactional_fixtures = true
|
32
|
+
|
33
|
+
# If true, the base class of anonymous controllers will be inferred
|
34
|
+
# automatically. This will be the default behavior in future versions of
|
35
|
+
# rspec-rails.
|
36
|
+
config.infer_base_class_for_anonymous_controllers = false
|
37
|
+
|
38
|
+
# Run specs in random order to surface order dependencies. If you find an
|
39
|
+
# order dependency and want to debug it, you can fix the order by providing
|
40
|
+
# the seed, which is printed after each run.
|
41
|
+
# --seed 1234
|
42
|
+
config.order = "random"
|
43
|
+
|
44
|
+
# Mountable engine, y'all. Let's get the routing right.
|
45
|
+
config.include Stachio::Engine.routes.url_helpers
|
46
|
+
|
47
|
+
[:controller, :requests, :routing].each do |type|
|
48
|
+
config.before(:each, :type => type) { self.routes = Stachio::Engine.routes }
|
49
|
+
end
|
50
|
+
end
|
data/stachio.gemspec
ADDED
@@ -0,0 +1,33 @@
|
|
1
|
+
$:.push File.expand_path("../lib", __FILE__)
|
2
|
+
|
3
|
+
# Maintain your gem's version:
|
4
|
+
require "stachio/version"
|
5
|
+
|
6
|
+
# Describe your gem and declare its dependencies:
|
7
|
+
Gem::Specification.new do |s|
|
8
|
+
s.name = "stachio"
|
9
|
+
s.version = Stachio::VERSION
|
10
|
+
s.authors = ["Blake Thomas", "Enova Financial"]
|
11
|
+
s.email = ["bwthomas@gmail.com", "bthomas@enova.com"]
|
12
|
+
s.homepage = "https://github.com/bwthomas/stachio"
|
13
|
+
s.summary = "Stash your Stache with Stachio."
|
14
|
+
s.description = "Stachio is a rails engine which aims to facilitate the creation, retrieval, update, & deletion of mustache templates in a relational database."
|
15
|
+
|
16
|
+
s.files = `git ls-files`.split("\n")
|
17
|
+
s.test_files = `git ls-files -- {test,spec}/*`.split("\n")
|
18
|
+
|
19
|
+
s.add_dependency "rails", "~> 3.2.13"
|
20
|
+
s.add_dependency "lookup_by"
|
21
|
+
s.add_dependency "jquery-rails" ## required by the dummy application
|
22
|
+
s.add_dependency "stache" ## use mustache/handlebars for views
|
23
|
+
s.add_dependency "mustache"
|
24
|
+
s.add_dependency "handlebars"
|
25
|
+
|
26
|
+
s.add_development_dependency "sqlite3"
|
27
|
+
s.add_development_dependency "rspec-rails"
|
28
|
+
s.add_development_dependency "rspec-fire"
|
29
|
+
s.add_development_dependency 'simplecov'
|
30
|
+
s.add_development_dependency 'simplecov-rcov'
|
31
|
+
s.add_development_dependency 'rspec'
|
32
|
+
s.add_development_dependency 'pry'
|
33
|
+
end
|
metadata
ADDED
@@ -0,0 +1,374 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: stachio
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.1
|
5
|
+
prerelease:
|
6
|
+
platform: ruby
|
7
|
+
authors:
|
8
|
+
- Blake Thomas
|
9
|
+
- Enova Financial
|
10
|
+
autorequire:
|
11
|
+
bindir: bin
|
12
|
+
cert_chain: []
|
13
|
+
date: 2013-05-13 00:00:00.000000000 Z
|
14
|
+
dependencies:
|
15
|
+
- !ruby/object:Gem::Dependency
|
16
|
+
name: rails
|
17
|
+
requirement: !ruby/object:Gem::Requirement
|
18
|
+
none: false
|
19
|
+
requirements:
|
20
|
+
- - ~>
|
21
|
+
- !ruby/object:Gem::Version
|
22
|
+
version: 3.2.13
|
23
|
+
type: :runtime
|
24
|
+
prerelease: false
|
25
|
+
version_requirements: !ruby/object:Gem::Requirement
|
26
|
+
none: false
|
27
|
+
requirements:
|
28
|
+
- - ~>
|
29
|
+
- !ruby/object:Gem::Version
|
30
|
+
version: 3.2.13
|
31
|
+
- !ruby/object:Gem::Dependency
|
32
|
+
name: lookup_by
|
33
|
+
requirement: !ruby/object:Gem::Requirement
|
34
|
+
none: false
|
35
|
+
requirements:
|
36
|
+
- - ! '>='
|
37
|
+
- !ruby/object:Gem::Version
|
38
|
+
version: '0'
|
39
|
+
type: :runtime
|
40
|
+
prerelease: false
|
41
|
+
version_requirements: !ruby/object:Gem::Requirement
|
42
|
+
none: false
|
43
|
+
requirements:
|
44
|
+
- - ! '>='
|
45
|
+
- !ruby/object:Gem::Version
|
46
|
+
version: '0'
|
47
|
+
- !ruby/object:Gem::Dependency
|
48
|
+
name: jquery-rails
|
49
|
+
requirement: !ruby/object:Gem::Requirement
|
50
|
+
none: false
|
51
|
+
requirements:
|
52
|
+
- - ! '>='
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0'
|
55
|
+
type: :runtime
|
56
|
+
prerelease: false
|
57
|
+
version_requirements: !ruby/object:Gem::Requirement
|
58
|
+
none: false
|
59
|
+
requirements:
|
60
|
+
- - ! '>='
|
61
|
+
- !ruby/object:Gem::Version
|
62
|
+
version: '0'
|
63
|
+
- !ruby/object:Gem::Dependency
|
64
|
+
name: stache
|
65
|
+
requirement: !ruby/object:Gem::Requirement
|
66
|
+
none: false
|
67
|
+
requirements:
|
68
|
+
- - ! '>='
|
69
|
+
- !ruby/object:Gem::Version
|
70
|
+
version: '0'
|
71
|
+
type: :runtime
|
72
|
+
prerelease: false
|
73
|
+
version_requirements: !ruby/object:Gem::Requirement
|
74
|
+
none: false
|
75
|
+
requirements:
|
76
|
+
- - ! '>='
|
77
|
+
- !ruby/object:Gem::Version
|
78
|
+
version: '0'
|
79
|
+
- !ruby/object:Gem::Dependency
|
80
|
+
name: mustache
|
81
|
+
requirement: !ruby/object:Gem::Requirement
|
82
|
+
none: false
|
83
|
+
requirements:
|
84
|
+
- - ! '>='
|
85
|
+
- !ruby/object:Gem::Version
|
86
|
+
version: '0'
|
87
|
+
type: :runtime
|
88
|
+
prerelease: false
|
89
|
+
version_requirements: !ruby/object:Gem::Requirement
|
90
|
+
none: false
|
91
|
+
requirements:
|
92
|
+
- - ! '>='
|
93
|
+
- !ruby/object:Gem::Version
|
94
|
+
version: '0'
|
95
|
+
- !ruby/object:Gem::Dependency
|
96
|
+
name: handlebars
|
97
|
+
requirement: !ruby/object:Gem::Requirement
|
98
|
+
none: false
|
99
|
+
requirements:
|
100
|
+
- - ! '>='
|
101
|
+
- !ruby/object:Gem::Version
|
102
|
+
version: '0'
|
103
|
+
type: :runtime
|
104
|
+
prerelease: false
|
105
|
+
version_requirements: !ruby/object:Gem::Requirement
|
106
|
+
none: false
|
107
|
+
requirements:
|
108
|
+
- - ! '>='
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: '0'
|
111
|
+
- !ruby/object:Gem::Dependency
|
112
|
+
name: sqlite3
|
113
|
+
requirement: !ruby/object:Gem::Requirement
|
114
|
+
none: false
|
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
|
+
none: false
|
123
|
+
requirements:
|
124
|
+
- - ! '>='
|
125
|
+
- !ruby/object:Gem::Version
|
126
|
+
version: '0'
|
127
|
+
- !ruby/object:Gem::Dependency
|
128
|
+
name: rspec-rails
|
129
|
+
requirement: !ruby/object:Gem::Requirement
|
130
|
+
none: false
|
131
|
+
requirements:
|
132
|
+
- - ! '>='
|
133
|
+
- !ruby/object:Gem::Version
|
134
|
+
version: '0'
|
135
|
+
type: :development
|
136
|
+
prerelease: false
|
137
|
+
version_requirements: !ruby/object:Gem::Requirement
|
138
|
+
none: false
|
139
|
+
requirements:
|
140
|
+
- - ! '>='
|
141
|
+
- !ruby/object:Gem::Version
|
142
|
+
version: '0'
|
143
|
+
- !ruby/object:Gem::Dependency
|
144
|
+
name: rspec-fire
|
145
|
+
requirement: !ruby/object:Gem::Requirement
|
146
|
+
none: false
|
147
|
+
requirements:
|
148
|
+
- - ! '>='
|
149
|
+
- !ruby/object:Gem::Version
|
150
|
+
version: '0'
|
151
|
+
type: :development
|
152
|
+
prerelease: false
|
153
|
+
version_requirements: !ruby/object:Gem::Requirement
|
154
|
+
none: false
|
155
|
+
requirements:
|
156
|
+
- - ! '>='
|
157
|
+
- !ruby/object:Gem::Version
|
158
|
+
version: '0'
|
159
|
+
- !ruby/object:Gem::Dependency
|
160
|
+
name: simplecov
|
161
|
+
requirement: !ruby/object:Gem::Requirement
|
162
|
+
none: false
|
163
|
+
requirements:
|
164
|
+
- - ! '>='
|
165
|
+
- !ruby/object:Gem::Version
|
166
|
+
version: '0'
|
167
|
+
type: :development
|
168
|
+
prerelease: false
|
169
|
+
version_requirements: !ruby/object:Gem::Requirement
|
170
|
+
none: false
|
171
|
+
requirements:
|
172
|
+
- - ! '>='
|
173
|
+
- !ruby/object:Gem::Version
|
174
|
+
version: '0'
|
175
|
+
- !ruby/object:Gem::Dependency
|
176
|
+
name: simplecov-rcov
|
177
|
+
requirement: !ruby/object:Gem::Requirement
|
178
|
+
none: false
|
179
|
+
requirements:
|
180
|
+
- - ! '>='
|
181
|
+
- !ruby/object:Gem::Version
|
182
|
+
version: '0'
|
183
|
+
type: :development
|
184
|
+
prerelease: false
|
185
|
+
version_requirements: !ruby/object:Gem::Requirement
|
186
|
+
none: false
|
187
|
+
requirements:
|
188
|
+
- - ! '>='
|
189
|
+
- !ruby/object:Gem::Version
|
190
|
+
version: '0'
|
191
|
+
- !ruby/object:Gem::Dependency
|
192
|
+
name: rspec
|
193
|
+
requirement: !ruby/object:Gem::Requirement
|
194
|
+
none: false
|
195
|
+
requirements:
|
196
|
+
- - ! '>='
|
197
|
+
- !ruby/object:Gem::Version
|
198
|
+
version: '0'
|
199
|
+
type: :development
|
200
|
+
prerelease: false
|
201
|
+
version_requirements: !ruby/object:Gem::Requirement
|
202
|
+
none: false
|
203
|
+
requirements:
|
204
|
+
- - ! '>='
|
205
|
+
- !ruby/object:Gem::Version
|
206
|
+
version: '0'
|
207
|
+
- !ruby/object:Gem::Dependency
|
208
|
+
name: pry
|
209
|
+
requirement: !ruby/object:Gem::Requirement
|
210
|
+
none: false
|
211
|
+
requirements:
|
212
|
+
- - ! '>='
|
213
|
+
- !ruby/object:Gem::Version
|
214
|
+
version: '0'
|
215
|
+
type: :development
|
216
|
+
prerelease: false
|
217
|
+
version_requirements: !ruby/object:Gem::Requirement
|
218
|
+
none: false
|
219
|
+
requirements:
|
220
|
+
- - ! '>='
|
221
|
+
- !ruby/object:Gem::Version
|
222
|
+
version: '0'
|
223
|
+
description: Stachio is a rails engine which aims to facilitate the creation, retrieval,
|
224
|
+
update, & deletion of mustache templates in a relational database.
|
225
|
+
email:
|
226
|
+
- bwthomas@gmail.com
|
227
|
+
- bthomas@enova.com
|
228
|
+
executables: []
|
229
|
+
extensions: []
|
230
|
+
extra_rdoc_files: []
|
231
|
+
files:
|
232
|
+
- .gitignore
|
233
|
+
- .rspec
|
234
|
+
- .ruby-version
|
235
|
+
- .simplecov
|
236
|
+
- Gemfile
|
237
|
+
- Gemfile.lock
|
238
|
+
- MIT-LICENSE
|
239
|
+
- README.md
|
240
|
+
- Rakefile
|
241
|
+
- app/assets/images/stachio/.gitkeep
|
242
|
+
- app/assets/javascripts/stachio/application.js
|
243
|
+
- app/assets/javascripts/stachio/templates.js
|
244
|
+
- app/assets/stylesheets/scaffold.css
|
245
|
+
- app/assets/stylesheets/stachio/application.css
|
246
|
+
- app/assets/stylesheets/stachio/templates.css
|
247
|
+
- app/controllers/stachio/application_controller.rb
|
248
|
+
- app/controllers/stachio/templates_controller.rb
|
249
|
+
- app/helpers/stachio/application_helper.rb
|
250
|
+
- app/helpers/stachio/templates_helper.rb
|
251
|
+
- app/models/stachio/template.rb
|
252
|
+
- app/views/layouts/stachio/application.html.erb
|
253
|
+
- app/views/stachio/templates/_form.html.erb
|
254
|
+
- app/views/stachio/templates/edit.html.erb
|
255
|
+
- app/views/stachio/templates/index.html.erb
|
256
|
+
- app/views/stachio/templates/new.html.erb
|
257
|
+
- app/views/stachio/templates/show.html.erb
|
258
|
+
- config/routes.rb
|
259
|
+
- db/migrate/20130509172418_create_stachio_templates.rb
|
260
|
+
- lib/stachio.rb
|
261
|
+
- lib/stachio/engine.rb
|
262
|
+
- lib/stachio/proxy.rb
|
263
|
+
- lib/stachio/version.rb
|
264
|
+
- lib/tasks/stachio_tasks.rake
|
265
|
+
- script/rails
|
266
|
+
- spec/controllers/stachio/templates_controller_spec.rb
|
267
|
+
- spec/dummy/.rspec
|
268
|
+
- spec/dummy/.ruby-version
|
269
|
+
- spec/dummy/README.md
|
270
|
+
- spec/dummy/Rakefile
|
271
|
+
- spec/dummy/app/assets/javascripts/application.js
|
272
|
+
- spec/dummy/app/assets/stylesheets/application.css
|
273
|
+
- spec/dummy/app/controllers/application_controller.rb
|
274
|
+
- spec/dummy/app/helpers/application_helper.rb
|
275
|
+
- spec/dummy/app/mailers/.gitkeep
|
276
|
+
- spec/dummy/app/models/.gitkeep
|
277
|
+
- spec/dummy/app/views/layouts/application.html.erb
|
278
|
+
- spec/dummy/config.ru
|
279
|
+
- spec/dummy/config/application.rb
|
280
|
+
- spec/dummy/config/boot.rb
|
281
|
+
- spec/dummy/config/database.yml
|
282
|
+
- spec/dummy/config/environment.rb
|
283
|
+
- spec/dummy/config/environments/development.rb
|
284
|
+
- spec/dummy/config/environments/production.rb
|
285
|
+
- spec/dummy/config/environments/test.rb
|
286
|
+
- spec/dummy/config/initializers/backtrace_silencers.rb
|
287
|
+
- spec/dummy/config/initializers/inflections.rb
|
288
|
+
- spec/dummy/config/initializers/mime_types.rb
|
289
|
+
- spec/dummy/config/initializers/secret_token.rb
|
290
|
+
- spec/dummy/config/initializers/session_store.rb
|
291
|
+
- spec/dummy/config/initializers/wrap_parameters.rb
|
292
|
+
- spec/dummy/config/locales/en.yml
|
293
|
+
- spec/dummy/config/routes.rb
|
294
|
+
- spec/dummy/db/schema.rb
|
295
|
+
- spec/dummy/lib/assets/.gitkeep
|
296
|
+
- spec/dummy/log/.gitkeep
|
297
|
+
- spec/dummy/public/404.html
|
298
|
+
- spec/dummy/public/422.html
|
299
|
+
- spec/dummy/public/500.html
|
300
|
+
- spec/dummy/public/favicon.ico
|
301
|
+
- spec/dummy/script/rails
|
302
|
+
- spec/helpers/stachio/templates_helper_spec.rb
|
303
|
+
- spec/models/stachio/template_spec.rb
|
304
|
+
- spec/requests/stachio/stachio_templates_spec.rb
|
305
|
+
- spec/routing/stachio/templates_routing_spec.rb
|
306
|
+
- spec/spec_helper.rb
|
307
|
+
- stachio.gemspec
|
308
|
+
homepage: https://github.com/bwthomas/stachio
|
309
|
+
licenses: []
|
310
|
+
post_install_message:
|
311
|
+
rdoc_options: []
|
312
|
+
require_paths:
|
313
|
+
- lib
|
314
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
315
|
+
none: false
|
316
|
+
requirements:
|
317
|
+
- - ! '>='
|
318
|
+
- !ruby/object:Gem::Version
|
319
|
+
version: '0'
|
320
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
321
|
+
none: false
|
322
|
+
requirements:
|
323
|
+
- - ! '>='
|
324
|
+
- !ruby/object:Gem::Version
|
325
|
+
version: '0'
|
326
|
+
requirements: []
|
327
|
+
rubyforge_project:
|
328
|
+
rubygems_version: 1.8.23
|
329
|
+
signing_key:
|
330
|
+
specification_version: 3
|
331
|
+
summary: Stash your Stache with Stachio.
|
332
|
+
test_files:
|
333
|
+
- spec/controllers/stachio/templates_controller_spec.rb
|
334
|
+
- spec/dummy/.rspec
|
335
|
+
- spec/dummy/.ruby-version
|
336
|
+
- spec/dummy/README.md
|
337
|
+
- spec/dummy/Rakefile
|
338
|
+
- spec/dummy/app/assets/javascripts/application.js
|
339
|
+
- spec/dummy/app/assets/stylesheets/application.css
|
340
|
+
- spec/dummy/app/controllers/application_controller.rb
|
341
|
+
- spec/dummy/app/helpers/application_helper.rb
|
342
|
+
- spec/dummy/app/mailers/.gitkeep
|
343
|
+
- spec/dummy/app/models/.gitkeep
|
344
|
+
- spec/dummy/app/views/layouts/application.html.erb
|
345
|
+
- spec/dummy/config.ru
|
346
|
+
- spec/dummy/config/application.rb
|
347
|
+
- spec/dummy/config/boot.rb
|
348
|
+
- spec/dummy/config/database.yml
|
349
|
+
- spec/dummy/config/environment.rb
|
350
|
+
- spec/dummy/config/environments/development.rb
|
351
|
+
- spec/dummy/config/environments/production.rb
|
352
|
+
- spec/dummy/config/environments/test.rb
|
353
|
+
- spec/dummy/config/initializers/backtrace_silencers.rb
|
354
|
+
- spec/dummy/config/initializers/inflections.rb
|
355
|
+
- spec/dummy/config/initializers/mime_types.rb
|
356
|
+
- spec/dummy/config/initializers/secret_token.rb
|
357
|
+
- spec/dummy/config/initializers/session_store.rb
|
358
|
+
- spec/dummy/config/initializers/wrap_parameters.rb
|
359
|
+
- spec/dummy/config/locales/en.yml
|
360
|
+
- spec/dummy/config/routes.rb
|
361
|
+
- spec/dummy/db/schema.rb
|
362
|
+
- spec/dummy/lib/assets/.gitkeep
|
363
|
+
- spec/dummy/log/.gitkeep
|
364
|
+
- spec/dummy/public/404.html
|
365
|
+
- spec/dummy/public/422.html
|
366
|
+
- spec/dummy/public/500.html
|
367
|
+
- spec/dummy/public/favicon.ico
|
368
|
+
- spec/dummy/script/rails
|
369
|
+
- spec/helpers/stachio/templates_helper_spec.rb
|
370
|
+
- spec/models/stachio/template_spec.rb
|
371
|
+
- spec/requests/stachio/stachio_templates_spec.rb
|
372
|
+
- spec/routing/stachio/templates_routing_spec.rb
|
373
|
+
- spec/spec_helper.rb
|
374
|
+
has_rdoc:
|