profitbricks 0.0.3 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
data/.travis.yml ADDED
@@ -0,0 +1,9 @@
1
+ language: ruby
2
+ rvm:
3
+ - 1.8.7
4
+ - 1.9.2
5
+ - 1.9.3
6
+ - jruby-18mode # JRuby in 1.8 mode
7
+ # - jruby-19mode # JRuby in 1.9 mode
8
+ # - rbx-18mode
9
+ # - rbx-19mode
data/CHANGELOG.md CHANGED
@@ -1,13 +1,20 @@
1
+ === 0.0.4 / 2012-03-07
2
+
3
+ * 1 major enhancement:
4
+ * Tests passing on MRI 1.8.7, 1.9.2, 1.9.3 and JRuby 1.8 passing the tests
5
+
1
6
  === 0.0.3 / 2012-03-06
2
7
 
3
8
  * 1 minor enhancement:
4
9
 
5
10
  * Adding homepage
11
+
6
12
  === 0.0.2 / 2012-03-06
7
13
 
8
14
  * 1 minor enhancement:
9
15
 
10
16
  * Made sure everything is in the right place
17
+
11
18
  === 0.0.1 / 2012-02-28
12
19
 
13
20
  * 1 major enhancement
data/Gemfile CHANGED
@@ -4,5 +4,15 @@ gem 'savon'
4
4
  group :test, :development do
5
5
  gem 'rspec'
6
6
  gem 'savon_spec'
7
- gem 'simplecov'
7
+ gem 'simplecov', :require => false
8
+ gem 'hoe'
9
+ gem 'hoe-git'
10
+ gem 'hoe-gemspec'
11
+ gem 'hoe-bundler'
12
+ gem 'ZenTest'
13
+ gem 'autotest-fsevent'
14
+ end
15
+
16
+ platforms :jruby do
17
+ gem 'jruby-openssl'
8
18
  end
data/Gemfile.lock CHANGED
@@ -1,12 +1,24 @@
1
1
  GEM
2
2
  remote: http://rubygems.org/
3
3
  specs:
4
+ ZenTest (4.6.2)
4
5
  akami (1.0.0)
5
6
  gyoku (>= 0.4.0)
7
+ autotest-fsevent (0.2.8)
8
+ sys-uname
6
9
  builder (3.0.0)
7
10
  diff-lcs (1.1.3)
11
+ ffi (1.0.11)
8
12
  gyoku (0.4.4)
9
13
  builder (>= 2.1.2)
14
+ hoe (2.15.0)
15
+ rake (~> 0.8)
16
+ hoe-bundler (1.1.0)
17
+ hoe (>= 2.2.0)
18
+ hoe-gemspec (1.0.0)
19
+ hoe (>= 2.2.0)
20
+ hoe-git (1.4.1)
21
+ hoe (>= 2.2.0)
10
22
  httpi (0.9.6)
11
23
  rack
12
24
  metaclass (0.0.1)
@@ -16,6 +28,7 @@ GEM
16
28
  nokogiri (1.5.0)
17
29
  nori (1.1.0)
18
30
  rack (1.4.1)
31
+ rake (0.9.2.2)
19
32
  rspec (2.8.0)
20
33
  rspec-core (~> 2.8.0)
21
34
  rspec-expectations (~> 2.8.0)
@@ -40,6 +53,8 @@ GEM
40
53
  multi_json (~> 1.0)
41
54
  simplecov-html (~> 0.5.3)
42
55
  simplecov-html (0.5.3)
56
+ sys-uname (0.9.0)
57
+ ffi (>= 1.0.0)
43
58
  wasabi (2.1.0)
44
59
  nokogiri (>= 1.4.0)
45
60
 
@@ -47,6 +62,13 @@ PLATFORMS
47
62
  ruby
48
63
 
49
64
  DEPENDENCIES
65
+ ZenTest
66
+ autotest-fsevent
67
+ hoe
68
+ hoe-bundler
69
+ hoe-gemspec
70
+ hoe-git
71
+ jruby-openssl
50
72
  rspec
51
73
  savon
52
74
  savon_spec
