From d0b0979dd99523675b2bab7c77e6f6975e8a738a Mon Sep 17 00:00:00 2001 From: Tung Nguyen Date: Wed, 13 Feb 2013 00:58:06 -0800 Subject: [PATCH 1/2] fix Ticket#tags: remove usage of deprecated attr_accessor_with_default --- Gemfile | 2 ++ Gemfile.lock | 28 ++++++++++++++++++++++++++++ Rakefile | 7 +++++++ lib/lighthouse/tag.rb | 5 ++--- lighthouse-api.gemspec | 2 +- 5 files changed, 40 insertions(+), 4 deletions(-) create mode 100644 Gemfile create mode 100644 Gemfile.lock create mode 100644 Rakefile 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/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..5cf31db 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.1" s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version= s.authors = ["Rick Olson", "Justin Palmer"] From 033c8cd4c4126ff990e393a39f15883a1bc69a3d Mon Sep 17 00:00:00 2001 From: Tung Nguyen Date: Wed, 13 Feb 2013 16:41:00 -0800 Subject: [PATCH 2/2] add Member class to users can be listed --- lib/lighthouse.rb | 1 + lib/lighthouse/member.rb | 4 ++++ lighthouse-api.gemspec | 2 +- 3 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 lib/lighthouse/member.rb 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/lighthouse-api.gemspec b/lighthouse-api.gemspec index 5cf31db..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.1" + 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"]