portfolio_manager 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +9 -0
- data/.rspec +2 -0
- data/.travis.yml +4 -0
- data/Gemfile +9 -0
- data/LICENSE.txt +21 -0
- data/README.md +78 -0
- data/Rakefile +6 -0
- data/bin/console +14 -0
- data/bin/setup +7 -0
- data/lib/portfolio_manager.rb +2 -0
- data/lib/portfolio_manager/rest/account.rb +21 -0
- data/lib/portfolio_manager/rest/api.rb +20 -0
- data/lib/portfolio_manager/rest/building.rb +31 -0
- data/lib/portfolio_manager/rest/client.rb +21 -0
- data/lib/portfolio_manager/rest/data_exchange_settings.rb +31 -0
- data/lib/portfolio_manager/rest/meter.rb +43 -0
- data/lib/portfolio_manager/rest/property.rb +32 -0
- data/lib/portfolio_manager/rest/request.rb +77 -0
- data/lib/portfolio_manager/rest/utils.rb +31 -0
- data/lib/portfolio_manager/version.rb +3 -0
- data/portfolio_manager.gemspec +29 -0
- metadata +149 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 2aeb3c620711b489a8f03cf237698161934f2a5a
|
4
|
+
data.tar.gz: cfcd57981280ce251febb6dba5efd75bfe078d9a
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 9c77942c67014ce52b7d254c78809d7451ae47804f43d321bc103a66273298d84d6013ea94cd97716b09e82399a1d6131016f5cf2bcd04877a42abafa66397b4
|
7
|
+
data.tar.gz: 2d228dd9e3f87786e865f22eb91b4561bf4af4acadd7bed82ecb166ba2c70cfcded47b21878b00b86511e5ac78cc0c928a6362fcfa5051090f9657f1990d6c99
|
data/.gitignore
ADDED
data/.rspec
ADDED
data/.travis.yml
ADDED
data/Gemfile
ADDED
data/LICENSE.txt
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) 2015 Jack Reed
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
7
|
+
in the Software without restriction, including without limitation the rights
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
10
|
+
furnished to do so, subject to the following conditions:
|
11
|
+
|
12
|
+
The above copyright notice and this permission notice shall be included in
|
13
|
+
all copies or substantial portions of the Software.
|
14
|
+
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
21
|
+
THE SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,78 @@
|
|
1
|
+
# PortfolioManager
|
2
|
+
[![Build Status](https://travis-ci.org/mejackreed/portfolio_manager.svg?branch=master)](https://travis-ci.org/mejackreed/portfolio_manager) | [![Coverage Status](https://coveralls.io/repos/mejackreed/portfolio_manager/badge.svg?branch=master&service=github)](https://coveralls.io/github/mejackreed/portfolio_manager?branch=master)
|
3
|
+
|
4
|
+
A Ruby client for the [EnergyStar Portfolio Manager web services](http://portfoliomanager.energystar.gov/webservices/home). Inspired by the [Twitter Ruby Gem](https://github.com/sferik/twitter).
|
5
|
+
|
6
|
+
## Installation
|
7
|
+
|
8
|
+
Add this line to your application's Gemfile:
|
9
|
+
|
10
|
+
```ruby
|
11
|
+
gem 'portfolio_manager'
|
12
|
+
```
|
13
|
+
|
14
|
+
And then execute:
|
15
|
+
|
16
|
+
$ bundle
|
17
|
+
|
18
|
+
## Usage
|
19
|
+
|
20
|
+
### Configuration
|
21
|
+
|
22
|
+
```ruby
|
23
|
+
client = PortfolioManager::REST::Client.new do |config|
|
24
|
+
config.username = 'user'
|
25
|
+
config.password = 'secret password'
|
26
|
+
# Use the "live" site
|
27
|
+
config.live = true #defaults to false
|
28
|
+
end
|
29
|
+
```
|
30
|
+
|
31
|
+
### API
|
32
|
+
|
33
|
+
API calls implemented from http://portfoliomanager.energystar.gov/webservices/home/api
|
34
|
+
|
35
|
+
#### Basic Account Services
|
36
|
+
http://portfoliomanager.energystar.gov/webservices/home/api/account
|
37
|
+
|
38
|
+
HTTP | Path | Method | Description
|
39
|
+
---- | ---- | -----------
|
40
|
+
GET | /account | `account` | Returns general information for your account.
|
41
|
+
GET | /dataExchangeSettings | `data_exchange_settings` | Returns the settings that define your data exchange service offerings.
|
42
|
+
GET | /dataExchangeSettings/customField/list | `data_exchange_custom_field_list` | Returns a list of custom fields that you have defined for your account.
|
43
|
+
|
44
|
+
#### Property Services
|
45
|
+
http://portfoliomanager.energystar.gov/webservices/home/api/property
|
46
|
+
|
47
|
+
HTTP | Path | Method | Description
|
48
|
+
---- | ---- | -----------
|
49
|
+
GET | /property/(propertyId) | `property(property_id)` | Returns information for a specific property.
|
50
|
+
GET | /account/(accountId)/property/list | `property_list(account_id)` | Returns a list of properties for a specified user.
|
51
|
+
|
52
|
+
#### Building Services
|
53
|
+
http://portfoliomanager.energystar.gov/webservices/home/api/building
|
54
|
+
|
55
|
+
HTTP | Path | Method | Description
|
56
|
+
---- | ---- | -----------
|
57
|
+
GET | /building/(buildingId) | `building` | Returns information for a specific building.
|
58
|
+
GET | /property/(propertyId)/building/list | `building_list(property_id)` | Returns a list of buildings that belong to a specified property.
|
59
|
+
|
60
|
+
#### Meter Services
|
61
|
+
http://portfoliomanager.energystar.gov/webservices/home/api/meter
|
62
|
+
|
63
|
+
HTTP | Path | Method | Description
|
64
|
+
---- | ---- | -----------
|
65
|
+
GET | /meter/(meterId) | `meter(meter_id)` | Returns information for a specified meter.
|
66
|
+
GET | /property/(propertyId)/meter/list | `meter_list(property_id)` | Returns a list of meters for a specified property.
|
67
|
+
GET | /meter/(meterId)/consumptionData?page=(page)&startDate=(YYYY-MM-DD)&endDate=(YYYY-MM-DD) | `metrics(property_id, year, month, measurement_system, metric)` | Returns the consumption data for a specified meter in sets of 20.
|
68
|
+
|
69
|
+
|
70
|
+
## Contributing
|
71
|
+
|
72
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/mejackreed/portfolio_manager.
|
73
|
+
|
74
|
+
|
75
|
+
## License
|
76
|
+
|
77
|
+
The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
|
78
|
+
|
data/Rakefile
ADDED
data/bin/console
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
|
3
|
+
require "bundler/setup"
|
4
|
+
require "portfolio_manager"
|
5
|
+
|
6
|
+
# You can add fixtures and/or initialization code here to make experimenting
|
7
|
+
# with your gem easier. You can also use a different console, if you like.
|
8
|
+
|
9
|
+
# (If you use this, don't forget to add pry to your Gemfile!)
|
10
|
+
# require "pry"
|
11
|
+
# Pry.start
|
12
|
+
|
13
|
+
require "irb"
|
14
|
+
IRB.start
|
data/bin/setup
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
require 'portfolio_manager/rest/utils'
|
2
|
+
|
3
|
+
module PortfolioManager
|
4
|
+
module REST
|
5
|
+
##
|
6
|
+
# Basic account
|
7
|
+
# @see http://portfoliomanager.energystar.gov/webservices/home/api/account
|
8
|
+
module Account
|
9
|
+
include PortfolioManager::REST::Utils
|
10
|
+
|
11
|
+
##
|
12
|
+
# This web service retrieves your account information that includes your
|
13
|
+
# username, password, contact information, & security questions/answers.
|
14
|
+
#
|
15
|
+
# @see http://portfoliomanager.energystar.gov/webservices/home/api/account/account/get
|
16
|
+
def account
|
17
|
+
perform_get_request('/account')
|
18
|
+
end
|
19
|
+
end
|
20
|
+
end
|
21
|
+
end
|
@@ -0,0 +1,20 @@
|
|
1
|
+
require 'portfolio_manager/rest/account'
|
2
|
+
require 'portfolio_manager/rest/building'
|
3
|
+
require 'portfolio_manager/rest/data_exchange_settings'
|
4
|
+
require 'portfolio_manager/rest/meter'
|
5
|
+
require 'portfolio_manager/rest/property'
|
6
|
+
|
7
|
+
module PortfolioManager
|
8
|
+
module REST
|
9
|
+
##
|
10
|
+
# Web services included from PortfolioManager
|
11
|
+
# @see http://portfoliomanager.energystar.gov/webservices/home/api
|
12
|
+
module API
|
13
|
+
include PortfolioManager::REST::Account
|
14
|
+
include PortfolioManager::REST::Building
|
15
|
+
include PortfolioManager::REST::DataExchangeSettings
|
16
|
+
include PortfolioManager::REST::Meter
|
17
|
+
include PortfolioManager::REST::Property
|
18
|
+
end
|
19
|
+
end
|
20
|
+
end
|
@@ -0,0 +1,31 @@
|
|
1
|
+
require 'portfolio_manager/rest/utils'
|
2
|
+
|
3
|
+
module PortfolioManager
|
4
|
+
module REST
|
5
|
+
##
|
6
|
+
# Building services
|
7
|
+
# @see http://portfoliomanager.energystar.gov/webservices/home/api/building
|
8
|
+
module Building
|
9
|
+
include PortfolioManager::REST::Utils
|
10
|
+
|
11
|
+
##
|
12
|
+
# This web service retrieves information for a specific building. The
|
13
|
+
# building must already be shared with you.
|
14
|
+
#
|
15
|
+
# @see http://portfoliomanager.energystar.gov/webservices/home/api/building/building/get
|
16
|
+
# @param [String, Integer] building_id
|
17
|
+
def building(building_id)
|
18
|
+
perform_get_request("/building/#{building_id}")
|
19
|
+
end
|
20
|
+
|
21
|
+
##
|
22
|
+
# This web service returns a list of buildings for a specific property
|
23
|
+
# that is shared with you.
|
24
|
+
#
|
25
|
+
# @see http://portfoliomanager.energystar.gov/webservices/home/api/building/buildingList/get
|
26
|
+
def building_list(property_id)
|
27
|
+
perform_get_request("/property/#{property_id}/building/list")
|
28
|
+
end
|
29
|
+
end
|
30
|
+
end
|
31
|
+
end
|
@@ -0,0 +1,21 @@
|
|
1
|
+
require 'portfolio_manager/rest/api'
|
2
|
+
require 'portfolio_manager/rest/utils'
|
3
|
+
|
4
|
+
module PortfolioManager
|
5
|
+
module REST
|
6
|
+
##
|
7
|
+
# REST client configuration for PortfolioManager gem.
|
8
|
+
class Client
|
9
|
+
include PortfolioManager::REST::API
|
10
|
+
attr_accessor :username, :password, :live
|
11
|
+
|
12
|
+
def initialize(options = {})
|
13
|
+
@live = false
|
14
|
+
options.each do |key, value|
|
15
|
+
instance_variable_set("@#{key}", value)
|
16
|
+
end
|
17
|
+
yield self if block_given?
|
18
|
+
end
|
19
|
+
end
|
20
|
+
end
|
21
|
+
end
|
@@ -0,0 +1,31 @@
|
|
1
|
+
require 'portfolio_manager/rest/utils'
|
2
|
+
|
3
|
+
module PortfolioManager
|
4
|
+
module REST
|
5
|
+
##
|
6
|
+
# Advanced Settings for Organizations Exchanging Data
|
7
|
+
# @see http://portfoliomanager.energystar.gov/webservices/home/api/account
|
8
|
+
module DataExchangeSettings
|
9
|
+
include PortfolioManager::REST::Utils
|
10
|
+
##
|
11
|
+
# This web service retrieves the various settings that describes your data
|
12
|
+
# exchange service offerings such as terms and conditions, supported fuel
|
13
|
+
# types, etc.
|
14
|
+
#
|
15
|
+
# @see http://portfoliomanager.energystar.gov/webservices/home/api/account/settings/get
|
16
|
+
def data_exchange_settings
|
17
|
+
perform_get_request('/dataExchangeSettings')
|
18
|
+
end
|
19
|
+
|
20
|
+
##
|
21
|
+
# This web service returns a list of custom fields that are used by your
|
22
|
+
# account. These custom fields allow you to gather more data from your
|
23
|
+
# customers as they send connection and share requests to you.
|
24
|
+
#
|
25
|
+
# @see http://portfoliomanager.energystar.gov/webservices/home/api/account/customFieldList/get
|
26
|
+
def data_exchange_custom_field_list
|
27
|
+
perform_get_request('/dataExchangeSettings/customField/list')
|
28
|
+
end
|
29
|
+
end
|
30
|
+
end
|
31
|
+
end
|
@@ -0,0 +1,43 @@
|
|
1
|
+
require 'portfolio_manager/rest/utils'
|
2
|
+
|
3
|
+
module PortfolioManager
|
4
|
+
module REST
|
5
|
+
##
|
6
|
+
# Meter services
|
7
|
+
# @see http://portfoliomanager.energystar.gov/webservices/home/api/meter
|
8
|
+
module Meter
|
9
|
+
include PortfolioManager::REST::Utils
|
10
|
+
|
11
|
+
##
|
12
|
+
# This web service retrieves information for a specific meter. The meter
|
13
|
+
# must already be shared with you.
|
14
|
+
#
|
15
|
+
# @see http://portfoliomanager.energystar.gov/webservices/home/api/meter/meter/get
|
16
|
+
# @param [String, Integer] meter_id
|
17
|
+
def meter(meter_id)
|
18
|
+
perform_get_request("/meter/#{meter_id}")
|
19
|
+
end
|
20
|
+
|
21
|
+
##
|
22
|
+
# This web service retrieves a list of all the meters for a specific
|
23
|
+
# property. The property must already be shared with you.
|
24
|
+
#
|
25
|
+
# @see http://portfoliomanager.energystar.gov/webservices/home/api/meter/meterList/get
|
26
|
+
def meter_list(property_id)
|
27
|
+
perform_get_request("/property/#{property_id}/meter/list")
|
28
|
+
end
|
29
|
+
|
30
|
+
def metrics(property_id, year, month, measurement_system, metric)
|
31
|
+
perform_get_request(
|
32
|
+
"/property/#{property_id}/metrics",
|
33
|
+
query: {
|
34
|
+
year: year, month: month, measurementSystem: measurement_system
|
35
|
+
},
|
36
|
+
header: {
|
37
|
+
'PM-Metrics' => metric
|
38
|
+
}
|
39
|
+
)
|
40
|
+
end
|
41
|
+
end
|
42
|
+
end
|
43
|
+
end
|
@@ -0,0 +1,32 @@
|
|
1
|
+
require 'portfolio_manager/rest/utils'
|
2
|
+
|
3
|
+
module PortfolioManager
|
4
|
+
module REST
|
5
|
+
##
|
6
|
+
# Property services
|
7
|
+
# @see http://portfoliomanager.energystar.gov/webservices/home/api/property
|
8
|
+
module Property
|
9
|
+
include PortfolioManager::REST::Utils
|
10
|
+
|
11
|
+
##
|
12
|
+
# This web service returns a list of properties for a specific customer
|
13
|
+
# that are shared with you.
|
14
|
+
#
|
15
|
+
# @see http://portfoliomanager.energystar.gov/webservices/home/api/property/propertyList/get
|
16
|
+
# @param [String, Integer] account_id
|
17
|
+
def property_list(account_id)
|
18
|
+
perform_get_request("/account/#{account_id}/property/list")
|
19
|
+
end
|
20
|
+
|
21
|
+
##
|
22
|
+
# This web service retrieves information for a specific property. The
|
23
|
+
# property must already be shared with you. This service can also be used
|
24
|
+
# for to retrieve information on a building.
|
25
|
+
#
|
26
|
+
# @see http://portfoliomanager.energystar.gov/webservices/home/api/property/property/get
|
27
|
+
def property(property_id)
|
28
|
+
perform_get_request("/property/#{property_id}")
|
29
|
+
end
|
30
|
+
end
|
31
|
+
end
|
32
|
+
end
|
@@ -0,0 +1,77 @@
|
|
1
|
+
require 'hurley'
|
2
|
+
require 'nori'
|
3
|
+
|
4
|
+
module PortfolioManager
|
5
|
+
module REST
|
6
|
+
##
|
7
|
+
# Manage HTTP requests
|
8
|
+
class Request
|
9
|
+
BASE_URL = 'https://portfoliomanager.energystar.gov'
|
10
|
+
LIVE_PATH = '/ws'
|
11
|
+
TEST_PATH = '/wstest'
|
12
|
+
|
13
|
+
attr_reader :client, :path, :request_method, :parser
|
14
|
+
attr_accessor :options
|
15
|
+
##
|
16
|
+
# @param [PortfolioManager::Client] client
|
17
|
+
# @param [Symbol, String] request_method
|
18
|
+
# @param [String] path
|
19
|
+
# @param [Hash] options used for creating query params and headers
|
20
|
+
def initialize(client, request_method, path, options)
|
21
|
+
@client = client
|
22
|
+
@path = path
|
23
|
+
@options = options
|
24
|
+
@request_method = request_method
|
25
|
+
@conn = Hurley::Client.new(BASE_URL)
|
26
|
+
@parser = Nori.new
|
27
|
+
setup_client
|
28
|
+
end
|
29
|
+
|
30
|
+
##
|
31
|
+
# @return [Hash]
|
32
|
+
def perform
|
33
|
+
parser.parse(response_body)
|
34
|
+
end
|
35
|
+
|
36
|
+
private
|
37
|
+
|
38
|
+
##
|
39
|
+
# @return [String]
|
40
|
+
def response_body
|
41
|
+
@conn.public_send(request_method, api_environment + path).body
|
42
|
+
end
|
43
|
+
|
44
|
+
def setup_client
|
45
|
+
set_header
|
46
|
+
set_query
|
47
|
+
set_basic_authentication
|
48
|
+
end
|
49
|
+
|
50
|
+
def set_header
|
51
|
+
@conn.header[:user_agent] = 'Ruby PortfolioManager API Client'
|
52
|
+
options[:header].each do |key, value|
|
53
|
+
@conn.header[key] = value
|
54
|
+
end unless options[:header].nil?
|
55
|
+
end
|
56
|
+
|
57
|
+
def set_query
|
58
|
+
options[:query].each do |key, value|
|
59
|
+
@conn.query[key] = value
|
60
|
+
end unless options[:query].nil?
|
61
|
+
end
|
62
|
+
|
63
|
+
def set_basic_authentication
|
64
|
+
@conn.url.user = client.username
|
65
|
+
@conn.url.password = client.password
|
66
|
+
end
|
67
|
+
|
68
|
+
def api_environment
|
69
|
+
if client.live
|
70
|
+
LIVE_PATH
|
71
|
+
else
|
72
|
+
TEST_PATH
|
73
|
+
end
|
74
|
+
end
|
75
|
+
end
|
76
|
+
end
|
77
|
+
end
|
@@ -0,0 +1,31 @@
|
|
1
|
+
require 'portfolio_manager/rest/request'
|
2
|
+
|
3
|
+
module PortfolioManager
|
4
|
+
module REST
|
5
|
+
##
|
6
|
+
# Utilities used throughout REST Client
|
7
|
+
module Utils
|
8
|
+
private
|
9
|
+
|
10
|
+
##
|
11
|
+
# @param [String] path
|
12
|
+
# @param [Hash] options
|
13
|
+
def perform_get_request(path, options = {})
|
14
|
+
perform_request(:get, path, options)
|
15
|
+
end
|
16
|
+
|
17
|
+
##
|
18
|
+
# @param [Symbol, String] request_method
|
19
|
+
# @param [String] path
|
20
|
+
# @param [Hash] options
|
21
|
+
def perform_request(request_method, path, options = {})
|
22
|
+
PortfolioManager::REST::Request.new(
|
23
|
+
self,
|
24
|
+
request_method,
|
25
|
+
path,
|
26
|
+
options
|
27
|
+
).perform
|
28
|
+
end
|
29
|
+
end
|
30
|
+
end
|
31
|
+
end
|
@@ -0,0 +1,29 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
lib = File.expand_path('../lib', __FILE__)
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
+
require 'portfolio_manager/version'
|
5
|
+
|
6
|
+
Gem::Specification.new do |spec|
|
7
|
+
spec.name = 'portfolio_manager'
|
8
|
+
spec.version = PortfolioManager::VERSION
|
9
|
+
spec.authors = ['Jack Reed']
|
10
|
+
spec.email = ['phillipjreed@gmail.com']
|
11
|
+
|
12
|
+
spec.summary = %q{A Ruby client for the EnergyStar Portfolio Manager web services.}
|
13
|
+
spec.description = %q{A Ruby client for the EnergyStar Portfolio Manager web services.}
|
14
|
+
spec.homepage = 'https://github.com/mejackreed/portfolio_manager'
|
15
|
+
spec.license = 'MIT'
|
16
|
+
|
17
|
+
spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
18
|
+
spec.bindir = 'exe'
|
19
|
+
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
20
|
+
spec.require_paths = ['lib']
|
21
|
+
|
22
|
+
spec.add_dependency 'hurley'
|
23
|
+
spec.add_dependency 'nokogiri'
|
24
|
+
spec.add_dependency 'nori'
|
25
|
+
|
26
|
+
spec.add_development_dependency 'bundler', '~> 1.10'
|
27
|
+
spec.add_development_dependency 'rake', '~> 10.0'
|
28
|
+
spec.add_development_dependency 'rspec'
|
29
|
+
end
|
metadata
ADDED
@@ -0,0 +1,149 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: portfolio_manager
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Jack Reed
|
8
|
+
autorequire:
|
9
|
+
bindir: exe
|
10
|
+
cert_chain: []
|
11
|
+
date: 2016-01-01 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: hurley
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - ">="
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '0'
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ">="
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '0'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: nokogiri
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - ">="
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '0'
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - ">="
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: nori
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - ">="
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '0'
|
48
|
+
type: :runtime
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - ">="
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: bundler
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - "~>"
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '1.10'
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - "~>"
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '1.10'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: rake
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - "~>"
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '10.0'
|
76
|
+
type: :development
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - "~>"
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '10.0'
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: rspec
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - ">="
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '0'
|
90
|
+
type: :development
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - ">="
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: '0'
|
97
|
+
description: A Ruby client for the EnergyStar Portfolio Manager web services.
|
98
|
+
email:
|
99
|
+
- phillipjreed@gmail.com
|
100
|
+
executables: []
|
101
|
+
extensions: []
|
102
|
+
extra_rdoc_files: []
|
103
|
+
files:
|
104
|
+
- ".gitignore"
|
105
|
+
- ".rspec"
|
106
|
+
- ".travis.yml"
|
107
|
+
- Gemfile
|
108
|
+
- LICENSE.txt
|
109
|
+
- README.md
|
110
|
+
- Rakefile
|
111
|
+
- bin/console
|
112
|
+
- bin/setup
|
113
|
+
- lib/portfolio_manager.rb
|
114
|
+
- lib/portfolio_manager/rest/account.rb
|
115
|
+
- lib/portfolio_manager/rest/api.rb
|
116
|
+
- lib/portfolio_manager/rest/building.rb
|
117
|
+
- lib/portfolio_manager/rest/client.rb
|
118
|
+
- lib/portfolio_manager/rest/data_exchange_settings.rb
|
119
|
+
- lib/portfolio_manager/rest/meter.rb
|
120
|
+
- lib/portfolio_manager/rest/property.rb
|
121
|
+
- lib/portfolio_manager/rest/request.rb
|
122
|
+
- lib/portfolio_manager/rest/utils.rb
|
123
|
+
- lib/portfolio_manager/version.rb
|
124
|
+
- portfolio_manager.gemspec
|
125
|
+
homepage: https://github.com/mejackreed/portfolio_manager
|
126
|
+
licenses:
|
127
|
+
- MIT
|
128
|
+
metadata: {}
|
129
|
+
post_install_message:
|
130
|
+
rdoc_options: []
|
131
|
+
require_paths:
|
132
|
+
- lib
|
133
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
134
|
+
requirements:
|
135
|
+
- - ">="
|
136
|
+
- !ruby/object:Gem::Version
|
137
|
+
version: '0'
|
138
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
139
|
+
requirements:
|
140
|
+
- - ">="
|
141
|
+
- !ruby/object:Gem::Version
|
142
|
+
version: '0'
|
143
|
+
requirements: []
|
144
|
+
rubyforge_project:
|
145
|
+
rubygems_version: 2.4.5.1
|
146
|
+
signing_key:
|
147
|
+
specification_version: 4
|
148
|
+
summary: A Ruby client for the EnergyStar Portfolio Manager web services.
|
149
|
+
test_files: []
|