data/Manifest.txt CHANGED
@@ -1,5 +1,6 @@
1
1
  .autotest
2
2
  .rspec
3
+ .travis.yml
3
4
  CHANGELOG.md
4
5
  Gemfile
5
6
  Gemfile.lock
data/README.md CHANGED
@@ -1,6 +1,8 @@
1
- # Profitbricks
1
+ # Profitbricks [![Build Status](https://secure.travis-ci.org/dsander/profitbricks.png)](http://travis-ci.org/dsander/profitbricks)
2
2
 
3
3
  * http://github.com/dsander/profitbricks
4
+ * http://rubydoc.info/github/dsander/profitbricks/master/frames
5
+
4
6
 
5
7
  ## DESCRIPTION
6
8
  A Ruby client for the ProfitBricks API.
@@ -8,8 +10,7 @@ A Ruby client for the ProfitBricks API.
8
10
  BE AWARE: This software is in a very early state of development, the methods and responses will very likely change over time.
9
11
 
10
12
  ## Dependencies
11
- A Ruby interpreter.
12
- Currently only tested on MRI 1.9.3, more implementations will follow once the tests pass on TravisCI
13
+ A Ruby interpreter (MRI 1.8.7, 1.9.2, 1.9.3 and JRuby 1.8 passing the tests).
13
14
 
14
15
 
15
16
  ## Installation
data/Rakefile CHANGED
@@ -1,6 +1,7 @@
1
1
  # -*- ruby -*-
2
2
 
3
3
  require 'rubygems'
4
+ gem 'hoe', '>= 2.1.0'
4
5
  require 'hoe'
5
6
  require "rspec/core/rake_task"
6
7
 
@@ -25,7 +26,6 @@ end
25
26
 
26
27
  task :prerelease => [:clobber, :check_manifest, :test]
27
28
 
28
- RSpec::Core::RakeTask.new
29
29
 
30
30
  task :default => :spec
31
31
  task :test => :spec
data/lib/profitbricks.rb CHANGED
@@ -9,7 +9,7 @@ require 'profitbricks/storage'
9
9
  require 'profitbricks/ip_block'
10
10
 
11
11
  module Profitbricks
12
- VERSION = '0.0.3'
12
+ VERSION = '0.0.4'
13
13
  end
14
14
 
15
15
  PB = Profitbricks
@@ -21,7 +21,7 @@ module Profitbricks
21
21
  end
22
22
 
23
23
  def self.has_many(model)
24
- klass = Profitbricks.get_class model[0..-2].camelcase
24
+ klass = Profitbricks.get_class model.to_s[0..-2].camelcase
25
25
  @@associations[model] = {:type => :collection, :class => klass}
26
26
  define_method(model) { instance_variable_get("@#{model}") }
27
27
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: profitbricks
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-03-06 00:00:00.000000000 Z
12
+ date: 2012-03-07 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: savon
16
- requirement: &23858400 !ruby/object:Gem::Requirement
16
+ requirement: &18787520 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: '0'
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *23858400
24
+ version_requirements: *18787520
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: rdoc
27
- requirement: &23857300 !ruby/object:Gem::Requirement
27
+ requirement: &18786860 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ~>
@@ -32,18 +32,18 @@ dependencies:
32
32
  version: '3.10'
33
33
  type: :development
34
34
  prerelease: false
35
- version_requirements: *23857300
35
+ version_requirements: *18786860
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: hoe
38
- requirement: &23856800 !ruby/object:Gem::Requirement
38
+ requirement: &18786180 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
41
  - - ~>
42
42
  - !ruby/object:Gem::Version
43
- version: '2.14'
43
+ version: '2.15'
44
44
  type: :development
45
45
  prerelease: false
46
- version_requirements: *23856800
46
+ version_requirements: *18786180
47
47
  description: ! 'A Ruby client for the ProfitBricks API.
48
48
 
49
49
 
@@ -59,6 +59,7 @@ extra_rdoc_files:
59
59
  files:
60
60
  - .autotest
61
61
  - .rspec
62
+ - .travis.yml
62
63
  - CHANGELOG.md
63
64
  - Gemfile
64
65
  - Gemfile.lock