-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
49dae8f
commit 92fedc6
Showing
12 changed files
with
131 additions
and
40 deletions.
There are no files selected for viewing
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
Radiant.config do |config| | ||
# config.define "setting.name", :default => 'value', :select_from => ['foo', 'bar'] | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
--- | ||
en: | ||
blog: Blog |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
ActionController::Routing::Routes.draw do |map| | ||
# map.namespace :admin, :member => { :remove => :get } do |admin| | ||
# admin.resources :blog | ||
# end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
default: --format progress features --tags ~@proposed,~@in_progress |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# Sets up the Rails environment for Cucumber | ||
ENV["RAILS_ENV"] = "test" | ||
# Extension root | ||
extension_env = File.expand_path(File.dirname(__FILE__) + '/../../../../../config/environment') | ||
require extension_env+'.rb' | ||
|
||
Dir.glob(File.join(RADIANT_ROOT, "features", "**", "*.rb")).each {|step| require step unless step =~ /datasets_loader\.rb$/} | ||
|
||
Cucumber::Rails::World.class_eval do | ||
dataset :blog | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
module NavigationHelpers | ||
|
||
# Extend the standard PathMatchers with your own paths | ||
# to be used in your features. | ||
# | ||
# The keys and values here may be used in your standard web steps | ||
# Using: | ||
# | ||
# When I go to the "blog" admin page | ||
# | ||
# would direct the request to the path you provide in the value: | ||
# | ||
# admin_blog_path | ||
# | ||
PathMatchers = {} unless defined?(PathMatchers) | ||
PathMatchers.merge!({ | ||
# /blog/i => 'admin_blog_path' | ||
}) | ||
|
||
end | ||
|
||
World(NavigationHelpers) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
module RadiantBlogExtension | ||
VERSION = "1.1.0" | ||
SUMMARY = "Provides features for blogging in Radiant CMS" | ||
DESCRIPTION = "Provides features for blogging in Radiant CMS" | ||
URL = "http://github.com/saturnflyer/radiant-blog-extension" | ||
AUTHORS = ["Jim Gay"] | ||
EMAIL = ["jim@saturnflyer.com"] | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
# -*- encoding: utf-8 -*- | ||
$:.push File.expand_path("../lib", __FILE__) | ||
require "radiant-blog-extension" | ||
|
||
Gem::Specification.new do |s| | ||
s.name = "radiant-blog-extension" | ||
s.version = RadiantBlogExtension::VERSION | ||
s.platform = Gem::Platform::RUBY | ||
s.authors = RadiantBlogExtension::AUTHORS | ||
s.email = RadiantBlogExtension::EMAIL | ||
s.homepage = RadiantBlogExtension::URL | ||
s.summary = RadiantBlogExtension::SUMMARY | ||
s.description = RadiantBlogExtension::DESCRIPTION | ||
|
||
# Define gem dependencies here. | ||
# Don't include a dependency on radiant itself: it causes problems when radiant is in vendor/radiant. | ||
# s.add_dependency "something", "~> 1.0.0" | ||
# s.add_dependency "radiant-some-extension", "~> 1.0.0" | ||
|
||
ignores = if File.exist?('.gitignore') | ||
File.read('.gitignore').split("\n").inject([]) {|a,p| a + Dir[p] } | ||
else | ||
[] | ||
end | ||
s.files = Dir['**/*'] - ignores | ||
s.test_files = Dir['test/**/*','spec/**/*','features/**/*'] - ignores | ||
# s.executables = Dir['bin/*'] - ignores | ||
s.require_paths = ["lib"] | ||
end |