Permalink
Browse files

Roughing out Gem

  • Loading branch information...
1 parent 57142de commit ee652793ca651ac885086dcaa87e38400e1478d5 @davidkennedy-examtime davidkennedy-examtime committed Feb 8, 2012
Showing with 520 additions and 48 deletions.
  1. +2 −0 .gitignore
  2. +1 −0 .rvmrc
  3. +4 −0 Gemfile
  4. +93 −0 Gemfile.lock
  5. +29 −0 README.md
  6. +2 −0 Rakefile
  7. +0 −8 about.yml
  8. +21 −0 acts_as_network.gemspec
  9. +0 −2 init.rb
  10. +325 −0 lib/acts_as_network.rb
  11. +3 −0 lib/acts_as_network/version.rb
  12. +37 −35 lib/zetetic/acts/network.rb
  13. +1 −1 test/database.yml
  14. +2 −2 test/network_test.rb
View
@@ -0,0 +1,2 @@
+bin
+.bundle
View
@@ -0,0 +1 @@
+rvm --create use 1.9.3@acts_as_network
View
@@ -0,0 +1,4 @@
+source 'https://rubygems.org'
+
+# Specify your gem's dependencies in acts_as_network.gemspec
+gemspec
View
@@ -0,0 +1,93 @@
+PATH
+ remote: .
+ specs:
+ acts_as_network (0.0.1)
+ rails (~> 3.2.0)
+
+GEM
+ remote: https://rubygems.org/
+ specs:
+ actionmailer (3.2.1)
+ actionpack (= 3.2.1)
+ mail (~> 2.4.0)
+ actionpack (3.2.1)
+ activemodel (= 3.2.1)
+ activesupport (= 3.2.1)
+ builder (~> 3.0.0)
+ erubis (~> 2.7.0)
+ journey (~> 1.0.1)
+ rack (~> 1.4.0)
+ rack-cache (~> 1.1)
+ rack-test (~> 0.6.1)
+ sprockets (~> 2.1.2)
+ activemodel (3.2.1)
+ activesupport (= 3.2.1)
+ builder (~> 3.0.0)
+ activerecord (3.2.1)
+ activemodel (= 3.2.1)
+ activesupport (= 3.2.1)
+ arel (~> 3.0.0)
+ tzinfo (~> 0.3.29)
+ activeresource (3.2.1)
+ activemodel (= 3.2.1)
+ activesupport (= 3.2.1)
+ activesupport (3.2.1)
+ i18n (~> 0.6)
+ multi_json (~> 1.0)
+ arel (3.0.0)
+ builder (3.0.0)
+ erubis (2.7.0)
+ hike (1.2.1)
+ i18n (0.6.0)
+ journey (1.0.1)
+ json (1.6.5)
+ mail (2.4.1)
+ i18n (>= 0.4.0)
+ mime-types (~> 1.16)
+ treetop (~> 1.4.8)
+ mime-types (1.17.2)
+ minitest (2.11.1)
+ multi_json (1.0.4)
+ polyglot (0.3.3)
+ rack (1.4.1)
+ rack-cache (1.1)
+ rack (>= 0.4)
+ rack-ssl (1.3.2)
+ rack
+ rack-test (0.6.1)
+ rack (>= 1.0)
+ rails (3.2.1)
+ actionmailer (= 3.2.1)
+ actionpack (= 3.2.1)
+ activerecord (= 3.2.1)
+ activeresource (= 3.2.1)
+ activesupport (= 3.2.1)
+ bundler (~> 1.0)
+ railties (= 3.2.1)
+ railties (3.2.1)
+ actionpack (= 3.2.1)
+ activesupport (= 3.2.1)
+ rack-ssl (~> 1.3.2)
+ rake (>= 0.8.7)
+ rdoc (~> 3.4)
+ thor (~> 0.14.6)
+ rake (0.9.2.2)
+ rdoc (3.12)
+ json (~> 1.4)
+ sprockets (2.1.2)
+ hike (~> 1.2)
+ rack (~> 1.0)
+ tilt (~> 1.1, != 1.3.0)
+ thor (0.14.6)
+ tilt (1.3.3)
+ treetop (1.4.10)
+ polyglot
+ polyglot (>= 0.3.1)
+ tzinfo (0.3.31)
+
+PLATFORMS
+ ruby
+
+DEPENDENCIES
+ acts_as_network!
+ minitest
View
@@ -187,3 +187,32 @@ when you are done.
[%] rm acts_as_network.test.db
The test suite requires sqlite3.
+# ActsAsNetwork
+
+TODO: Write a gem description
+
+## Installation
+
+Add this line to your application's Gemfile:
+
+ gem 'acts_as_network'
+
+And then execute:
+
+ $ bundle
+
+Or install it yourself as:
+
+ $ gem install acts_as_network
+
+## Usage
+
+TODO: Write usage instructions here
+
+## Contributing
+
+1. Fork it
+2. Create your feature branch (`git checkout -b my-new-feature`)
+3. Commit your changes (`git commit -am 'Added some feature'`)
+4. Push to the branch (`git push origin my-new-feature`)
+5. Create new Pull Request
View
@@ -0,0 +1,2 @@
+#!/usr/bin/env rake
+require "bundler/gem_tasks"
View
@@ -1,8 +0,0 @@
-author: Zetetic LLC (Stephen Lombardo)
-summary: Simplify the definition and storage of "network" relationships, especially useful for social networks.
-homepage: http://www.zetetic.net
-plugin: git://github.com/sjlombardo/acts_as_network.git
-license: MIT
-version: 0.2
-rails_version: 2.0+
-
@@ -0,0 +1,21 @@
+# -*- encoding: utf-8 -*-
+require File.expand_path('../lib/acts_as_network/version', __FILE__)
+
+Gem::Specification.new do |gem|
+ gem.authors = ["Zetetic LLC (Stephen Lombardo), David Kennedy"]
+ gem.email = ["david.kennedy@examtime.com"]
+ gem.description = %q{Simplify the definition and storage of "network" relationships, especially useful for social networks.}
+ gem.summary = %q{Simplify social network relationships}
+ gem.homepage = "https://github.com/ExamTime/acts_as_network"
+
+ gem.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
+ gem.files = `git ls-files`.split("\n")
+ gem.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
+ gem.name = "acts_as_network"
+ gem.require_paths = ["lib"]
+ gem.version = ActsAsNetwork::VERSION
+
+ gem.add_development_dependency "minitest"
+ gem.add_dependency "rails", "~> 3.2.0"
+
+end
View
@@ -1,2 +0,0 @@
-ActiveRecord::Base.send :include, Zetetic::Acts::Network
-ActiveRecord::Base.send :include, Zetetic::Acts::Union
Oops, something went wrong. Retry.

0 comments on commit ee65279

Please sign in to comment.