middleman-search_engine_sitemap 1.3.0 → 1.4.0.alpha

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4164db2143eb8eb720c369f6afdf832256984bd7
4
- data.tar.gz: 40aa7565fbb304a50cff7a570ef2a091f3e9f35c
3
+ metadata.gz: 109b8ebd534e3f6957cd352cdbea3aa6354c088e
4
+ data.tar.gz: 24ffb5ad298c3ab945a1a5d542794e994bb4cd02
5
5
  SHA512:
6
- metadata.gz: 353eebf7471a31e5b6593ea93fc5d30e64e3220c008fce44ab950cea102deb0243d203962f89f72b73de797bf0cf782be7576520443428f95a6fb82f3f724bad
7
- data.tar.gz: 89c2bf8f47763ace920328264586327e6b01d4cb2dbabaa6ff302536eda51e95bc68114f86e71811e9c699dc8dc2e0a6691d287677c94aef98975fce56a451f5
6
+ metadata.gz: 75faeb6b0be83ff44d66afdb56a2591003ce907a686beb3e995344b0572575a310735d1b659d588540a47aa4a74b6c00eaee9bf60e8ec4591851de2b6324a05f
7
+ data.tar.gz: d6de540453e67199fb777d9043048a906b35fce211b4ace22d32c316d27e24f29e26cf7f1d2d17ea694db8323a30a652a8d7124d8d304f170dee5fd589439f76
data/.travis.yml CHANGED
@@ -6,3 +6,5 @@ rvm:
6
6
  - 2.1.1
7
7
  - 2.1.2
8
8
  - 2.1.5
9
+ - 2.2.2
10
+ sudo: false
@@ -15,7 +15,7 @@ module Middleman
15
15
  option :exclude_if, ->(resource) { false }
16
16
 
17
17
  def after_configuration
18
- register_extension_templates
18
+ # register_extension_templates
19
19
  end
20
20
 
21
21
  def manipulate_resource_list(resources)
@@ -49,7 +49,7 @@ module Middleman
49
49
  end
50
50
 
51
51
  def page_ext
52
- File.extname(app.index_file)
52
+ File.extname(app.config.index_file)
53
53
  end
54
54
 
55
55
  def register_extension_templates
@@ -2,7 +2,7 @@ xml.instruct!
2
2
  xml.urlset 'xmlns' => 'http://www.sitemaps.org/schemas/sitemap/0.9' do
3
3
  resources_for_sitemap.each do |page|
4
4
  xml.url do
5
- xml.loc extensions[:search_engine_sitemap].process_url(File.join(url_root, page.url))
5
+ xml.loc extensions[:search_engine_sitemap].process_url(File.join(app.config.url_root, page.url))
6
6
  xml.lastmod(File.mtime(page.source_file).iso8601) if page.source_file
7
7
  xml.changefreq page.data.change_frequency || default_change_frequency
8
8
  xml.priority page.data.priority || default_priority
@@ -1,5 +1,5 @@
1
1
  module Middleman
2
2
  module SearchEngineSitemap
3
- VERSION = "1.3.0"
3
+ VERSION = "1.4.0.alpha"
4
4
  end
5
5
  end
@@ -17,12 +17,13 @@ Gem::Specification.new do |spec|
17
17
  spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
18
18
  spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
19
19
  spec.require_paths = ["lib"]
20
-
21
- spec.add_runtime_dependency "middleman-core", "~> 3.2"
20
+
21
+ spec.add_runtime_dependency "middleman-core", "~> 4.0"
22
22
  spec.add_runtime_dependency "builder"
23
23
 
24
24
  spec.add_development_dependency "bundler", "~> 1.5"
25
25
  spec.add_development_dependency "rake"
26
26
  spec.add_development_dependency "rspec"
27
27
  spec.add_development_dependency "nokogiri"
28
+ spec.add_development_dependency "pry"
28
29
  end
@@ -9,7 +9,6 @@ describe "Search engine sitemaps", :feature do
9
9
  run_site 'dummy' do
10
10
  set :url_root, 'http://example.com'
11
11
  activate :search_engine_sitemap
12
-
13
12
  ignore '/ignored.html'
14
13
  end
15
14
 
@@ -21,15 +21,20 @@ module MiddlemanServerHelpers
21
21
  setup_environment(path)
22
22
 
23
23
  @app = lambda do
24
- instance = Middleman::Application.server.inst do
24
+ instance = ::Middleman::Application.new do
25
+ config[:watcher_disable] = true
26
+ config[:show_exceptions] = false
27
+
25
28
  # Require the pagination extension after the
