adyen-skinbuilder 0.3.1 → 0.3.2
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile.lock +15 -15
- data/lib/adyen-skinbuilder/helper/adyen.rb +4 -0
- data/lib/adyen-skinbuilder/server/views/index.html.erb +1 -1
- data/lib/adyen-skinbuilder/version.rb +1 -1
- data/spec/fixtures/skins/test/skin.html.erb +2 -0
- data/spec/fixtures/skins/test/skin.yml +7 -0
- data/spec/lib/adyen-skinbuilder/server_spec.rb +8 -0
- metadata +8 -4
data/Gemfile.lock
CHANGED
@@ -10,21 +10,21 @@ PATH
|
|
10
10
|
GEM
|
11
11
|
remote: http://rubygems.org/
|
12
12
|
specs:
|
13
|
-
adyen-admin (0.0.
|
13
|
+
adyen-admin (0.0.13)
|
14
14
|
mechanize
|
15
15
|
rubyzip
|
16
|
-
backports (2.5.
|
16
|
+
backports (2.5.3)
|
17
17
|
diff-lcs (1.1.3)
|
18
18
|
domain_name (0.5.3)
|
19
19
|
unf (~> 0.0.3)
|
20
20
|
eventmachine (0.12.10)
|
21
21
|
ffi (1.0.11)
|
22
|
-
guard (1.0.
|
22
|
+
guard (1.0.3)
|
23
23
|
ffi (>= 0.5.0)
|
24
|
-
thor (
|
25
|
-
guard-rspec (0.7.
|
24
|
+
thor (>= 0.14.6)
|
25
|
+
guard-rspec (0.7.2)
|
26
26
|
guard (>= 0.10.0)
|
27
|
-
mechanize (2.
|
27
|
+
mechanize (2.5.1)
|
28
28
|
domain_name (~> 0.5, >= 0.5.1)
|
29
29
|
mime-types (~> 1.17, >= 1.17.2)
|
30
30
|
net-http-digest_auth (~> 1.1, >= 1.1.1)
|
@@ -43,15 +43,15 @@ GEM
|
|
43
43
|
rack-test (0.6.1)
|
44
44
|
rack (>= 1.0)
|
45
45
|
rake (0.9.2.2)
|
46
|
-
rspec (2.
|
47
|
-
rspec-core (~> 2.
|
48
|
-
rspec-expectations (~> 2.
|
49
|
-
rspec-mocks (~> 2.
|
50
|
-
rspec-core (2.
|
51
|
-
rspec-expectations (2.
|
46
|
+
rspec (2.10.0)
|
47
|
+
rspec-core (~> 2.10.0)
|
48
|
+
rspec-expectations (~> 2.10.0)
|
49
|
+
rspec-mocks (~> 2.10.0)
|
50
|
+
rspec-core (2.10.0)
|
51
|
+
rspec-expectations (2.10.0)
|
52
52
|
diff-lcs (~> 1.1.3)
|
53
|
-
rspec-mocks (2.
|
54
|
-
rubyzip (0.9.
|
53
|
+
rspec-mocks (2.10.1)
|
54
|
+
rubyzip (0.9.8)
|
55
55
|
sinatra (1.3.2)
|
56
56
|
rack (~> 1.3, >= 1.3.6)
|
57
57
|
rack-protection (~> 1.2)
|
@@ -63,7 +63,7 @@ GEM
|
|
63
63
|
rack-test
|
64
64
|
sinatra (~> 1.3.0)
|
65
65
|
tilt (~> 1.3)
|
66
|
-
thor (0.
|
66
|
+
thor (0.15.2)
|
67
67
|
tilt (1.3.3)
|
68
68
|
unf (0.0.5)
|
69
69
|
unf_ext
|
@@ -84,7 +84,7 @@
|
|
84
84
|
<%= "R" unless skin.frozen? %>
|
85
85
|
<%= "L" if skin.path %>
|
86
86
|
</td>
|
87
|
-
<td><a href="/<%= skin.code %>"><img src="https://ca-test.adyen.com/ca/img/icons/layout_content.png" border="0"><%= skin.name
|
87
|
+
<td><a href="/<%= skin.code %>"><img src="https://ca-test.adyen.com/ca/img/icons/layout_content.png" border="0"><%= !skin.name.empty? ? skin.name : skin.code %></a></td>
|
88
88
|
<td>
|
89
89
|
<% if !skin.frozen? %>
|
90
90
|
<%= skin.version %>
|
@@ -103,6 +103,14 @@ describe 'SkinBuilder server' do
|
|
103
103
|
it 'returns order data' do
|
104
104
|
last_response.body.should include(File.read(File.join(skins_directory, skin_code, 'inc/order_data.txt')))
|
105
105
|
end
|
106
|
+
|
107
|
+
context "with metdafile" do
|
108
|
+
let(:skin_code) { "vQW0fEo8" }
|
109
|
+
|
110
|
+
it 'responds with 200 status' do
|
111
|
+
last_response.status.should == 200
|
112
|
+
end
|
113
|
+
end
|
106
114
|
end
|
107
115
|
|
108
116
|
describe "/compile" do
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: adyen-skinbuilder
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 23
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 3
|
9
|
-
-
|
10
|
-
version: 0.3.
|
9
|
+
- 2
|
10
|
+
version: 0.3.2
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Priit Haamer
|
@@ -16,7 +16,7 @@ autorequire:
|
|
16
16
|
bindir: bin
|
17
17
|
cert_chain: []
|
18
18
|
|
19
|
-
date: 2012-
|
19
|
+
date: 2012-06-01 00:00:00 +02:00
|
20
20
|
default_executable:
|
21
21
|
dependencies:
|
22
22
|
- !ruby/object:Gem::Dependency
|
@@ -210,6 +210,8 @@ files:
|
|
210
210
|
- spec/fixtures/skins/base/inc/pmfooter.txt
|
211
211
|
- spec/fixtures/skins/base/inc/pmheader.txt
|
212
212
|
- spec/fixtures/skins/base/res/resources.properties
|
213
|
+
- spec/fixtures/skins/test/skin.html.erb
|
214
|
+
- spec/fixtures/skins/test/skin.yml
|
213
215
|
- spec/lib/adyen-skinbuilder/server_spec.rb
|
214
216
|
- spec/spec_helper.rb
|
215
217
|
has_rdoc: true
|
@@ -268,5 +270,7 @@ test_files:
|
|
268
270
|
- spec/fixtures/skins/base/inc/pmfooter.txt
|
269
271
|
- spec/fixtures/skins/base/inc/pmheader.txt
|
270
272
|
- spec/fixtures/skins/base/res/resources.properties
|
273
|
+
- spec/fixtures/skins/test/skin.html.erb
|
274
|
+
- spec/fixtures/skins/test/skin.yml
|
271
275
|
- spec/lib/adyen-skinbuilder/server_spec.rb
|
272
276
|
- spec/spec_helper.rb
|