stark-rack 1.0.2 → 1.0.3
Sign up to get free protection for your applications and to get access to all the features.
- data/.travis.yml +12 -0
- data/History.txt +4 -0
- data/Manifest.txt +1 -0
- data/Rakefile +1 -0
- data/lib/stark/rack.rb +1 -1
- data/lib/stark/rack/logging_processor.rb +6 -1
- data/stark-rack.gemspec +3 -3
- data/test/test_rest.rb +6 -2
- metadata +3 -2
data/.travis.yml
ADDED
data/History.txt
CHANGED
data/Manifest.txt
CHANGED
data/Rakefile
CHANGED
data/lib/stark/rack.rb
CHANGED
data/stark-rack.gemspec
CHANGED
@@ -2,15 +2,15 @@
|
|
2
2
|
|
3
3
|
Gem::Specification.new do |s|
|
4
4
|
s.name = "stark-rack"
|
5
|
-
s.version = "1.0.
|
5
|
+
s.version = "1.0.3"
|
6
6
|
|
7
7
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
8
8
|
s.authors = ["Evan Phoenix"]
|
9
|
-
s.date = "2013-
|
9
|
+
s.date = "2013-09-04"
|
10
10
|
s.description = "Provides middleware for mounting Stark/Thrift services as Rack endpoints."
|
11
11
|
s.email = ["evan@phx.io"]
|
12
12
|
s.extra_rdoc_files = ["History.txt", "Manifest.txt", "README.txt"]
|
13
|
-
s.files = [".autotest", ".gemtest", "History.txt", "Manifest.txt", "README.txt", "Rakefile", "lib/stark/rack.rb", "lib/stark/rack/content_negotiation.rb", "lib/stark/rack/logging_processor.rb", "lib/stark/rack/metadata.rb", "lib/stark/rack/rest.rb", "lib/stark/rack/verbose_protocol.rb", "stark-rack.gemspec", "test/calc-opt.rb", "test/calc.thrift", "test/config.ru", "test/gen-rb/calc.rb", "test/gen-rb/calc_constants.rb", "test/gen-rb/calc_types.rb", "test/helper.rb", "test/test_metadata.rb", "test/test_rack.rb", "test/test_rest.rb"]
|
13
|
+
s.files = [".autotest", ".gemtest", ".travis.yml", "History.txt", "Manifest.txt", "README.txt", "Rakefile", "lib/stark/rack.rb", "lib/stark/rack/content_negotiation.rb", "lib/stark/rack/logging_processor.rb", "lib/stark/rack/metadata.rb", "lib/stark/rack/rest.rb", "lib/stark/rack/verbose_protocol.rb", "stark-rack.gemspec", "test/calc-opt.rb", "test/calc.thrift", "test/config.ru", "test/gen-rb/calc.rb", "test/gen-rb/calc_constants.rb", "test/gen-rb/calc_types.rb", "test/helper.rb", "test/test_metadata.rb", "test/test_rack.rb", "test/test_rest.rb"]
|
14
14
|
s.homepage = "https://github.com/evanphx/stark-rack"
|
15
15
|
s.licenses = ["MIT"]
|
16
16
|
s.rdoc_options = ["--main", "README.txt"]
|
data/test/test_rest.rb
CHANGED
@@ -110,7 +110,9 @@ class TestREST < Test::Unit::TestCase
|
|
110
110
|
end.join
|
111
111
|
|
112
112
|
json = '{"result":{"_struct_":"State","1:last_result":4,"2:vars":{"a":42}}}'
|
113
|
-
|
113
|
+
expected_result = Rack::Utils::OkJson.decode json
|
114
|
+
|
115
|
+
assert_equal expected_result, Rack::Utils::OkJson.decode(out.join)
|
114
116
|
end
|
115
117
|
|
116
118
|
def test_set_state_with_GET
|
@@ -170,6 +172,8 @@ class TestREST < Test::Unit::TestCase
|
|
170
172
|
end.join
|
171
173
|
|
172
174
|
json = '{"result":{"version":"1.0 baby","name":"This is a sweet service"}}'
|
173
|
-
|
175
|
+
expected_result = Rack::Utils::OkJson.decode json
|
176
|
+
|
177
|
+
assert_equal expected_result, Rack::Utils::OkJson.decode(out.join)
|
174
178
|
end
|
175
179
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: stark-rack
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.3
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-
|
12
|
+
date: 2013-09-04 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: stark
|
@@ -87,6 +87,7 @@ extra_rdoc_files:
|
|
87
87
|
files:
|
88
88
|
- .autotest
|
89
89
|
- .gemtest
|
90
|
+
- .travis.yml
|
90
91
|
- History.txt
|
91
92
|
- Manifest.txt
|
92
93
|
- README.txt
|