homesteading_publisher 0.0.10 → 0.0.11
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/README.md +3 -7
- data/Rakefile +6 -9
- data/db/migrate/20150107224535_create_posts.rb +33 -0
- data/db/migrate/20150108001754_create_settings.rb +11 -0
- data/db/migrate/20150108001809_create_licenses.rb +12 -0
- data/lib/homesteading_publisher/engine.rb +16 -0
- data/lib/homesteading_publisher/version.rb +1 -1
- data/lib/tasks/homesteading_publisher_tasks.rake +32 -4
- data/{test → spec}/dummy/README.rdoc +0 -0
- data/{test → spec}/dummy/Rakefile +0 -0
- data/{test → spec}/dummy/app/assets/javascripts/application.js +0 -0
- data/{test → spec}/dummy/app/assets/stylesheets/application.css +0 -0
- data/{test → spec}/dummy/app/controllers/application_controller.rb +0 -0
- data/{test → spec}/dummy/app/helpers/application_helper.rb +0 -0
- data/{test → spec}/dummy/app/views/layouts/application.html.erb +0 -0
- data/{test → spec}/dummy/bin/bundle +0 -0
- data/{test → spec}/dummy/bin/rails +0 -0
- data/{test → spec}/dummy/bin/rake +0 -0
- data/{test → spec}/dummy/bin/setup +0 -0
- data/{test → spec}/dummy/config/application.rb +0 -0
- data/{test → spec}/dummy/config/boot.rb +0 -0
- data/{test → spec}/dummy/config/database.yml +0 -0
- data/{test → spec}/dummy/config/environment.rb +0 -0
- data/{test → spec}/dummy/config/environments/development.rb +0 -0
- data/{test → spec}/dummy/config/environments/production.rb +0 -0
- data/{test → spec}/dummy/config/environments/test.rb +0 -0
- data/{test → spec}/dummy/config/initializers/assets.rb +0 -0
- data/{test → spec}/dummy/config/initializers/backtrace_silencers.rb +0 -0
- data/{test → spec}/dummy/config/initializers/cookies_serializer.rb +0 -0
- data/{test → spec}/dummy/config/initializers/filter_parameter_logging.rb +0 -0
- data/{test → spec}/dummy/config/initializers/inflections.rb +0 -0
- data/{test → spec}/dummy/config/initializers/mime_types.rb +0 -0
- data/{test → spec}/dummy/config/initializers/session_store.rb +0 -0
- data/{test → spec}/dummy/config/initializers/wrap_parameters.rb +0 -0
- data/{test → spec}/dummy/config/locales/en.yml +0 -0
- data/{test → spec}/dummy/config/routes.rb +0 -0
- data/{test → spec}/dummy/config/secrets.yml +0 -0
- data/{test → spec}/dummy/config.ru +0 -0
- data/spec/dummy/db/schema.rb +62 -0
- data/{test → spec}/dummy/public/404.html +0 -0
- data/{test → spec}/dummy/public/422.html +0 -0
- data/{test → spec}/dummy/public/500.html +0 -0
- data/{test → spec}/dummy/public/favicon.ico +0 -0
- data/spec/factories.rb +15 -0
- data/spec/models/homesteading/license_spec.rb +11 -0
- data/spec/models/homesteading/post_spec.rb +10 -0
- data/spec/models/homesteading/settings_spec.rb +10 -0
- data/spec/rails_helper.rb +46 -0
- data/spec/spec_helper.rb +34 -0
- data/spec/support/homesteading/models/post.rb +3 -0
- metadata +131 -76
- data/test/homesteading_publisher_test.rb +0 -7
- data/test/integration/navigation_test.rb +0 -10
- 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: db59f2f606b82cd65e8dd857fb4983b657282fd2
|
4
|
+
data.tar.gz: 66b35c0df2d7f86ab88917f81703c53691ece838
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 060928cb947630275cef03fe51503a44fd13da56b77ac2cafdc4ca9b600ca42e12e3dd808ca358fd8759bf738e781c6d8d7a3fc0b883454531679fe8bcc690e4
|
7
|
+
data.tar.gz: fdbbb3eb8ba87e37f0bb3a9d732956f685ba565940000ae39cdc3863de6da5e18f6f620ee78abc9ac488783df5adda1710ac88daca772deefb70d60114bee665
|
data/README.md
CHANGED
@@ -10,7 +10,7 @@ A generic Rails Engine that all HS-* post type publisher apps build on top of.
|
|
10
10
|
|
11
11
|
## Current Version
|
12
12
|
|
13
|
-
0.0.
|
13
|
+
0.0.10
|
14
14
|
|
15
15
|
|
16
16
|
## Installation
|
@@ -34,10 +34,6 @@ After bundling, add this to your Rails project's `post.rb` model.
|
|
34
34
|
|
35
35
|
**TODO**
|
36
36
|
|
37
|
-
```ruby
|
38
|
-
```
|
39
|
-
|
40
|
-
|
41
37
|
## Shared post attributes
|
42
38
|
|
43
39
|
**TODO**
|
@@ -74,9 +70,9 @@ If you find bugs, have feature requests or questions, please
|
|
74
70
|
Run once.
|
75
71
|
|
76
72
|
```bash
|
77
|
-
|
73
|
+
rake
|
78
74
|
```
|
79
|
-
|
75
|
+
`rake` is needed instead of `rspec` to take care of preparing the dummy application test DB.
|
80
76
|
|
81
77
|
## License
|
82
78
|
|
data/Rakefile
CHANGED
@@ -14,7 +14,7 @@ RDoc::Task.new(:rdoc) do |rdoc|
|
|
14
14
|
rdoc.rdoc_files.include('lib/**/*.rb')
|
15
15
|
end
|
16
16
|
|
17
|
-
APP_RAKEFILE = File.expand_path("../
|
17
|
+
APP_RAKEFILE = File.expand_path("../spec/dummy/Rakefile", __FILE__)
|
18
18
|
load 'rails/tasks/engine.rake'
|
19
19
|
|
20
20
|
|
@@ -26,12 +26,9 @@ Bundler::GemHelper.install_tasks
|
|
26
26
|
|
27
27
|
require 'rake/testtask'
|
28
28
|
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
t.verbose = false
|
34
|
-
end
|
35
|
-
|
29
|
+
require 'rspec/core'
|
30
|
+
require 'rspec/core/rake_task'
|
31
|
+
desc "Run all specs in spec directory (excluding plugin specs)"
|
32
|
+
RSpec::Core::RakeTask.new(:spec => 'app:db:migrate')
|
36
33
|
|
37
|
-
task default: :
|
34
|
+
task default: :spec
|
@@ -0,0 +1,33 @@
|
|
1
|
+
class CreatePosts < ActiveRecord::Migration
|
2
|
+
def change
|
3
|
+
create_table :posts do |t|
|
4
|
+
t.text :title,
|
5
|
+
:subtitle,
|
6
|
+
:content,
|
7
|
+
:in_reply_to,
|
8
|
+
:tags,
|
9
|
+
:syndication,
|
10
|
+
:slug,
|
11
|
+
:location_name,
|
12
|
+
:location_latitude,
|
13
|
+
:location_longitude,
|
14
|
+
:location_altitude,
|
15
|
+
:wordpress_url,
|
16
|
+
:tumblr_url,
|
17
|
+
:medium_url,
|
18
|
+
:facebook_url
|
19
|
+
|
20
|
+
t.string :year,
|
21
|
+
:month,
|
22
|
+
:day,
|
23
|
+
:hour,
|
24
|
+
:minute,
|
25
|
+
:second
|
26
|
+
|
27
|
+
t.boolean :private
|
28
|
+
t.datetime :published_at
|
29
|
+
|
30
|
+
t.timestamps
|
31
|
+
end
|
32
|
+
end
|
33
|
+
end
|
@@ -1,5 +1,21 @@
|
|
1
1
|
module HomesteadingPublisher
|
2
2
|
class Engine < ::Rails::Engine
|
3
3
|
isolate_namespace HomesteadingPublisher
|
4
|
+
|
5
|
+
config.generators do |g|
|
6
|
+
g.test_framework :rspec, :fixture => false
|
7
|
+
g.fixture_replacement :factory_girl, :dir => 'spec/factories'
|
8
|
+
g.assets false
|
9
|
+
g.helper false
|
10
|
+
end
|
11
|
+
|
12
|
+
initializer :append_migrations do |app|
|
13
|
+
unless app.root.to_s.match root.to_s
|
14
|
+
config.paths["db/migrate"].expanded.each do |expanded_path|
|
15
|
+
app.config.paths["db/migrate"] << expanded_path
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
19
|
+
|
4
20
|
end
|
5
21
|
end
|
@@ -1,4 +1,32 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
1
|
+
namespace :hs do
|
2
|
+
namespace :db do
|
3
|
+
|
4
|
+
desc "HS: Copy and use the example database.yml"
|
5
|
+
task :config do
|
6
|
+
cp "config/database.example.yml", "config/database.yml"
|
7
|
+
end
|
8
|
+
|
9
|
+
desc "HS: Load the seed data from db/seeds.rb, then your db/dev.seeds.rb"
|
10
|
+
task :seed => ["rake:db:seed", "hs:db:seed:rename", "hs:db:seed:again", "hs:db:seed:rerename"]
|
11
|
+
|
12
|
+
namespace :seed do
|
13
|
+
desc "HS: Rename seeds.rb to production.seeds.rb & dev.seeds.rb to seeds.rb"
|
14
|
+
task :rename do
|
15
|
+
mv "db/seeds.rb", "db/production.seeds.rb"
|
16
|
+
mv "db/dev.seeds.rb", "db/seeds.rb"
|
17
|
+
end
|
18
|
+
|
19
|
+
desc "HS: Rename production back to seeds.rb & seeds.rb back to dev"
|
20
|
+
task :rerename do
|
21
|
+
mv "db/seeds.rb", "db/dev.seeds.rb"
|
22
|
+
mv "db/production.seeds.rb", "db/seeds.rb"
|
23
|
+
end
|
24
|
+
|
25
|
+
desc "HS: Seed again after db:seed-ing"
|
26
|
+
task :again do
|
27
|
+
Rake::Task["rake:db:seed"].execute
|
28
|
+
end
|
29
|
+
end
|
30
|
+
|
31
|
+
end
|
32
|
+
end
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
@@ -0,0 +1,62 @@
|
|
1
|
+
# encoding: UTF-8
|
2
|
+
# This file is auto-generated from the current state of the database. Instead
|
3
|
+
# of editing this file, please use the migrations feature of Active Record to
|
4
|
+
# incrementally modify your database, and then regenerate this schema definition.
|
5
|
+
#
|
6
|
+
# Note that this schema.rb definition is the authoritative source for your
|
7
|
+
# database schema. If you need to create the application database on another
|
8
|
+
# system, you should be using db:schema:load, not running all the migrations
|
9
|
+
# from scratch. The latter is a flawed and unsustainable approach (the more migrations
|
10
|
+
# you'll amass, the slower it'll run and the greater likelihood for issues).
|
11
|
+
#
|
12
|
+
# It's strongly recommended that you check this file into your version control system.
|
13
|
+
|
14
|
+
ActiveRecord::Schema.define(version: 20150108001809) do
|
15
|
+
|
16
|
+
create_table "licenses", force: :cascade do |t|
|
17
|
+
t.string "name"
|
18
|
+
t.string "short_code"
|
19
|
+
t.text "description"
|
20
|
+
t.text "url"
|
21
|
+
t.datetime "created_at"
|
22
|
+
t.datetime "updated_at"
|
23
|
+
end
|
24
|
+
|
25
|
+
create_table "posts", force: :cascade do |t|
|
26
|
+
t.text "title"
|
27
|
+
t.text "subtitle"
|
28
|
+
t.text "content"
|
29
|
+
t.text "in_reply_to"
|
30
|
+
t.text "tags"
|
31
|
+
t.text "syndication"
|
32
|
+
t.text "slug"
|
33
|
+
t.text "location_name"
|
34
|
+
t.text "location_latitude"
|
35
|
+
t.text "location_longitude"
|
36
|
+
t.text "location_altitude"
|
37
|
+
t.text "wordpress_url"
|
38
|
+
t.text "tumblr_url"
|
39
|
+
t.text "medium_url"
|
40
|
+
t.text "facebook_url"
|
41
|
+
t.string "year"
|
42
|
+
t.string "month"
|
43
|
+
t.string "day"
|
44
|
+
t.string "hour"
|
45
|
+
t.string "minute"
|
46
|
+
t.string "second"
|
47
|
+
t.boolean "private"
|
48
|
+
t.datetime "published_at"
|
49
|
+
t.datetime "created_at"
|
50
|
+
t.datetime "updated_at"
|
51
|
+
end
|
52
|
+
|
53
|
+
create_table "settings", force: :cascade do |t|
|
54
|
+
t.string "name"
|
55
|
+
t.string "key"
|
56
|
+
t.text "content"
|
57
|
+
t.boolean "editable", default: true
|
58
|
+
t.datetime "created_at"
|
59
|
+
t.datetime "updated_at"
|
60
|
+
end
|
61
|
+
|
62
|
+
end
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
data/spec/factories.rb
ADDED
@@ -0,0 +1,46 @@
|
|
1
|
+
# This file is copied to spec/ when you run 'rails generate rspec:install'
|
2
|
+
ENV["RAILS_ENV"] ||= 'test'
|
3
|
+
require 'spec_helper'
|
4
|
+
require File.expand_path("../dummy/config/environment", __FILE__)
|
5
|
+
require 'rspec/rails'
|
6
|
+
|
7
|
+
# Requires supporting ruby files with custom matchers and macros, etc, in
|
8
|
+
# spec/support/ and its subdirectories. Files matching `spec/**/*_spec.rb` are
|
9
|
+
# run as spec files by default. This means that files in spec/support that end
|
10
|
+
# in _spec.rb will both be required and run as specs, causing the specs to be
|
11
|
+
# run twice. It is recommended that you do not name files matching this glob to
|
12
|
+
# end with _spec.rb. You can configure this pattern with the --pattern
|
13
|
+
# option on the command line or in ~/.rspec, .rspec or `.rspec-local`.
|
14
|
+
Dir[File.dirname(__FILE__) + "/support/**/*.rb"].each { |f| require f }
|
15
|
+
|
16
|
+
require 'factory_girl_rails'
|
17
|
+
# Checks for pending migrations before tests are run.
|
18
|
+
# If you are not using ActiveRecord, you can remove this line.
|
19
|
+
ActiveRecord::Migration.maintain_test_schema!
|
20
|
+
|
21
|
+
RSpec.configure do |config|
|
22
|
+
config.include FactoryGirl::Syntax::Methods
|
23
|
+
# Remove this line if you're not using ActiveRecord or ActiveRecord fixtures
|
24
|
+
config.fixture_path = "#{::Rails.root}/spec/fixtures"
|
25
|
+
|
26
|
+
|
27
|
+
# If you're not using ActiveRecord, or you'd prefer not to run each of your
|
28
|
+
# examples within a transaction, remove the following line or assign false
|
29
|
+
# instead of true.
|
30
|
+
config.use_transactional_fixtures = true
|
31
|
+
|
32
|
+
# RSpec Rails can automatically mix in different behaviours to your tests
|
33
|
+
# based on their file location, for example enabling you to call `get` and
|
34
|
+
# `post` in specs under `spec/controllers`.
|
35
|
+
#
|
36
|
+
# You can disable this behaviour by removing the line below, and instead
|
37
|
+
# explicitly tag your specs with their type, e.g.:
|
38
|
+
#
|
39
|
+
# RSpec.describe UsersController, :type => :controller do
|
40
|
+
# # ...
|
41
|
+
# end
|
42
|
+
#
|
43
|
+
# The different available types are documented in the features, such as in
|
44
|
+
# https://relishapp.com/rspec/rspec-rails/docs
|
45
|
+
config.infer_spec_type_from_file_location!
|
46
|
+
end
|
data/spec/spec_helper.rb
ADDED
@@ -0,0 +1,34 @@
|
|
1
|
+
# if ENV["CODECLIMATE_REPO_TOKEN"]
|
2
|
+
# require "codeclimate-test-reporter"
|
3
|
+
# CodeClimate::TestReporter.start
|
4
|
+
# end
|
5
|
+
|
6
|
+
ENV["RAILS_ENV"] ||= "test"
|
7
|
+
require File.expand_path("../dummy/config/environment", __FILE__)
|
8
|
+
require "rspec/rails"
|
9
|
+
|
10
|
+
# Requires supporting ruby files with custom matchers and macros, etc,
|
11
|
+
# in spec/support/ and its subdirectories.
|
12
|
+
Dir[Rails.root.join("spec/support/**/*.rb")].each { |f| require f }
|
13
|
+
|
14
|
+
# Checks for pending migrations before tests are run.
|
15
|
+
# If you are not using ActiveRecord, you can remove this line.
|
16
|
+
ActiveRecord::Migration.maintain_test_schema!
|
17
|
+
|
18
|
+
RSpec.configure do |config|
|
19
|
+
# If true, the base class of anonymous controllers will be inferred
|
20
|
+
# automatically. This will be the default behavior in future versions of
|
21
|
+
# rspec-rails.
|
22
|
+
config.infer_base_class_for_anonymous_controllers = false
|
23
|
+
|
24
|
+
# Run specs in random order to surface order dependencies. If you find an
|
25
|
+
# order dependency and want to debug it, you can fix the order by providing
|
26
|
+
# the seed, which is printed after each run.
|
27
|
+
# --seed 1234
|
28
|
+
config.order = "random"
|
29
|
+
|
30
|
+
# TEMP to avoid deprecation warning for stub_chain. See: [d38de8c]
|
31
|
+
config.mock_with :rspec do |mocks|
|
32
|
+
mocks.syntax = :should
|
33
|
+
end
|
34
|
+
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: homesteading_publisher
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.11
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Shane Becker
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2015-01-09 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rails
|
@@ -53,6 +53,48 @@ dependencies:
|
|
53
53
|
- - ">="
|
54
54
|
- !ruby/object:Gem::Version
|
55
55
|
version: '0'
|
56
|
+
- !ruby/object:Gem::Dependency
|
57
|
+
name: rspec-rails
|
58
|
+
requirement: !ruby/object:Gem::Requirement
|
59
|
+
requirements:
|
60
|
+
- - ">="
|
61
|
+
- !ruby/object:Gem::Version
|
62
|
+
version: '0'
|
63
|
+
type: :development
|
64
|
+
prerelease: false
|
65
|
+
version_requirements: !ruby/object:Gem::Requirement
|
66
|
+
requirements:
|
67
|
+
- - ">="
|
68
|
+
- !ruby/object:Gem::Version
|
69
|
+
version: '0'
|
70
|
+
- !ruby/object:Gem::Dependency
|
71
|
+
name: capybara
|
72
|
+
requirement: !ruby/object:Gem::Requirement
|
73
|
+
requirements:
|
74
|
+
- - ">="
|
75
|
+
- !ruby/object:Gem::Version
|
76
|
+
version: '0'
|
77
|
+
type: :development
|
78
|
+
prerelease: false
|
79
|
+
version_requirements: !ruby/object:Gem::Requirement
|
80
|
+
requirements:
|
81
|
+
- - ">="
|
82
|
+
- !ruby/object:Gem::Version
|
83
|
+
version: '0'
|
84
|
+
- !ruby/object:Gem::Dependency
|
85
|
+
name: factory_girl_rails
|
86
|
+
requirement: !ruby/object:Gem::Requirement
|
87
|
+
requirements:
|
88
|
+
- - ">="
|
89
|
+
- !ruby/object:Gem::Version
|
90
|
+
version: '0'
|
91
|
+
type: :development
|
92
|
+
prerelease: false
|
93
|
+
version_requirements: !ruby/object:Gem::Requirement
|
94
|
+
requirements:
|
95
|
+
- - ">="
|
96
|
+
- !ruby/object:Gem::Version
|
97
|
+
version: '0'
|
56
98
|
description: A generic Rails Engine that all HS-* post type publisher apps build on
|
57
99
|
top of.
|
58
100
|
email:
|
@@ -73,47 +115,55 @@ files:
|
|
73
115
|
- app/models/setting.rb
|
74
116
|
- app/views/layouts/homesteading_publisher/application.html.erb
|
75
117
|
- config/routes.rb
|
118
|
+
- db/migrate/20150107224535_create_posts.rb
|
119
|
+
- db/migrate/20150108001754_create_settings.rb
|
120
|
+
- db/migrate/20150108001809_create_licenses.rb
|
76
121
|
- lib/homesteading_publisher.rb
|
77
122
|
- lib/homesteading_publisher/engine.rb
|
78
123
|
- lib/homesteading_publisher/version.rb
|
79
124
|
- lib/tasks/homesteading_publisher_tasks.rake
|
80
|
-
-
|
81
|
-
-
|
82
|
-
-
|
83
|
-
-
|
84
|
-
-
|
85
|
-
-
|
86
|
-
-
|
87
|
-
-
|
88
|
-
-
|
89
|
-
-
|
90
|
-
-
|
91
|
-
-
|
92
|
-
-
|
93
|
-
-
|
94
|
-
-
|
95
|
-
-
|
96
|
-
-
|
97
|
-
-
|
98
|
-
-
|
99
|
-
-
|
100
|
-
-
|
101
|
-
-
|
102
|
-
-
|
103
|
-
-
|
104
|
-
-
|
105
|
-
-
|
106
|
-
-
|
107
|
-
-
|
108
|
-
-
|
109
|
-
-
|
110
|
-
-
|
111
|
-
-
|
112
|
-
-
|
113
|
-
-
|
114
|
-
-
|
115
|
-
-
|
116
|
-
-
|
125
|
+
- spec/dummy/README.rdoc
|
126
|
+
- spec/dummy/Rakefile
|
127
|
+
- spec/dummy/app/assets/javascripts/application.js
|
128
|
+
- spec/dummy/app/assets/stylesheets/application.css
|
129
|
+
- spec/dummy/app/controllers/application_controller.rb
|
130
|
+
- spec/dummy/app/helpers/application_helper.rb
|
131
|
+
- spec/dummy/app/views/layouts/application.html.erb
|
132
|
+
- spec/dummy/bin/bundle
|
133
|
+
- spec/dummy/bin/rails
|
134
|
+
- spec/dummy/bin/rake
|
135
|
+
- spec/dummy/bin/setup
|
136
|
+
- spec/dummy/config.ru
|
137
|
+
- spec/dummy/config/application.rb
|
138
|
+
- spec/dummy/config/boot.rb
|
139
|
+
- spec/dummy/config/database.yml
|
140
|
+
- spec/dummy/config/environment.rb
|
141
|
+
- spec/dummy/config/environments/development.rb
|
142
|
+
- spec/dummy/config/environments/production.rb
|
143
|
+
- spec/dummy/config/environments/test.rb
|
144
|
+
- spec/dummy/config/initializers/assets.rb
|
145
|
+
- spec/dummy/config/initializers/backtrace_silencers.rb
|
146
|
+
- spec/dummy/config/initializers/cookies_serializer.rb
|
147
|
+
- spec/dummy/config/initializers/filter_parameter_logging.rb
|
148
|
+
- spec/dummy/config/initializers/inflections.rb
|
149
|
+
- spec/dummy/config/initializers/mime_types.rb
|
150
|
+
- spec/dummy/config/initializers/session_store.rb
|
151
|
+
- spec/dummy/config/initializers/wrap_parameters.rb
|
152
|
+
- spec/dummy/config/locales/en.yml
|
153
|
+
- spec/dummy/config/routes.rb
|
154
|
+
- spec/dummy/config/secrets.yml
|
155
|
+
- spec/dummy/db/schema.rb
|
156
|
+
- spec/dummy/public/404.html
|
157
|
+
- spec/dummy/public/422.html
|
158
|
+
- spec/dummy/public/500.html
|
159
|
+
- spec/dummy/public/favicon.ico
|
160
|
+
- spec/factories.rb
|
161
|
+
- spec/models/homesteading/license_spec.rb
|
162
|
+
- spec/models/homesteading/post_spec.rb
|
163
|
+
- spec/models/homesteading/settings_spec.rb
|
164
|
+
- spec/rails_helper.rb
|
165
|
+
- spec/spec_helper.rb
|
166
|
+
- spec/support/homesteading/models/post.rb
|
117
167
|
homepage: https://github.com/homesteading/homesteading_publisher
|
118
168
|
licenses:
|
119
169
|
- Public Domain (CC0)
|
@@ -140,40 +190,45 @@ specification_version: 4
|
|
140
190
|
summary: A generic Rails Engine that all HS-* post type publisher apps build on top
|
141
191
|
of.
|
142
192
|
test_files:
|
143
|
-
-
|
144
|
-
-
|
145
|
-
-
|
146
|
-
-
|
147
|
-
-
|
148
|
-
-
|
149
|
-
-
|
150
|
-
-
|
151
|
-
-
|
152
|
-
-
|
153
|
-
-
|
154
|
-
-
|
155
|
-
-
|
156
|
-
-
|
157
|
-
-
|
158
|
-
-
|
159
|
-
-
|
160
|
-
-
|
161
|
-
-
|
162
|
-
-
|
163
|
-
-
|
164
|
-
-
|
165
|
-
-
|
166
|
-
-
|
167
|
-
-
|
168
|
-
-
|
169
|
-
-
|
170
|
-
-
|
171
|
-
-
|
172
|
-
-
|
173
|
-
-
|
174
|
-
-
|
175
|
-
-
|
176
|
-
-
|
177
|
-
-
|
178
|
-
-
|
179
|
-
-
|
193
|
+
- spec/dummy/app/assets/javascripts/application.js
|
194
|
+
- spec/dummy/app/assets/stylesheets/application.css
|
195
|
+
- spec/dummy/app/controllers/application_controller.rb
|
196
|
+
- spec/dummy/app/helpers/application_helper.rb
|
197
|
+
- spec/dummy/app/views/layouts/application.html.erb
|
198
|
+
- spec/dummy/bin/bundle
|
199
|
+
- spec/dummy/bin/rails
|
200
|
+
- spec/dummy/bin/rake
|
201
|
+
- spec/dummy/bin/setup
|
202
|
+
- spec/dummy/config/application.rb
|
203
|
+
- spec/dummy/config/boot.rb
|
204
|
+
- spec/dummy/config/database.yml
|
205
|
+
- spec/dummy/config/environment.rb
|
206
|
+
- spec/dummy/config/environments/development.rb
|
207
|
+
- spec/dummy/config/environments/production.rb
|
208
|
+
- spec/dummy/config/environments/test.rb
|
209
|
+
- spec/dummy/config/initializers/assets.rb
|
210
|
+
- spec/dummy/config/initializers/backtrace_silencers.rb
|
211
|
+
- spec/dummy/config/initializers/cookies_serializer.rb
|
212
|
+
- spec/dummy/config/initializers/filter_parameter_logging.rb
|
213
|
+
- spec/dummy/config/initializers/inflections.rb
|
214
|
+
- spec/dummy/config/initializers/mime_types.rb
|
215
|
+
- spec/dummy/config/initializers/session_store.rb
|
216
|
+
- spec/dummy/config/initializers/wrap_parameters.rb
|
217
|
+
- spec/dummy/config/locales/en.yml
|
218
|
+
- spec/dummy/config/routes.rb
|
219
|
+
- spec/dummy/config/secrets.yml
|
220
|
+
- spec/dummy/config.ru
|
221
|
+
- spec/dummy/db/schema.rb
|
222
|
+
- spec/dummy/public/404.html
|
223
|
+
- spec/dummy/public/422.html
|
224
|
+
- spec/dummy/public/500.html
|
225
|
+
- spec/dummy/public/favicon.ico
|
226
|
+
- spec/dummy/Rakefile
|
227
|
+
- spec/dummy/README.rdoc
|
228
|
+
- spec/factories.rb
|
229
|
+
- spec/models/homesteading/license_spec.rb
|
230
|
+
- spec/models/homesteading/post_spec.rb
|
231
|
+
- spec/models/homesteading/settings_spec.rb
|
232
|
+
- spec/rails_helper.rb
|
233
|
+
- spec/spec_helper.rb
|
234
|
+
- spec/support/homesteading/models/post.rb
|
data/test/test_helper.rb
DELETED
@@ -1,19 +0,0 @@
|
|
1
|
-
# Configure Rails Environment
|
2
|
-
ENV["RAILS_ENV"] = "test"
|
3
|
-
|
4
|
-
require File.expand_path("../../test/dummy/config/environment.rb", __FILE__)
|
5
|
-
ActiveRecord::Migrator.migrations_paths = [File.expand_path("../../test/dummy/db/migrate", __FILE__)]
|
6
|
-
ActiveRecord::Migrator.migrations_paths << File.expand_path('../../db/migrate', __FILE__)
|
7
|
-
require "rails/test_help"
|
8
|
-
|
9
|
-
# Filter out Minitest backtrace while allowing backtrace from other libraries
|
10
|
-
# to be shown.
|
11
|
-
Minitest.backtrace_filter = Minitest::BacktraceFilter.new
|
12
|
-
|
13
|
-
# Load support files
|
14
|
-
Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f }
|
15
|
-
|
16
|
-
# Load fixtures from the engine
|
17
|
-
if ActiveSupport::TestCase.respond_to?(:fixture_path=)
|
18
|
-
ActiveSupport::TestCase.fixture_path = File.expand_path("../fixtures", __FILE__)
|
19
|
-
end
|