restful_objects 0.0.4 → 0.0.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,15 +1,7 @@
1
1
  ---
2
- !binary "U0hBMQ==":
3
- metadata.gz: !binary |-
4
- NDdjMTY3Yjk5NjVmOTFkYmU3ZTBkZGVjZWE1Yjk4ZmFlZjc3MGIwOQ==
5
- data.tar.gz: !binary |-
6
- NTBjYzJhYjFiNTFjMDIxODEzODE5OTYxOTQ3ZTVlM2YwZjA1MDM3YQ==
2
+ SHA1:
3
+ metadata.gz: 5b9d5f9ab0b9191be431dcf51c8678a83b69def4
4
+ data.tar.gz: 2768a747a319c97a75d2cab86aa9728906d6d1d0
7
5
  SHA512:
8
- metadata.gz: !binary |-
9
- NThkMzMxNjliNDY4MjNmNzg4ZTVmZmExZjEyMDA5ZDgyZThhZmYwZTU0OTgx
10
- MmYwMmM0MzI3MTg1ODFhZmE2MmUxMWJjMjdhODQ3OWFjNzFlZmIwMTEzZmRh
11
- MDJjNTAxYmZmYTg1MjI3OTVmZGY0NjkyZDE0NzlmYzhhYTkxNzI=
12
- data.tar.gz: !binary |-
13
- MjM2NWJkYTZiZDliMzJkMGYyNGFmMzViMTYxYWNlNGJiZjJiMGNlZjU2ZjNh
14
- ZWMzMDA5MDliY2VlODE1MTQyYTdlMWY3ZDQ3MTg2NTA0Y2RiZDhkMzZmNTVh
15
- YWQ5ZmZjNjg0NzliNDkyOWMyMWJiYWJiMWU0ZmQ3ZmViYmI0ZDM=
6
+ metadata.gz: a0287a4cead98bedbd4cfddad1dd9d6e96361e12e528f400c43ac33639e167fbcde3acc047b9d732f570dd28f4dcc5e5a09a2dd9fb56406b2fe7d5e35a4e1f32
7
+ data.tar.gz: dd0c7fe482409be9b111edc27d84bdc99072678946eadaca23a2744364b1ce5d9047e7a48b84fd4cec749ffeb1645f12f5c4aca9a73a3bad96226cd6bbc6a8a7
@@ -1,3 +1,5 @@
1
+ #!/usr/bin/env ruby
2
+
1
3
  require 'restful_objects'
2
4
 
3
5
  if ARGV[0].nil? then
@@ -1,5 +1,7 @@
1
1
  module RestfulObjects
2
2
  class Server < Sinatra::Base
3
+ set :bind, '0.0.0.0' # listen at all networks (needed for using with vagrant port forwarding)
4
+
3
5
  after do
4
6
  headers['Access-Control-Allow-Origin'] = '*'
5
7
  end
@@ -1,3 +1,3 @@
1
1
  module RestfulObjects
2
- VERSION = '0.0.4'
2
+ VERSION = '0.0.5'
3
3
  end
@@ -144,7 +144,7 @@ describe RestfulObjects::ObjectProperties do
144
144
  @object.bool_prop.should eq true
145
145
  @object.decimal_prop.should eq 333.33
146
146
  @object.date_prop.should eq Date.new(2012, 2, 29)
147
- @object.blob_prop.should eq "\xE5\xA5\xB4\x30\xF2\x8C\x71\xD9"
147
+ @object.blob_prop.should eq "\xE5\xA5\xB4\x30\xF2\x8C\x71\xD9".force_encoding('ASCII-8BIT')
148
148
  end
149
149
 
150
150
  it 'should process a property put with json' do
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: restful_objects
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
  - Pablo Vizcay
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-09-07 00:00:00.000000000 Z
11
+ date: 2014-10-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -98,11 +98,11 @@ description: This gem is a framework for implementing Restful Objects servers.
98
98
  email:
99
99
  - pabo.vizcay@gmail.com
100
100
  executables:
101
- - restful_server.rb
101
+ - restful_server
102
102
  extensions: []
103
103
  extra_rdoc_files: []
104
104
  files:
105
- - bin/restful_server.rb
105
+ - bin/restful_server
106
106
  - lib/restful_objects/server.rb
107
107
  - lib/restful_objects/property_description.rb
108
108
  - lib/restful_objects/action_list.rb
@@ -152,17 +152,17 @@ require_paths:
152
152
  - lib
153
153
  required_ruby_version: !ruby/object:Gem::Requirement
154
154
  requirements:
155
- - - ! '>='
155
+ - - '>='
156
156
  - !ruby/object:Gem::Version
157
157
  version: '0'
158
158
  required_rubygems_version: !ruby/object:Gem::Requirement
159
159
  requirements:
160
- - - ! '>='
160
+ - - '>='
161
161
  - !ruby/object:Gem::Version
162
162
  version: '0'
163
163
  requirements: []
164
164
  rubyforge_project:
165
- rubygems_version: 2.1.9
165
+ rubygems_version: 2.0.14
166
166
  signing_key:
167
167
  specification_version: 4
168
168
  summary: This gem is a framework for implementing Restful Objects servers.
@@ -178,4 +178,3 @@ test_files:
178
178
  - spec/unit/object_spec.rb
179
179
  - spec/unit/type_list_spec.rb
180
180
  - spec/unit/object_actions_spec.rb
181
- has_rdoc: