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.
@@ -10,21 +10,21 @@ PATH
10
10
  GEM
11
11
  remote: http://rubygems.org/
12
12
  specs:
13
- adyen-admin (0.0.12)
13
+ adyen-admin (0.0.13)
14
14
  mechanize
15
15
  rubyzip
16
- backports (2.5.1)
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.1)
22
+ guard (1.0.3)
23
23
  ffi (>= 0.5.0)
24
- thor (~> 0.14.6)
25
- guard-rspec (0.7.0)
24
+ thor (>= 0.14.6)
25
+ guard-rspec (0.7.2)
26
26
  guard (>= 0.10.0)
27
- mechanize (2.4)
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.9.0)
47
- rspec-core (~> 2.9.0)
48
- rspec-expectations (~> 2.9.0)
49
- rspec-mocks (~> 2.9.0)
50
- rspec-core (2.9.0)
51
- rspec-expectations (2.9.1)
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.9.0)
54
- rubyzip (0.9.7)
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.14.6)
66
+ thor (0.15.2)
67
67
  tilt (1.3.3)
68
68
  unf (0.0.5)
69
69
  unf_ext
@@ -17,6 +17,10 @@ module Adyen
17
17
  end
18
18
  end
19
19
 
20
+ def adyen_skin_code
21
+ @skin.code
22
+ end
23
+
20
24
  # to be done
21
25
  # def adyen_custom_field_tag
22
26
  # end
@@ -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 || skin.code %></a></td>
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 %>
@@ -1,5 +1,5 @@
1
1
  module Adyen
2
2
  module Skinbuilder
3
- VERSION = '0.3.1'
3
+ VERSION = '0.3.2'
4
4
  end
5
5
  end
@@ -0,0 +1,2 @@
1
+
2
+ <% adyen_form_tag %>
@@ -0,0 +1,7 @@
1
+ ---
2
+ :name: test
3
+ :code: vQW0fEo8
4
+ :uploaded_at: 2012-05-02 12:52:55.637512000 +02:00
5
+ :version: 32
6
+ :version_live: 0
7
+ :version_test: 31
@@ -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: 17
4
+ hash: 23
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 3
9
- - 1
10
- version: 0.3.1
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-04-27 00:00:00 +03:00
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