sinatra-pages 0.0.1
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.
- data/LICENSE +0 -0
- data/README +0 -0
- data/Rakefile +60 -0
- data/lib/sinatra/pages.rb +7 -0
- data/spec/opts/rcov.opts +4 -0
- data/spec/opts/spec.opts +9 -0
- data/spec/pages_spec.rb +13 -0
- data/spec/spec_helper.rb +2 -0
- metadata +108 -0
data/LICENSE
ADDED
|
File without changes
|
data/README
ADDED
|
File without changes
|
data/Rakefile
ADDED
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
require 'rubygems' if RUBY_VERSION.to_f < 1.9
|
|
2
|
+
require 'rake/clean'
|
|
3
|
+
require 'rake/rdoctask'
|
|
4
|
+
require 'rake/gempackagetask'
|
|
5
|
+
require 'spec/rake/spectask'
|
|
6
|
+
|
|
7
|
+
CLEAN.include %w[coverage/ doc/ pkg/]
|
|
8
|
+
|
|
9
|
+
desc 'Documentation generation.'
|
|
10
|
+
Rake::RDocTask.new :rdoc do |documentation|
|
|
11
|
+
documentation.rdoc_files.add(%w(README LICENSE lib/**/*.rb))
|
|
12
|
+
documentation.main = 'README'
|
|
13
|
+
documentation.title = 'Sinatra-Pages Documentation'
|
|
14
|
+
documentation.rdoc_dir = 'doc'
|
|
15
|
+
documentation.options = %w[--line-numbers --inline-source --charset=UTF-8]
|
|
16
|
+
end
|
|
17
|
+
|
|
18
|
+
desc 'Load the GemSpec definition file.'
|
|
19
|
+
load 'sinatra-pages.gemspec'
|
|
20
|
+
|
|
21
|
+
desc 'Package building.'
|
|
22
|
+
Rake::GemPackageTask.new(GEM) do |package|
|
|
23
|
+
package.gem_spec = GEM
|
|
24
|
+
package.need_tar = false
|
|
25
|
+
package.need_zip = false
|
|
26
|
+
end
|
|
27
|
+
|
|
28
|
+
desc "Deployment on Github and Gemcutter."
|
|
29
|
+
namespace :deployment do
|
|
30
|
+
task :github do
|
|
31
|
+
sh 'git checkout master'
|
|
32
|
+
sh 'git merge development'
|
|
33
|
+
sh 'git push rock-n-code master --tags'
|
|
34
|
+
sh 'git push server master --tags'
|
|
35
|
+
sh 'git checkout development'
|
|
36
|
+
end
|
|
37
|
+
|
|
38
|
+
task :gemcutter => [:package] do
|
|
39
|
+
sh 'gem19 push pkg/*.gem'
|
|
40
|
+
end
|
|
41
|
+
end
|
|
42
|
+
|
|
43
|
+
desc 'Functional testing with RSpec.'
|
|
44
|
+
Spec::Rake::SpecTask.new :spec do |task|
|
|
45
|
+
task.spec_opts = %w[--options spec/opts/spec.opts]
|
|
46
|
+
task.libs = %w[lib spec]
|
|
47
|
+
task.spec_files = FileList['spec/**/*.rb']
|
|
48
|
+
task.rcov = false
|
|
49
|
+
end
|
|
50
|
+
|
|
51
|
+
desc 'Functional testing with RSpec and RCov.'
|
|
52
|
+
Spec::Rake::SpecTask.new(:rcov) do |task|
|
|
53
|
+
task.spec_opts = %w[--options spec/opts/spec.opts]
|
|
54
|
+
task.libs = %w[lib spec]
|
|
55
|
+
task.spec_files = FileList['spec/*_spec.rb']
|
|
56
|
+
task.rcov = true
|
|
57
|
+
task.rcov_opts = IO.readlines('spec/opts/rcov.opts').each{|line| line.chomp!}
|
|
58
|
+
end
|
|
59
|
+
|
|
60
|
+
task :deploy => ['deployment:github', 'deployment:gemcutter']
|
data/spec/opts/rcov.opts
ADDED
data/spec/opts/spec.opts
ADDED
data/spec/pages_spec.rb
ADDED
data/spec/spec_helper.rb
ADDED
metadata
ADDED
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
|
2
|
+
name: sinatra-pages
|
|
3
|
+
version: !ruby/object:Gem::Version
|
|
4
|
+
version: 0.0.1
|
|
5
|
+
platform: ruby
|
|
6
|
+
authors:
|
|
7
|
+
- Julio Javier Cicchelli
|
|
8
|
+
autorequire:
|
|
9
|
+
bindir: bin
|
|
10
|
+
cert_chain: []
|
|
11
|
+
|
|
12
|
+
date: 2010-01-15 00:00:00 +01:00
|
|
13
|
+
default_executable:
|
|
14
|
+
dependencies:
|
|
15
|
+
- !ruby/object:Gem::Dependency
|
|
16
|
+
name: sinatra
|
|
17
|
+
type: :runtime
|
|
18
|
+
version_requirement:
|
|
19
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
20
|
+
requirements:
|
|
21
|
+
- - ">="
|
|
22
|
+
- !ruby/object:Gem::Version
|
|
23
|
+
version: 0.9.4
|
|
24
|
+
version:
|
|
25
|
+
- !ruby/object:Gem::Dependency
|
|
26
|
+
name: rspec
|
|
27
|
+
type: :development
|
|
28
|
+
version_requirement:
|
|
29
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
30
|
+
requirements:
|
|
31
|
+
- - ">="
|
|
32
|
+
- !ruby/object:Gem::Version
|
|
33
|
+
version: 1.3.0
|
|
34
|
+
version:
|
|
35
|
+
- !ruby/object:Gem::Dependency
|
|
36
|
+
name: rcov
|
|
37
|
+
type: :development
|
|
38
|
+
version_requirement:
|
|
39
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
40
|
+
requirements:
|
|
41
|
+
- - ">="
|
|
42
|
+
- !ruby/object:Gem::Version
|
|
43
|
+
version: 0.9.7.1
|
|
44
|
+
version:
|
|
45
|
+
- !ruby/object:Gem::Dependency
|
|
46
|
+
name: rake-test
|
|
47
|
+
type: :development
|
|
48
|
+
version_requirement:
|
|
49
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
50
|
+
requirements:
|
|
51
|
+
- - ">="
|
|
52
|
+
- !ruby/object:Gem::Version
|
|
53
|
+
version: 0.5.3
|
|
54
|
+
version:
|
|
55
|
+
description: " A Sinatra extension to manage static pages.\n"
|
|
56
|
+
email: javier@rock-n-code.com
|
|
57
|
+
executables: []
|
|
58
|
+
|
|
59
|
+
extensions: []
|
|
60
|
+
|
|
61
|
+
extra_rdoc_files:
|
|
62
|
+
- README
|
|
63
|
+
- LICENSE
|
|
64
|
+
files:
|
|
65
|
+
- LICENSE
|
|
66
|
+
- README
|
|
67
|
+
- Rakefile
|
|
68
|
+
- lib/sinatra/pages.rb
|
|
69
|
+
- spec/opts/rcov.opts
|
|
70
|
+
- spec/opts/spec.opts
|
|
71
|
+
- spec/pages_spec.rb
|
|
72
|
+
- spec/spec_helper.rb
|
|
73
|
+
has_rdoc: true
|
|
74
|
+
homepage: http://github.com/rock-n-code/sinatra-pages
|
|
75
|
+
licenses: []
|
|
76
|
+
|
|
77
|
+
post_install_message:
|
|
78
|
+
rdoc_options:
|
|
79
|
+
- --title
|
|
80
|
+
- Sinatra-Pages
|
|
81
|
+
- --main
|
|
82
|
+
- README
|
|
83
|
+
- --line-numbers
|
|
84
|
+
- --inline-source
|
|
85
|
+
- --charset=UTF-8
|
|
86
|
+
require_paths: lib
|
|
87
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
|
88
|
+
requirements:
|
|
89
|
+
- - ">="
|
|
90
|
+
- !ruby/object:Gem::Version
|
|
91
|
+
version: 1.9.1
|
|
92
|
+
version:
|
|
93
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
94
|
+
requirements:
|
|
95
|
+
- - "="
|
|
96
|
+
- !ruby/object:Gem::Version
|
|
97
|
+
version: 1.3.5
|
|
98
|
+
version:
|
|
99
|
+
requirements: []
|
|
100
|
+
|
|
101
|
+
rubyforge_project:
|
|
102
|
+
rubygems_version: 1.3.5
|
|
103
|
+
signing_key:
|
|
104
|
+
specification_version: 3
|
|
105
|
+
summary: A Sinatra extension to manage static pages.
|
|
106
|
+
test_files:
|
|
107
|
+
- spec/pages_spec.rb
|
|
108
|
+
- spec/spec_helper.rb
|