jsmestad-chargify 0.3.0.pre6 → 0.3.0

Sign up to get free protection for your applications and to get access to all the features.
File without changes
data/Gemfile CHANGED
@@ -1,19 +1,18 @@
1
1
  source 'http://rubygems.org'
2
2
 
3
3
  group :runtime do
4
- gem 'httparty', '~> 0.6.1'
5
- gem 'hashie', '~> 0.1.8'
6
- gem 'json'
4
+ gemspec(nil)
7
5
  end
8
6
 
9
7
  group :test do
10
8
  gem 'jeweler'
11
9
  gem 'rake'
12
- gem 'bundler', '~> 0.9.5'
10
+ gem 'bundler', '>= 1.0.0.beta.5'
13
11
  gem 'fakeweb', '>= 1.2.5'
14
12
  gem 'mocha', '~> 0.9.8'
15
- gem 'rspec', :require => 'spec'
16
- gem 'activesupport', '>= 2.3.5', :require => 'active_support'
13
+ gem 'rspec', '~> 2.0.0.beta.17'
14
+ gem 'activesupport', '~> 3.0.0.beta.4', :require => 'active_support'
15
+ gem 'autotest'
17
16
  end
18
17
 
19
18
 
data/README.markdown CHANGED
@@ -1,14 +1,18 @@
1
- # chargify
1
+ # jsmestad-chargify
2
2
 
3
- Ruby wrapper for the chargify.com SAAS and billing API
3
+ Ruby wrapper for the Chargify SAAS and billing API
4
4
 
5
5
  ### Important Notice
6
6
 
7
- This fork breaks all compatibility with previous versions (<= 0.2.6)
7
+ This fork breaks all compatibility with previous versions (< 0.3.0)
8
8
 
9
9
  ## Installation
10
10
 
11
- gem install chargify
11
+ ### Production Version
12
+ gem install jsmestad-chargify
13
+
14
+ ### Bleeding Edge
15
+ gem install jsmestad-chargify --pre
12
16
 
13
17
  ## Example Usage
14
18
 
@@ -26,12 +30,16 @@ This fork breaks all compatibility with previous versions (<= 0.2.6)
26
30
  config[:api_key] = 'InDhcXAAAAAg7juDD'
27
31
  end
28
32
 
29
- ## Contributing (requires Bundler >= 0.9.7):
33
+ ## Contributing (requires Bundler >= 0.9.26):
30
34
 
31
35
  $ git clone git://github.com/jsmestad/chargify.git
32
36
  $ cd chargify
33
37
  $ bundle install
34
38
  $ bundle exec rake
39
+
40
+ ## More Info
41
+
42
+ Wiki: http://wiki.github.com/jsmestad/chargify/
35
43
 
36
44
  ### Copyright
37
45
 
data/Rakefile CHANGED
@@ -1,5 +1,4 @@
1
1
  require 'rake'
2
- require 'bundler'
3
2
 
4
3
  begin
5
4
  require 'jeweler'
@@ -10,28 +9,23 @@ begin
10
9
  gem.homepage = "http://github.com/jsmestad/chargify"
11
10
  gem.authors = ["Wynn Netherland", "Justin Smestad"]
12
11
 
13
- bundle = Bundler::Definition.from_gemfile('Gemfile')
14
- bundle.dependencies.each do |dep|
15
- next unless dep.groups.include?(:runtime)
16
- gem.add_dependency(dep.name, dep.requirement.to_s)
17
- end
12
+ gem.add_dependency('httparty', '~> 0.6.1')
13
+ gem.add_dependency('hashie', '~> 0.1.8')
14
+ gem.add_dependency('json')
18
15
  end
19
16
  Jeweler::GemcutterTasks.new
20
17
  rescue LoadError
21
18
  puts "Jeweler (or a dependency) not available. Install it with: sudo gem install jeweler"
22
19
  end
23
20
 
21
+ require 'rspec/core/rake_task'
22
+ RSpec::Core::RakeTask.new(:spec)
24
23
 
25
- require 'spec/rake/spectask'
26
- Spec::Rake::SpecTask.new(:spec) do |spec|
27
- spec.libs << 'lib' << 'spec'
28
- spec.spec_files = FileList['spec/**/*_spec.rb']
29
- end
30
-
31
- Spec::Rake::SpecTask.new(:rcov) do |spec|
32
- spec.libs << 'lib' << 'spec'
33
- spec.pattern = 'spec/**/*_spec.rb'
34
- spec.rcov = true
24
+ desc "Run all examples using rcov"
25
+ RSpec::Core::RakeTask.new :rcov => :cleanup_rcov_files do |t|
26
+ t.rcov = true
27
+ t.rcov_opts = %[-Ilib -Ispec --exclude "mocks,expectations,gems/*,spec/resources,spec/lib,spec/spec_helper.rb,db/*,/Library/Ruby/*,config/*"]
28
+ t.rcov_opts << %[--no-html --aggregate coverage.data]
35
29
  end