26
29
  # server has booted, as would typically happen.
27
30
  require File.expand_path('../../../lib/middleman/search_engine_sitemap', __FILE__)
28
31
 
29
- instance_exec(&block)
32
+ app.after_configuration_eval do
33
+ config_context.instance_exec(&block)
34
+ end
30
35
  end
31
36
 
32
- instance.class.to_rack_app
37
+ ::Middleman::Rack.new(instance).to_app
33
38
  end
34
39
  end
35
40
 
@@ -39,4 +44,4 @@ module MiddlemanServerHelpers
39
44
  ENV['MM_ROOT'] = File.expand_path("../../#{path}", __FILE__)
40
45
  ENV['TEST'] = "true"
41
46
  end
42
- end
47
+ end
metadata CHANGED
@@ -1,97 +1,111 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: middleman-search_engine_sitemap
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.0
4
+ version: 1.4.0.alpha
5
5
  platform: ruby
6
6
  authors:
7
7
  - Pete Nicholls
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-11-29 00:00:00.000000000 Z
11
+ date: 2016-03-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: middleman-core
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ~>
17
+ - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '3.2'
19
+ version: '4.0'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - ~>
24
+ - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: '3.2'
26
+ version: '4.0'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: builder
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - '>='
31
+ - - ">="
32
32
  - !ruby/object:Gem::Version
33
33
  version: '0'
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - '>='
38
+ - - ">="
39
39
  - !ruby/object:Gem::Version
40
40
  version: '0'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: bundler
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - ~>
45
+ - - "~>"
46
46
  - !ruby/object:Gem::Version
47
47
  version: '1.5'
48
48
  type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - ~>
52
+ - - "~>"
53
53
  - !ruby/object:Gem::Version
54
54
  version: '1.5'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: rake
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - '>='
59
+ - - ">="
60
60
  - !ruby/object:Gem::Version
61
61
  version: '0'
62
62
  type: :development
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
- - - '>='
66
+ - - ">="
67
67
  - !ruby/object:Gem::Version
68
68
  version: '0'
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: rspec
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
- - - '>='
73
+ - - ">="
74
74
  - !ruby/object:Gem::Version
75
75
  version: '0'
76
76
  type: :development
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
- - - '>='
80
+ - - ">="
81
81
  - !ruby/object:Gem::Version
82
82
  version: '0'
83
83
  - !ruby/object:Gem::Dependency
84
84
  name: nokogiri
85
85
  requirement: !ruby/object:Gem::Requirement
86
86
  requirements:
87
- - - '>='
87
+ - - ">="
88
88
  - !ruby/object:Gem::Version
89
89
  version: '0'
90
90
  type: :development
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
- - - '>='
94
+ - - ">="
95
+ - !ruby/object:Gem::Version
96
+ version: '0'
97
+ - !ruby/object:Gem::Dependency
98
+ name: pry
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - ">="
102
+ - !ruby/object:Gem::Version
103
+ version: '0'
104
+ type: :development
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - ">="
95
109
  - !ruby/object:Gem::Version
96
110
  version: '0'
97
111
  description: Adds a sitemap.xml file (following the sitemaps.org protocol) to your
@@ -102,8 +116,8 @@ executables: []
102
116
  extensions: []
103
117
  extra_rdoc_files: []
104
118
  files:
105
- - .gitignore
106
- - .travis.yml
119
+ - ".gitignore"
120
+ - ".travis.yml"
107
121
  - Gemfile
108
122
  - LICENSE.txt
109
123
  - README.md
@@ -134,17 +148,17 @@ require_paths:
134
148
  - lib
135
149
  required_ruby_version: !ruby/object:Gem::Requirement
136
150
  requirements:
137
- - - '>='
151
+ - - ">="
138
152
  - !ruby/object:Gem::Version
139
153
  version: '0'
140
154
  required_rubygems_version: !ruby/object:Gem::Requirement
141
155
  requirements:
142
- - - '>='
156
+ - - ">"
143
157
  - !ruby/object:Gem::Version
144
- version: '0'
158
+ version: 1.3.1
145
159
  requirements: []
146
160
  rubyforge_project:
147
- rubygems_version: 2.0.14
161
+ rubygems_version: 2.5.1
148
162
  signing_key:
149
163
  specification_version: 4
150
164
  summary: Adds a sitemap.xml file to your Middleman site for search engines.