Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #17 from Trevoke/increase_approachability

[UX #17] Improve first-time setup
  • Loading branch information...
commit a212005428c639c6f6e0a58f95090a90225555f4 2 parents 7491d36 + a35181b
@hosh hosh authored
View
6 .gitignore
@@ -1,2 +1,8 @@
.*sw?
pkg/
+.idea/ #Rubymine preferences and settings
+
+*.gem
+.bundle
+Gemfile.lock
+pkg/*
View
22 Gemfile
@@ -1,22 +1,4 @@
source :rubygems
-gem 'rails', '3.1.0'
-gem 'will_paginate', '>= 3.0.0'
-gem 'warden'
-
-group :test do
- gem 'awesome_print'
- gem 'pry'
- gem 'rspec'
- gem 'rspec-rails'
- gem 'rspec-core', '= 2.6.4' # Pre 2.6.4 has bugs with $LOAD_PATH
- gem 'multi_json'
- gem 'yajl-ruby'
- gem 'database_cleaner'
- gem 'machinist', '>= 2.0.0.beta2'
- gem 'faker'
- gem 'forgery'
- gem 'sqlite3'
- gem 'pg'
- gem 'redis'
-end
+# Specify your gem's dependencies in intermodal.gemspec
+gemspec
View
4 Rakefile
@@ -1,3 +1,4 @@
+require "bundler/gem_tasks"
require 'rake'
require 'rake/testtask'
require 'rake/rdoctask'
@@ -13,6 +14,7 @@ RSpec::Core::RakeTask.new(:spec) do |t|
end
desc 'Generate documentation for the foreigner plugin.'
+
Rake::RDocTask.new(:rdoc) do |rdoc|
rdoc.rdoc_dir = 'rdoc'
rdoc.title = 'Intermodal'
@@ -21,6 +23,7 @@ Rake::RDocTask.new(:rdoc) do |rdoc|
rdoc.rdoc_files.include('lib/**/*.rb')
end
+=begin
begin
require 'jeweler'
Jeweler::Tasks.new do |gemspec|
@@ -37,4 +40,5 @@ begin
rescue LoadError
puts "Jeweler not available. Install it with: gem install jeweler"
end
+=end
View
105 intermodal.gemspec
@@ -1,77 +1,48 @@
-# Generated by jeweler
-# DO NOT EDIT THIS FILE DIRECTLY
-# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
# -*- encoding: utf-8 -*-
+$:.push File.expand_path("../lib", __FILE__)
+require "intermodal/version"
Gem::Specification.new do |s|
- s.name = %q{intermodal}
- s.version = "0.0.1"
-
- s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
+ s.name = "intermodal"
+ s.version = Intermodal::VERSION
s.authors = ["Ho-Sheng Hsiao"]
+ s.email = %w{hosh@sparkfly.com}
+
s.date = %q{2011-08-26}
- s.description = %q{Declarative DSL for top-level, nested, linked CRUD resource endpoints; DSL for Presenters and Acceptors; API Versioning}
- s.email = %q{hosh@sparkfly.com}
- s.extra_rdoc_files = [
- "LICENSE",
- "README"
- ]
- s.files = [
- "LICENSE",
- "README",
- "Rakefile",
- "VERSION",
- "intermodal.gemspec",
- "lib/intermodal.rb",
- "lib/intermodal/base.rb",
- "lib/intermodal/concerns/acceptors/named_resource.rb",
- "lib/intermodal/concerns/acceptors/resource.rb",
- "lib/intermodal/concerns/controllers/accountability.rb",
- "lib/intermodal/concerns/controllers/anonymous.rb",
- "lib/intermodal/concerns/controllers/presentation.rb",
- "lib/intermodal/concerns/controllers/resource.rb",
- "lib/intermodal/concerns/controllers/resource_linking.rb",
- "lib/intermodal/concerns/let.rb",
- "lib/intermodal/concerns/models/accountability.rb",
- "lib/intermodal/concerns/models/has_parent_resource.rb",
- "lib/intermodal/concerns/models/presentation.rb",
- "lib/intermodal/concerns/models/resource_linking.rb",
- "lib/intermodal/concerns/presenters/named_resource.rb",
- "lib/intermodal/concerns/presenters/resource.rb",
- "lib/intermodal/controllers/api_controller.rb",
- "lib/intermodal/controllers/linking_resource_controller.rb",
- "lib/intermodal/controllers/nested_resource_controller.rb",
- "lib/intermodal/controllers/resource_controller.rb",
- "lib/intermodal/declare_controllers.rb",
- "lib/intermodal/mapping/acceptor.rb",
- "lib/intermodal/mapping/dsl.rb",
- "lib/intermodal/mapping/mapper.rb",
- "lib/intermodal/mapping/presenter.rb",
- "lib/intermodal/rack/auth.rb",
- "lib/intermodal/responders/linking_resource_responder.rb",
- "lib/intermodal/responders/resource_responder.rb",
- "spec/rack/auth_spec.rb",
- "spec/support/requests/linked_resource_helpers.rb",
- "spec/support/requests/rack_helpers.rb",
- "spec/support/requests/resource_helpers.rb",
- "spec/support/requests/rfc2616_status_codes.rb"
- ]
- s.homepage = %q{http://github.com/hosh/intermodal}
- s.require_paths = ["lib"]
+
s.rubygems_version = %q{1.3.7}
+ s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
+
+ s.homepage = %q{http://github.com/hosh/intermodal}
s.summary = %q{Intermodal lets you quickly put together a pure, JSON/XML-only RESTful web service.}
+ s.description = %q{Declarative DSL for top-level, nested, linked CRUD resource endpoints; DSL for Presenters and Acceptors; API Versioning}
+ s.rubyforge_project = "intermodal"
- if s.respond_to? :specification_version then
- current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
- s.specification_version = 3
+ s.files = `git ls-files`.split("\n")
+
+ s.extra_rdoc_files = %w(LICENSE README)
+ s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
+ s.executables = `git ls-files -- bin/*`.split("\n").map { |f| File.basename(f) }
+ s.require_paths = %w(lib)
- if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
- s.add_runtime_dependency(%q<will_paginate>, [">= 3.0.0"])
- else
- s.add_dependency(%q<will_paginate>, [">= 3.0.0"])
- end
- else
- s.add_dependency(%q<will_paginate>, [">= 3.0.0"])
- end
-end
+ s.add_runtime_dependency 'rails', '3.1.0'
+ s.add_runtime_dependency 'will_paginate', '>= 3.0.0'
+ s.add_runtime_dependency 'warden'
+
+ s.add_development_dependency 'awesome_print'
+ s.add_development_dependency 'pry'
+ s.add_development_dependency 'rspec'
+ s.add_development_dependency 'rspec-rails'
+ s.add_development_dependency 'rspec-core', '= 2.6.4' # Pre 2.6.4 has bugs with $LOAD_PATH
+ s.add_development_dependency 'multi_json'
+ s.add_development_dependency 'yajl-ruby'
+ s.add_development_dependency 'database_cleaner'
+ s.add_development_dependency 'machinist', '>= 2.0.0.beta2'
+ s.add_development_dependency 'faker'
+ s.add_development_dependency 'forgery'
+ s.add_development_dependency 'sqlite3'
+ s.add_development_dependency 'pg'
+ s.add_development_dependency 'redis'
+
+end
View
3  lib/intermodal.rb
@@ -1,3 +1,4 @@
+require 'intermodal/version'
require 'active_support'
require 'will_paginate'
@@ -96,4 +97,4 @@ module RSpec
end
end
-require 'intermodal/config'
+require 'intermodal/config'
View
3  lib/intermodal/version.rb
@@ -0,0 +1,3 @@
+module Intermodal
+ VERSION = "0.0.1"
+end
View
1  spec/support/blueprints.rb
@@ -10,6 +10,7 @@
Forgery::Address.country ].join(' ') } }
# Load the schema before setting up the blueprints
+# Supported adapters: sqlite3 and postgresql
SpecHelpers::Schema.new(:postgresql).up!
# Blueprints
Please sign in to comment.
Something went wrong with that request. Please try again.