Skip to content

Commit

Permalink
bleh, probably don't need all this junk
Browse files Browse the repository at this point in the history
  • Loading branch information
slyphon committed Mar 2, 2011
1 parent 0f48aa1 commit a911bc2
Show file tree
Hide file tree
Showing 6 changed files with 55 additions and 13 deletions.
2 changes: 2 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
source "http://rubygems.org"
source 'http://rubygems'
source 'http://localhost:50000'

# Specify your gem's dependencies in zk-znode.gemspec
gemspec
13 changes: 13 additions & 0 deletions lib/z_k/znode.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
require 'bundler/setup'

require 'zk'
require 'active_model'

module ZK
module Znode
end
end

require 'z_k/znode/base'


25 changes: 25 additions & 0 deletions lib/z_k/znode/base.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
module ZK
module Znode
class Base
extend ActiveModel::Naming

def initialize(path)
@path = path
end

def to_model
self
end

def valid?() true end
def new_record?() true end
def destroyed?() true end

def errors
end


end
end
end

File renamed without changes.
7 changes: 2 additions & 5 deletions lib/zk-znode.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,2 @@
module Zk
module Znode
# Your code goes here...
end
end
require File.expand_path('../z_k/znode', __FILE__)

21 changes: 13 additions & 8 deletions zk-znode.gemspec
Original file line number Diff line number Diff line change
@@ -1,18 +1,23 @@
# -*- encoding: utf-8 -*-
$:.push File.expand_path("../lib", __FILE__)
require "zk-znode/version"
require "z_k/znode/version"

Gem::Specification.new do |s|
s.name = "zk-znode"
s.version = Zk::Znode::VERSION
s.version = ZK::Znode::VERSION
s.platform = Gem::Platform::RUBY
s.authors = ["TODO: Write your name"]
s.email = ["TODO: Write your email address"]
s.homepage = ""
s.summary = %q{TODO: Write a gem summary}
s.description = %q{TODO: Write a gem description}
s.authors = ["Jonathan D. Simms"]
s.email = ["simms@hp.com"]
s.summary = %q{a simple ActiveModel-based wrapper around a zookeeper znode}
s.description = s.summary

s.add_dependency('zk', '~> 0.6.0')
s.add_dependency('activesupport', '~> 3.0.0')
s.add_dependency('activemodel', '~> 3.0.0')

s.add_development_dependency('rspec', '>= 2.0.1')
s.add_development_dependency('flexmock', '>= 2.0.1')

s.rubyforge_project = "zk-znode"

s.files = `git ls-files`.split("\n")
s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
Expand Down

0 comments on commit a911bc2

Please sign in to comment.