Merge pull request #78 from nbit001/new_gemspec

Impressionist proposals
This commit is contained in:
John McAliley 2013-05-27 18:02:31 -07:00
commit f812ae5abf
3 changed files with 27 additions and 17 deletions

View File

@ -1,27 +1,32 @@
# encoding: utf-8
require File.expand_path('../lib/impressionist/version', __FILE__)
# -*- encoding: utf-8 -*-
$:.push File.expand_path('../lib', __FILE__)
require 'impressionist/version'
Gem::Specification.new do |s|
s.name = 'impressionist'
s.version = Impressionist::VERSION.dup
s.platform = Gem::Platform::RUBY
s.licenses = ['MIT']
s.summary = 'Easy way to log impressions'
s.email = 'john.mcaliley@gmail.com'
s.homepage = 'http://github.com/charlotte-ruby/impressionist'
s.description = 'Log impressions from controller actions or from a model'
s.authors = ['johnmcaliley']
s.files = `git ls-files`.split('\n')
s.test_files = `git ls-files -- {spec,test_app/spec}/*`.split('\n')
s.require_path = 'lib'
s.required_rubygems_version = Gem::Requirement.new('>= 1.3.6') if s.respond_to? :required_rubygems_version=
s.add_dependency 'httpclient', '~> 2.2'
s.add_dependency 'nokogiri', '~> 1.5'
s.add_development_dependency 'capybara'
s.add_development_dependency 'rake', '>= 0.9'
s.add_development_dependency 'rails', '~>3.1'
s.add_development_dependency 'rails', '~> 3.1'
s.add_development_dependency 'rdoc', '>= 2.4.2'
s.add_development_dependency 'rspec-rails'
s.add_development_dependency 'simplecov'
s.add_development_dependency 'sqlite3'
s.add_development_dependency 'systemu'
s.authors = ["johnmcaliley"]
s.description = "Log impressions from controller actions or from a model"
s.email = "john.mcaliley@gmail.com"
s.files = `git ls-files`.split("\n")
s.homepage = "https://github.com/charlotte-ruby/impressionist"
s.licenses = ["MIT"]
s.name = "impressionist"
s.require_paths = ["lib"]
s.required_rubygems_version = Gem::Requirement.new('>= 1.3.6') if s.respond_to? :required_rubygems_version=
s.summary = "Easy way to log impressions"
s.test_files = `git ls-files -- test_app/*`.split("\n")
s.version = Impressionist::VERSION
end

View File

@ -1,7 +1,7 @@
require "impressionist/engine.rb"
require 'impressionist/engine'
module Impressionist
# Define ORM
# Define default ORM
mattr_accessor :orm
@@orm = :active_record

5
spec/spec_helper.rb Normal file
View File

@ -0,0 +1,5 @@
module Impressionist
def self.mattr_accessor(accessor)
class_variable_set("@@#{accessor}", accessor)
end
end