federal_register 0.6.0 → 0.6.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: f829dbc3ccb42d80e5a2e55818b2aa14e37b3d05
4
+ data.tar.gz: bd18f644d61e370dd3978d128a36647caaec2002
5
+ SHA512:
6
+ metadata.gz: 593d03eb9e00025167a3147a2d8d35c78ff9b5962adbb50ada6da849dca228814885c9148cae5d6b365b1b7eadcb9f30ba5d5d384e6ef448318f90acbe137cbb
7
+ data.tar.gz: 83ba1f4cc2ec66d5c43e6811f2038febd4b9d80307af61eb11fc27428cb70e78b641fe011005356dbf75bbae79c97d156a6b2329f5b6b36923b1fe3e5e5601f2
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.6.0
1
+ 0.6.1
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "federal_register"
8
- s.version = "0.6.0"
8
+ s.version = "0.6.1"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Andrew Carpenter", "Bob Burbach"]
@@ -113,4 +113,3 @@ Gem::Specification.new do |s|
113
113
  s.add_dependency(%q<rubocop>, [">= 0"])
114
114
  end
115
115
  end
116
-
@@ -26,8 +26,10 @@ class FederalRegister::Agency < FederalRegister::Base
26
26
  end
27
27
 
28
28
  def self.find(id_or_slug, options={})
29
+ slug = URI.encode(id_or_slug.to_s)
30
+
29
31
  if options[:fields].present?
30
- response = get("/agencies/#{id_or_slug}.json", :query => {:fields => options[:fields]})
32
+ response = get("/agencies/#{slug}.json", :query => {:fields => options[:fields]})
31
33
 
32
34
  if response.is_a?(Hash)
33
35
  new(response)
@@ -37,7 +39,7 @@ class FederalRegister::Agency < FederalRegister::Base
37
39
  end
38
40
  end
39
41
  else
40
- response = get("/agencies/#{id_or_slug}.json")
42
+ response = get("/agencies/#{slug}.json")
41
43
 
42
44
  if response.is_a?(Hash)
43
45
  new(response, :full => true)
@@ -20,7 +20,7 @@ class FederalRegister::SuggestedSearch < FederalRegister::Base
20
20
  end
21
21
 
22
22
  def self.find(slug)
23
- response = get("/suggested_searches/#{slug}")
23
+ response = get("/suggested_searches/#{URI.encode(slug.to_s)}")
24
24
  new(response)
25
25
  end
26
26
  end
@@ -4,6 +4,7 @@ require 'rspec'
4
4
  require 'fakeweb'
5
5
  require 'active_support/ordered_hash'
6
6
  require 'active_support/json'
7
+ require 'active_support/time'
7
8
  require 'federal_register'
8
9
 
9
10
  FakeWeb.allow_net_connect = false
metadata CHANGED
@@ -1,8 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: federal_register
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.0
5
- prerelease:
4
+ version: 0.6.1
6
5
  platform: ruby
7
6
  authors:
8
7
  - Andrew Carpenter
@@ -15,129 +14,113 @@ dependencies:
15
14
  - !ruby/object:Gem::Dependency
16
15
  name: httparty
17
16
  requirement: !ruby/object:Gem::Requirement
18
- none: false
19
17
  requirements:
20
- - - ! '>='
18
+ - - ">="
21
19
  - !ruby/object:Gem::Version
22
20
  version: 0.7.0
23
21
  type: :runtime
24
22
  prerelease: false
25
23
  version_requirements: !ruby/object:Gem::Requirement
26
- none: false
27
24
  requirements:
28
- - - ! '>='
25
+ - - ">="
29
26
  - !ruby/object:Gem::Version
30
27
  version: 0.7.0
31
28
  - !ruby/object:Gem::Dependency
32
29
  name: shoulda
33
30
  requirement: !ruby/object:Gem::Requirement
34
- none: false
35
31
  requirements:
36
- - - ! '>='
32
+ - - ">="
37
33
  - !ruby/object:Gem::Version
38
34
  version: '0'
39
35
  type: :development
40
36
  prerelease: false
41
37
  version_requirements: !ruby/object:Gem::Requirement
42
- none: false
43
38
  requirements:
44
- - - ! '>='
39
+ - - ">="
45
40
  - !ruby/object:Gem::Version
46
41
  version: '0'
47
42
  - !ruby/object:Gem::Dependency
48
43
  name: bundler
49
44
  requirement: !ruby/object:Gem::Requirement
50
- none: false
51
45
  requirements:
52
- - - ! '>='
46
+ - - ">="
53
47
  - !ruby/object:Gem::Version
54
48
  version: '0'
55
49
  type: :development
56
50
  prerelease: false
57
51
  version_requirements: !ruby/object:Gem::Requirement
58
- none: false
59
52
  requirements:
