middleman-more 3.0.1.pre → 3.0.2

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.
@@ -118,4 +118,23 @@ Feature: i18n Builder
118
118
  | es/index.html |
119
119
  | es/hola.html |
120
120
  And the file "index.html" should contain "Howdy"
121
- And the file "hello.html" should contain "Hello World"
121
+ And the file "hello.html" should contain "Hello World"
122
+
123
+ Scenario: Running localize with relative_assets
124
+ Given a fixture app "i18n-test-app"
125
+ And a file named "config.rb" with:
126
+ """
127
+ activate :i18n
128
+ activate :relative_assets
129
+ """
130
+ Given a successfully built app at "i18n-test-app"
131
+ When I cd to "build"
132
+ Then the following files should exist:
133
+ | index.html |
134
+ | hello.html |
135
+ | es/index.html |
136
+ | es/hola.html |
137
+ And the file "index.html" should contain '"stylesheets/site.css"'
138
+ And the file "hello.html" should contain '"stylesheets/site.css"'
139
+ And the file "es/index.html" should contain '"../stylesheets/site.css"'
140
+ And the file "es/hola.html" should contain '"../stylesheets/site.css"'
@@ -110,4 +110,21 @@ Feature: i18n Preview
110
110
  When I go to "/es/index.html"
111
111
  Then I should see "File Not Found"
112
112
  When I go to "/es/hola.html"
113
- Then I should see "File Not Found"
113
+ Then I should see "File Not Found"
114
+
115
+ Scenario: Running localize with relative_assets
116
+ Given a fixture app "i18n-test-app"
117
+ And a file named "config.rb" with:
118
+ """
119
+ activate :i18n
120
+ activate :relative_assets
121
+ """
122
+ Given the Server is running at "i18n-test-app"
123
+ When I go to "/"
124
+ Then I should see '"stylesheets/site.css"'
125
+ When I go to "/hello.html"
126
+ Then I should see '"stylesheets/site.css"'
127
+ When I go to "/es/index.html"
128
+ Then I should see '"../stylesheets/site.css"'
129
+ When I go to "/es/hola.html"
130
+ Then I should see '"../stylesheets/site.css"'
@@ -1 +1,8 @@
1
- <%= yield %>
1
+ <html>
2
+ <head>
3
+ <%= stylesheet_link_tag :site %>
4
+ </head>
5
+ <body>
6
+ <%= yield %>
7
+ </body>
8
+ </html>
@@ -0,0 +1,3 @@
1
+ body {
2
+ hello: world;
3
+ }
metadata CHANGED
@@ -1,8 +1,8 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: middleman-more
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.1.pre
5
- prerelease: 6
4
+ version: 3.0.2
5
+ prerelease:
6
6
  platform: ruby
7
7
  authors:
8
8
  - Thomas Reynolds
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2012-09-01 00:00:00.000000000 Z
13
+ date: 2012-09-05 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: middleman-core
@@ -19,7 +19,7 @@ dependencies:
19
19
  requirements:
20
20
  - - '='
21
21
  - !ruby/object:Gem::Version
22
- version: 3.0.1.pre
22
+ version: 3.0.2
23
23
  type: :runtime
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
@@ -27,7 +27,7 @@ dependencies:
27
27
  requirements:
28
28
  - - '='
29
29
  - !ruby/object:Gem::Version
30
- version: 3.0.1.pre
30
+ version: 3.0.2
31
31
  - !ruby/object:Gem::Dependency
32
32
  name: uglifier
33
33
  requirement: !ruby/object:Gem::Requirement
@@ -349,6 +349,7 @@ files:
349
349
  - fixtures/i18n-test-app/source/layout.erb
350
350
  - fixtures/i18n-test-app/source/localizable/hello.html.erb
351
351
  - fixtures/i18n-test-app/source/localizable/index.html.erb
352
+ - fixtures/i18n-test-app/source/stylesheets/site.css
352
353
  - fixtures/ignore-app/source/about.html.erb
353
354
  - fixtures/ignore-app/source/images/icon/messages.png
354
355
  - fixtures/ignore-app/source/images/pic.png
@@ -630,16 +631,19 @@ required_ruby_version: !ruby/object:Gem::Requirement
630
631
  version: '0'
631
632
  segments:
632
633
  - 0
633
- hash: -2447366148291236453
634
+ hash: -280474892218270265
634
635
  required_rubygems_version: !ruby/object:Gem::Requirement
635
636
  none: false
636
637
  requirements:
637
- - - ! '>'
638
+ - - ! '>='
638
639
  - !ruby/object:Gem::Version
639
- version: 1.3.1
640
+ version: '0'
641
+ segments:
642
+ - 0
643
+ hash: -280474892218270265
640
644
  requirements: []
641
645
  rubyforge_project:
642
- rubygems_version: 1.8.24
646
+ rubygems_version: 1.8.23
643
647
  signing_key:
644
648
  specification_version: 3
645
649
  summary: Hand-crafted frontend development
@@ -791,6 +795,7 @@ test_files:
791
795
  - fixtures/i18n-test-app/source/layout.erb
792
796
  - fixtures/i18n-test-app/source/localizable/hello.html.erb
793
797
  - fixtures/i18n-test-app/source/localizable/index.html.erb
798
+ - fixtures/i18n-test-app/source/stylesheets/site.css
794
799
  - fixtures/ignore-app/source/about.html.erb
795
800
  - fixtures/ignore-app/source/images/icon/messages.png
796
801
  - fixtures/ignore-app/source/images/pic.png