fred 0.2.1 → 0.3.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (7) hide show
  1. checksums.yaml +15 -0
  2. data/README.md +6 -2
  3. data/Rakefile +3 -2
  4. data/VERSION +1 -1
  5. data/fred.gemspec +12 -11
  6. data/lib/fred/client.rb +1 -1
  7. metadata +56 -47
@@ -0,0 +1,15 @@
1
+ ---
2
+ !binary "U0hBMQ==":
3
+ metadata.gz: !binary |-
4
+ YTgzMGVjNGRhMDAyNDI1MDQwMTEzYWIwOWVjNjZjOTJlZjY3YjlmYw==
5
+ data.tar.gz: !binary |-
6
+ ZjhiOTZjZDEzMmYxOTliN2QxOTkyZDlkZjNmMWRmNTc1MzQzM2MyMw==
7
+ SHA512:
8
+ metadata.gz: !binary |-
9
+ MzNkMjM4YTJhNTZhMDQ5YmNhODk5OTlhNDBmODc3YmMyZTQ0ZmEwMDJiNzQy
10
+ YzQxMTM2ZmZkOWJjYjVlZjMyZjljMmNlNDQ2MDQxMmY4OGY1MTQyNTQ0MjZh
11
+ OWVjOTBmNjYwODZiMDYyMzJkNjNiZWM1ZmI4NjhhODZlYmRhZDY=
12
+ data.tar.gz: !binary |-
13
+ Yzg0OTEyZDk5ZTMzMzgyZTFiNTFkZjI3NGE4NmE5YjUzM2U5Mjg5NWE0N2Q3
14
+ YTJlMzE0N2ZmNjc3MjkzM2NhZTMxYzMwNDgzNTY3YjdlMDhkZDZhNGVhODky
15
+ MDY3MThjMDdkNmEyOTRlMzIzNzIxY2Y5NTlmZGY4MmQ4MDE3NGQ=
data/README.md CHANGED
@@ -34,9 +34,13 @@ Sign up for a Fred API key: [http://api.stlouisfed.org/api_key.html](http://api.
34
34
  >> fred.category(nil, :category_id => '125')
35
35
  => <#Hashie::Mash categories=<#Hashie::Mash category=<#Hashie::Mash id="125" name="Trade Balance" parent_id="13">>>
36
36
 
37
- >> fred.series(nil, :series_id => 'GNPC')
38
- => <#Hashie::Mash seriess=<#Hashie::Mash realtime_end="2008-07-29" realtime_start="2008-07-29" series=<#Hashie::Mash frequency="Annual" frequency_short="A" id="GNPCA" last_updated="2008-03-27 11:16:06-05" observation_end="2007-01-01" observation_start="1929-01-01" realtime_end="2008-07-29" realtime_start="2008-07-29" seasonal_adjustment="Not Applicable" seasonal_adjustment_short="NA" title="Real Gross National Product" units="Billions of Chained 2000 Dollars" units_short="Bil. of Chained 2000 $">>>
37
+ >> fred.series(nil, :series_id => 'GNPA')
38
+ => #<Hashie::Mash seriess=#<Hashie::Mash realtime_end="2013-08-26" realtime_start="2013-08-26" series=#<Hashie::Mash frequency="Annual" frequency_short="A" id="GNPA" last_updated="2013-07-31 09:26:17-05" notes="BEA Account Code: A001RC1" observation_end="2012-01-01" observation_start="1929-01-01" popularity="46" realtime_end="2013-08-26" realtime_start="2013-08-26" seasonal_adjustment="Not Seasonally Adjusted" seasonal_adjustment_short="NSA" title="Gross National Product" units="Billions of Dollars" units_short="Bil. of $">>>
39
39
 
40
+ >> fred.series('observations', :series_id => 'GNPA')
41
+ => #<Hashie::Mash observations=#<Hashie::Mash count="84" file_type="xml" limit="100000" observation=[#<Hashie::Mash date="1929-01-01" realtime_end="2013-08-26" realtime_start="2013-08-26" value="105.3">,
42
+ .....
43
+ #<Hashie::Mash date="2012-01-01" realtime_end="2013-08-26" realtime_start="2013-08-26" value="16497.4">] observation_end="9999-12-31" observation_start="1776-07-04" offset="0" order_by="observation_date" output_type="1" realtime_end="2013-08-26" realtime_start="2013-08-26" sort_order="asc" units="lin">>
40
44
  ## Copyright
41
45
 
42
46
  Contact me if you have any suggestions and feel free to fork it!
data/Rakefile CHANGED
@@ -13,8 +13,9 @@ begin
13
13
  gem.homepage = "http://github.com/phuphighter/fred"
14
14
  gem.authors = ["Johnny Khai Nguyen"]
15
15
 
16
- gem.add_dependency('httparty', '>= 0.5.0')
17
- gem.add_dependency('hashie', '>= 2.0.5')
16
+ gem.add_runtime_dependency('httparty', '~> 0.5', '>= 0.5.0')
17
+ gem.add_runtime_dependency('hashie', '~> 2.0', '>= 2.0.5')
18
+ gem.version = File.read('VERSION').chomp
18
19
  end
19
20
  Jeweler::GemcutterTasks.new
20
21
  rescue LoadError
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.2.1
1
+ 0.3.0
@@ -2,14 +2,16 @@
2
2
  # DO NOT EDIT THIS FILE DIRECTLY
3
3
  # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
4
4
  # -*- encoding: utf-8 -*-
5
+ # stub: fred 0.3.0 ruby lib
5
6
 
6
7
  Gem::Specification.new do |s|
7
8
  s.name = "fred"
8
- s.version = "0.2.1"
9
+ s.version = "0.3.0"
9
10
 
10
11
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
12
+ s.require_paths = ["lib"]
11
13
  s.authors = ["Johnny Khai Nguyen"]
12
- s.date = "2013-06-21"
14
+ s.date = "2015-07-22"
13
15
  s.description = "Ruby wrapper for the St. Louis Federal Reserve FRED API"
14
16
  s.email = "johnnyn@gmail.com"
15
17
  s.extra_rdoc_files = [
@@ -39,23 +41,22 @@ Gem::Specification.new do |s|
39
41
  "uninstall.rb"
40
42
  ]
41
43
  s.homepage = "http://github.com/phuphighter/fred"
42
- s.require_paths = ["lib"]
43
- s.rubygems_version = "1.8.15"
44
+ s.rubygems_version = "2.2.1"
44
45
  s.summary = "Ruby wrapper for the St. Louis Federal Reserve FRED API"
45
46
 
46
47
  if s.respond_to? :specification_version then
47
- s.specification_version = 3
48
+ s.specification_version = 4
48
49
 
49
50
  if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
50
- s.add_runtime_dependency(%q<httparty>, [">= 0.5.0"])
51
- s.add_runtime_dependency(%q<hashie>, [">= 2.0.5"])
51
+ s.add_runtime_dependency(%q<httparty>, [">= 0.5.0", "~> 0.5"])
52
+ s.add_runtime_dependency(%q<hashie>, [">= 2.0.5", "~> 2.0"])
52
53
  else
53
- s.add_dependency(%q<httparty>, [">= 0.5.0"])
54
- s.add_dependency(%q<hashie>, [">= 2.0.5"])
54
+ s.add_dependency(%q<httparty>, [">= 0.5.0", "~> 0.5"])
55
+ s.add_dependency(%q<hashie>, [">= 2.0.5", "~> 2.0"])
55
56
  end
56
57
  else
57
- s.add_dependency(%q<httparty>, [">= 0.5.0"])
58
- s.add_dependency(%q<hashie>, [">= 2.0.5"])
58
+ s.add_dependency(%q<httparty>, [">= 0.5.0", "~> 0.5"])
59
+ s.add_dependency(%q<hashie>, [">= 2.0.5", "~> 2.0"])
59
60
  end
60
61
  end
61
62
 
@@ -2,7 +2,7 @@ module Fred
2
2
 
3
3
  class Client
4
4
  include HTTParty
5
- base_uri "http://api.stlouisfed.org/fred"
5
+ base_uri "https://api.stlouisfed.org/fred"
6
6
  format :xml
7
7
 
8
8
  attr_reader :api_key
metadata CHANGED
@@ -1,48 +1,62 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: fred
3
- version: !ruby/object:Gem::Version
4
- prerelease:
5
- version: 0.2.1
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.3.0
6
5
  platform: ruby
7
- authors:
6
+ authors:
8
7
  - Johnny Khai Nguyen
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
-
13
- date: 2013-06-21 00:00:00 Z
14
- dependencies:
15
- - !ruby/object:Gem::Dependency
11
+ date: 2015-07-22 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
16
14
  name: httparty
17
- prerelease: false
18
- requirement: &id001 !ruby/object:Gem::Requirement
19
- none: false
20
- requirements:
21
- - - ">="
22
- - !ruby/object:Gem::Version
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ! '>='
18
+ - !ruby/object:Gem::Version
23
19
  version: 0.5.0
20
+ - - ~>
21
+ - !ruby/object:Gem::Version
22
+ version: '0.5'
24
23
  type: :runtime
25
- version_requirements: *id001
26
- - !ruby/object:Gem::Dependency
27
- name: hashie
28
24
  prerelease: false
29
- requirement: &id002 !ruby/object:Gem::Requirement
30
- none: false
31
- requirements:
32
- - - ">="
33
- - !ruby/object:Gem::Version
25
+ version_requirements: !ruby/object:Gem::Requirement
26
+ requirements:
27
+ - - ! '>='
28
+ - !ruby/object:Gem::Version
29
+ version: 0.5.0
30
+ - - ~>
31
+ - !ruby/object:Gem::Version
32
+ version: '0.5'
33
+ - !ruby/object:Gem::Dependency
34
+ name: hashie
35
+ requirement: !ruby/object:Gem::Requirement
36
+ requirements:
37
+ - - ! '>='
38
+ - !ruby/object:Gem::Version
34
39
  version: 2.0.5
40
+ - - ~>
41
+ - !ruby/object:Gem::Version
42
+ version: '2.0'
35
43
  type: :runtime
36
- version_requirements: *id002
44
+ prerelease: false
45
+ version_requirements: !ruby/object:Gem::Requirement
46
+ requirements:
47
+ - - ! '>='
48
+ - !ruby/object:Gem::Version
49
+ version: 2.0.5
50
+ - - ~>
51
+ - !ruby/object:Gem::Version
52
+ version: '2.0'
37
53
  description: Ruby wrapper for the St. Louis Federal Reserve FRED API
38
54
  email: johnnyn@gmail.com
39
55
  executables: []
40
-
41
56
  extensions: []
42
-
43
- extra_rdoc_files:
57
+ extra_rdoc_files:
44
58
  - README.md
45
- files:
59
+ files:
46
60
  - MIT-LICENSE
47
61
  - README.md
48
62
  - Rakefile
@@ -66,30 +80,25 @@ files:
66
80
  - uninstall.rb
67
81
  homepage: http://github.com/phuphighter/fred
68
82
  licenses: []
69
-
83
+ metadata: {}
70
84
  post_install_message:
71
85
  rdoc_options: []
72
-
73
- require_paths:
86
+ require_paths:
74
87
  - lib
75
- required_ruby_version: !ruby/object:Gem::Requirement
76
- none: false
77
- requirements:
78
- - - ">="
79
- - !ruby/object:Gem::Version
80
- version: "0"
81
- required_rubygems_version: !ruby/object:Gem::Requirement
82
- none: false
83
- requirements:
84
- - - ">="
85
- - !ruby/object:Gem::Version
86
- version: "0"
88
+ required_ruby_version: !ruby/object:Gem::Requirement
89
+ requirements:
90
+ - - ! '>='
91
+ - !ruby/object:Gem::Version
92
+ version: '0'
93
+ required_rubygems_version: !ruby/object:Gem::Requirement
94
+ requirements:
95
+ - - ! '>='
96
+ - !ruby/object:Gem::Version
97
+ version: '0'
87
98
  requirements: []
88
-
89
99
  rubyforge_project:
90
- rubygems_version: 1.8.15
100
+ rubygems_version: 2.2.1
91
101
  signing_key:
92
- specification_version: 3
102
+ specification_version: 4
93
103
  summary: Ruby wrapper for the St. Louis Federal Reserve FRED API
94
104
  test_files: []
95
-