snotel 0.0.2 → 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 93b31e9e02af13f4e7154730c94cdd8752185c44
4
- data.tar.gz: bdf7def9ea79fc3cfe9b03cb74046faf2e08928b
3
+ metadata.gz: b87b70d385650956a01ee977d77fd085b9403305
4
+ data.tar.gz: 03a9b0626736f3279fbc90270b120f2bf8d33138
5
5
  SHA512:
6
- metadata.gz: 8c76c2cd1c48f89a83856fd32b10af0d32209caac92c9b86d346f43183bed1e4e80179065b6ac741be7d0b6cf11702fc471a3d876a31d974066d2d2b16a7861b
7
- data.tar.gz: db73e704258edfe485d28918b23503ef04f43be3d6d3823a040f7d20228fdf5873a074d055e5b105fa581893fcd33f6f4da2e63bb68f311340a6aa5f8095e20b
6
+ metadata.gz: a2af86f5412c179a4faac47cf6b102dd4d3bd0036e2b89b5da831110022343e8b5a0cc3368a459c422be5d564e6e7dce0ba637f5289302024fce42a87e869c6f
7
+ data.tar.gz: c24066c7c4418fd67086091f01e57a676f900b2f54c6f66bf65469f8ef0e15b1e53500ad1686c5662fc980337ee43cce903a14ae11ac369abe393e780044f287
data/.rspec ADDED
@@ -0,0 +1 @@
1
+ --color
data/.travis.yml ADDED
@@ -0,0 +1,5 @@
1
+ language: ruby
2
+ rvm:
3
+ - 1.9
4
+ - 2.0
5
+ - 2.1
data/README.md CHANGED
@@ -1,5 +1,7 @@
1
1
  # Snotel
2
2
 
3
+ [![Build Status](https://travis-ci.org/firstchair-io/snotel.svg?branch=master)](https://travis-ci.org/firstchair-io/snotel)
4
+
3
5
  This is a gem for a Ruby client to access SNOTEL data from the NRCS.
4
6
 
5
7
  ## Installation
data/Rakefile CHANGED
@@ -1,2 +1,7 @@
1
- require "bundler/gem_tasks"
1
+ require 'bundler/gem_tasks'
2
+ require 'rspec/core/rake_task'
2
3
 
4
+ RSpec::Core::RakeTask.new
5
+
6
+ task default: :spec
7
+ task test: :spec
data/lib/snotel.rb CHANGED
@@ -20,7 +20,7 @@ module Snotel
20
20
  end
21
21
 
22
22
  def self.hourly(token, readings = 24)
23
- get_daily_data(get_triplet_from_token(token), readings-1) # Subtract to account for delta.
23
+ get_hourly_data(get_triplet_from_token(token), readings-1) # Subtract to account for delta.
24
24
  end
25
25
 
26
26
  def self.get_daily_data(triplet, readings)
@@ -1,3 +1,3 @@
1
1
  module Snotel
2
- VERSION = "0.0.2"
2
+ VERSION = '0.1.0'
3
3
  end
data/snotel.gemspec CHANGED
@@ -20,4 +20,5 @@ Gem::Specification.new do |spec|
20
20
 
21
21
  spec.add_development_dependency "bundler", "~> 1.6"
22
22
  spec.add_development_dependency "rake"
23
+ spec.add_development_dependency "rspec"
23
24
  end
@@ -0,0 +1,2 @@
1
+ describe Snotel do
2
+ end
@@ -0,0 +1,2 @@
1
+ describe Snotel do
2
+ end
@@ -0,0 +1,2 @@
1
+ describe Snotel do
2
+ end
@@ -0,0 +1,4 @@
1
+ require 'rubygems'
2
+ require 'bundler/setup'
3
+ require 'rspec'
4
+ require 'snotel'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: snotel
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - John Otander
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-09-29 00:00:00.000000000 Z
11
+ date: 2014-11-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -38,6 +38,20 @@ dependencies:
38
38
  - - ">="
39
39
  - !ruby/object:Gem::Version
40
40
  version: '0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: rspec
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ">="
46
+ - !ruby/object:Gem::Version
47
+ version: '0'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ">="
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
41
55
  description: Ruby client for accessing SNOTEL station data for snowfall data. Supports
42
56
  hourly and daily granularity.
43
57
  email:
@@ -47,6 +61,8 @@ extensions: []
47
61
  extra_rdoc_files: []
48
62
  files:
49
63
  - ".gitignore"
64
+ - ".rspec"
65
+ - ".travis.yml"
50
66
  - Gemfile
51
67
  - LICENSE.txt
52
68
  - README.md
@@ -56,6 +72,10 @@ files:
56
72
  - lib/snotel/tokens.rb
57
73
  - lib/snotel/version.rb
58
74
  - snotel.gemspec
75
+ - spec/daily_spec.rb
76
+ - spec/hourly_spec.rb
77
+ - spec/snotel_spec.rb
78
+ - spec/spec_helper.rb
59
79
  homepage: https://github.com/firstchair-io/snotel
60
80
  licenses:
61
81
  - MIT
@@ -76,8 +96,12 @@ required_rubygems_version: !ruby/object:Gem::Requirement
76
96
  version: '0'
77
97
  requirements: []
78
98
  rubyforge_project:
79
- rubygems_version: 2.2.2
99
+ rubygems_version: 2.4.2
80
100
  signing_key:
81
101
  specification_version: 4
82
102
  summary: Ruby client for accessing SNOTEL station data.
83
- test_files: []
103
+ test_files:
104
+ - spec/daily_spec.rb
105
+ - spec/hourly_spec.rb
106
+ - spec/snotel_spec.rb
107
+ - spec/spec_helper.rb