digitalocean 1.0.0.rc.2 → 1.0.0.rc.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1 @@
1
+ script: "bundle exec rspec"
data/README.md CHANGED
@@ -2,6 +2,16 @@
2
2
 
3
3
  This gem is a wrapper for [DigitalOcean.com](https://www.digitalocean.com)'s API.
4
4
 
5
+ [![BuildStatus](https://travis-ci.org/scottmotte/digitalocean.png?branch=master)](https://travis-ci.org/scottmotte/digitalocean)
6
+ [![Gem Version](https://badge.fury.io/rb/digitalocean.png)](http://badge.fury.io/rb/digitalocean)
7
+
8
+ ```ruby
9
+ Digitalocean.client_id = "your_client_id"
10
+ Digitalocean.api_key = "your_api_key"
11
+ droplets = Digitalocean::Droplet.all
12
+ puts droplets.inspect
13
+ ```
14
+
5
15
  ## Installation
6
16
 
7
17
  Add this line to your application's Gemfile:
@@ -87,8 +97,12 @@ Digitalocean::Size.all
87
97
  Digitalocean::SshKey.all
88
98
  Digitalocean::SshKey.find(id)
89
99
  Digitalocean::SshKey.create({name: name, ssh_pub_key: ssh_pub_key})
100
+
101
+ Digitalocean::Event.find(id)
90
102
  ```
91
103
 
104
+ There's also an [digitalocean-rubygem-example](https://github.com/scottmotte/digitalocean-rubygem-example) if you find you need more context.
105
+
92
106
  ## Contributing
93
107
 
94
108
  1. Fork it
@@ -49,6 +49,9 @@ module Digitalocean
49
49
  "all" => "https://api.digitalocean.com/ssh_keys/?client_id=[your_client_id]&api_key=[your_api_key]",
50
50
  "find" => "https://api.digitalocean.com/ssh_keys/[ssh_key_id]/?client_id=[your_client_id]&api_key=[your_api_key]",
51
51
  "create" => "https://api.digitalocean.com/ssh_keys/new/?name=[ssh_key_name]&ssh_pub_key=[ssh_public_key]&client_id=[your_client_id]&api_key=[your_api_key]"
52
+ },
53
+ "Event" => {
54
+ "find" => "https://api.digitalocean.com/events/[event_id]/?client_id=[your_client_id]&api_key=[your_api_key]"
52
55
  }
53
56
  }
54
57
 
@@ -1,3 +1,3 @@
1
1
  module Digitalocean
2
- VERSION = "1.0.0.rc.2"
2
+ VERSION = "1.0.0.rc.3"
3
3
  end
@@ -0,0 +1,17 @@
1
+ require 'spec_helper'
2
+
3
+ describe Digitalocean::Event do
4
+ let(:subject) { Digitalocean::Event }
5
+
6
+ describe "._find" do
7
+ let(:event_id) { "1234" }
8
+
9
+ before do
10
+ @url = subject._find(event_id)
11
+ end
12
+
13
+ it do
14
+ @url.should eq "https://api.digitalocean.com/events/#{event_id}/?client_id=client_id_required&api_key=api_key_required"
15
+ end
16
+ end
17
+ end
@@ -12,7 +12,7 @@ describe Digitalocean do
12
12
  it { subject.api_endpoint.should eq "https://api.digitalocean.com" }
13
13
  it { subject.client_id.should eq "client_id_required" }
14
14
  it { subject.api_key.should eq "api_key_required" }
15
- it { subject::VERSION.should eq "1.0.0.rc.2" }
15
+ it { subject::VERSION.should eq "1.0.0.rc.3" }
16
16
  end
17
17
 
18
18
  describe "setting values" do
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: digitalocean
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0.rc.2
4
+ version: 1.0.0.rc.3
5
5
  prerelease: 6
6
6
  platform: ruby
7
7
  authors:
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2014-02-08 00:00:00.000000000 Z
13
+ date: 2014-02-09 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: faraday
@@ -134,6 +134,7 @@ extra_rdoc_files: []
134
134
  files:
135
135
  - .gitignore
136
136
  - .rspec
137
+ - .travis.yml
137
138
  - Gemfile
138
139
  - LICENSE.txt
139
140
  - README.md
@@ -143,6 +144,7 @@ files:
143
144
  - lib/digitalocean/version.rb
144
145
  - spec/digitalocean/domain_spec.rb
145
146
  - spec/digitalocean/droplet_spec.rb
147
+ - spec/digitalocean/event_spec.rb
146
148
  - spec/digitalocean/image_spec.rb
147
149
  - spec/digitalocean/integration_spec.rb
148
150
  - spec/digitalocean/record_spec.rb
@@ -178,6 +180,7 @@ summary: Ruby bindings for the Digital Ocean API.
178
180
  test_files:
179
181
  - spec/digitalocean/domain_spec.rb
180
182
  - spec/digitalocean/droplet_spec.rb
183
+ - spec/digitalocean/event_spec.rb
181
184
  - spec/digitalocean/image_spec.rb
182
185
  - spec/digitalocean/integration_spec.rb
183
186
  - spec/digitalocean/record_spec.rb