Skip to content

Commit

Permalink
namespace the gem for gemcutter
Browse files Browse the repository at this point in the history
  • Loading branch information
jsmestad committed Jul 8, 2010
1 parent 3fb89a9 commit 97d8f70
Show file tree
Hide file tree
Showing 9 changed files with 131 additions and 109 deletions.
5 changes: 0 additions & 5 deletions .document

This file was deleted.

5 changes: 2 additions & 3 deletions Gemfile
Expand Up @@ -7,15 +7,14 @@ group :runtime do
end

group :test do
gem 'mg'
gem 'jeweler'
gem 'rake'
gem 'bundler', '~> 0.9.5'
gem 'fakeweb', '>= 1.2.5'
gem 'redgreen', '>= 1.2.2'
gem 'mocha', '~> 0.9.8'
gem 'shoulda', '>= 2.10.1'
gem 'rspec', :require => 'spec'
gem 'activesupport', '>= 2.3.5'
gem 'activesupport', '>= 2.3.5', :require => 'active_support'
end


Expand Down
2 changes: 1 addition & 1 deletion LICENSE
@@ -1,4 +1,4 @@
Copyright (c) 2009 Wynn Netherland
Copyright (c) 2009 Wynn Netherland, Justin Smestad

Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
Expand Down
18 changes: 7 additions & 11 deletions README.markdown
Expand Up @@ -26,17 +26,13 @@ This fork breaks all compatibility with previous versions (<= 0.2.6)
config[:api_key] = 'InDhcXAAAAAg7juDD'
end

## Note on Patches/Pull Requests

* Fork the project.
* Make your feature addition or bug fix.
* Add tests for it. This is important so I don't break it in a
future version unintentionally.
* Commit, do not mess with rakefile, version, or history.
(if you want to have your own version, that is fine but
bump version in a commit by itself I can ignore when I pull)
* Send me a pull request. Bonus points for topic branches.
## Contributing (requires Bundler >= 0.9.7):

$ git clone git://github.com/jsmestad/chargify.git
$ cd chargify
$ bundle install
$ bundle exec rake

### Copyright

