sodacan 0.0.4 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +11 -1
- data/lib/sodacan/location.rb +2 -1
- data/lib/sodacan/version.rb +1 -1
- data/sodacan-0.0.4.gem +0 -0
- data/{SodaCan.gemspec → sodacan.gemspec} +0 -0
- metadata +3 -3
- data/.rvmrc +0 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1de1508cd38cb66a3a646e82a201141a94097068
|
4
|
+
data.tar.gz: bf1820bf8bcb757b77205ce4f66f254e8458ea0d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 62fdc5fd3df7cb72e58b7f93312b591407f8975a59b27ade452cb3f68a65f1640e8f5f2fb9512a7d26c630d14240dd4fcb180bb0d8e8254cadfb475b345a1491
|
7
|
+
data.tar.gz: 3739779c611e93901002331c4519828fc44f27cc1361518040a29ee67b7c79194f5cf9aa5355ab143f4d47c49a606e7c2fb53cb7e140bb949a387d5ced4a1816
|
data/README.md
CHANGED
@@ -1,7 +1,17 @@
|
|
1
|
-
#
|
1
|
+
#sodacan
|
2
2
|
|
3
3
|
An ActiveRecord-like interface to databases with a JSON based Soda2 interface, and example of which is the NYC OpenData set.
|
4
4
|
|
5
|
+
##Install
|
6
|
+
|
7
|
+
Install the gem from rubygems
|
8
|
+
|
9
|
+
$ gem install sodacan
|
10
|
+
|
11
|
+
Require it as needed
|
12
|
+
|
13
|
+
require 'sodacan'
|
14
|
+
|
5
15
|
##Usage
|
6
16
|
|
7
17
|
A new database should be added to an application by subclassing SodaCan::Base
|
data/lib/sodacan/location.rb
CHANGED
@@ -1,10 +1,11 @@
|
|
1
1
|
module SodaCan
|
2
2
|
class Location
|
3
3
|
def initialize (params)
|
4
|
+
binding.pry
|
4
5
|
lat = nil
|
5
6
|
lat = Float(params['latitude']) if params['latitude']
|
6
7
|
long = nil
|
7
|
-
long = Float(params['
|
8
|
+
long = Float(params['longitude']) if params['longitude']
|
8
9
|
define_singleton_method(:latitude){ lat }
|
9
10
|
define_singleton_method(:longitude){ long }
|
10
11
|
end
|
data/lib/sodacan/version.rb
CHANGED
data/sodacan-0.0.4.gem
ADDED
Binary file
|
File without changes
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sodacan
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Trevor John, tjohn
|
@@ -75,17 +75,17 @@ extensions: []
|
|
75
75
|
extra_rdoc_files: []
|
76
76
|
files:
|
77
77
|
- .rspec
|
78
|
-
- .rvmrc
|
79
78
|
- Gemfile
|
80
79
|
- Gemfile.lock
|
81
80
|
- LICENSE.txt
|
82
81
|
- README.md
|
83
82
|
- Rakefile
|
84
|
-
- SodaCan.gemspec
|
85
83
|
- lib/sodacan.rb
|
86
84
|
- lib/sodacan/base.rb
|
87
85
|
- lib/sodacan/location.rb
|
88
86
|
- lib/sodacan/version.rb
|
87
|
+
- sodacan-0.0.4.gem
|
88
|
+
- sodacan.gemspec
|
89
89
|
- spec/sodacan_spec.rb
|
90
90
|
- spec/spec_helper.rb
|
91
91
|
homepage: http://rubygems.org/gems/sodacan
|
data/.rvmrc
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
rvm use 2.0.0@opendata --create
|