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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1e2878a19c2e3c2e2c5c2a3a53fd3757626af587
4
- data.tar.gz: 4335d7c5a9656b9c88a30737f8b607a62cd7f1dc
3
+ metadata.gz: 1de1508cd38cb66a3a646e82a201141a94097068
4
+ data.tar.gz: bf1820bf8bcb757b77205ce4f66f254e8458ea0d
5
5
  SHA512:
6
- metadata.gz: 6f430404f72766743419210026778ef914e02df4724b04dfec16dff25cdafff4a31d9b05d8834be493635af435503745af6f6040236a919a2b77db16fa30c005
7
- data.tar.gz: 64ea068ce0a131ee770cf5279776f938a3b6d2e2582656830d63f293d6d101d6fa3f8da2577a3a590d19a81b731aeec897932a2667cceed3cedabfcfee669d09
6
+ metadata.gz: 62fdc5fd3df7cb72e58b7f93312b591407f8975a59b27ade452cb3f68a65f1640e8f5f2fb9512a7d26c630d14240dd4fcb180bb0d8e8254cadfb475b345a1491
7
+ data.tar.gz: 3739779c611e93901002331c4519828fc44f27cc1361518040a29ee67b7c79194f5cf9aa5355ab143f4d47c49a606e7c2fb53cb7e140bb949a387d5ced4a1816
data/README.md CHANGED
@@ -1,7 +1,17 @@
1
- #SodaCan
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
@@ -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['longtitude']) if params['longitude']
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
@@ -1,3 +1,3 @@
1
1
  module SodaCan
2
- VERSION = "0.0.4"
2
+ VERSION = "0.0.5"
3
3
  end
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
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