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 +9 -0
- data/CHANGELOG.md +7 -0
- data/Gemfile +11 -1
- data/Gemfile.lock +22 -0
- data/Manifest.txt +1 -0
- data/README.md +4 -3
- data/Rakefile +1 -1
- data/lib/profitbricks.rb +1 -1
- data/lib/profitbricks/model.rb +1 -1
- metadata +10 -9
data/.travis.yml
ADDED
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
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
data/lib/profitbricks/model.rb
CHANGED
@@ -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.
|
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-
|
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: &
|
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: *
|
24
|
+
version_requirements: *18787520
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: rdoc
|
27
|
-
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: *
|
35
|
+
version_requirements: *18786860
|
36
36
|
- !ruby/object:Gem::Dependency
|
37
37
|
name: hoe
|
38
|
-
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.
|
43
|
+
version: '2.15'
|
44
44
|
type: :development
|
45
45
|
prerelease: false
|
46
|
-
version_requirements: *
|
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
|