flash_policy_server 0.0.9 → 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +15 -0
- data/Gemfile +2 -2
- data/Gemfile.lock +43 -5
- data/README.rdoc +11 -0
- data/VERSION +1 -1
- data/docker/Dockerfile +12 -0
- data/docker/crossdomain.xml +6 -0
- data/flash_policy_server-0.0.9.gem +0 -0
- data/flash_policy_server.gemspec +13 -10
- metadata +41 -28
checksums.yaml
ADDED
@@ -0,0 +1,15 @@
|
|
1
|
+
---
|
2
|
+
!binary "U0hBMQ==":
|
3
|
+
metadata.gz: !binary |-
|
4
|
+
YTU2MGQxYjAyMDc3YWNlYjhjMTgzNWJiODJjYTU5ZGU0N2E1YTllNQ==
|
5
|
+
data.tar.gz: !binary |-
|
6
|
+
N2JjZDRlZjEzMjI1MDY1NzAxOGZiYmRiMzQ2MGJmMjg3ZTBkODg3Nw==
|
7
|
+
!binary "U0hBNTEy":
|
8
|
+
metadata.gz: !binary |-
|
9
|
+
MDZhYTcxYWNmM2M3NWZjNDJlNzZkZTVmOTg0YzNiODI3NWM1NDJiMGI3ZGI4
|
10
|
+
MTgwODk2OGUyNjYwZGM2NjdmNzkyMTk2OWIxNjBjYzBhMTM0MTgwYjlhNzFm
|
11
|
+
OTI0MDBmZjMzMGUzNDgyYmE3MDQxNDVlYTI5ZWNjNDY5YjVkZDM=
|
12
|
+
data.tar.gz: !binary |-
|
13
|
+
OWM0ZmY4NTkzYTRlMGU2MzM5NzQxZjI1ODA3MzU5YWRhZWMyYTU3ZGFiMTA5
|
14
|
+
OGFkNDE5ZmJlZWVlZDJjYTQzNjhhMWQyMzVjY2VkYmQ5NTc0ZjI3ODU3YThm
|
15
|
+
MjM1NzRlZjQ0NWFlMzliZGZmMDkxNWE0MWY4ZjdkOGQ0ZjZiZjU=
|
data/Gemfile
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,22 +1,60 @@
|
|
1
1
|
GEM
|
2
2
|
remote: http://rubygems.org/
|
3
3
|
specs:
|
4
|
-
|
5
|
-
|
4
|
+
addressable (2.3.5)
|
5
|
+
builder (3.2.2)
|
6
|
+
faraday (0.8.8)
|
7
|
+
multipart-post (~> 1.2.0)
|
8
|
+
git (1.2.6)
|
9
|
+
github_api (0.10.1)
|
10
|
+
addressable
|
11
|
+
faraday (~> 0.8.1)
|
12
|
+
hashie (>= 1.2)
|
13
|
+
multi_json (~> 1.4)
|
14
|
+
nokogiri (~> 1.5.2)
|
15
|
+
oauth2
|
16
|
+
hashie (2.0.5)
|
17
|
+
highline (1.6.19)
|
18
|
+
httpauth (0.2.0)
|
19
|
+
jeweler (1.8.8)
|
20
|
+
builder
|
6
21
|
bundler (~> 1.0)
|
7
22
|
git (>= 1.2.5)
|
23
|
+
github_api (= 0.10.1)
|
24
|
+
highline (>= 1.6.15)
|
25
|
+
nokogiri (= 1.5.10)
|
8
26
|
rake
|
27
|
+
rdoc
|
28
|
+
json (1.8.0)
|
29
|
+
jwt (0.1.8)
|
30
|
+
multi_json (>= 1.5)
|
9
31
|
minitest (2.10.0)
|
10
|
-
|
32
|
+
multi_json (1.8.1)
|
33
|
+
multi_xml (0.5.5)
|
34
|
+
multipart-post (1.2.0)
|
35
|
+
nokogiri (1.5.10)
|
36
|
+
nokogiri (1.5.10-x86-mingw32)
|
37
|
+
oauth2 (0.9.2)
|
38
|
+
faraday (~> 0.8)
|
39
|
+
httpauth (~> 0.2)
|
40
|
+
jwt (~> 0.1.4)
|
41
|
+
multi_json (~> 1.0)
|
42
|
+
multi_xml (~> 0.5)
|
43
|
+
rack (~> 1.2)
|
44
|
+
rack (1.5.2)
|
45
|
+
rake (10.1.0)
|
11
46
|
rcov (0.9.11)
|
47
|
+
rdoc (4.0.1)
|
48
|
+
json (~> 1.4)
|
12
49
|
yard (0.6.8)
|
13
50
|
|
14
51
|
PLATFORMS
|
15
52
|
ruby
|
53
|
+
x86-mingw32
|
16
54
|
|
17
55
|
DEPENDENCIES
|
18
|
-
bundler (~> 1.0
|
19
|
-
jeweler
|
56
|
+
bundler (~> 1.0)
|
57
|
+
jeweler
|
20
58
|
minitest
|
21
59
|
rcov
|
22
60
|
yard (~> 0.6.0)
|
data/README.rdoc
CHANGED
@@ -33,6 +33,17 @@ http://www.adobe.com/devnet/flashplayer/articles/socket_policy_files.html
|
|
33
33
|
See http://ruby.about.com/od/rubyversionmanager/qt/Rvm-And-Sudo.htm for
|
34
34
|
an explanation.
|
35
35
|
|
36
|
+
== Running in Docker
|
37
|
+
|
38
|
+
Don't like running stuff as root? Run it in a {docker}[http://www.docker.io/] container. Customize the crossdomain.xml file if you need (in the /docker directory) and then rebuild;
|
39
|
+
|
40
|
+
cd docker
|
41
|
+
docker build -t="flash_policy_server" .
|
42
|
+
|
43
|
+
Then run it in the background;
|
44
|
+
|
45
|
+
docker run -d flash_policy_server
|
46
|
+
|
36
47
|
== Contributing to flash-policy-server
|
37
48
|
|
38
49
|
* Check out the latest master to make sure the feature hasn't been implemented or the bug hasn't been fixed yet
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.0
|
1
|
+
0.1.0
|
data/docker/Dockerfile
ADDED
@@ -0,0 +1,12 @@
|
|
1
|
+
FROM ubuntu
|
2
|
+
MAINTAINER Russell Smith "russ@rainforestqa.com"
|
3
|
+
|
4
|
+
RUN apt-get update
|
5
|
+
RUN apt-get install -y ruby1.9.1
|
6
|
+
RUN gem install flash_policy_server --no-rdoc --no-ri
|
7
|
+
|
8
|
+
ADD crossdomain.xml /root/
|
9
|
+
|
10
|
+
ENTRYPOINT cd /root/ && flash_policy_server
|
11
|
+
|
12
|
+
EXPOSE 843:843
|
File without changes
|
data/flash_policy_server.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = "flash_policy_server"
|
8
|
-
s.version = "0.0
|
8
|
+
s.version = "0.1.0"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Dave hrycyszyn"]
|
12
|
-
s.date = "
|
12
|
+
s.date = "2013-10-12"
|
13
13
|
s.description = "\n This is a simple Ruby-based policy server to serve Flash's crossdomain.xml \n policy file.\n\n The web is increasingly realtime, but websockets still aren't supported on \n older browser clients. Many server push libraries (e.g. socket.io) attempt \n to use websockets, with a Flash fallback. Others (amqp.js, for instance) \n are Flash only.\n\n When using Flash sockets, it's necessary to have a policy server running on \n port 843, in order to set cross domain policy. This library does the job.\n "
|
14
14
|
s.email = "dave.hrycyszyn@headlondon.com"
|
15
15
|
s.executables = ["flash_policy_server"]
|
@@ -26,6 +26,9 @@ Gem::Specification.new do |s|
|
|
26
26
|
"Rakefile",
|
27
27
|
"VERSION",
|
28
28
|
"bin/flash_policy_server",
|
29
|
+
"docker/Dockerfile",
|
30
|
+
"docker/crossdomain.xml",
|
31
|
+
"flash_policy_server-0.0.9.gem",
|
29
32
|
"flash_policy_server.gemspec",
|
30
33
|
"generators/crossdomain.xml",
|
31
34
|
"lib/flash_policy_server.rb",
|
@@ -35,30 +38,30 @@ Gem::Specification.new do |s|
|
|
35
38
|
s.homepage = "http://github.com/futurechimp/flash_policy_server"
|
36
39
|
s.licenses = ["MIT"]
|
37
40
|
s.require_paths = ["lib"]
|
38
|
-
s.rubygems_version = "
|
41
|
+
s.rubygems_version = "2.0.6"
|
39
42
|
s.summary = "A flash policy server."
|
40
43
|
|
41
44
|
if s.respond_to? :specification_version then
|
42
|
-
s.specification_version =
|
45
|
+
s.specification_version = 4
|
43
46
|
|
44
47
|
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
45
48
|
s.add_development_dependency(%q<minitest>, [">= 0"])
|
46
49
|
s.add_development_dependency(%q<yard>, ["~> 0.6.0"])
|
47
|
-
s.add_development_dependency(%q<bundler>, ["~> 1.0
|
48
|
-
s.add_development_dependency(%q<jeweler>, ["
|
50
|
+
s.add_development_dependency(%q<bundler>, ["~> 1.0"])
|
51
|
+
s.add_development_dependency(%q<jeweler>, [">= 0"])
|
49
52
|
s.add_development_dependency(%q<rcov>, [">= 0"])
|
50
53
|
else
|
51
54
|
s.add_dependency(%q<minitest>, [">= 0"])
|
52
55
|
s.add_dependency(%q<yard>, ["~> 0.6.0"])
|
53
|
-
s.add_dependency(%q<bundler>, ["~> 1.0
|
54
|
-
s.add_dependency(%q<jeweler>, ["
|
56
|
+
s.add_dependency(%q<bundler>, ["~> 1.0"])
|
57
|
+
s.add_dependency(%q<jeweler>, [">= 0"])
|
55
58
|
s.add_dependency(%q<rcov>, [">= 0"])
|
56
59
|
end
|
57
60
|
else
|
58
61
|
s.add_dependency(%q<minitest>, [">= 0"])
|
59
62
|
s.add_dependency(%q<yard>, ["~> 0.6.0"])
|
60
|
-
s.add_dependency(%q<bundler>, ["~> 1.0
|
61
|
-
s.add_dependency(%q<jeweler>, ["
|
63
|
+
s.add_dependency(%q<bundler>, ["~> 1.0"])
|
64
|
+
s.add_dependency(%q<jeweler>, [">= 0"])
|
62
65
|
s.add_dependency(%q<rcov>, [">= 0"])
|
63
66
|
end
|
64
67
|
end
|
metadata
CHANGED
@@ -1,71 +1,85 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: flash_policy_server
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0
|
5
|
-
prerelease:
|
4
|
+
version: 0.1.0
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- Dave hrycyszyn
|
9
8
|
autorequire:
|
10
9
|
bindir: bin
|
11
10
|
cert_chain: []
|
12
|
-
date:
|
11
|
+
date: 2013-10-12 00:00:00.000000000 Z
|
13
12
|
dependencies:
|
14
13
|
- !ruby/object:Gem::Dependency
|
15
14
|
name: minitest
|
16
|
-
requirement:
|
17
|
-
none: false
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
18
16
|
requirements:
|
19
17
|
- - ! '>='
|
20
18
|
- !ruby/object:Gem::Version
|
21
19
|
version: '0'
|
22
20
|
type: :development
|
23
21
|
prerelease: false
|
24
|
-
version_requirements:
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ! '>='
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '0'
|
25
27
|
- !ruby/object:Gem::Dependency
|
26
28
|
name: yard
|
27
|
-
requirement:
|
28
|
-
none: false
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
29
30
|
requirements:
|
30
31
|
- - ~>
|
31
32
|
- !ruby/object:Gem::Version
|
32
33
|
version: 0.6.0
|
33
34
|
type: :development
|
34
35
|
prerelease: false
|
35
|
-
version_requirements:
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - ~>
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: 0.6.0
|
36
41
|
- !ruby/object:Gem::Dependency
|
37
42
|
name: bundler
|
38
|
-
requirement:
|
39
|
-
none: false
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
40
44
|
requirements:
|
41
45
|
- - ~>
|
42
46
|
- !ruby/object:Gem::Version
|
43
|
-
version: 1.0
|
47
|
+
version: '1.0'
|
44
48
|
type: :development
|
45
49
|
prerelease: false
|
46
|
-
version_requirements:
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - ~>
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '1.0'
|
47
55
|
- !ruby/object:Gem::Dependency
|
48
56
|
name: jeweler
|
49
|
-
requirement:
|
50
|
-
none: false
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
51
58
|
requirements:
|
52
|
-
- -
|
59
|
+
- - ! '>='
|
53
60
|
- !ruby/object:Gem::Version
|
54
|
-
version:
|
61
|
+
version: '0'
|
55
62
|
type: :development
|
56
63
|
prerelease: false
|
57
|
-
version_requirements:
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - ! '>='
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '0'
|
58
69
|
- !ruby/object:Gem::Dependency
|
59
70
|
name: rcov
|
60
|
-
requirement:
|
61
|
-
none: false
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
62
72
|
requirements:
|
63
73
|
- - ! '>='
|
64
74
|
- !ruby/object:Gem::Version
|
65
75
|
version: '0'
|
66
76
|
type: :development
|
67
77
|
prerelease: false
|
68
|
-
version_requirements:
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - ! '>='
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '0'
|
69
83
|
description: ! "\n This is a simple Ruby-based policy server to serve Flash's crossdomain.xml
|
70
84
|
\n policy file.\n\n The web is increasingly realtime, but websockets still
|
71
85
|
aren't supported on \n older browser clients. Many server push libraries (e.g.
|
@@ -89,6 +103,9 @@ files:
|
|
89
103
|
- Rakefile
|
90
104
|
- VERSION
|
91
105
|
- bin/flash_policy_server
|
106
|
+
- docker/Dockerfile
|
107
|
+
- docker/crossdomain.xml
|
108
|
+
- flash_policy_server-0.0.9.gem
|
92
109
|
- flash_policy_server.gemspec
|
93
110
|
- generators/crossdomain.xml
|
94
111
|
- lib/flash_policy_server.rb
|
@@ -97,29 +114,25 @@ files:
|
|
97
114
|
homepage: http://github.com/futurechimp/flash_policy_server
|
98
115
|
licenses:
|
99
116
|
- MIT
|
117
|
+
metadata: {}
|
100
118
|
post_install_message:
|
101
119
|
rdoc_options: []
|
102
120
|
require_paths:
|
103
121
|
- lib
|
104
122
|
required_ruby_version: !ruby/object:Gem::Requirement
|
105
|
-
none: false
|
106
123
|
requirements:
|
107
124
|
- - ! '>='
|
108
125
|
- !ruby/object:Gem::Version
|
109
126
|
version: '0'
|
110
|
-
segments:
|
111
|
-
- 0
|
112
|
-
hash: -402914032746825850
|
113
127
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
114
|
-
none: false
|
115
128
|
requirements:
|
116
129
|
- - ! '>='
|
117
130
|
- !ruby/object:Gem::Version
|
118
131
|
version: '0'
|
119
132
|
requirements: []
|
120
133
|
rubyforge_project:
|
121
|
-
rubygems_version:
|
134
|
+
rubygems_version: 2.0.6
|
122
135
|
signing_key:
|
123
|
-
specification_version:
|
136
|
+
specification_version: 4
|
124
137
|
summary: A flash policy server.
|
125
138
|
test_files: []
|