Copyright (c) 2009 [Wynn Netherland](http://wynnnetherland.com). See LICENSE for details.
See LICENSE for details.
24 changes: 19 additions & 5 deletions Rakefile
@@ -1,12 +1,26 @@
require 'rake'
# require 'bundler'
require 'bundler'

require 'mg'
require 'active_support/inflector'
require 'shoulda/tasks'
begin
require 'jeweler'
Jeweler::Tasks.new do |gem|
gem.name = "jsmestad-chargify"
gem.summary = %Q{Ruby wrapper for the Chargify API}
gem.email = "justin.smestad@gmail.com"
gem.homepage = "http://github.com/jsmestad/chargify"
gem.authors = ["Wynn Netherland", "Justin Smestad"]

bundle = Bundler::Definition.from_gemfile('Gemfile')
bundle.dependencies.each do |dep|
next unless dep.groups.include?(:runtime)
gem.add_dependency(dep.name, dep.requirement.to_s)
end
end
Jeweler::GemcutterTasks.new
rescue LoadError
puts "Jeweler (or a dependency) not available. Install it with: sudo gem install jeweler"
end

MG.new("chargify.gemspec")

require 'spec/rake/spectask'
Spec::Rake::SpecTask.new(:spec) do |spec|
Expand Down
2 changes: 1 addition & 1 deletion VERSION
@@ -1 +1 @@
0.2.6
0.3.0.pre
5 changes: 4 additions & 1 deletion changelog.md
@@ -1,5 +1,8 @@
# Changelog

## 0.3.0.pre July 08, 2010
* Complete API Rewrite, please view wiki for API documentation

## 0.2.6 May 27, 2010
* Fix #charge_subscription to submit it's body as json [@will](http://github.com/will) and [@ignat](http://github.com/ignat)
* API coverage for quantity components [@will](http://github.com/will)
Expand All @@ -18,4 +21,4 @@

## 0.1.0 November 18, 2009

* Initial version
* Initial version
82 changes: 0 additions & 82 deletions chargify.gemspec

This file was deleted.

97 changes: 97 additions & 0 deletions jsmestad-chargify.gemspec
@@ -0,0 +1,97 @@
# Generated by jeweler
# DO NOT EDIT THIS FILE DIRECTLY
# Instead, edit Jeweler::Tasks in Rakefile, and run the gemspec command
# -*- encoding: utf-8 -*-

Gem::Specification.new do |s|
s.name = %q{jsmestad-chargify}
s.version = "0.3.0.pre"

s.required_rubygems_version = Gem::Requirement.new("> 1.3.1") if s.respond_to? :required_rubygems_version=
s.authors = ["Wynn Netherland", "Justin Smestad"]
s.date = %q{2010-07-08}
s.email = %q{justin.smestad@gmail.com}
s.extra_rdoc_files = [
"LICENSE",
"README.markdown"
]
s.files = [
".gitignore",
"Gemfile",
"LICENSE",
"README.markdown",
"Rakefile",
"VERSION",
"changelog.md",
"chargify.gemspec",
"lib/chargify.rb",
"lib/chargify/base.rb",
"lib/chargify/config.rb",
"lib/chargify/customer.rb",
"lib/chargify/error.rb",
"lib/chargify/parser.rb",
"lib/chargify/product.rb",
"lib/chargify/subscription.rb",
"lib/chargify/transaction.rb",
"spec/fixtures/charge_subscription.json",
"spec/fixtures/charge_subscription_missing_parameters.json",
"spec/fixtures/component.json",
"spec/fixtures/components.json",
"spec/fixtures/customer.json",
"spec/fixtures/customers.json",
"spec/fixtures/deleted_subscription.json",
"spec/fixtures/invalid_subscription.json",
"spec/fixtures/list_metered_subscriptions.json",
"spec/fixtures/migrate_subscription.json",
"spec/fixtures/new_customer.json",
"spec/fixtures/product.json",
"spec/fixtures/products.json",
"spec/fixtures/subscription.json",
"spec/fixtures/subscription_not_found.json",
"spec/fixtures/subscriptions.json",
"spec/spec.opts",
"spec/spec_helper.rb",
"spec/support/fakeweb_stubs.rb",
"spec/unit/chargify/config_spec.rb",
"spec/unit/chargify/customer_spec.rb",
"spec/unit/chargify/parser_spec.rb",
"spec/unit/chargify/product_spec.rb",
"spec/unit/chargify/subscription_spec.rb",
"spec/unit/chargify/transaction_spec.rb"
]
s.homepage = %q{http://github.com/jsmestad/chargify}
s.rdoc_options = ["--charset=UTF-8"]
s.require_paths = ["lib"]
s.rubygems_version = %q{1.3.7}
s.summary = %q{Ruby wrapper for the Chargify API}
s.test_files = [
"spec/spec_helper.rb",
"spec/support/fakeweb_stubs.rb",
"spec/unit/chargify/config_spec.rb",
"spec/unit/chargify/customer_spec.rb",
"spec/unit/chargify/parser_spec.rb",
"spec/unit/chargify/product_spec.rb",
"spec/unit/chargify/subscription_spec.rb",
"spec/unit/chargify/transaction_spec.rb"
]

if s.respond_to? :specification_version then
current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
s.specification_version = 3

if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
s.add_runtime_dependency(%q<httparty>, ["~> 0.6.1"])
s.add_runtime_dependency(%q<hashie>, ["~> 0.1.8"])
s.add_runtime_dependency(%q<json>, [">= 0"])
else
s.add_dependency(%q<httparty>, ["~> 0.6.1"])
s.add_dependency(%q<hashie>, ["~> 0.1.8"])
s.add_dependency(%q<json>, [">= 0"])
end
else
s.add_dependency(%q<httparty>, ["~> 0.6.1"])
s.add_dependency(%q<hashie>, ["~> 0.1.8"])
s.add_dependency(%q<json>, [">= 0"])
end
end

0 comments on commit 97d8f70

Please sign in to comment.