green-button-data 0.7.4 → 0.7.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/pull_request_template.md +17 -0
- data/CODE_OF_CONDUCT.md +84 -0
- data/CONTRIBUTING.md +27 -0
- data/Gemfile.lock +50 -46
- data/README.md +1 -1
- data/lib/green-button-data/parser/entry.rb +8 -0
- data/lib/green-button-data/parser/feed.rb +9 -0
- data/lib/green-button-data/parser/main_address.rb +2 -2
- data/lib/green-button-data/parser/service_location.rb +1 -1
- data/lib/green-button-data/parser/street_detail.rb +1 -1
- data/lib/green-button-data/parser/town_detail.rb +1 -1
- data/lib/green-button-data/version.rb +1 -1
- metadata +6 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 845e58a8ed72a51387f8b0496f84608f08052cfb
|
4
|
+
data.tar.gz: 99cbfa423332376f5766ead78fe693f8a90b372b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8628bfe4f648aea5ab87a4bf304a0d0bddab56a4d409d36269e6967561e1172642b24880197c2609bf9708669a6ac042c6f1714a2e9aa06a1a682bd514df25d7
|
7
|
+
data.tar.gz: a2be1ecf3bf39fddff02790749593c72263466affa62e604c3c95f852652c52f2b1887649a68990bcb7fadf90349786cf13da38610fd40002fbcb7a595e6a936
|
@@ -0,0 +1,17 @@
|
|
1
|
+
Fixes # .
|
2
|
+
|
3
|
+
## Changes
|
4
|
+
|
5
|
+
-
|
6
|
+
-
|
7
|
+
-
|
8
|
+
|
9
|
+
## Pull request requirements checklist
|
10
|
+
|
11
|
+
Please ensure all of the requirements below are met. PRs that do not meet these
|
12
|
+
requirements will not be approved.
|
13
|
+
|
14
|
+
- [ ] Is there a description of the changes in this pull request?
|
15
|
+
- [ ] Are tests written for the changes?
|
16
|
+
- [ ] Are breaking changes documented?
|
17
|
+
|
data/CODE_OF_CONDUCT.md
ADDED
@@ -0,0 +1,84 @@
|
|
1
|
+
# Code of Conduct
|
2
|
+
|
3
|
+
## 1. Purpose
|
4
|
+
|
5
|
+
A primary goal of Green Button Data is to be inclusive to the largest number of contributors, with the most varied and diverse backgrounds possible. As such, we are committed to providing a friendly, safe and welcoming environment for all, regardless of gender, sexual orientation, ability, ethnicity, socioeconomic status, and religion (or lack thereof).
|
6
|
+
|
7
|
+
This code of conduct outlines our expectations for all those who participate in our community, as well as the consequences for unacceptable behavior.
|
8
|
+
|
9
|
+
We invite all those who participate in Green Button Data to help us create safe and positive experiences for everyone.
|
10
|
+
|
11
|
+
## 2. Open Source Citizenship
|
12
|
+
|
13
|
+
A supplemental goal of this Code of Conduct is to increase open source citizenship by encouraging participants to recognize and strengthen the relationships between our actions and their effects on our community.
|
14
|
+
|
15
|
+
Communities mirror the societies in which they exist and positive action is essential to counteract the many forms of inequality and abuses of power that exist in society.
|
16
|
+
|
17
|
+
If you see someone who is making an extra effort to ensure our community is welcoming, friendly, and encourages all participants to contribute to the fullest extent, we want to know.
|
18
|
+
|
19
|
+
## 3. Expected Behavior
|
20
|
+
|
21
|
+
The following behaviors are expected and requested of all community members:
|
22
|
+
|
23
|
+
* Participate in an authentic and active way. In doing so, you contribute to the health and longevity of this community.
|
24
|
+
* Exercise consideration and respect in your speech and actions.
|
25
|
+
* Attempt collaboration before conflict.
|
26
|
+
* Refrain from demeaning, discriminatory, or harassing behavior and speech.
|
27
|
+
* Be mindful of your surroundings and of your fellow participants. Alert community leaders if you notice a dangerous situation, someone in distress, or violations of this Code of Conduct, even if they seem inconsequential.
|
28
|
+
* Remember that community event venues may be shared with members of the public; please be respectful to all patrons of these locations.
|
29
|
+
|
30
|
+
## 4. Unacceptable Behavior
|
31
|
+
|
32
|
+
The following behaviors are considered harassment and are unacceptable within our community:
|
33
|
+
|
34
|
+
* Violence, threats of violence or violent language directed against another person.
|
35
|
+
* Sexist, racist, homophobic, transphobic, ableist or otherwise discriminatory jokes and language.
|
36
|
+
* Posting or displaying sexually explicit or violent material.
|
37
|
+
* Posting or threatening to post other people’s personally identifying information ("doxing").
|
38
|
+
* Personal insults, particularly those related to gender, sexual orientation, race, religion, or disability.
|
39
|
+
* Inappropriate photography or recording.
|
40
|
+
* Inappropriate physical contact. You should have someone’s consent before touching them.
|
41
|
+
* Unwelcome sexual attention. This includes, sexualized comments or jokes; inappropriate touching, groping, and unwelcomed sexual advances.
|
42
|
+
* Deliberate intimidation, stalking or following (online or in person).
|
43
|
+
* Advocating for, or encouraging, any of the above behavior.
|
44
|
+
* Sustained disruption of community events, including talks and presentations.
|
45
|
+
|
46
|
+
## 5. Consequences of Unacceptable Behavior
|
47
|
+
|
48
|
+
Unacceptable behavior from any community member, including sponsors and those with decision-making authority, will not be tolerated.
|
49
|
+
|
50
|
+
Anyone asked to stop unacceptable behavior is expected to comply immediately.
|
51
|
+
|
52
|
+
If a community member engages in unacceptable behavior, the community organizers may take any action they deem appropriate, up to and including a temporary ban or permanent expulsion from the community without warning (and without refund in the case of a paid event).
|
53
|
+
|
54
|
+
## 6. Reporting Guidelines
|
55
|
+
|
56
|
+
If you are subject to or witness unacceptable behavior, or have any other concerns, please notify a community organizer as soon as possible. opensource@verdigris.co.
|
57
|
+
|
58
|
+
|
59
|
+
|
60
|
+
Additionally, community organizers are available to help community members engage with local law enforcement or to otherwise help those experiencing unacceptable behavior feel safe. In the context of in-person events, organizers will also provide escorts as desired by the person experiencing distress.
|
61
|
+
|
62
|
+
## 7. Addressing Grievances
|
63
|
+
|
64
|
+
If you feel you have been falsely or unfairly accused of violating this Code of Conduct, you should notify Verdigris Technologies, Inc. with a concise description of your grievance. Your grievance will be handled in accordance with our existing governing policies.
|
65
|
+
|
66
|
+
|
67
|
+
|
68
|
+
## 8. Scope
|
69
|
+
|
70
|
+
We expect all community participants (contributors, paid or otherwise; sponsors; and other guests) to abide by this Code of Conduct in all community venues–online and in-person–as well as in all one-on-one communications pertaining to community business.
|
71
|
+
|
72
|
+
This code of conduct and its related procedures also applies to unacceptable behavior occurring outside the scope of community activities when such behavior has the potential to adversely affect the safety and well-being of community members.
|
73
|
+
|
74
|
+
## 9. Contact info
|
75
|
+
|
76
|
+
opensource@verdigris.co
|
77
|
+
|
78
|
+
## 10. License and attribution
|
79
|
+
|
80
|
+
This Code of Conduct is distributed under a [Creative Commons Attribution-ShareAlike license](http://creativecommons.org/licenses/by-sa/3.0/).
|
81
|
+
|
82
|
+
Portions of text derived from the [Django Code of Conduct](https://www.djangoproject.com/conduct/) and the [Geek Feminism Anti-Harassment Policy](http://geekfeminism.wikia.com/wiki/Conference_anti-harassment/Policy).
|
83
|
+
|
84
|
+
Retrieved on November 22, 2016 from [http://citizencodeofconduct.org/](http://citizencodeofconduct.org/)
|
data/CONTRIBUTING.md
ADDED
@@ -0,0 +1,27 @@
|
|
1
|
+
Pull request guidelines
|
2
|
+
-----------------------
|
3
|
+
|
4
|
+
- Changes should have corresponding unit and/or integration tests.
|
5
|
+
- Affected public classes and functions should have accurate documentation.
|
6
|
+
- Source code formatting should be hygienic:
|
7
|
+
- Use 2-space indentation.
|
8
|
+
- Do not use hard tabs.
|
9
|
+
- No trailing or inconsistent whitespace.
|
10
|
+
- No exceptionally long lines.
|
11
|
+
- Variable names should be clear but concise.
|
12
|
+
- Commit history should be relatively hygienic:
|
13
|
+
- Roughly one commit per logical change.
|
14
|
+
- Log messages are clear and understandable.
|
15
|
+
- Few (or no) "merge" commits.
|
16
|
+
- Hint: `git rebase -i` is great for cleaning up a branch.
|
17
|
+
|
18
|
+
|
19
|
+
Pull requests for branches that are still in development should be prefixed with WIP:
|
20
|
+
so that they don't get accidently merged. Remove WIP: once the pull request is
|
21
|
+
considered finalized and ready to be reviewed and merged.
|
22
|
+
|
23
|
+
License
|
24
|
+
-------
|
25
|
+
|
26
|
+
By contributing code to Green Button Data, you are agreeing to release it under the
|
27
|
+
[Simplified BSD License](https://raw.githubusercontent.com/VerdigrisTech/green-button-data/master/LICENSE.txt).
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
green-button-data (0.7.
|
4
|
+
green-button-data (0.7.5)
|
5
5
|
faraday (~> 0.11)
|
6
6
|
nokogiri (~> 1.8)
|
7
7
|
sax-machine (~> 1.3)
|
@@ -9,82 +9,86 @@ PATH
|
|
9
9
|
GEM
|
10
10
|
remote: https://rubygems.org/
|
11
11
|
specs:
|
12
|
-
addressable (2.
|
13
|
-
|
12
|
+
addressable (2.5.2)
|
13
|
+
public_suffix (>= 2.0.2, < 4.0)
|
14
|
+
codecov (0.1.10)
|
14
15
|
json
|
15
16
|
simplecov
|
16
17
|
url
|
17
|
-
coderay (1.1.
|
18
|
-
crack (0.4.
|
18
|
+
coderay (1.1.2)
|
19
|
+
crack (0.4.3)
|
19
20
|
safe_yaml (~> 1.0.0)
|
20
|
-
diff-lcs (1.
|
21
|
-
docile (1.
|
22
|
-
faraday (0.
|
21
|
+
diff-lcs (1.3)
|
22
|
+
docile (1.3.0)
|
23
|
+
faraday (0.15.0)
|
23
24
|
multipart-post (>= 1.2, < 3)
|
24
|
-
ffi (1.9.
|
25
|
+
ffi (1.9.23)
|
25
26
|
formatador (0.2.5)
|
26
|
-
guard (2.
|
27
|
+
guard (2.14.2)
|
27
28
|
formatador (>= 0.2.4)
|
28
|
-
listen (>= 2.7,
|
29
|
-
lumberjack (
|
29
|
+
listen (>= 2.7, < 4.0)
|
30
|
+
lumberjack (>= 1.0.12, < 2.0)
|
30
31
|
nenv (~> 0.1)
|
31
32
|
notiffany (~> 0.0)
|
32
33
|
pry (>= 0.9.12)
|
33
34
|
shellany (~> 0.0)
|
34
35
|
thor (>= 0.18.1)
|
35
36
|
guard-compat (1.2.1)
|
36
|
-
guard-rspec (4.
|
37
|
+
guard-rspec (4.7.3)
|
37
38
|
guard (~> 2.1)
|
38
39
|
guard-compat (~> 1.1)
|
39
40
|
rspec (>= 2.99.0, < 4.0)
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
rb-
|
44
|
-
|
45
|
-
|
41
|
+
hashdiff (0.3.7)
|
42
|
+
json (2.1.0)
|
43
|
+
listen (3.1.5)
|
44
|
+
rb-fsevent (~> 0.9, >= 0.9.4)
|
45
|
+
rb-inotify (~> 0.9, >= 0.9.7)
|
46
|
+
ruby_dep (~> 1.2)
|
47
|
+
lumberjack (1.0.13)
|
48
|
+
method_source (0.9.0)
|
46
49
|
mini_portile2 (2.3.0)
|
47
50
|
multipart-post (2.0.0)
|
48
|
-
nenv (0.
|
51
|
+
nenv (0.3.0)
|
49
52
|
nokogiri (1.8.2)
|
50
53
|
mini_portile2 (~> 2.3.0)
|
51
|
-
notiffany (0.
|
54
|
+
notiffany (0.1.1)
|
52
55
|
nenv (~> 0.1)
|
53
56
|
shellany (~> 0.0)
|
54
|
-
pry (0.
|
57
|
+
pry (0.11.3)
|
55
58
|
coderay (~> 1.1.0)
|
56
|
-
method_source (~> 0.
|
57
|
-
|
58
|
-
rb-fsevent (0.
|
59
|
-
rb-inotify (0.9.
|
60
|
-
ffi (>= 0.5.0)
|
61
|
-
rspec (3.
|
62
|
-
rspec-core (~> 3.
|
63
|
-
rspec-expectations (~> 3.
|
64
|
-
rspec-mocks (~> 3.
|
65
|
-
rspec-core (3.
|
66
|
-
rspec-support (~> 3.
|
67
|
-
rspec-expectations (3.
|
59
|
+
method_source (~> 0.9.0)
|
60
|
+
public_suffix (3.0.2)
|
61
|
+
rb-fsevent (0.10.3)
|
62
|
+
rb-inotify (0.9.10)
|
63
|
+
ffi (>= 0.5.0, < 2)
|
64
|
+
rspec (3.7.0)
|
65
|
+
rspec-core (~> 3.7.0)
|
66
|
+
rspec-expectations (~> 3.7.0)
|
67
|
+
rspec-mocks (~> 3.7.0)
|
68
|
+
rspec-core (3.7.1)
|
69
|
+
rspec-support (~> 3.7.0)
|
70
|
+
rspec-expectations (3.7.0)
|
68
71
|
diff-lcs (>= 1.2.0, < 2.0)
|
69
|
-
rspec-support (~> 3.
|
70
|
-
rspec-mocks (3.
|
72
|
+
rspec-support (~> 3.7.0)
|
73
|
+
rspec-mocks (3.7.0)
|
71
74
|
diff-lcs (>= 1.2.0, < 2.0)
|
72
|
-
rspec-support (~> 3.
|
73
|
-
rspec-support (3.
|
75
|
+
rspec-support (~> 3.7.0)
|
76
|
+
rspec-support (3.7.1)
|
77
|
+
ruby_dep (1.5.0)
|
74
78
|
safe_yaml (1.0.4)
|
75
79
|
sax-machine (1.3.2)
|
76
80
|
shellany (0.0.1)
|
77
|
-
simplecov (0.
|
78
|
-
docile (~> 1.1
|
79
|
-
json (
|
81
|
+
simplecov (0.16.1)
|
82
|
+
docile (~> 1.1)
|
83
|
+
json (>= 1.8, < 3)
|
80
84
|
simplecov-html (~> 0.10.0)
|
81
|
-
simplecov-html (0.10.
|
82
|
-
|
83
|
-
thor (0.19.1)
|
85
|
+
simplecov-html (0.10.2)
|
86
|
+
thor (0.20.0)
|
84
87
|
url (0.3.2)
|
85
|
-
webmock (1.
|
88
|
+
webmock (1.24.6)
|
86
89
|
addressable (>= 2.3.6)
|
87
90
|
crack (>= 0.3.2)
|
91
|
+
hashdiff
|
88
92
|
|
89
93
|
PLATFORMS
|
90
94
|
ruby
|
@@ -98,4 +102,4 @@ DEPENDENCIES
|
|
98
102
|
webmock (~> 1.21)
|
99
103
|
|
100
104
|
BUNDLED WITH
|
101
|
-
1.
|
105
|
+
1.16.1
|
data/README.md
CHANGED
@@ -334,4 +334,4 @@ Verdigris Technologies Inc. assumes NO RESPONSIBILITY OR LIABILITY
|
|
334
334
|
UNDER ANY CIRCUMSTANCES for usage of this software. See the [LICENSE.txt](https://raw.githubusercontent.com/VerdigrisTech/green-button-data/master/LICENSE.txt)
|
335
335
|
file for detailed legal information.
|
336
336
|
|
337
|
-
Copyright © 2015, [Verdigris Technologies Inc](
|
337
|
+
Copyright © 2015-2018, [Verdigris Technologies Inc](https://verdigris.co). All rights reserved.
|
@@ -42,6 +42,14 @@ module GreenButtonData
|
|
42
42
|
element :'ns1:content', class: Content, as: :content
|
43
43
|
element :'ns1:published', as: :published
|
44
44
|
element :'ns1:updated', as: :updated
|
45
|
+
|
46
|
+
element :'ns2:id', as: :entry_id
|
47
|
+
element :'ns2:link', as: :up, value: :href, with: { rel: 'up' }
|
48
|
+
element :'ns2:link', as: :self, value: :href, with: { rel: 'self' }
|
49
|
+
elements :'ns2:link', as: :related, value: :href, with: { rel: 'related' }
|
50
|
+
element :'ns2:content', class: Content, as: :content
|
51
|
+
element :'ns2:published', as: :published
|
52
|
+
element :'ns2:updated', as: :updated
|
45
53
|
end
|
46
54
|
end
|
47
55
|
end
|
@@ -42,6 +42,15 @@ module GreenButtonData
|
|
42
42
|
element :'ns1:links', as: :links, value: :href
|
43
43
|
elements :'ns1:entry', class: Entry, as: :entries
|
44
44
|
element :'ns1:updated', as: :updated
|
45
|
+
|
46
|
+
element :'ns2:id', as: :feed_id
|
47
|
+
element :'ns2:title', as: :title
|
48
|
+
element :'ns2:subtitle', as: :description
|
49
|
+
element :'ns2:link', as: :url, value: :href, with: { type: 'text/html' }
|
50
|
+
element :'ns2:link', as: :feed_url, value: :href, with: { rel: 'self' }
|
51
|
+
element :'ns2:links', as: :links, value: :href
|
52
|
+
elements :'ns2:entry', class: Entry, as: :entries
|
53
|
+
element :'ns2:updated', as: :updated
|
45
54
|
end
|
46
55
|
end
|
47
56
|
end
|
@@ -27,8 +27,8 @@ module GreenButtonData
|
|
27
27
|
address_general + ',' + town_detail_info
|
28
28
|
end
|
29
29
|
|
30
|
-
element :
|
31
|
-
element :
|
30
|
+
element :townDetail, class: TownDetail, as: :town_detail
|
31
|
+
element :streetDetail, class: StreetDetail, as: :town_detail
|
32
32
|
|
33
33
|
|
34
34
|
# ESPI Namespacing
|
@@ -3,7 +3,7 @@ module GreenButtonData
|
|
3
3
|
class ServiceLocation
|
4
4
|
include SAXMachine
|
5
5
|
|
6
|
-
element :
|
6
|
+
element :mainAddress, class: MainAddress, as: :main_address
|
7
7
|
|
8
8
|
# ESPI Namespacing
|
9
9
|
element :'espi:mainAddress', class: MainAddress, as: :main_address
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: green-button-data
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.7.
|
4
|
+
version: 0.7.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Andrew Jo
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2018-
|
12
|
+
date: 2018-04-29 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: nokogiri
|
@@ -104,8 +104,11 @@ extensions: []
|
|
104
104
|
extra_rdoc_files: []
|
105
105
|
files:
|
106
106
|
- ".codeclimate.yml"
|
107
|
+
- ".github/pull_request_template.md"
|
107
108
|
- ".gitignore"
|
108
109
|
- ".rspec"
|
110
|
+
- CODE_OF_CONDUCT.md
|
111
|
+
- CONTRIBUTING.md
|
109
112
|
- Gemfile
|
110
113
|
- Gemfile.lock
|
111
114
|
- Guardfile
|
@@ -199,7 +202,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
199
202
|
version: '0'
|
200
203
|
requirements: []
|
201
204
|
rubyforge_project:
|
202
|
-
rubygems_version: 2.6.
|
205
|
+
rubygems_version: 2.6.14
|
203
206
|
signing_key:
|
204
207
|
specification_version: 4
|
205
208
|
summary: Client and parser for Green Button API
|