60
- - - ! '>='
53
+ - - ">="
61
54
  - !ruby/object:Gem::Version
62
55
  version: '0'
63
56
  - !ruby/object:Gem::Dependency
64
57
  name: jeweler
65
58
  requirement: !ruby/object:Gem::Requirement
66
- none: false
67
59
  requirements:
68
- - - ! '>='
60
+ - - ">="
69
61
  - !ruby/object:Gem::Version
70
62
  version: '0'
71
63
  type: :development
72
64
  prerelease: false
73
65
  version_requirements: !ruby/object:Gem::Requirement
74
- none: false
75
66
  requirements:
76
- - - ! '>='
67
+ - - ">="
77
68
  - !ruby/object:Gem::Version
78
69
  version: '0'
79
70
  - !ruby/object:Gem::Dependency
80
71
  name: rspec
81
72
  requirement: !ruby/object:Gem::Requirement
82
- none: false
83
73
  requirements:
84
- - - ~>
74
+ - - "~>"
85
75
  - !ruby/object:Gem::Version
86
76
  version: '2.6'
87
77
  type: :development
88
78
  prerelease: false
89
79
  version_requirements: !ruby/object:Gem::Requirement
90
- none: false
91
80
  requirements:
92
- - - ~>
81
+ - - "~>"
93
82
  - !ruby/object:Gem::Version
94
83
  version: '2.6'
95
84
  - !ruby/object:Gem::Dependency
96
85
  name: activesupport
97
86
  requirement: !ruby/object:Gem::Requirement
98
- none: false
99
87
  requirements:
100
- - - ~>
88
+ - - "~>"
101
89
  - !ruby/object:Gem::Version
102
90
  version: '3'
103
91
  type: :development
104
92
  prerelease: false
105
93
  version_requirements: !ruby/object:Gem::Requirement
106
- none: false
107
94
  requirements:
108
- - - ~>
95
+ - - "~>"
109
96
  - !ruby/object:Gem::Version
110
97
  version: '3'
111
98
  - !ruby/object:Gem::Dependency
112
99
  name: fakeweb
113
100
  requirement: !ruby/object:Gem::Requirement
114
- none: false
115
101
  requirements:
116
- - - ~>
102
+ - - "~>"
117
103
  - !ruby/object:Gem::Version
118
104
  version: 1.3.0
119
105
  type: :development
120
106
  prerelease: false
121
107
  version_requirements: !ruby/object:Gem::Requirement
122
- none: false
123
108
  requirements:
124
- - - ~>
109
+ - - "~>"
125
110
  - !ruby/object:Gem::Version
126
111
  version: 1.3.0
127
112
  - !ruby/object:Gem::Dependency
128
113
  name: rubocop
129
114
  requirement: !ruby/object:Gem::Requirement
130
- none: false
131
115
  requirements:
132
- - - ! '>='
116
+ - - ">="
133
117
  - !ruby/object:Gem::Version
134
118
  version: '0'
135
119
  type: :development
136
120
  prerelease: false
137
121
  version_requirements: !ruby/object:Gem::Requirement
138
- none: false
139
122
  requirements:
140
- - - ! '>='
123
+ - - ">="
141
124
  - !ruby/object:Gem::Version
142
125
  version: '0'
143
126
  description: Ruby API Client for FederalRegister.gov that handles searching documents
@@ -149,9 +132,9 @@ extra_rdoc_files:
149
132
  - LICENSE.md
150
133
  - README.md
151
134
  files:
152
- - .document
153
- - .rubocop.yml
154
- - .watchr
135
+ - ".document"
136
+ - ".rubocop.yml"
137
+ - ".watchr"
155
138
  - Gemfile
156
139
  - Gemfile.lock
157
140
  - LICENSE.md
@@ -208,25 +191,24 @@ files:
208
191
  homepage: http://github.com/usnationalarchives/federal_register
209
192
  licenses:
210
193
  - MIT
194
+ metadata: {}
211
195
  post_install_message:
212
196
  rdoc_options: []
213
197
  require_paths:
214
198
  - lib
215
199
  required_ruby_version: !ruby/object:Gem::Requirement
216
- none: false
217
200
  requirements:
218
- - - ! '>='
201
+ - - ">="
219
202
  - !ruby/object:Gem::Version
220
203
  version: '0'
221
204
  required_rubygems_version: !ruby/object:Gem::Requirement
222
- none: false
223
205
  requirements:
224
- - - ! '>='
206
+ - - ">="
225
207
  - !ruby/object:Gem::Version
226
208
  version: '0'
227
209
  requirements: []
228
210
  rubyforge_project:
229
- rubygems_version: 1.8.29
211
+ rubygems_version: 2.5.2
230
212
  signing_key:
231
213
  specification_version: 3
232
214
  summary: Ruby API Client for FederalRegister.gov