36
30
 
37
31
  task :default => :spec
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.3.0.pre6
1
+ 0.3.0
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{jsmestad-chargify}
8
- s.version = "0.3.0.pre6"
8
+ s.version = "0.3.0"
9
9
 
10
- s.required_rubygems_version = Gem::Requirement.new("> 1.3.1") if s.respond_to? :required_rubygems_version=
10
+ s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Wynn Netherland", "Justin Smestad"]
12
- s.date = %q{2010-07-11}
12
+ s.date = %q{2010-07-13}
13
13
  s.email = %q{justin.smestad@gmail.com}
14
14
  s.extra_rdoc_files = [
15
15
  "LICENSE",
@@ -17,6 +17,7 @@ Gem::Specification.new do |s|
17
17
  ]
18
18
  s.files = [
19
19
  ".gitignore",
20
+ ".rspec",
20
21
  "Gemfile",
21
22
  "LICENSE",
22
23
  "README.markdown",
@@ -49,7 +50,6 @@ Gem::Specification.new do |s|
49
50
  "spec/fixtures/subscription.json",
50
51
  "spec/fixtures/subscription_not_found.json",
51
52
  "spec/fixtures/subscriptions.json",
52
- "spec/spec.opts",
53
53
  "spec/spec_helper.rb",
54
54
  "spec/support/fakeweb_stubs.rb",
55
55
  "spec/unit/chargify/config_spec.rb",
@@ -62,7 +62,7 @@ Gem::Specification.new do |s|
62
62
  s.homepage = %q{http://github.com/jsmestad/chargify}
63
63
  s.rdoc_options = ["--charset=UTF-8"]
64
64
  s.require_paths = ["lib"]
65
- s.rubygems_version = %q{1.3.6}
65
+ s.rubygems_version = %q{1.3.7}
66
66
  s.summary = %q{Ruby wrapper for the Chargify API}
67
67
  s.test_files = [
68
68
  "spec/spec_helper.rb",
@@ -79,7 +79,7 @@ Gem::Specification.new do |s|
79
79
  current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
80
80
  s.specification_version = 3
81
81
 
82
- if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
82
+ if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
83
83
  s.add_runtime_dependency(%q<httparty>, ["~> 0.6.1"])
84
84
  s.add_runtime_dependency(%q<hashie>, ["~> 0.1.8"])
85
85
  s.add_runtime_dependency(%q<json>, [">= 0"])
@@ -74,7 +74,7 @@ module Chargify
74
74
  #
75
75
  def method_missing(method, *args)
76
76
  if method.to_s[-1,1] == '='
77
- configuration[method.to_s.tr('=','').to_sym] = *args
77
+ configuration.send(:[]=, method.to_s.tr('=','').to_sym, *args)
78
78
  else
79
79
  configuration[method]
80
80
  end
data/spec/spec_helper.rb CHANGED
@@ -1,13 +1,14 @@
1
1
  require 'rubygems'
2
2
  require 'bundler'
3
+ require 'logger'
3
4
 
4
5
  Bundler.require(:default, :runtime, :test)
5
6
  $LOAD_PATH.unshift(File.dirname(__FILE__))
6
7
  $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
7
8
 
8
9
  require 'chargify'
9
- require 'spec'
10
- require 'spec/autorun'
10
+ require 'rspec/core'
11
+ require 'autotest/rspec2'
11
12
 
12
13
  # Requires supporting files with custom matchers and macros, etc,
13
14
  # in ./support/ and its subdirectories.
@@ -15,7 +16,7 @@ Dir[File.expand_path(File.join(File.dirname(__FILE__),'support','**','*.rb'))].e
15
16
 
16
17
  FakeWeb.allow_net_connect = false
17
18
 
18
- Spec::Runner.configure do |config|
19
+ RSpec.configure do |config|
19
20
  # config.include(Rack::Test::Methods)
20
21
 
21
22
  config.before :suite do
@@ -107,7 +107,7 @@ describe Chargify::Config do
107
107
  end
108
108
 
109
109
  it "should let you set items on the configuration object as a hash" do
110
- lambda{
110
+ lambda {
111
111
  Chargify::Config.setup do |c|
112
112
  c[:bananas] = 100
113
113
  end
@@ -115,7 +115,7 @@ describe Chargify::Config do
115
115
  end
116
116
 
117
117
  it "should let you set items on the configuration object as a method" do
118
- lambda{
118
+ lambda {
119
119
  Chargify::Config.setup do |c|
120
120
  c.monkeys = 100
121
121
  end
@@ -135,7 +135,7 @@ describe Chargify::Config do
135
135
  end
136
136
 
137
137
  it "should set the value of the config item matching the method name if it's an assignment" do
138
- lambda{
138
+ lambda {
139
139
  Chargify::Config.trees = 3
140
140
  }.should change(Chargify::Config, :trees).from(nil).to(3)
141
141
  end
metadata CHANGED
@@ -1,13 +1,12 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jsmestad-chargify
3
3
  version: !ruby/object:Gem::Version
4
- prerelease: true
4
+ prerelease: false
5
5
  segments:
6
6
  - 0
7
7
  - 3
8
8
  - 0
9
- - pre6
10
- version: 0.3.0.pre6
9
+ version: 0.3.0
11
10
  platform: ruby
12
11
  authors:
13
12
  - Wynn Netherland
@@ -16,13 +15,14 @@ autorequire:
16
15
  bindir: bin
17
16
  cert_chain: []
18
17
 
19
- date: 2010-07-11 00:00:00 -06:00
18
+ date: 2010-07-13 00:00:00 -06:00
20
19
  default_executable:
21
20
  dependencies:
22
21
  - !ruby/object:Gem::Dependency
23
- type: :runtime
24
22
  name: httparty
25
- version_requirements: &id001 !ruby/object:Gem::Requirement
23
+ prerelease: false
24
+ requirement: &id001 !ruby/object:Gem::Requirement
25
+ none: false
26
26
  requirements:
27
27
  - - ~>
28
28
  - !ruby/object:Gem::Version
@@ -31,12 +31,13 @@ dependencies:
31
31
  - 6
32
32
  - 1
33
33
  version: 0.6.1
34
- requirement: *id001
35
- prerelease: false
36
- - !ruby/object:Gem::Dependency
37
34
  type: :runtime
35
+ version_requirements: *id001
36
+ - !ruby/object:Gem::Dependency
38
37
  name: hashie
39
- version_requirements: &id002 !ruby/object:Gem::Requirement
38
+ prerelease: false
39
+ requirement: &id002 !ruby/object:Gem::Requirement
40
+ none: false
40
41
  requirements:
41
42
  - - ~>
42
43
  - !ruby/object:Gem::Version
@@ -45,20 +46,21 @@ dependencies:
45
46
  - 1
46
47
  - 8
47
48
  version: 0.1.8
48
- requirement: *id002
49
- prerelease: false
50
- - !ruby/object:Gem::Dependency
51
49
  type: :runtime
50
+ version_requirements: *id002
51
+ - !ruby/object:Gem::Dependency
52
52
  name: json
53
- version_requirements: &id003 !ruby/object:Gem::Requirement
53
+ prerelease: false
54
+ requirement: &id003 !ruby/object:Gem::Requirement
55
+ none: false
54
56
  requirements:
55
57
  - - ">="
56
58
  - !ruby/object:Gem::Version
57
59
  segments:
58
60
  - 0
59
61
  version: "0"
60
- requirement: *id003
61
- prerelease: false
62
+ type: :runtime
63
+ version_requirements: *id003
62
64
  description:
63
65
  email: justin.smestad@gmail.com
64
66
  executables: []
@@ -70,6 +72,7 @@ extra_rdoc_files:
70
72
  - README.markdown
71
73
  files:
72
74
  - .gitignore
75
+ - .rspec
73
76
  - Gemfile
74
77
  - LICENSE
75
78
  - README.markdown
@@ -102,7 +105,6 @@ files:
102
105
  - spec/fixtures/subscription.json
103
106
  - spec/fixtures/subscription_not_found.json
104
107
  - spec/fixtures/subscriptions.json
105
- - spec/spec.opts
106
108
  - spec/spec_helper.rb
107
109
  - spec/support/fakeweb_stubs.rb
108
110
  - spec/unit/chargify/config_spec.rb
@@ -121,6 +123,7 @@ rdoc_options:
121
123
  require_paths:
122
124
  - lib
123
125
  required_ruby_version: !ruby/object:Gem::Requirement
126
+ none: false
124
127
  requirements:
125
128
  - - ">="
126
129
  - !ruby/object:Gem::Version
@@ -128,18 +131,17 @@ required_ruby_version: !ruby/object:Gem::Requirement
128
131
  - 0
129
132
  version: "0"
130
133
  required_rubygems_version: !ruby/object:Gem::Requirement
134
+ none: false
131
135
  requirements:
132
- - - ">"
136
+ - - ">="
133
137
  - !ruby/object:Gem::Version
134
138
  segments:
135
- - 1
136
- - 3
137
- - 1
138
- version: 1.3.1
139
+ - 0
140
+ version: "0"
139
141
  requirements: []
140
142
 
141
143
  rubyforge_project:
142
- rubygems_version: 1.3.6
144
+ rubygems_version: 1.3.7
143
145
  signing_key:
144
146
  specification_version: 3
145
147
  summary: Ruby wrapper for the Chargify API