diff --git a/Gemfile b/Gemfile new file mode 100644 index 0000000..df87cd4 --- /dev/null +++ b/Gemfile @@ -0,0 +1,2 @@ +source :rubygems +gemspec \ No newline at end of file diff --git a/Gemfile.lock b/Gemfile.lock new file mode 100644 index 0000000..9d5a8e6 --- /dev/null +++ b/Gemfile.lock @@ -0,0 +1,28 @@ +PATH + remote: . + specs: + lighthouse-api (2.0.1) + activeresource (>= 3.0.0) + activesupport (>= 3.0.0) + +GEM + remote: http://rubygems.org/ + specs: + activemodel (3.2.12) + activesupport (= 3.2.12) + builder (~> 3.0.0) + activeresource (3.2.12) + activemodel (= 3.2.12) + activesupport (= 3.2.12) + activesupport (3.2.12) + i18n (~> 0.6) + multi_json (~> 1.0) + builder (3.0.4) + i18n (0.6.1) + multi_json (1.6.0) + +PLATFORMS + ruby + +DEPENDENCIES + lighthouse-api! diff --git a/Rakefile b/Rakefile new file mode 100644 index 0000000..72126f9 --- /dev/null +++ b/Rakefile @@ -0,0 +1,7 @@ +#!/usr/bin/env rake +require "bundler/gem_tasks" +require "rspec/core/rake_task" + +task :default => :spec + +RSpec::Core::RakeTask.new \ No newline at end of file diff --git a/lib/lighthouse.rb b/lib/lighthouse.rb index 6acd4b8..b5941ae 100644 --- a/lib/lighthouse.rb +++ b/lib/lighthouse.rb @@ -35,6 +35,7 @@ module Lighthouse autoload :Bin autoload :Changeset + autoload :Member autoload :Membership autoload :Message autoload :Milestone diff --git a/lib/lighthouse/member.rb b/lib/lighthouse/member.rb new file mode 100644 index 0000000..d4abf0b --- /dev/null +++ b/lib/lighthouse/member.rb @@ -0,0 +1,4 @@ +module Lighthouse + class Member < Base + end +end diff --git a/lib/lighthouse/tag.rb b/lib/lighthouse/tag.rb index f00db5e..fe883dc 100644 --- a/lib/lighthouse/tag.rb +++ b/lib/lighthouse/tag.rb @@ -1,11 +1,10 @@ -require 'active_support/core_ext/module/attr_accessor_with_default' - module Lighthouse class Tag < String - attr_accessor_with_default :prefix_options, {} + attr_accessor :prefix_options attr_accessor :project_id def initialize(s, project_id) + @prefix_options ||= {} self.project_id = project_id super(s) end diff --git a/lighthouse-api.gemspec b/lighthouse-api.gemspec index 068d5ff..a2bfdf5 100644 --- a/lighthouse-api.gemspec +++ b/lighthouse-api.gemspec @@ -1,6 +1,6 @@ Gem::Specification.new do |s| s.name = %q{lighthouse-api} - s.version = "2.0" + s.version = "2.0.2" s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version= s.authors = ["Rick Olson", "Justin Palmer"]