Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
bumped version, added gemspec, added rspec environment and first test
- Loading branch information
Showing
10 changed files
with
150 additions
and
7 deletions.
There are no files selected for viewing
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 |
---|---|---|
@@ -1,3 +1,4 @@ | ||
.project | ||
.tmp* | ||
.idea | ||
pkg |
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 |
---|---|---|
@@ -1 +1 @@ | ||
0.0.0 | ||
0.3.0 |
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,75 @@ | ||
# Generated by jeweler | ||
# DO NOT EDIT THIS FILE DIRECTLY | ||
# Instead, edit Jeweler::Tasks in Rakefile, and run the gemspec command | ||
# -*- encoding: utf-8 -*- | ||
|
||
Gem::Specification.new do |s| | ||
s.name = %q{redmine_codebook_plugin} | ||
s.version = "0.3.0" | ||
|
||
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version= | ||
s.authors = ["Steffen Roegner"] | ||
s.date = %q{2010-04-21} | ||
s.description = %q{A handy extension to share pieces of code among teams} | ||
s.email = %q{steffen@sroegner.org} | ||
s.extra_rdoc_files = [ | ||
"README.md" | ||
] | ||
s.files = [ | ||
".gitignore", | ||
"README.md", | ||
"Rakefile", | ||
"VERSION", | ||
"app/controllers/code_documents_controller.rb", | ||
"app/controllers/codebook_controller.rb", | ||
"app/helpers/code_documents_helper.rb", | ||
"app/helpers/codebook_helper.rb", | ||
"app/models/code_area.rb", | ||
"app/models/code_category.rb", | ||
"app/models/code_document.rb", | ||
"app/models/code_language.rb", | ||
"app/views/code_documents/_code_document.html.erb", | ||
"app/views/code_documents/_editor.html.erb", | ||
"app/views/code_documents/edit.html.erb", | ||
"app/views/code_documents/index.html.erb", | ||
"app/views/code_documents/new.html.erb", | ||
"app/views/code_documents/show.html.erb", | ||
"app/views/codebook/_code_area.html.erb", | ||
"app/views/codebook/_code_language.html.erb", | ||
"app/views/codebook/_menu.html.erb", | ||
"app/views/codebook/admin.html.erb", | ||
"app/views/preferences/_codebook_prefs.html.erb", | ||
"assets/stylesheets/codebook.css", | ||
"config/locales/de.yml", | ||
"config/locales/en.yml", | ||
"config/locales/hu.yml", | ||
"config/locales/ja.yml", | ||
"config/routes.rb", | ||
"db/migrate/001_create_code_documents.rb", | ||
"db/migrate/002_create_code_categories.rb", | ||
"features/add_defaults.feature", | ||
"features/support/env.rb", | ||
"init.rb", | ||
"lang/de.yml", | ||
"lang/en.yml", | ||
"lang/hu.yml", | ||
"lang/ja.yml", | ||
"routes.rb" | ||
] | ||
s.homepage = %q{http://github.com/sroegner/codebook} | ||
s.rdoc_options = ["--charset=UTF-8"] | ||
s.require_paths = ["lib"] | ||
s.rubygems_version = %q{1.3.6} | ||
s.summary = %q{Share code snippets and gists in redmine} | ||
|
||
if s.respond_to? :specification_version then | ||
current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION | ||
s.specification_version = 3 | ||
|
||
if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then | ||
else | ||
end | ||
else | ||
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,4 @@ | ||
require File.dirname(__FILE__) + '/../spec_helper' | ||
|
||
puts "put in some controller tests" | ||
# TODO |
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,13 @@ | ||
require File.dirname(__FILE__) + '/../spec_helper' | ||
|
||
describe CodeDocument, "the codebook document" do | ||
|
||
before(:each) do | ||
@doc = mock_model(CodeDocument, :title => "Example Doc", :id => 10) | ||
end | ||
|
||
it "should be happy" do | ||
@doc.should_not be nil | ||
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,2 @@ | ||
--exclude "spec/*,gems/*" | ||
--rails |
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,4 @@ | ||
--colour | ||
--format progress | ||
--loadby mtime | ||
--reverse |
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,48 @@ | ||
# This file is copied to ~/spec when you run 'ruby script/generate rspec' | ||
# from the project root directory. | ||
ENV["RAILS_ENV"] ||= 'test' | ||
|
||
# Allows loading of an environment config based on the environment | ||
redmine_root = ENV["REDMINE_ROOT"] || File.dirname(__FILE__) + "/../../../.." | ||
require File.expand_path(redmine_root + "/config/environment") | ||
require 'spec' | ||
require 'spec/rails' | ||
require 'ruby-debug' | ||
|
||
# Uncomment the next line to use webrat's matchers | ||
#require 'webrat/integrations/rspec-rails' | ||
|
||
# Requires supporting files with custom matchers and macros, etc, | ||
# in ./support/ and its subdirectories. | ||
Dir[File.expand_path(File.join(File.dirname(__FILE__),'support','**','*.rb'))].each {|f| require f} | ||
|
||
Spec::Runner.configure do |config| | ||
# If you're not using ActiveRecord you should remove these | ||
# lines, delete config/database.yml and disable :active_record | ||
# in your config/boot.rb | ||
config.use_transactional_fixtures = true | ||
config.use_instantiated_fixtures = false | ||
config.fixture_path = RAILS_ROOT + '/spec/fixtures/' | ||
|
||
# == Fixtures | ||
# | ||
# You can declare fixtures for each example_group like this: | ||
# describe "...." do | ||
# fixtures :table_a, :table_b | ||
# | ||
# Alternatively, if you prefer to declare them only once, you can | ||
# do so right here. Just uncomment the next line and replace the fixture | ||
# names with your fixtures. | ||
# | ||
# config.global_fixtures = :table_a, :table_b | ||
# | ||
# If you declare global fixtures, be aware that they will be declared | ||
# for all of your examples, even those that don't use them. | ||
# | ||
# You can also declare which fixtures to use (for example fixtures for test/fixtures): | ||
# | ||
# config.fixture_path = RAILS_ROOT + '/spec/fixtures/' | ||
# | ||
# == Mock Framework | ||
config.mock_with :mocha | ||
end |