rack-core-data 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- rack-core-data (0.0.1)
4
+ rack-core-data (0.0.2)
5
5
  activesupport (~> 3.2.6)
6
6
  nokogiri (~> 1.4)
7
7
  rack (~> 1.4)
@@ -11,10 +11,10 @@ PATH
11
11
  GEM
12
12
  remote: http://rubygems.org/
13
13
  specs:
14
- activesupport (3.2.6)
14
+ activesupport (3.2.8)
15
15
  i18n (~> 0.6)
16
16
  multi_json (~> 1.0)
17
- i18n (0.6.0)
17
+ i18n (0.6.1)
18
18
  multi_json (1.3.6)
19
19
  nokogiri (1.5.5)
20
20
  rack (1.4.1)
@@ -23,7 +23,7 @@ GEM
23
23
  rake (0.9.2.2)
24
24
  rspec (0.6.4)
25
25
  sequel (3.37.0)
26
- sinatra (1.3.2)
26
+ sinatra (1.3.3)
27
27
  rack (~> 1.3, >= 1.3.6)
28
28
  rack-protection (~> 1.2)
29
29
  tilt (~> 1.3, >= 1.3.3)
data/README.md CHANGED
@@ -3,15 +3,31 @@
3
3
 
4
4
  > This is still in early stages of development, so proceed with caution when using this in a production application. Any bug reports, feature requests, or general feedback at this point would be greatly appreciated.
5
5
 
6
+ <table>
7
+ <thead><tr>
8
+ <th>Core Data Model</th>
9
+ <th>API Endpoints</th>
10
+ </tr></thead>
11
+ <tbody><tr>
12
+ <td><img src="http://heroku-mattt.s3.amazonaws.com/core-data-diagram.png"/></td>
13
+ <td><ul>
14
+ <li><tt>GET /artists</tt></li>
15
+ <li><tt>POST /artists</tt></li>
16
+ <li><tt>GET /artists/1</tt></li>
17
+ <li><tt>PUT /artists/1</tt></li>
18
+ <li><tt>DELETE /artists/1</tt></li>
19
+ <li><tt>GET /artists/1/songs</tt></li>
20
+ </ul></td>
21
+ </tr></tbody>
22
+ </table>
23
+
6
24
  Building web services for iOS apps is a constant struggle to coordinating data models. You're _probably_ not running Objective-C on the server, so you're stuck duplicating your business logic--allthewhile doing your best to maintain the correct conventions and idioms for each platform.
7
25
 
8
26
  `Rack::CoreData` aims to bridge the client/server divide, and save you time.
9
27
 
10
- Simply point `Rack::CoreData` at your Core Data model file, and a RESTful webserive is automatically created for you, with all of the resource endpoints you might expect in Rails.
11
-
12
- Since we're running on Rack, each endpoint can be overriden if you need to add or change any existing behavior. Likewise, any of the models in the application can be re-opened to make any necessary adjustments.
28
+ Simply point `Rack::CoreData` at your Core Data model file, and a RESTful webservice is automatically created for you, with all of the resource endpoints you might expect in Rails. And since we're running on Rack, each endpoint can be overriden if you need to add or change any existing behavior. Likewise, any of the models can be re-opened to make any necessary adjustments.
13
29
 
14
- Think of it like an API scaffold: while you may well throw all of it away eventually, having something to start with will allow you to iterate on the most important parts of your application while you're the most excited about them.
30
+ **Think of it like an API scaffold: while you may throw all of it away eventually, having something to start with will allow you to iterate on the most important parts of your application while you're the most excited about them.**
15
31
 
16
32
  ## Usage
17
33
 
@@ -63,6 +63,7 @@ module Rack
63
63
  when "Integer 32" then :int4
64
64
  when "Integer 64" then :int8
65
65
  when "Float" then :float4
66
+ when "Double" then :float8
66
67
  when "Decimal" then :float8
67
68
  when "Date" then :timestamp
68
69
  when "Boolean" then :boolean
@@ -1,5 +1,5 @@
1
1
  module Rack
2
2
  module CoreData
3
- VERSION = '0.0.1'
3
+ VERSION = '0.0.2'
4
4
  end
5
5
  end
Binary file
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rack-core-data
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-07-24 00:00:00.000000000Z
12
+ date: 2012-10-04 00:00:00.000000000Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rspec
16
- requirement: &70340923946660 !ruby/object:Gem::Requirement
16
+ requirement: &70361204899480 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ~>
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: 0.6.1
22
22
  type: :development
23
23
  prerelease: false
24
- version_requirements: *70340923946660
24
+ version_requirements: *70361204899480
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: rake
27
- requirement: &70340923946160 !ruby/object:Gem::Requirement
27
+ requirement: &70361204898980 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ~>
@@ -32,10 +32,10 @@ dependencies:
32
32
  version: 0.9.2
33
33
  type: :development
34
34
  prerelease: false
35
- version_requirements: *70340923946160
35
+ version_requirements: *70361204898980
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: rack
38
- requirement: &70340923945700 !ruby/object:Gem::Requirement
38
+ requirement: &70361204898520 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
41
  - - ~>
@@ -43,10 +43,10 @@ dependencies:
43
43
  version: '1.4'
44
44
  type: :runtime
45
45
  prerelease: false
46
- version_requirements: *70340923945700
46
+ version_requirements: *70361204898520
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: nokogiri
49
- requirement: &70340923945240 !ruby/object:Gem::Requirement
49
+ requirement: &70361204898060 !ruby/object:Gem::Requirement
50
50
  none: false
51
51
  requirements:
52
52
  - - ~>
@@ -54,10 +54,10 @@ dependencies:
54
54
  version: '1.4'
55
55
  type: :runtime
56
56
  prerelease: false
57
- version_requirements: *70340923945240
57
+ version_requirements: *70361204898060
58
58
  - !ruby/object:Gem::Dependency
59
59
  name: sinatra
60
- requirement: &70340923944780 !ruby/object:Gem::Requirement
60
+ requirement: &70361204897600 !ruby/object:Gem::Requirement
61
61
  none: false
62
62
  requirements:
63
63
  - - ~>
@@ -65,10 +65,10 @@ dependencies:
65
65
  version: 1.3.2
66
66
  type: :runtime
67
67
  prerelease: false
68
- version_requirements: *70340923944780
68
+ version_requirements: *70361204897600
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: sequel
71
- requirement: &70340923944320 !ruby/object:Gem::Requirement
71
+ requirement: &70361204897140 !ruby/object:Gem::Requirement
72
72
  none: false
73
73
  requirements:
74
74
  - - ~>
@@ -76,10 +76,10 @@ dependencies:
76
76
  version: 3.37.0
77
77
  type: :runtime
78
78
  prerelease: false
79
- version_requirements: *70340923944320
79
+ version_requirements: *70361204897140
80
80
  - !ruby/object:Gem::Dependency
81
81
  name: activesupport
82
- requirement: &70340923734700 !ruby/object:Gem::Requirement
82
+ requirement: &70361204896680 !ruby/object:Gem::Requirement
83
83
  none: false
84
84
  requirements:
85
85
  - - ~>
@@ -87,7 +87,7 @@ dependencies:
87
87
  version: 3.2.6
88
88
  type: :runtime
89
89
  prerelease: false
90
- version_requirements: *70340923734700
90
+ version_requirements: *70361204896680
91
91
  description: Automatically generate REST APIs for Core Data models.
92
92
  email: m@mattt.me
93
93
  executables: []
@@ -103,6 +103,7 @@ files:
103
103
  - ./lib/rack/core-data/version.rb
104
104
  - ./lib/rack/core-data.rb
105
105
  - ./LICENSE
106
+ - ./rack-core-data-0.0.1.gem
106
107
  - ./rack-core-data.gemspec
107
108
  - ./Rakefile
108
109
  - ./README.md
@@ -120,7 +121,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
120
121
  version: '0'
121
122
  segments:
122
123
  - 0
123
- hash: 3292093600849607730
124
+ hash: 1071536182396942787
124
125
  required_rubygems_version: !ruby/object:Gem::Requirement
125
126
  none: false
126
127
  requirements:
@@ -129,7 +130,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
129
130
  version: '0'
130
131
  segments:
131
132
  - 0
132
- hash: 3292093600849607730
133
+ hash: 1071536182396942787
133
134
  requirements: []
134
135
  rubyforge_project:
135
136
  rubygems_version: 1.8.15